Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 473030 - net-analyzer/ethstatus-0.4.2-r2 calls CC directly, ignores LDFLAGS
Summary: net-analyzer/ethstatus-0.4.2-r2 calls CC directly, ignores LDFLAGS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Netmon Herd
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: tc-directly
  Show dependency tree
 
Reported: 2013-06-11 20:52 UTC by Bertrand Jacquin
Modified: 2013-06-12 00:21 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,3.85 KB, text/x-log)
2013-06-11 20:53 UTC, Bertrand Jacquin
Details
emerge --info (info.log,12.81 KB, text/x-log)
2013-06-11 20:53 UTC, Bertrand Jacquin
Details
files/ethstatus-BJA-0.4.2-gcc-overridable.diff (ethstatus-BJA-0.4.2-gcc-overridable.diff,436 bytes, patch)
2013-06-11 20:53 UTC, Bertrand Jacquin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!