Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 133859

Summary: [PATCH] sys-apps/coreutils cross-compile fails for powerpc targets
Product: Gentoo Linux Reporter: Arcanux <bugs>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal CC: ppc
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 133882    
Attachments: coreutils-5.95-xcompile-powerpc.patch

Description Arcanux 2006-05-20 04:29:44 UTC
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.
Comment 1 Arcanux 2006-05-20 04:30:08 UTC
Created attachment 87114 [details, diff]
coreutils-5.95-xcompile-powerpc.patch
Comment 2 SpanKY gentoo-dev 2006-05-25 21:26:06 UTC
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
Comment 3 Arcanux 2006-05-26 05:14:36 UTC
(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)
Comment 4 Arcanux 2006-06-26 21:43:43 UTC
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.
Comment 5 Arcanux 2006-06-26 21:46:49 UTC
Nevermind, it's in the separate patch tarball. :)
Comment 6 SpanKY gentoo-dev 2006-06-26 21:48:36 UTC
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.
=============================================================================