This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
Compile error: glibc 2.3.6 with a powerpc cross compiler on Solaris.
- From: "Dan Gora" <dan dot gora at gmail dot com>
- To: libc-ports at sources dot redhat dot com
- Date: Thu, 11 Jan 2007 18:04:11 -0200
- Subject: Compile error: glibc 2.3.6 with a powerpc cross compiler on Solaris.
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=nFAQpogr7OsfzGaFS/pCGsMJfQlxWyNvIJLgmC4/VXSTijLJxtDTj8B8UJEa5MvXk+QAt0cEzGh0tTY763AH8uv56TaBx2cbtOtYMiIagA1HR6ecA0ePtVYuN9b3Cvt1Z5y26D7qhbW6KKMxwBkn4ge/TAj+GOGEOeJGAumM+XQ=
Hi all,
I'm trying to build a PPC 603 cross compiler hosted on Solaris sparc
using crosstool v.43. I've managed to massage crosstool enough to get
the first powerpc-603-linux-gnu-gcc cross compiler built, but it's
gacking when trying to build glibc here:
powerpc-603-linux-gnu-gcc rtld.c -c -std=gnu99 -O -Wall -Winline -Wstrict-proto
types -Wwrite-strings -mcpu=603 -mnew-mnemonics -fpic -I../include -I. -I/h
ome/dg/gcc/crosstool-0.43/build/powerpc-603-linux-gnu/gcc-4.1.0-glibc-2.3.6/buil
d-glibc/elf -I.. -I../libio -I/home/dg/gcc/crosstool-0.43/build/powerpc-603-lin
ux-gnu/gcc-4.1.0-glibc-2.3.6/build-glibc -I../sysdeps/powerpc/powerpc32/elf -I..
/sysdeps/powerpc/elf -I../linuxthreads/sysdeps/unix/sysv/linux/powerpc/powerpc32
-I../linuxthreads/sysdeps/unix/sysv/linux/powerpc -I../linuxthreads/sysdeps/uni
x/sysv/linux -I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread -I../linuxth
reads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps
/powerpc/powerpc32 -I../linuxthreads/sysdeps/powerpc -I../sysdeps/unix/sysv/linu
x/powerpc/powerpc32 -I../sysdeps/unix/sysv/linux/powerpc -I../sysdeps/unix/sysv/
linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysd
eps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix/powerpc -I../sysdeps/unix
-I../sysdeps/posix -I../sysdeps/powerpc/powerpc32/fpu -I../sysdeps/powerpc/powe
rpc32 -I../sysdeps/wordsize-32 -I../sysdeps/powerpc/soft-fp -I../sysdeps/powerpc
/fpu -I../sysdeps/powerpc -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-6
4 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -
isystem /home/dg/gcc/crosstool-0.43/build/powerpc-603-linux-gnu/gcc-4.1.0-glibc-
2.3.6/gcc-core-prefix/lib/gcc-lib/powerpc-603-linux-gnu/3.3.6/include -isystem /
opt/crosstool/gcc-4.1.0-glibc-2.3.6/powerpc-603-linux-gnu/powerpc-603-linux-gnu/
include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DPIC -DSHARED
-o /home/dg/gcc/crosstool-0.43/build/powerpc-603-linux-gnu/gcc-4.1.0-glibc-2.3
.6/build-glibc/elf/rtld.os -MD -MP -MF /home/dg/gcc/crosstool-0.43/build/powerpc
-603-linux-gnu/gcc-4.1.0-glibc-2.3.6/build-glibc/elf/rtld.os.dt -MT /home/dg/gcc
/crosstool-0.43/build/powerpc-603-linux-gnu/gcc-4.1.0-glibc-2.3.6/build-glibc/el
f/rtld.os
In file included from rtld.c:37:
../sysdeps/unix/sysv/linux/dl-librecon.h: In function `_dl_osversion_init':
../sysdeps/unix/sysv/linux/dl-librecon.h:43: error: assignment of read-only vari
able `_rtld_global_ro'
rtld.c: At top level:
rtld.c:114: error: conflicting types for `_rtld_global_ro'
../sysdeps/generic/ldsodefs.h:539: error: previous declaration of `_rtld_global_
ro'
rtld.c: In function `dl_main':
rtld.c:1165: error: `__libc_enable_secure_internal' undeclared (first use in thi
s function)
rtld.c:1165: error: (Each undeclared identifier is reported only once
rtld.c:1165: error: for each function it appears in.)
rtld.c: In function `process_envvars':
rtld.c:2094: error: `__libc_enable_secure_internal' undeclared (first use in thi
s function)
make[2]: *** [/home/dg/gcc/crosstool-0.43/build/powerpc-603-linux-gnu/gcc-4.1.0-
glibc-2.3.6/build-glibc/elf/rtld.os] Error 1
make[2]: Leaving directory `/home/dg/gcc/crosstool-0.43/build/powerpc-603-linux-
gnu/gcc-4.1.0-glibc-2.3.6/glibc-2.3.6/elf'
make[1]: *** [elf/subdir_lib] Error 2
make[1]: Leaving directory `/home/dg/gcc/crosstool-0.43/build/powerpc-603-linux-
gnu/gcc-4.1.0-glibc-2.3.6/glibc-2.3.6'
make: *** [lib] Error 2
I googled around a bit and found one other person who ran into the same problem:
http://www.garayed.com/linux/137835-trouble-compiling-glibc-2-3-4-a.html
but he never got a response nor posted what the solution was (if there was one).
Does anyone have an idea what may be going wrong here? I sniffed
around a bit and could see what it was complaining about, but as far
as how to fix it... I don't know. Any ideas would be most welcome.
My apologies if this is the wrong list to post this to.
thanks-
dan