This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Arm cross gcc-3.4.0, glibc-2.3.2, binutils-1.1[45] build failure.


Jonathan Marks wrote:
Building on a RH9.0 box, with either a RH9.0 gcc, or gcc-3.4.0 as the native compiler.
I get the same failure using binutils-2.14 or 2.15. If I use gcc-3.3.2, the compile works fine.


Here's the reported failure.

sed -n -e '1,/@HEADER_ENDS/p' \
-e '/@_.*_PROLOG_BEGINS/,/@_.*_PROLOG_ENDS/p' \
-e '/@TRAILER_BEGINS/,$p' /usr/src/xscale/glibc-2.3.2-bld/csu/initfini.s > /usr/src/xscale/glibc-2.3.2-bld/csu/crti.S
sed -n -e '/@TESTS_BEGIN/,/@TESTS_END/p' /usr/src/xscale/glibc-2.3.2-bld/csu/initfini.s | \
gawk -f defs.awk > /usr/src/xscale/glibc-2.3.2-bld/csu/defs.h
arm-linux-gcc /usr/src/xscale/glibc-2.3.2-bld/csu/crti.S -c -I../include -I. -I/usr/src/xscale/glibc-2.3.2-bld/csu -I.. -I../libio -I/usr/src/xscale/glibc-2.3.2-bld -I../sysdeps/arm/elf -I../linuxthreads/sysdeps/unix/sysv/linux/arm -I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread -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/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix/arm -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/arm -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem /usr/local/xscale/3.4.0/lib/gcc/arm-linux/3.4.0/include -isystem /usr/src/xscale/elroy-jack/sw/linux-2.6.6/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DHAVE_INITFINI -DASSEMBLER -I/usr/src/xscale/glibc-2.3.2-bld/csu/. -g0 -o /usr/src/xscale/glibc-2.3.2-bld/csu/crti.o
/usr/src/xscale/glibc-2.3.2-bld/csu/crti.S: Assembler messages:
/usr/src/xscale/glibc-2.3.2-bld/csu/crti.S:96: Error: can't resolve `_GLOBAL_OFFSET_TABLE_' {*UND* section} - `.L7' {.text section}
/usr/src/xscale/glibc-2.3.2-bld/csu/crti.S:61: Error: internal_relocation (type: OFFSET_IMM) not fixed up
/usr/src/xscale/glibc-2.3.2-bld/csu/crti.S:62: Error: internal_relocation (type: OFFSET_IMM) not fixed up
/usr/src/xscale/glibc-2.3.2-bld/csu/crti.S:63: Error: internal_relocation (type: OFFSET_IMM) not fixed up
/usr/src/xscale/glibc-2.3.2-bld/csu/crti.S:64: Error: internal_relocation (type: OFFSET_IMM) not fixed up
make[2]: *** [/usr/src/xscale/glibc-2.3.2-bld/csu/crti.o] Error 1
make[2]: Leaving directory `/usr/src/xscale/glibc-2.3.2/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/usr/src/xscale/glibc-2.3.2'
make: *** [all] Error 2

Hmm. Well, I can't build gcc-3.4.0 with glibc-2.3.2 either, but for a different reason:

#eval `cat arm-softfloat.dat gcc-3.4.0-glibc-2.3.2.dat` sh all.sh --notest
# probably because I haven't got an equivalent of
# patches/gcc-3.3.3/gcc-3.3.2-arm-softfloat.patch
# for gcc-3.4.0.  Here are a couple of the errors:
# .../arm-softfloat-linux-gnu/gcc-3.4.0-glibc-2.3.2/build-glibc/libc_pic.os(.text+0x15834): In function `__modf':
# : undefined reference to `__subdf3'
# .../arm-softfloat-linux-gnu/gcc-3.4.0-glibc-2.3.2/build-glibc/libc_pic.os(.text+0x158b8): In function `__modf':
# : undefined reference to `__subdf3'
# .../arm-softfloat-linux-gnu/gcc-3.4.0-glibc-2.3.2/build-glibc/libc_pic.os(.text+0x1590c): In function `scalbn':
# : undefined reference to `__muldf3'
# .../arm-softfloat-linux-gnu/gcc-3.4.0-glibc-2.3.2/build-glibc/libc_pic.os(.text+0x15e94): In function `__ldexpf':
# : undefined reference to `__eqsf2'
# .../arm-softfloat-linux-gnu/gcc-3.4.0-glibc-2.3.2/build-glibc/libc_pic.os(.text+0xcee4c): In function `monstartup':
# : undefined reference to `__fixsfsi'
# Similar errors were reported in http://sources.redhat.com/ml/libc-alpha/2003-08/msg00152.html

Don't know if my failure is lurking in wait for you when you fix
yours, or vice versa...
- Dan

--
My technical stuff: http://kegel.com
My politics: see http://www.misleader.org for examples of why I'm for regime change

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]