I have to x86-machines: AthlonXP 2600 and a notebook Pentium III (Dell Latitude c610). On the Athlon nspr-4.7.3 compiles fine, on the notebook it fails. The USE-Flags are almost the same on both machines. Reproducible: Always
Created attachment 171869 [details] build.log
Created attachment 171871 [details] emerge --info
echo > "${T}"/test.c $(tc-getCC) -c "${T}"/test.c -o "${T}"/test.o case $(file "${T}"/test.o) in *64-bit*) myconf="${myconf} --enable-64bit";; *32-bit*) ;; *) die "FAIL";; esac This is the snippet causing the problem. It might be a distcc problem most likely, but in general, here I'd be asking the maintainers of the package to _pretty please_ be less funny and more informative on their die messages. Thanks.
I've fixed the fail msg. Can you try without distcc?
FEATURES="-distcc" emerge -1u nspr Calculating dependencies... done! >>> Verifying ebuild manifests >>> Emerging (1 of 1) dev-libs/nspr-4.7.3 * nspr-4.7.3.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking nspr-4.7.3.tar.gz to /var/tmp/portage/dev-libs/nspr-4.7.3/work * Applying nspr-4.6.1-config.patch ... [ ok ] * Applying nspr-4.6.1-config-1.patch ... [ ok ] * Applying nspr-4.6.1-lang.patch ... [ ok ] * Applying nspr-4.7.0-prtime.patch ... [ ok ] >>> Source unpacked. >>> Compiling source in /var/tmp/portage/dev-libs/nspr-4.7.3/work/nspr-4.7.3 ... * * ERROR: dev-libs/nspr-4.7.3 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2075: Called die * The specific snippet of code: * die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please" * The die message: * Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please * * 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/nspr-4.7.3/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-libs/nspr-4.7.3/temp/environment'. I tried it also with setting the MAKEOPTS to -j1.
Something is wrong with your compiler then... Do this: mkdir tmp && cd tmp echo > test.c gcc -c test.c -o test.o file test.o And post your results
You're right. When do the proposed procedure, I get a segmentation fault. So I re-emerged the toolchain (gcc, binutils, glibc), but it didn't help. I get the error again. So I don't have any idea where's the rub.
Thx, at least I found the error with your hint. sys-apps/file was defect. After reinstalling file everything works again. Sorry for the inconvenience.