linux-mips
[Top] [All Lists]

Re: compiling glibc

To: linux-mips@linux-mips.org
Subject: Re: compiling glibc
From: Benjamin Menküc <benmen@gmx.de>
Date: Sat, 10 May 2003 13:21:21 +0200
In-reply-to: <200305101156.08254.benmen@gmx.de>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <200305092145.43690.benmen@gmx.de> <20030510042535.GA2336@nevyn.them.org> <200305101156.08254.benmen@gmx.de>
Reply-to: menkuec@auto-intern.com
Sender: linux-mips-bounce@linux-mips.org
User-agent: KMail/1.5.1
Okay, I fixed this problem by adding --disable-profile:

[benmen@linuxpc1 mipsel-glibc] LD_LIBRARY_PATH="" CFLAGS="-O2 -g 
-finline-limit=10000" CC="mipsel-linux-gcc" AS="mipsel-linux-as" 
../glibc-2.3.2/configure --build=i686-linux --host=mipsel-linux 
--enable-add-ons --prefix=/home/benmen/mipsel 
--with-headers=/home/benmen/mips/kernel/mips-2.4.20/include --disable-profile

...

Now I can compile until this comes:

[benmen@linuxpc1 mipsel-glibc] BUILD_CC=gcc CC=mipsel-linux-gcc ma

...

make[3]: Leaving directory `/home/benmen/mips/glibc-2.3.2/elf'
mipsel-linux-gcc   -nostdlib -nostartfiles -r -o 
/home/benmen/mips/mipsel-glibc/elf/librtld.os '-Wl,-(' 
/home/benmen/mips/mipsel-glibc/elf/dl-allobjs.os 
/home/benmen/mips/mipsel-glibc/elf/rtld-libc.a -lgcc '-Wl,-)'
mipsel-linux-gcc   -nostdlib -nostartfiles -shared                      \
   -Wl,-z,defs -Wl,--verbose 2>&1 |     \
          sed -e '/^=========/,/^=========/!d;/^=========/d'    \
              -e 's/\. = 0 + SIZEOF_HEADERS;/& _begin = . - SIZEOF_HEADERS;/' 
\
          > /home/benmen/mips/mipsel-glibc/elf/ld.so.lds
mipsel-linux-gcc   -nostdlib -nostartfiles -shared -o 
/home/benmen/mips/mipsel-glibc/elf/ld.so                  \
           -Wl,-z,defs                          \
          /home/benmen/mips/mipsel-glibc/elf/librtld.os 
-Wl,--version-script=/home/benmen/mips/mipsel-glibc/ld.map    \
          -Wl,-soname=ld.so.1 -T /home/benmen/mips/mipsel-glibc/elf/ld.so.lds
/home/benmen/mips/mipsel-glibc/elf/librtld.os: In function 
`_dl_resolve_conflicts':
/home/benmen/mips/glibc-2.3.2/elf/dl-conflict.c:65: undefined reference to 
`elf_machine_rela.7'
collect2: ld returned 1 exit status
make[2]: *** [/home/benmen/mips/mipsel-glibc/elf/ld.so] Fehler 1
make[2]: Leaving directory `/home/benmen/mips/glibc-2.3.2/elf'
make[1]: *** [elf/subdir_lib] Fehler 2
make[1]: Leaving directory `/home/benmen/mips/glibc-2.3.2'
make: *** [all] Fehler 2
Verzeichnis: ~/mips/mipsel-glibc
[benmen@linuxpc1 mipsel-glibc]

regards,

Ben


<Prev in Thread] Current Thread [Next in Thread>