Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 446972 - net-misc/linux-identd-1.3-r1 - Fails to cross compile. - identd.c:1:0: error: CPU you selected does not support x86-64 instruction set
Summary: net-misc/linux-identd-1.3-r1 - Fails to cross compile. - identd.c:1:0: error:...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-12-12 10:28 UTC by Bertrand Jacquin
Modified: 2013-01-01 19:57 UTC (History)
1 user (show)

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


Attachments
net-misc:linux-identd-1.3-r1:20121212-102249.log (net-misc:linux-identd-1.3-r1:20121212-102249.log,2.54 KB, text/plain)
2012-12-12 10:29 UTC, Bertrand Jacquin
Details
linux-identd-1.3-r1.ebuild-cross-CC.diff (linux-identd-1.3-r1.ebuild-cross-CC.diff,702 bytes, patch)
2012-12-12 10:32 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 2012-12-12 10:28:58 UTC
When building =net-misc/linux-identd-1.3-r1 for another CPU than native one using crossdev, gcc is still used, so lead to errors like this :

>>> Compiling source in /var/tmp/i586-pc-linux-gnu/portage/net-misc/linux-identd-1.3-r1/work/linux-identd-1.3 ...
make -j6 'CEXTRAS=-march=geode -Os -mmmx -m3dnow -fno-align-jumps -fno-align-functions -fno-align-labels -fno-align-loops -pipe -fomit-frame-pointer' 
gcc -DVERSION=\"1.3\" -Wall -O2 -march=geode -Os -mmmx -m3dnow -fno-align-jumps -fno-align-functions -fno-align-labels -fno-align-loops -pipe -fomit-frame-pointer   -c -o identd.o identd.c
sed -e "s/#VERSION#/1.3/" identd.8.in > identd.8
identd.c:1:0: error: CPU you selected does not support x86-64 instruction set
identd.c:1:0: error: CPU you selected does not support x86-64 instruction set
make: *** [identd.o] Error 1

Full log is attached

cross compiler CC should be used. Here is a fix

Reproducible: Always
Comment 1 Bertrand Jacquin 2012-12-12 10:29:31 UTC
Created attachment 332114 [details]
net-misc:linux-identd-1.3-r1:20121212-102249.log

The log
Comment 2 Bertrand Jacquin 2012-12-12 10:32:38 UTC
Created attachment 332116 [details, diff]
linux-identd-1.3-r1.ebuild-cross-CC.diff

The fix
Comment 3 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2012-12-12 11:57:32 UTC
This package is currently not maintained by someone, thus it might be that this fix doesn't land any time soon; feel free to find a non-maintainer willing to apply the fix and/or becoming a maintainer. You can also try to become a proxy-maintainer for the package yourself if you want to.

http://www.gentoo.org/proj/en/qa/proxy-maintainers/
Comment 4 Pacho Ramos gentoo-dev 2013-01-01 19:57:36 UTC
+  01 Jan 2013; Pacho Ramos <pacho@gentoo.org> linux-identd-1.3-r1.ebuild:
+  Fix cross-compilation, bug #446972 by Bertrand Jacquin
+