Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 741544 - dev-libs/tomsfastmath: error: ‘asm’ operand has impossible constraints
Summary: dev-libs/tomsfastmath: error: ‘asm’ operand has impossible constraints
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Sam James
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-10 18:15 UTC by Sandino Araico Sanchez
Modified: 2021-07-02 04:55 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (file_741544.txt,6.87 KB, text/plain)
2020-09-10 18:17 UTC, Sandino Araico Sanchez
Details
The complete build log (dev-libs:tomsfastmath-0.13.1:20200910-172750.log.gz,5.68 KB, application/gzip)
2020-09-10 18:22 UTC, Sandino Araico Sanchez
Details

Note You need to log in before you can comment on or make changes to this bug.
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)