Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 473030

Summary: net-analyzer/ethstatus-0.4.2-r2 calls CC directly, ignores LDFLAGS
Product: Gentoo Linux Reporter: Bertrand Jacquin <bertrand>
Component: Current packagesAssignee: Gentoo Netmon project <netmon>
Status: RESOLVED FIXED    
Severity: normal CC: bertrand
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: http://bugs.debian.org/394092
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 243502    
Attachments: build.log
emerge --info
files/ethstatus-BJA-0.4.2-gcc-overridable.diff

Description Bertrand Jacquin 2013-06-11 20:52:54 UTC
net-analyzer/ethstatus-0.4.2-r2 does not respect CC which is not ideal expcially when you cross compile, this lead to error like :

>>> Compiling source in /var/tmp/i586-pc-linux-gnu/portage/net-analyzer/ethstatus-0.4.2-r2/work/ethstatus-0.4.2 ...
make -j6 'CFLAGS=-march=geode -Os -mmmx -m3dnow -fno-align-jumps -fno-align-functions -fno-align-labels -fno-align-loops -pipe -fomit-frame-pointer'
gcc -march=geode -Os -mmmx -m3dnow -fno-align-jumps -fno-align-functions -fno-align-labels -fno-align-loops -pipe -fomit-frame-pointer -o ethstatus ethstatus.c -L/usr/i586-pc-linux-gnu/lib -L/usr/i586-pc-linux-gnu/usr/lib -lncurses
ethstatus.c:1:0: error: CPU you selected does not support x86-64 instruction set
ethstatus.c:1:0: error: CPU you selected does not support x86-64 instruction set
make: *** [ethstatus] Error 1

Build log attached and emerge --info.

Also attached a quiet simple patch proposal.

May it be the good time to move to EAPI 5 ?

Reproducible: Always

Steps to Reproduce:
1. crossdev -t i586-pc-linux-gnu
2. i586-pc-linux-gnu-emerge -vt net-analyzer/ethstatus::gentoo
3.
Comment 1 Bertrand Jacquin 2013-06-11 20:53:21 UTC
Created attachment 350782 [details]
build.log
Comment 2 Bertrand Jacquin 2013-06-11 20:53:30 UTC
Created attachment 350784 [details]
emerge --info
Comment 3 Bertrand Jacquin 2013-06-11 20:53:53 UTC
Created attachment 350786 [details, diff]
files/ethstatus-BJA-0.4.2-gcc-overridable.diff
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2013-06-11 23:52:21 UTC
There is an 0.4.3 out too... Working on this.
Comment 5 Bertrand Jacquin 2013-06-11 23:58:03 UTC
(In reply to Jeroen Roovers from comment #4)
> There is an 0.4.3 out too... Working on this.

Oh. Didn't see, HOMEPAGE seems outdated. Anyway, thanks to you.
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2013-06-12 00:18:50 UTC
Fixed in 0.4.3. Thanks for the report!