Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 538164 - app-portage/cpuinfo2cpuflags generates wrong flags here
Summary: app-portage/cpuinfo2cpuflags generates wrong flags here
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-29 15:03 UTC by Helmut Jarausch
Modified: 2015-01-29 15:40 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 Helmut Jarausch 2015-01-29 15:03:18 UTC
Hi,

the relevant parts of cat /proc/cpuinfo are 

flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt hw_pstate npt lbrv svm_lock nrip_save vmmcall

On that machine, cpuinfo2cpuflags generates
CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a"

but my gcc-4.9.2 doesn't know about -m3dnowext and -mmmxext.
This causes any package which requires a C-compiler to fail if the
CPU_FLAGS_X86 line above is added to /etc/portage/make.conf
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2015-01-29 15:28:11 UTC
Could you please show a broken build.log? CPU_FLAGS_X86 are for USE flags not for compiler flags.
Comment 2 Helmut Jarausch 2015-01-29 15:40:44 UTC
Sorry, I think I've added these to my CFLAGS, as well.
Reverting this, there is no build error any more.

Helmut