Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 216877 - dev-libs/nss-3.11.9: fails compiling using distcc when server isn't same arch
Summary: dev-libs/nss-3.11.9: fails compiling using distcc when server isn't same arch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-08 14:23 UTC by Marcos Vicente Cruz
Modified: 2008-04-11 17:20 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 Marcos Vicente Cruz 2008-04-08 14:23:47 UTC
I have a x86_64 computer configured as a distcc server and a x86 as client. When trying to build this on my x86 machine I get a error about my CPU does not support x86_64 instruction set which is true. This seems to be happening because this ebuild should invoke 'i686-pc-linux-gnu-gcc' for my arch instead 'gcc' as you can see in the results. I tried compiling other packages with distcc and worked flawlessly. Error messages:

nsinstall.c:1: error: CPU you selected does not support x86-64 instruction set
nsinstall.c:1: error: CPU you selected does not support x86-64 instruction set


Reproducible: Always

Steps to Reproduce:
1. distcc-config --set-hosts "eng_srv localhost"
2. emerge =dev-libs/nss-3.11.9

Actual Results:  
Calculating dependencies... done!
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) dev-libs/nss-3.11.9 to /
 * nss-3.11.9.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                                   [ ok ]
 * checking ebuild checksums ;-) ...                                                                                   [ ok ]
 * checking auxfile checksums ;-) ...                                                                                  [ ok ]
 * checking miscfile checksums ;-) ...                                                                                 [ ok ]
 * checking nss-3.11.9.tar.gz ;-) ...                                                                                  [ ok ]
>>> Unpacking source...
>>> Unpacking nss-3.11.9.tar.gz to /var/tmp/portage/dev-libs/nss-3.11.9/work
 * Applying nss-3.11-config.patch ...                                                                                  [ ok ]
 * Applying nss-3.11.5-config-1.patch ...                                                                              [ ok ]
 * Applying nss-mips64.patch ...                                                                                       [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/dev-libs/nss-3.11.9/work/nss-3.11.9 ...
cd nsinstall; make export
make[1]: Entering directory `/var/tmp/portage/dev-libs/nss-3.11.9/work/nss-3.11.9/mozilla/security/coreconf/nsinstall'
make[1]: Nothing to be done for `export'.
make[1]: Leaving directory `/var/tmp/portage/dev-libs/nss-3.11.9/work/nss-3.11.9/mozilla/security/coreconf/nsinstall'
cd nsinstall; make libs
make[1]: Entering directory `/var/tmp/portage/dev-libs/nss-3.11.9/work/nss-3.11.9/mozilla/security/coreconf/nsinstall'
gcc -o Linux2.6_x86_glibc_PTH_OPT.OBJ/nsinstall.o -c -O2 -fPIC -DLINUX1_2 -Di386 -D_XOPEN_SOURCE -DLINUX2_1  -ansi -Wall -pipe -DLINUX -Dlinux -D_POSIX_SOURCE -D_BSD_SOURCE -DHAVE_STRERROR -DXP_UNIX -UDEBUG -DNDEBUG -D_REENTRANT -I../../dist/Linux2.6_x86_glibc_PTH_OPT.OBJ/include  -I../../dist/public/coreconf -I../../dist/private/coreconf -I/usr/include/nspr -I../../dist/Linux2.6_x86_glibc_PTH_OPT.OBJ/include/dbm -march=pentium4 -pipe -O2 nsinstall.c
distcc[1370] ERROR: compile /var/tmp/ccache/nsinstall.tmp.unlink.1366.i on 192.168.0.51 failed
nsinstall.c:1: error: CPU you selected does not support x86-64 instruction set
nsinstall.c:1: error: CPU you selected does not support x86-64 instruction set
make[1]: *** [Linux2.6_x86_glibc_PTH_OPT.OBJ/nsinstall.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-libs/nss-3.11.9/work/nss-3.11.9/mozilla/security/coreconf/nsinstall'
make: *** [libs] Error 2
 * 
 * ERROR: dev-libs/nss-3.11.9 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2337:  Called die
 * The specific snippet of code:
 *       emake -j1 BUILD_OPT=1 XCFLAGS="${CFLAGS}" || die "coreconf make failed";
 *  The die message:
 *   coreconf make failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-libs/nss-3.11.9/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/nss-3.11.9/temp/environment'.
 * 




Disabling remote distcc cross-compiling makes the problem disappear.
Comment 1 Raúl Porcel (RETIRED) gentoo-dev 2008-04-11 17:20:55 UTC
Should be fixed now