Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems building some packages: libc.a - Bad value
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
_savage
Guru
Guru


Joined: 06 Jun 2004
Posts: 308
Location: Redmond, WA

PostPosted: Thu Jul 07, 2005 3:53 am    Post subject: Problems building some packages: libc.a - Bad value Reply with quote

I've searched the forum for a solution to my problem, but the best I found was "recompile glibc, gcc, linux-headers etc". That takes ages, so I was wondering if there's another way to fix my problem.

Some of the packages I try to merge compile but can't be linked. The problem is this

Code:
/usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/../../../../powerpc-unknown-linux-gnu/bin/ld: __libc_errno: TLS definition in /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/../../../libc.a(errno.o) section .tbss mismatches non-TLS reference in /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/../../../libc.a(check_fds.o)
/usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/../../../libc.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [busybox] Error 1


I get this problem with libc.a for several packages. At the moment that blocks me from a full world update.

Any better ideas than the one I found above?

Thanks!
Jens
_________________
Jens Troeger
http://savage.light-speed.de/
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Thu Jul 07, 2005 5:04 am    Post subject: Reply with quote

Which version of glibc and binutils are you using?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
_savage
Guru
Guru


Joined: 06 Jun 2004
Posts: 308
Location: Redmond, WA

PostPosted: Thu Jul 07, 2005 5:07 am    Post subject: Reply with quote

Code:
*  sys-devel/binutils
      Latest version available: 2.16.1
      Latest version installed: 2.16.1
      Size of downloaded files: 12,390 kB
      Homepage:    http://sources.redhat.com/binutils/
      Description: Tools necessary to build programs
      License:     || ( GPL-2 LGPL-2 )

*  sys-libs/glibc
      Latest version available: 2.3.5
      Latest version installed: 2.3.5
      Size of downloaded files: 15,644 kB
      Homepage:    http://www.gnu.org/software/libc/libc.html
      Description: GNU libc6 (also called glibc2) C library
      License:     LGPL-2

_________________
Jens Troeger
http://savage.light-speed.de/
Back to top
View user's profile Send private message
rburcham
Apprentice
Apprentice


Joined: 20 Mar 2003
Posts: 223

PostPosted: Sun Sep 04, 2005 9:47 pm    Post subject: Reply with quote

Bump - and same problem. Busybox wont link due to the problem aboe. I am up to date on glibc gcc and binutils.
Back to top
View user's profile Send private message
_savage
Guru
Guru


Joined: 06 Jun 2004
Posts: 308
Location: Redmond, WA

PostPosted: Mon Sep 05, 2005 4:51 am    Post subject: Reply with quote

I think the fix_libtool_files.sh script did the fix for me. Try this for your latest gcc version.

Jens
_________________
Jens Troeger
http://savage.light-speed.de/
Back to top
View user's profile Send private message
wkethman
n00b
n00b


Joined: 05 Jul 2005
Posts: 71

PostPosted: Thu Oct 13, 2005 7:52 pm    Post subject: Reply with quote

same problem and i found this but havent tried it
emerge libtool && fix_libtool_files.sh 3.3.4
gcc-config 1
Back to top
View user's profile Send private message
Nominus
n00b
n00b


Joined: 15 Feb 2004
Posts: 17

PostPosted: Thu Oct 27, 2005 6:28 pm    Post subject: Reply with quote

It looks like binutils-2.16.1 lack. All builds fine with binutils-2.15.90.0.3-r5.
Back to top
View user's profile Send private message
jaspal kallar
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 194
Location: Sweden

PostPosted: Fri Oct 28, 2005 1:55 pm    Post subject: Reply with quote

Same problem,
Code:

* Applying chkrootkit-0.45-makefile.diff ...                                                                   [ ok ]
 * Applying chkrootkit-0.46-add-missing-includes.diff ...                                                       [ ok ]
>>> Source unpacked.
powerpc-unknown-linux-gnu-gcc -O3 -mcpu=G5 -mabi=altivec -maltivec  -o chklastlog chklastlog.c
powerpc-unknown-linux-gnu-gcc -O3 -mcpu=G5 -mabi=altivec -maltivec  -o chkwtmp chkwtmp.c
powerpc-unknown-linux-gnu-gcc -O3 -mcpu=G5 -mabi=altivec -maltivec   -D_FILE_OFFSET_BITS=64 -o ifpromisc ifpromisc.c
powerpc-unknown-linux-gnu-gcc -O3 -mcpu=G5 -mabi=altivec -maltivec  -o chkproc chkproc.c
powerpc-unknown-linux-gnu-gcc -O3 -mcpu=G5 -mabi=altivec -maltivec  -o chkdirs chkdirs.c
powerpc-unknown-linux-gnu-gcc -static -O3 -mcpu=G5 -mabi=altivec -maltivec  -o strings-static strings.c
powerpc-unknown-linux-gnu-gcc -O3 -mcpu=G5 -mabi=altivec -maltivec  -o chkutmp chkutmp.c
/usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/../../../../powerpc-unknown-linux-gnu/bin/ld: __libc_errno: TLS definition in /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/../../../libc.a(errno.o) section .tbss mismatches non-TLS reference in /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/../../../libc.a(check_fds.o)
/usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/../../../libc.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [strings-static] Error 1
make: *** Waiting for unfinished jobs....





Code:
emerge -p glibc binutils gcc

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] sys-libs/glibc-2.3.5-r2
[ebuild   R   ] sys-devel/binutils-2.16.1
[ebuild   R   ] sys-devel/gcc-3.4.4-r1


Code:
linux jas # gcc-config -l
 [1] powerpc-unknown-linux-gnu-3.3.3
 [2] powerpc-unknown-linux-gnu-3.4.4 *
 [3] powerpc-unknown-linux-gnu-3.4.4-hardened
 [4] powerpc-unknown-linux-gnu-3.4.4-hardenednopie
 [5] powerpc-unknown-linux-gnu-3.4.4-hardenednopiessp
 [6] powerpc-unknown-linux-gnu-3.4.4-hardenednossp


I tried also
Code:
linux jas # fix_libtool_files.sh 3.3.3
 * Scanning libtool files for hardcoded gcc library paths...
 *   [1/10] Scanning /lib ...
 *   [2/10] Scanning /usr/lib ...
 *   [3/10] Scanning /opt/ibm-jdk-bin-1.4.2/jre/bin ...
 *   [4/10] Scanning /usr/games/lib ...
 *   [5/10] Scanning /usr/kde/3.2/lib ...
 *   [6/10] Scanning /usr/kde/3.3/lib ...
 *   [7/10] Scanning /usr/kde/3.4/lib ...
 *   [8/10] Scanning /usr/local/lib ...
 *   [9/10] Scanning /usr/powerpc-unknown-linux-gnu/lib ...
 *   [10/10] Scanning /usr/qt/3/lib ...
but still the same problem.

Any ideas?

EDIT: it complied OK by hand, if I removed the static in the Makefile for compling
Code:
powerpc-unknown-linux-gnu-gcc -static -O3 -mcpu=G5 -mabi=altivec -maltivec  -o strings-static strings.c


I no idea how this effects the running of the program chkrootkit and why the use of static in the Makefile. I hope this info helps.
Back to top
View user's profile Send private message
jaspal kallar
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 194
Location: Sweden

PostPosted: Sun Oct 30, 2005 1:15 pm    Post subject: Reply with quote

bump :-)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum