Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 246929 - dev-libs/nspr-4.7.3 fails to compile
Summary: dev-libs/nspr-4.7.3 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-15 15:18 UTC by Sven Müller
Modified: 2008-11-22 23:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,1.28 KB, text/plain)
2008-11-15 15:19 UTC, Sven Müller
Details
emerge --info (emerge_info.txt,6.52 KB, text/plain)
2008-11-15 15:19 UTC, Sven Müller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Müller 2008-11-15 15:18:54 UTC
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
Comment 1 Sven Müller 2008-11-15 15:19:18 UTC
Created attachment 171869 [details]
build.log
Comment 2 Sven Müller 2008-11-15 15:19:30 UTC
Created attachment 171871 [details]
emerge --info
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-11-15 18:04:59 UTC
        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.
Comment 4 Raúl Porcel (RETIRED) gentoo-dev 2008-11-15 18:32:10 UTC
I've fixed the fail msg.

Can you try without distcc?
Comment 5 Sven Müller 2008-11-16 21:42:37 UTC
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. 
Comment 6 Raúl Porcel (RETIRED) gentoo-dev 2008-11-17 09:40:47 UTC
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
Comment 7 Sven Müller 2008-11-18 17:29:43 UTC
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. 
Comment 8 Sven Müller 2008-11-22 23:49:13 UTC
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.