Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 507178 - net-proxy/squid-3.4.4 injects magic -march=native
Summary: net-proxy/squid-3.4.4 injects magic -march=native
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Eray Aslan
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-04-08 21:55 UTC by Markus Ullmann
Modified: 2014-04-09 12:59 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 Markus Ullmann 2014-04-08 21:55:35 UTC
Summary mainly says it, the new version introduces flag

--disable-arch-native

to avoid injecting -march=native all over the place and re-allows qemu and cross compilations

Reproducible: Always

Steps to Reproduce:
emerge =net-proxy/squid-3.4.4
Actual Results:  
gawk -f ./mk-string-arrays.awk < ./icp_opcode.h > icp_opcode.cc || (/bin/rm -f -f icp_opcode.cc && exit 1)
gawk -f ./mk-string-arrays.awk < ./LogTags.h | sed 's/LOG_//' > LogTags.cc || (/bin/rm -f -f LogTags.cc && exit 1)
gawk -f ./mk-string-arrays.awk < ./lookup_t.h > lookup_t.cc || (/bin/rm -f -f lookup_t.cc && exit 1)
/bin/sh ./repl_modules.sh lru heap > repl_modules.cc
x86_64-pc-linux-gnu-g++ -march=native -o cf_gen ./cf_gen.cc -I. -I../include/ -I../src
./cf_gen.cc:1:0: error: CPU you selected does not support x86-64 instruction set
 /*
 ^
Makefile:7730: recipe for target 'cf_gen' failed
make[1]: *** [cf_gen] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/tmp/portage/net-proxy/squid-3.4.4/work/squid-3.4.4/src'
Makefile:561: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
 * ERROR: net-proxy/squid-3.4.4::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=net-proxy/squid-3.4.4::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-proxy/squid-3.4.4::gentoo'`.
 * The complete build log is located at '/home/tmp/portage/net-proxy/squid-3.4.4/temp/build.log'.
 * The ebuild environment file is located at '/home/tmp/portage/net-proxy/squid-3.4.4/temp/environment'.
 * Working directory: '/home/tmp/portage/net-proxy/squid-3.4.4/work/squid-3.4.4'
 * S: '/home/tmp/portage/net-proxy/squid-3.4.4/work/squid-3.4.4'



CPU report from /proc/cpuinfo, running x86-64 just fine although gcc

processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 2
model name      : QEMU Virtual CPU version 1.4.0
stepping        : 3
microcode       : 0x1
cpu MHz         : 3500.026
cache size      : 4096 KB
physical id     : 7
siblings        : 1
core id         : 0
cpu cores       : 1
apicid          : 7
initial apicid  : 7
fpu             : yes
fpu_exception   : yes
cpuid level     : 4
wp              : yes
flags           : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good nopl pni cx16 popcnt hypervisor lahf_lm
bogomips        : 6999.79
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-04-08 22:02:44 UTC
econf --disable-arch-native [...]
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-04-08 22:03:31 UTC
--- squid-3.4.4.ebuild  11 Mar 2014 21:01:40 -0000      1.2
+++ squid-3.4.4.ebuild  8 Apr 2014 22:03:20 -0000
@@ -182,6 +182,7 @@
                --enable-follow-x-forwarded-for \
                --with-large-files \
                --disable-strict-error-checking \
+               --disable-arch-native \
                $(use_with caps libcap) \
                $(use_enable ipv6) \
                $(use_enable snmp) \
Comment 3 Eray Aslan gentoo-dev 2014-04-09 07:20:14 UTC
+  09 Apr 2014; Eray Aslan <eras@gentoo.org> squid-3.4.4.ebuild:
+  Do not inject automagic -march=native - bug #507178.  Thanks to Jeroen Roovers
+
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2014-04-09 12:59:36 UTC
Thanks to Markus Ullmann for reporting! :)