libtool: compile: i686-pc-linux-gnu-gcc -march=prescott -O0 -ggdb -Wall -W -Wshadow -Isrc/headers -Wl,-O1 -Wl,--as-needed -c src/sqr/fp_sqr_comba_20.c -fPIC -DPIC -o src/sqr/.libs/fp_sqr_comba_20.o In file included from src/sqr/fp_sqr_comba_20.c:2: src/sqr/fp_sqr_comba_20.c: In function ‘fp_sqr_comba20’: src/sqr/fp_sqr_comba.c:47:1: error: ‘asm’ operand has impossible constraints 47 | asm( \ | ^~~ src/sqr/fp_sqr_comba_20.c:24:4: note: in expansion of macro ‘SQRADD2’ 24 | SQRADD2(a[0], a[1]); | ^~~~~~~ src/sqr/fp_sqr_comba.c:47:1: error: ‘asm’ operand has impossible constraints 47 | asm( \ | ^~~ src/sqr/fp_sqr_comba_20.c:29:4: note: in expansion of macro ‘SQRADD2’ 29 | SQRADD2(a[0], a[2]); SQRADD(a[1], a[1]); | ^~~~~~~ src/sqr/fp_sqr_comba.c:47:1: error: ‘asm’ operand has impossible constraints 47 | asm( \ | ^~~ src/sqr/fp_sqr_comba_20.c:34:4: note: in expansion of macro ‘SQRADD2’ 34 | SQRADD2(a[0], a[3]); SQRADD2(a[1], a[2]); | ^~~~~~~
Created attachment 659404 [details] emerge --info
Fork over build.log too if you aren't already working on it? Thank you for the report!
(Just as a note: this package is somewhat "special", so I wouldn't be surprised if -O0 -ggdb is part of the problem. Attempting with vanilla CFLAGS="-O2" would help.)
Created attachment 659432 [details] The complete build log
Using CFLAGS="-O2" compiles with no error.
No idea if it helps, but the latest upstream commit touches this file: https://github.com/libtom/tomsfastmath/commit/55863ae1d
Could you report this upstream? They are kind of open to different configurations IIRC. Patching this package isn't a great idea if we can help it.
(In reply to Michael Orlitzky from comment #6) > No idea if it helps, but the latest upstream commit touches this file: > > https://github.com/libtom/tomsfastmath/commit/55863ae1d (And yes, trying git HEAD would be interesting)