compiling with distcc clients on different architectures requires a fully qualified call to gcc etc (ie. powerpc-unknown-linux-gcc) otherwise the incorrect compiler is used. Patch to correct attached.
Created attachment 9217 [details, diff] patch to correct called name of gcc
If any fix, then rather this: --------------------------------------------------- Index: baselayout-1.8.6.3.ebuild =================================================================== RCS file: /home/cvsroot/gentoo-x86/sys-apps/baselayout/baselayout-1.8.6.3.ebuild,v retrieving revision 1.1 diff -u -r1.1 baselayout-1.8.6.3.ebuild --- baselayout-1.8.6.3.ebuild 9 Mar 2003 09:58:24 -0000 1.1 +++ baselayout-1.8.6.3.ebuild 11 Mar 2003 02:49:06 -0000 @@ -99,12 +99,14 @@ src_compile() { + [ -z "${CC}" ] && CC="gcc" + cp ${S}/sbin/runscript.c ${T} cp ${S}/sbin/start-stop-daemon.c ${T} cd ${T} - gcc ${CFLAGS} runscript.c -o runscript || die "cant compile runscript.c" - gcc ${CFLAGS} start-stop-daemon.c -o start-stop-daemon || die "cant compile start-stop-daemon.c" + ${CC} ${CFLAGS} runscript.c -o runscript || die "cant compile runscript.c" + ${CC} ${CFLAGS} start-stop-daemon.c -o start-stop-daemon || die "cant compile start-stop-daemon.c" echo ${ROOT} > ${T}/ROOT if [ -z "`use build`" ] @@ -112,14 +114,17 @@ # Build sysvinit stuff cd ${S2} einfo "Building sysvinit..." - emake LDFLAGS="" || die "problem compiling sysvinit" + emake CC="${CC}" \ + LD="${CC}" \ + LDFLAGS="" || die "problem compiling sysvinit" if [ -f /usr/include/awk/awk.h ] then # Build gawk module cd ${S}/src einfo "Building awk module..." - make || { + make CC="${CC}" \ + LD="${CC}" || { eerror "Failed to build gawk module. Make sure you have" eerror "sys-apps/gawk-3.1.1-r1 or later installed" die "problem compiling gawk module"
Fixed in baselayout-1.8.6.4.