Hello,

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

_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to