linux-mips
[Top] [All Lists]

upgrading glibc for mipsel

To: <linux-mips@linux-mips.org>
Subject: upgrading glibc for mipsel
From: "Ratin Rahman \(mratin\)" <mratin@cisco.com>
Date: Thu, 28 Jun 2007 18:26:01 -0700
Authentication-results: sj-dkim-7; header.From=mratin@cisco.com; dkim=pass ( sig from cisco.com/sjdkim7002 verified; );
Dkim-signature: v=0.5; a=rsa-sha256; q=dns/txt; l=9712; t=1183080362; x=1183944362; c=relaxed/simple; s=sjdkim7002; h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version; d=cisco.com; i=mratin@cisco.com; z=From:=20=22Ratin=20Rahman=20\(mratin\)=22=20<mratin@cisco.com> |Subject:=20upgrading=20glibc=20for=20mipsel |Sender:=20; bh=ekugsSOMCDZ1OmsEG2KAigDdcn0dq6/z0fpKs41l4qk=; b=ATspc13Ju5ZWTp3R4gv7ESC/8D2y1qE2fi8bt4CxcXpuk6nfSFHgCtgzkbauoUBQkLCfdtQe s6inQKLxIuAxUROVTT4qR050532EiR2nLPdH4jUsok8X1q5UbdWAsSKz;
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <cda58cb80706260820y4db3eacnae4dff0101852d52@mail.gmail.com> <20070627.013312.25479645.anemo@mba.ocn.ne.jp> <20070627153932.GA6016@lst.de> <20070628.112223.96686654.nemoto@toshiba-tops.co.jp> <20070628083725.GA23394@lst.de> <27801B4D04E7CA45825B0E0CE60FE10A0410F0D6@xmb-sjc-237.amer.cisco.com> <46842B05.5050103@avtrex.com>
Sender: linux-mips-bounce@linux-mips.org
Thread-index: Ace5zRyfOVTIhqqaSfSufkB8ojYOBQAHodI5
Thread-topic: upgrading glibc for mipsel
In an effort to build gdbserver, I am trying to upgrade my glibc and gcc cross compile tools. I am  having
problem while bulding glibc-2.3.3, mipsel compiler version 3.2.3 and current glibc ver
is 2.2.5.
 
I exported all current cross tools and cross compiler with export.
 
configured with the options:
../glibc-2.3.3/configure --prefix=/opt/crosstool --build=i686-pc-linux-gnu --host=mipsel-linux --with-binutils=/opt/mipseltools/bin/ --enable-add-_ons_=linuxthreads
 
did a make and after make went thru for 5 mins or so, it threw this error message:
I get the following error:
 
 -Wl,-d -Wl,--whole-archive /workspace/ratin/make_glibc/libc_pic.a
/opt/mipseltools/bin/mipsel-linux-gcc -mabi=32   -shared -Wl,-O1 \
  -nostdlib -nostartfiles \
   -Wl,-dynamic-linker=/opt/crosstool/lib/ld.so.1  \
  -Wl,--verbose 2>&1 | \
  sed > /workspace/ratin/make_glibc/shlib.ldsT \
      -e '/^=========/,/^=========/!d;/^=========/d' \
      -e 's/^.*\.hash[  ]*:.*$/  .note.ABI-tag : { *(.note.ABI-tag) } &/' \
      -e 's/^.*\*(\.dynbss).*$/& \
         PROVIDE(__start___libc_freeres_ptrs = .); \
         *(__libc_freeres_ptrs) \
         PROVIDE(__stop___libc_freeres_ptrs = .);/'
mv -f /workspace/ratin/make_glibc/shlib.ldsT /workspace/ratin/make_glibc/shlib.lds
/opt/mipseltools/bin/mipsel-linux-gcc -mabi=32   -shared -static-libgcc -Wl,-O1  -Wl,-z,defs -Wl,-dynamic-linker=/opt/crosstool/lib/ld.so.1  -B/workspace/ratin/make_glibc/csu/  -Wl,--version-script=/workspace/ratin/make_glibc/libc.map -Wl,-soname=libc.so.6  -nostdlib -nostartfiles -e __libc_main -L/workspace/ratin/make_glibc -L/workspace/ratin/make_glibc/math -L/workspace/ratin/make_glibc/elf -L/workspace/ratin/make_glibc/dlfcn -L/workspace/ratin/make_glibc/nss -L/workspace/ratin/make_glibc/nis -L/workspace/ratin/make_glibc/rt -L/workspace/ratin/make_glibc/resolv -L/workspace/ratin/make_glibc/crypt -L/workspace/ratin/make_glibc/linuxthreads -Wl,-rpath-link=/workspace/ratin/make_glibc:/workspace/ratin/make_glibc/math:/workspace/ratin/make_glibc/elf:/workspace/ratin/make_glibc/dlfcn:/workspace/ratin/make_glibc/nss:/workspace/ratin/make_glibc/nis:/workspace/ratin/make_glibc/rt:/workspace/ratin/make_glibc/resolv:/workspace/ratin/make_glibc/crypt:/workspace/ratin/make_glibc/linuxthreads -o /workspace/ratin/make_glibc/libc.so -T /workspace/ratin/make_glibc/shlib.lds /workspace/ratin/make_glibc/csu/abi-note.o /workspace/ratin/make_glibc/elf/soinit.os /workspace/ratin/make_glibc/libc_pic.os /workspace/ratin/make_glibc/elf/sofini.os /workspace/ratin/make_glibc/elf/interp.os /workspace/ratin/make_glibc/elf/ld.so -lgcc -lgcc_eh
/workspace/ratin/make_glibc/libc_pic.os: In function `__register_atfork':
/workspace/ratin/make_glibc/libc_pic.os(.text+0x10d088): undefined reference to `__fork_block'
/workspace/ratin/make_glibc/libc_pic.os(.text+0x10d0b4): undefined reference to `__fork_block'
/workspace/ratin/make_glibc/libc_pic.os(.text+0x10d0e0): undefined reference to `__fork_block'
/workspace/ratin/make_glibc/libc_pic.os(.text+0x10d148): undefined reference to `__fork_block'
/workspace/ratin/make_glibc/libc_pic.os(.text+0x10d164): undefined reference to `__fork_block'
/workspace/ratin/make_glibc/libc_pic.os(.text+0x10d214): more undefined references to `__fork_block' follow
collect2: ld returned 1 exit status
make[1]: *** [/workspace/ratin/make_glibc/libc.so] Error 1
make[1]: Leaving directory `/workspace/ratin/glibc-2.3.3'
make: *** [all] Error 2
 
 
 
I will appreciate any help if you could provide..
Thanks
 
Ratin
<Prev in Thread] Current Thread [Next in Thread>