Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 152841 - sys-fs/mdadm uses 'wrong' gcc
Summary: sys-fs/mdadm uses 'wrong' gcc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-25 22:12 UTC by gent_bz
Modified: 2006-10-26 12:53 UTC (History)
0 users

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 gent_bz 2006-10-25 22:12:26 UTC
ROOT=/blah/ PORTAGE_CONFIGROOT=/blah/ sudo emerge mdadm

/ is amd64
/blah/ is i686

gcc is invoked by mdadm's Makefile which - in this case - produces an error (error: CPU you selected does not support x86-64 instruction set) as gcc is invoked with -march=athlon-xp for the hosted environment.

Solution : to have Makefile invoke more specific gcc (i686-pc-linux-gnu-gcc in this case)

Makefile seems to have support for setting $CROSS_COMPILE to specify prefix to gcc.
Comment 1 gent_bz 2006-10-25 22:26:12 UTC
Adding the following line below emake in the ebuild seems to give correct results on amd64 and x86.


                CROSS_COMPILE="${CHOST}-" \
Comment 2 SpanKY gentoo-dev 2006-10-26 12:53:14 UTC
added your fix to the 2.5.5 ebuild, thanks !