[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] Building Tor with x86_64 asm fails

From: John Scott
Subject: [Tinycc-devel] Building Tor with x86_64 asm fails
Date: Thu, 18 Mar 2021 21:19:14 -0400
User-agent: Evolution 3.38.3-1


I tried to make Tor build with TinyCC, and the Tor folks are willing to
accommodate this [1]. The branch bug40240_045 on
https://gitlab.torproject.org/nickm/tor.git attempts to let the build
proceed using GCC-style assembly, but it fails:

  CC       src/ext/ed25519/donna/libed25519_donna_a-ed25519_tor.o
In file included from src/ext/ed25519/donna/ed25519_tor.c:41:
In file included from src/ext/ed25519/donna/ed25519-donna.h:57:
src/ext/ed25519/donna/curve25519-donna-64bit.h:216: error: unknown
constraint 'J'

It seems to be referring to this constraint:
"J" : Constant in range 0 to 63 (for 64-bit shifts)."

On the bright side, doing the build with -DED25519_FORCE_32BIT=1 works
around this and with a small change or two builds a Tor daemon that
seems to work!

[1] https://gitlab.torproject.org/tpo/core/tor/-/issues/40240

Attachment: signature.asc
Description: This is a digitally signed message part

reply via email to

[Prev in Thread] Current Thread [Next in Thread]