Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 741544

Summary: dev-libs/tomsfastmath: error: ‘asm’ operand has impossible constraints
Product: Gentoo Linux Reporter: Sandino Araico Sanchez <sandino>
Component: Current packagesAssignee: Sam James <sam>
Status: RESOLVED UPSTREAM    
Severity: normal CC: jstein, mjo
Priority: Normal    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
The complete build log

Description Sandino Araico Sanchez 2020-09-10 18:15:47 UTC
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]);
      |    ^~~~~~~
Comment 1 Sandino Araico Sanchez 2020-09-10 18:17:18 UTC
Created attachment 659404 [details]
emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-09-10 18:18:43 UTC
Fork over build.log too if you aren't already working on it? Thank you for the report!
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-09-10 18:19:31 UTC
(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.)
Comment 4 Sandino Araico Sanchez 2020-09-10 18:22:05 UTC
Created attachment 659432 [details]
The complete build log
Comment 5 Sandino Araico Sanchez 2020-09-10 18:26:00 UTC
Using CFLAGS="-O2" compiles with no error.
Comment 6 Michael Orlitzky gentoo-dev 2020-09-10 18:32:30 UTC
No idea if it helps, but the latest upstream commit touches this file:

https://github.com/libtom/tomsfastmath/commit/55863ae1d
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-09-30 16:11:35 UTC
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.
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-09-30 16:11:44 UTC
(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)