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

Bug 235768

Summary: mail-client/mailx-8.1.2.20050715-r1 breaks on cross-compiling
Product: Gentoo Linux Reporter: Christian Franke <nobody-gentoo>
Component: Current packagesAssignee: Net-Mail Packages <net-mail+disabled>
Status: RESOLVED FIXED    
Severity: normal CC: jer
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Christian Franke 2008-08-26 11:34:08 UTC
This package uses just 'gcc' when compiling so it uses the wrong compiler when cross compiling. It gets built for the build-architecture not for the host-architecture:

>>> Compiling source in /var/tmp/portage/mail-client/mailx-8.1.2.20050715-r1/work/mailx-8.1.2-0.20050715cvs.orig/ ...
sed: no input files
gcc -D_BSD_SOURCE -DDEBIAN -g -Wall -IEXT -O2 -pipe -fomit-frame-pointer -march=pentium -c version.c -o version.o
version.c:1: error: CPU you selected does not support x86-64 instruction set
version.c:1: error: CPU you selected does not support x86-64 instruction set
make: *** [version.o] Error 1


It should use 'i586-pc-linux-gnu-gcc' in this case. I just added the line
sed -i -e "s|gcc|${CHOST}-&|" Makefile
to src_compile for fixing this, but it seems like a dirty hack to me. Anyway, I think this ebuild needs to be fixed in some way.

Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2010-11-01 19:41:33 UTC
Fixed in -r3. Thank you for reporting.