This is the mail archive of the crossgcc@sourceware.org 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] |
I found a solution - I'm posting this in case it can help anybody else with a similar problem: I think I found the solution here http://sources.redhat.com/ml/crossgcc/2004-06/msg00262.html
In the files: glibc/csu/Makefile change CFLAGS-initfini.s = -g0 -fPIC -fno-inline-functions $(fno-unit-at-a-time) to CFLAGS-initfini.s = -O1 -g0 -fPIC -fno-inline-functions $(fno-unit-at-a-time)
glibc/linuxthreads/Makefile change CFLAGS-pt-initfini.s = -g0 -fPIC -fno-inline-functions $(fno-unit-at-a-time) to CFLAGS-pt-initfini.s = -O1 -g0 -fPIC -fno-inline-functions $(fno-unit-at-a-time)
the problem is with the initfini.c file - apparently when compiling it certain versions of gcc spit out garbage. Forcing -O1 seems to fix this problem
sigh... its me again - I must've seen almost every error possible while building a toolchain and compiling a kernel! well this is the latest:
sed -n -e '/@TESTS_BEGIN/,/@TESTS_END/p' /home/satvika/stareast/snapgear/snapgear/glibc/build/csu/initfini.s | \ gawk -f defs.awk > /home/satvika/stareast/snapgear/snapgear/glibc/build/csu/defs.h arm-linux-gcc -mbig-endian /home/satvika/stareast/snapgear/snapgear/glibc/build/csu/crti.S -c -I../include -I. -I/home/satvika/stareast/snapgear/snapgear/glibc/build/csu -I.. -I../libio -I/home/satvika/stareast/snapgear/snapgear/glibc/build -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/fpu -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 /opt/crosstool/be/gcc-3.4.4-glibc-2.3.3/armeb-linux/lib/gcc/armeb-linux/3.4.4/include -isystem /home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DHAVE_INITFINI -DASSEMBLER -I/home/satvika/stareast/snapgear/snapgear/glibc/build/csu/. -g0 -o /home/satvika/stareast/snapgear/snapgear/glibc/build/csu/crti.o /home/satvika/stareast/snapgear/snapgear/glibc/build/csu/crti.S: Assembler messages: /home/satvika/stareast/snapgear/snapgear/glibc/build/csu/crti.S:96: Error: can't resolve `_GLOBAL_OFFSET_TABLE_' {*UND* section} - `.L7' {.text section} /home/satvika/stareast/snapgear/snapgear/glibc/build/csu/crti.S:61: Error: internal_relocation (type: OFFSET_IMM) not fixed up /home/satvika/stareast/snapgear/snapgear/glibc/build/csu/crti.S:62: Error: internal_relocation (type: OFFSET_IMM) not fixed up /home/satvika/stareast/snapgear/snapgear/glibc/build/csu/crti.S:63: Error: internal_relocation (type: OFFSET_IMM) not fixed up /home/satvika/stareast/snapgear/snapgear/glibc/build/csu/crti.S:64: Error: internal_relocation (type: OFFSET_IMM) not fixed up make[4]: *** [/home/satvika/stareast/snapgear/snapgear/glibc/build/csu/crti.o] Error 1 make[4]: Leaving directory `/home/satvika/stareast/snapgear/snapgear/glibc/csu' make[3]: *** [csu/subdir_lib] Error 2 make[3]: Leaving directory `/home/satvika/stareast/snapgear/snapgear/glibc' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/satvika/stareast/snapgear/snapgear/glibc/build' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/satvika/stareast/snapgear/snapgear/lib' make: *** [subdirs] Error 1
I did some searching on google but couldnt seem to find a solution. Although it seems possible that the assembler file was built badly from comments I found on other mailing lists Can anybody help? Thank you -- -------------------------------------------------------------------------------------------------------------------------------------------- When you say 'I wrote a program that crashed Windows', people just stare at you blankly and say 'Hey, I got those with the system, *for free*'. (L. Torvalds) --------------------------------------------------------------------------------------------------------------------------------------------
-- -------------------------------------------------------------------------------------------------------------------------------------------- When you say 'I wrote a program that crashed Windows', people just stare at you blankly and say 'Hey, I got those with the system, *for free*'. (L. Torvalds) --------------------------------------------------------------------------------------------------------------------------------------------
-- For unsubscribe information see http://sourceware.org/lists.html#faq
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |