Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 105159 - erlang does not compile with -mfpmath=sse
Summary: erlang does not compile with -mfpmath=sse
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Maintainers for Miscelleneous Language Packages [OBSOLETE]
URL:
Whiteboard:
Keywords:
: 134818 141489 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-09-07 08:29 UTC by Ian P. Christian
Modified: 2006-07-23 06:41 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ian P. Christian 2005-09-07 08:29:17 UTC
CFLAGS="-march=nocona -mcpu=nocona -O2 -pipe -fomit-frame-pointer 
-fforce-addr" 
^ works 
#CFLAGS="-march=nocona -mcpu=nocona -O2 -fomit-frame-pointer -fforce-addr 
-ftracer -mmmx -msse3 -mfpmath=sse -pipe" 
^ doesn't work. 
 
I'm trying to figure out exactly what flag it is at the moment that's causing 
an issue - but I would suggest that CFLAGS are filtered for this application - 
it's known to be sensitive. 
I'm trying to figure out exactly what it is that's breaking it at the moment.  

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Ian P. Christian 2005-09-07 09:23:36 UTC
-mfpmath=sse    
This appears to be the guilty flag. 
 
resulting in: 
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/../../../../i686-pc-linux-gnu/bin/ld: 
warning: creating a DT_TEXTREL in ob 
ject. 
/var/tmp/portage/erlang-10.2.5/work/otp_src_R10B-5/erts/obj.hybrid.beam/i686-pc-linux-gnu/hipe_x86_bifs.o(.text+0x7): 
In fun 
ction `nbif_handle_fp_exception': 
: undefined reference to `erts_restore_fpu' 
collect2: ld returned 1 exit status 
make[3]: *** 
[/var/tmp/portage/erlang-10.2.5/work/otp_src_R10B-5/bin/i686-pc-linux-gnu/beam.hybrid] 
Error 1 
 
 
I imagine the ebuild should be altered to filter this out. 
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-09-07 09:39:39 UTC
(In reply to comment #1)
> -mfpmath=sse    
> This appears to be the guilty flag. 
> I imagine the ebuild should be altered to filter this out. 

A few comments on your C[XX]FLAGS; this is what man gcc says:

<snip>
nocona
Improved version of Intel Pentium4 CPU with 64-bit extensions, MMX, SSE, SSE2
and SSE3 instruction set support.
</snip>

So -mmmx -msse3 is pretty much redundant. Also, -march=nocona sets *minimum*
architecture to nocona, so I'm really missing the point of setting -mcpu=nocona,
it's already included in the first one and there's nothing left to be optimized
more.

Finally, wrt mfpmath=sse, my man page says that it "may break some existing code
that expects temporaries to be 80bit", does not seem like the safest one, hmm.
So, what about removing it yourself from your make.conf? ;p
Comment 3 Ian P. Christian 2005-09-07 09:44:59 UTC
CFLAGS were given to my by a friend, and I used them without thinking - 
assuming he had checked them out, apparently not overly wise. I'll mark this 
bug as invalid. 
 
Thanks for your feedback. 
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-05-29 13:27:24 UTC
*** Bug 134818 has been marked as a duplicate of this bug. ***
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-07-23 06:14:23 UTC
*** Bug 141489 has been marked as a duplicate of this bug. ***
Comment 6 Linus van Geuns 2006-07-23 06:41:34 UTC
(In reply to comment #2)

> 
> Finally, wrt mfpmath=sse, my man page says that it "may break some existing code
> that expects temporaries to be 80bit", does not seem like the safest one, hmm.
> So, what about removing it yourself from your make.conf? ;p
> 

I am using "-mfpmath=sse" because it really improved performance with some bigger applications (firefox, openoffice, ..) and dev-lang/erlang is the first ebuild that failed with it. So it would be very nice if this ebuild filtered the flag out instead of requiring all users to remove it from their make.conf.