This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug libc/158] New: Assembler symbol resolution error into crti.S file when cross-compiling glibc for ARM
- From: "r1 at wanadoo dot fr" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 13 May 2004 13:09:34 -0000
- Subject: [Bug libc/158] New: Assembler symbol resolution error into crti.S file when cross-compiling glibc for ARM
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
Hello,
I have a cross-compiling error when I try to compile glibc for MX1 ARM
(Motorola) target.
Here my configuration:
1) the little cross-compiler (its purpose is to compile libc for target):
arm-mx1ads-linux-gcc -v
Reading specs from /local/erbr01/cross-compiler/build/gcc1/lib/gcc/arm-mx1ads-
linux/3.4.0/specs
Configured with: ../gcc-3.4.0/configure --prefix=/local/erbr01/cross-
compiler/build/gcc1 --target=arm-mx1ads-linux --with-local-
prefix=/local/erbr01/cross-compiler/build/gcc1 --disable-threads --with-gnu-as -
-with-gnu-ld --with-as=/local/erbr01/cross-compiler/toolchain/bin2.14-gcc3.4.0-
glibc2.3.2/bin/arm-mx1ads-linux-as --with-ld=/local/erbr01/cross-
compiler/toolchain/bin2.14-gcc3.4.0-glibc2.3.2/bin/arm-mx1ads-linux-ld --
disable-shared --with-headers=/local/erbr01/cross-compiler/build/linux-
headers/include --enable-languages=c
Thread model: single
gcc version 3.4.0
2) the host:
Linux gemini 2.4.7-10smp #1 SMP Thu Sep 6 17:09:31 EDT 2001 i686 unknown
3) Tools:
binutils 2.14
gcc 3.4.0
glibc 2.3.2
glic-threads 2.3.2
kernel headers for MX1 2.4.18
4) glibc flags to compile:
../glibc-2.3.2/configure --prefix=$lc_prefix --enable-shared --enable-add-ons --
enable-kernel=2.4.18 --build=i686-linux --host=arm-mx1ads-linux --with-
headers=$sbx_prefix/linux-headers/include && make && make install
5) The error:
arm-mx1ads-linux-gcc /local/erbr01/cross-compiler/build/glibc-build/csu/crti.S -
c -I../include -I. -I/local/erbr01/cros
s-compiler/build/glibc-build/csu -I.. -I../libio -I/local/erbr01/cross-
compiler/build/glibc-build -I../sysdeps/arm/elf
-I../linuxthreads/sysdeps/unix/sysv/linux/arm -
I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthrea
d -I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv -
I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/arm
-I../sysdeps/unix/sysv/linux/arm -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -
I../sysdeps/unix/common -I../sysdeps/uni
x/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix/arm -
I../sysdeps/unix -I../sysdeps/posix -I../sys
deps/arm/fpu -I../sysdeps/arm -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-
32 -I../sysdeps/ieee754/dbl-64 -I../sysd
eps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -
isystem /local/erbr01/cross-compiler/build/gcc1/li
b/gcc/arm-mx1ads-linux/3.4.0/include -isystem /local/erbr01/cross-
compiler/build/linux-headers/include -D_LIBC_REENTRANT
-include ../include/libc-symbols.h -DHAVE_INITFINI -DASSEMBLER -
I/local/erbr01/cross-compiler/build/glibc-build/
csu/. -g0 -o /local/erbr01/cross-compiler/build/glibc-build/csu/crti.o
/local/erbr01/cross-compiler/build/glibc-build/csu/crti.S: Assembler messages:
/local/erbr01/cross-compiler/build/glibc-build/csu/crti.S:96: Error: can't
resolve `_GLOBAL_OFFSET_TABLE_' {*UND* sectio
n} - `.L7' {.text section}
/local/erbr01/cross-compiler/build/glibc-build/csu/crti.S:61: Error:
internal_relocation (type: OFFSET_IMM) not fixed up
/local/erbr01/cross-compiler/build/glibc-build/csu/crti.S:62: Error:
internal_relocation (type: OFFSET_IMM) not fixed up
/local/erbr01/cross-compiler/build/glibc-build/csu/crti.S:63: Error:
internal_relocation (type: OFFSET_IMM) not fixed up
/local/erbr01/cross-compiler/build/glibc-build/csu/crti.S:64: Error:
internal_relocation (type: OFFSET_IMM) not fixed up
make[2]: *** [/local/erbr01/cross-compiler/build/glibc-build/csu/crti.o] Error 1
make[2]: Leaving directory `/local/erbr01/cross-compiler/build/glibc-2.3.2/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/local/erbr01/cross-compiler/build/glibc-2.3.2'
make: *** [all] Error 2
If someone can explain to me the source of this problem or give me the
solution...
Thanks.
--
Summary: Assembler symbol resolution error into crti.S file when
cross-compiling glibc for ARM
Product: glibc
Version: 2.3.2
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: r1 at wanadoo dot fr
ReportedBy: r1 at wanadoo dot fr
CC: glibc-bugs at sources dot redhat dot com
GCC host triplet: i686 / gcc 3.2.2 / binutils 2.13.2.1 / libc 2.2.4
GCC target triplet: arm-mx1ads-linux / gcc 3.4.0 / binutils 2.14 / libc
2.3.2
http://sources.redhat.com/bugzilla/show_bug.cgi?id=158
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.