Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Sat Jan 20, 2018 7:38 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Fri Sep 28, 2012 9:42 pm 
Offline
Newbie

Joined: Thu Nov 30, 2006 7:30 am
Posts: 30
I'm trying to update the libraries on my system or either eglibc or glibc 2.4 or 2.5. Compiles of either generally end like this:

My configure line:
Code:
../eglibc-2.5/libc/configure \
  --disable-profile \
  --with-headers=/compile/kernel/linux/include \
  --enable-kernel=2.4.20 \
  --prefix=/usr \
  --enable-addons=linuxthreads \
  --disable-nptl \
  --disable-sanity-checks


Code:
CPP='gcc -E -x c-header'    /compile/eglibc/eglibc-2.5-build/elf/ld.so.1 --library-path /compile/eglibc/eglibc-2.5-build:/compile/eglibc/eglibc-2.5-build/math:/compile/eglibc/eglibc-2.5-build/elf:/compile/eglibc/eglibc-2.5-build/dlfcn:/compile/eglibc/eglibc-2.5-build/nss:/compile/eglibc/eglibc-2.5-build/nis:/compile/eglibc/eglibc-2.5-build/rt:/compile/eglibc/eglibc-2.5-build/resolv:/compile/eglibc/eglibc-2.5-build/crypt:/compile/eglibc/eglibc-2.5-build/nptl /compile/eglibc/eglibc-2.5-build/sunrpc/rpcgen -Y ../scripts -c rpcsvc/bootparam_prot.x -o /compile/eglibc/eglibc-2.5-build/sunrpc/xbootparam_prot.T
rpcgen: ../nptl/sysdeps/unix/sysv/linux/powerpc/../i386/../fork.c:138: __libc_fork: Assertion `((void)(self), (((struct pthread *) (__thread_register - 0x7000 - (sizeof (struct pthread) + ((sizeof (tcbhead_t) + __alignof__ (struct pthread) - 1) & ~(__alignof__ (struct pthread) - 1))))))->tid) != ppid' failed.
/compile/eglibc/eglibc-2.5-build/sunrpc/rpcgen: C preprocessor failed with signal 6
make[2]: *** [/compile/eglibc/eglibc-2.5-build/sunrpc/xbootparam_prot.stmp] Error 1
make[2]: Leaving directory `/compile/eglibc/eglibc-2.5/libc/sunrpc'
make[1]: *** [sunrpc/others] Error 2
make[1]: Leaving directory `/compile/eglibc/eglibc-2.5/libc'
make: *** [all] Error 2


I've made sure the tools required for the build are at the minimum levels (gcc, binutils, etc). This is compiling with the stock kernel-2.4.20 derivative.

I'm trying to compile without NPTL support as my kernel doesn't support it, but it appears that it's pretty hard to kill. Has anyone managed to build glibc-2.4+ on their PPC terastation using a 2.4 kernel? If so, please throw me some hints.


Top
   
PostPosted: Sun Sep 30, 2012 6:54 am 
Offline
Newbie

Joined: Thu Nov 30, 2006 7:30 am
Posts: 30
Ok, so I have tried various different parameters for configure. I Even gave up for awhile building on the terastation (it was so slow anyway) and did a x-build from my workstation. I was able to get a clean build of eglibc-2.5. I copied it to the terastation and setup a minimal chroot environment with eglibc-2.5 and /bin/bash. When I chroot, /bin/bash starts just fine. I can use shell builtins just fine, but as soon as I try to execute an external program, the chroot dies with this type of error (very similar to the same one when I was trying to build eglibc natively). Any help to resolve this would be very much appreciated.

Code:
admin@TERASTATION:~$ sudo chroot altroot
I have no name!@TERASTATION:/# pwd
/
I have no name!@TERASTATION:/# echo *
bin etc lib sbin usr
I have no name!@TERASTATION:/# echo lib/*
lib/ld-2.5.so lib/ld.so.1 lib/libBrokenLocale-2.5.so lib/libBrokenLocale.so.1 lib/libSegFault.so lib/libanl-2.5.so lib/libanl.so.1 lib/libc-2.5.so lib/libc.so.6 lib/libcidn-2.5.so lib/libcidn.so.1 lib/libcrypt-2.5.so lib/libcrypt.so.1 lib/libdl-2.5.so lib/libdl.so.2 lib/libm-2.5.so lib/libm.so.6 lib/libmemusage.so lib/libncurses.so.5 lib/libncurses.so.5.2 lib/libncurses.so.5.4 lib/libnsl-2.5.so lib/libnsl.so.1 lib/libnss_compat-2.5.so lib/libnss_compat.so.2 lib/libnss_dns-2.5.so lib/libnss_dns.so.2 lib/libnss_files-2.5.so lib/libnss_files.so.2 lib/libnss_hesiod-2.5.so lib/libnss_hesiod.so.2 lib/libnss_nis-2.5.so lib/libnss_nis.so.2 lib/libnss_nisplus-2.5.so lib/libnss_nisplus.so.2 lib/libpcprofile.so lib/libpthread-2.5.so lib/libpthread.so.0 lib/libresolv-2.5.so lib/libresolv.so.2 lib/librt-2.5.so lib/librt.so.1 lib/libthread_db-1.0.so lib/libthread_db.so.1 lib/libutil-2.5.so lib/libutil.so.1
I have no name!@TERASTATION:/# ls
bash: ../nptl/sysdeps/unix/sysv/linux/powerpc/../i386/../fork.c:138: __libc_fork: Assertion `((void)(self), (((struct pthread *) (__thread_register - 0x7000 - (sizeof (struct pthread) + ((sizeof (tcbhead_t) + __alignof__ (struct pthread) - 1) & ~(__alignof__ (struct pthread) - 1))))))->tid) != ppid' failed.
Aborted
admin@TERASTATION:~$


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited