Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 139787 - media-sound/ardour-0.99.3: sse use-flag doesn't seem to work
Summary: media-sound/ardour-0.99.3: sse use-flag doesn't seem to work
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Eldad Zack (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-09 09:22 UTC by Jouni Rinne
Modified: 2006-10-07 16:36 UTC (History)
1 user (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 Jouni Rinne 2006-07-09 09:22:30 UTC
Regardless of whether I set the sse use-flag to "sse" or "-sse", I see the following kind of lines:

<cut>
g++ -O3 -fomit-frame-pointer -ffast-math -fstrength-reduce -DARCH_X86 -mmmx -m3dnow -march=i686 -msse -mfpmath=sse -DBUILD_SSE_OPTIMIZATIONS -Wall -DENABLE_NLS -DHAVE_CONFIG_H -D_REENTRANT -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -Ilibs/soundtouch -Ilibs -c -o libs/soundtouch/SoundTouch.o libs/soundtouch/SoundTouch.cpp
</cut>

Notice the -msse -mfpmath=sse -DBUILD_SSE_OPTIMIZATIONS flags. And the lines above are an excerpt from the output of a compile with USE="-sse".

Sse is enabled in the make.conf, I'm doing this -sse/sse recompiling to figure out another ardour compiling error (bug #139784)
Comment 1 Eldad Zack (RETIRED) gentoo-dev 2006-08-19 02:57:15 UTC
emerge info please
Comment 2 Eldad Zack (RETIRED) gentoo-dev 2006-10-07 16:36:42 UTC
The -msse, -mfpmath=sse, -mmmx, -m3dnow (for x86) and other ppc related flags are set by detecting the cpu flags (as seen from /proc/cpuinfo), and are not controlled by a flag given to scons.
I can see merit in this - and these are safe flags. (and it doesn't have anything to do with the problem reported in bug #139784)
if you wish to change this I suggest you discuss it upstream, and the gentoo ebuilds will gladly follow. I'm reluctant to patch SConstruct since this will prove somewhat sisyphean to maintain.

the scons option has changed to FPU_OPTIMIZATION (altivec on ppc, and sse for x86 and x86_64). I've updated the ebuild to set this if altivec or sse is set, and it is currently in CVS.