Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 235768 - mail-client/mailx-8.1.2.20050715-r1 breaks on cross-compiling
Summary: mail-client/mailx-8.1.2.20050715-r1 breaks on cross-compiling
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-26 11:34 UTC by Christian Franke
Modified: 2010-11-01 19:41 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 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.