Patch fixes the following error that occurs when cross-compiling sys-apps/coreutils-5.95 for powerpc: ======================================= powerpc-softfloat-linux-uclibc-gcc -Os -pipe -o uptime uptime.o ../lib/libcoreutils.a ../lib/libcoreutils.a ../lib/libcoreutils.a(strtod.o): In function `rpl_strtod': strtod.c:(.text+0x234): undefined reference to `pow' strtod.c:(.text+0x280): undefined reference to `pow' strtod.c:(.text+0x2c8): undefined reference to `pow' collect2: ld returned 1 exit status make[3]: *** [uptime] Error 1 make[3]: Leaving directory `/var/tmp/portage/coreutils-5.95/work/coreutils-5.95/src' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/coreutils-5.95/work/coreutils-5.95/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/coreutils-5.95/work/coreutils-5.95'make: *** [all] Error 2 !!! ERROR: sys-apps/coreutils-5.95 failed. Call stack: ebuild.sh, line 1527: Called dyn_compile ebuild.sh, line 931: Called src_compile coreutils-5.95.ebuild, line 104: Called die !!! emake !!! If you need support, post the topmost build error, and the call stack if relevant.
Created attachment 87114 [details, diff] coreutils-5.95-xcompile-powerpc.patch
looks like this has been fixed upstream already in the same way: revision 1.68 date: 2006-03-27 02:34:48 -0500; author: meyering; state: Exp; lines: +2 -1 (uptime_LDADD): Add $(POW_LIB), for uptime's use of strtod. Tiny patch from Nickolai Zeldovich. added that patch to our 5.96 patchset
(In reply to comment #2) > added that patch to our 5.96 patchset Excellent, though it doesn't seem to be present in the 5.96 patchset: patch $ grep -r POW_LIB . ./selinux/001_all_coreutils-selinux.patch: sort_LDADD = $(LDADD) $(POW_LIB)
What's the deal SpanKY? We're at coreutils-5.97 and this patch is still nowhere to be found in Portage nor has it been handled upstream.
Nevermind, it's in the separate patch tarball. :)
i dont know where you're looking but you obviously need to try harder http://sources.gentoo.org/gentoo/src/patchsets/coreutils/5.96/generic/110_all_coreutils-uptime-libm.patch http://sources.gentoo.org/gentoo/src/patchsets/coreutils/5.97/generic/110_all_coreutils-uptime-libm.patch coreutils$ cvs log -r1.68 src/Makefile.am | tail -n 5 revision 1.68 date: 2006-03-27 02:34:48 -0500; author: meyering; state: Exp; lines: +2 -1 (uptime_LDADD): Add $(POW_LIB), for uptime's use of strtod. Tiny patch from Nickolai Zeldovich. =============================================================================