Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 35494 - app-sci/ghemical-1.00 doesn't compile with SSE enabled
Summary: app-sci/ghemical-1.00 doesn't compile with SSE enabled
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Science Related Packages
Depends on:
Reported: 2003-12-09 19:21 UTC by Soren Harward
Modified: 2003-12-10 02:02 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description Soren Harward 2003-12-09 19:21:37 UTC
emerging app-sci/ghemical-1.00 with SSE enabled on gcc causes compiler error

Reproducible: Always
Steps to Reproduce:
1. enable SSE optimizations with gcc-3.2 (add flags "-msse -mfpmath=sse")
2. emerge app-sci/ghemical

Actual Results:  
build fails with the following error:

gcc -c -march=pentium3 -O3 -pipe -fomit-frame-pointer -mmmx -msse
-falign-functions=4 -fforce-addr -fprefetch-loop-arrays -mfpmath=sse -w -O
cdiag.c: In function `fm06as_':
cdiag.c:626: unable to find a register to spill in class `SSE_REGS'
cdiag.c:626: this is the insn:
(insn 115 113 132 (set (subreg:SF (reg/v:DI 29 rmm0 [68]) 0)
        (minus:SF (reg:SF 24 exmm3 [88])
            (reg:SF 22 exmm1 [98]))) 547 {*fop_sf_1_sse} (insn_list 112
(insn_list 93 (nil)))
    (expr_list:REG_DEAD (reg:SF 22 exmm1 [98])
        (expr_list:REG_DEAD (reg:SF 24 exmm3 [88])
cdiag.c:626: confused by earlier errors, bailing out
make[1]: *** [cdiag.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory
make: *** [all] Error 1

!!! ERROR: app-sci/ghemical-1.00 failed.
!!! Function src_compile, Line 23, Exitcode 2
!!! (no error message)

Expected Results:  
Program should have compiled.

If I drop the SSE flags from the CFLAGS variable (like taking them out in
/etc/make.conf), then the build proceeds properly.  I recommend adding
"filter-flags -msse -mfpmath=sse" to the ebuild.
Comment 1 Patrick Kursawe (RETIRED) gentoo-dev 2003-12-10 02:02:46 UTC
I can't reproduce your problem with gcc 3.3.2, so I don't see much sense in filtering a compiler flag that will work fine as soon as 3.3.x goes stable. I tend to say that your problem is just your personal risk of using so special optimization flags. If you can't convince me of the opposite, I'll regard this as WONTFIX. Thanks for reporting, anyway.