sys-devel/kgcc64 fails to compile with an error: Checking for a 64-bit type... unsigned long checking for pid_t... no checking for library containing strerror... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES. make[1]: *** [configure-target-libiberty] Error 1 make[1]: Leaving directory `/var/tmp/portage/sys-devel/kgcc64-4.3.3/work/build' make: *** [all] Error 2
Created attachment 251247 [details] build output log
Created attachment 251249 [details] emerge --info =sys-devel/kgcc64-4.3.3
Created attachment 251251 [details] emerge -pqv =sys-devel/kgcc64-4.3.3
Created attachment 251253 [details] /var/tmp/portage/sys-devel/kgcc64-4.3.3/temp/environment
I cannot rebuild my kgcc64 on sparc64 at all :-(
Note that however, it can still build linux kernels reliably.
Please attach the config.log in question too.
Created attachment 251345 [details] config.log
checking for /var/tmp/portage/sys-devel/kgcc64-4.3.3/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/kgcc64-4.3.3/work/build/./gcc/ -B/usr/sparc64-unknown-linux-gnu/bin/ -B/usr/sparc64-unknown-linux-gnu/lib/ -isystem /usr/sparc64-unknown-linux-gnu/include -isystem /usr/sparc64-unknown-linux-gnu/sys-include option to accept ANSI C... configure: error: C compiler cannot create executables See `config.log' for more details. make[1]: *** [configure-target-libgomp] Error 1 Could you attach the config.log from libgomp subdir? I don't think that's the one currently posted...
Created attachment 253487 [details] /var/tmp/portage/sys-devel/kgcc64-4.3.3/work/build/sparc64-unknown-linux-gnu/libgomp/config.log Is this the one you're after? Looks like it couldn't find a file it needed.
Right, that's the one. Assigning to maintainers now.
kgcc64 shouldnt be attempting to build any target library including, but not limited to, libgomp
Created attachment 254789 [details, diff] toolchain-kgcc-no-libgomp.patch please try this patch and see if it fixes things for you
Great news; patch fixes the kgcc64 compile problem on SPARC architectures, thanks. I tested patched, build just fine, put back the unpatched versin, build failed. Now if I could get i686 crosscompilers sorted on SPARC, I'd be set, but that's a separate bug report.
committed then ... thanks for testing http://sources.gentoo.org/eclass/toolchain.eclass?r1=1.441&r2=1.442