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]

Build for arm-linux failed under cygwin and fedora-linux


Hi I tried to compile the toolchain for arm-linux on my windows
and linux box. Both manually and with crosstool, both failed but
in different ways.

I'm using gcc-3.4.0, glibc-2.3.2, binutils-2.15, linux-2.4.26
and crosstool-0.28-rc23.

Under windows I get as far as to the header files from glibc.
The make which comes with cygwin seems to have problems with
the recursions in glibc-2.3.2/iconvdata/extra-module.mk.
It crashes after a few (40?) steps.
After I uncommented the recursive include in that file
(which is probably not good at all...) I got a bit further.
The header files were all made. I could compile the static
version of the arm-linux-gcc but now, again in the glibc,
I am stuck... it can't resolve `_GLOBAL_OFFSET_TABLE_' what
ever that means, here is the (almost) complete error message:

arm-linux-gcc /scratch/src/glibc-2.3.2-arm-linux/csu/crti.S -c -I../include -I. -I/scratch/src/glibc-2.3.2-arm-linux/csu -I.. -I../libio -I/scratch/src/glibc-2.3.2-arm-linux -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 /scratch/cross/lib/gcc/arm-linux/3.4.0/include -isystem /scratch/cross/arm-linux/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DHAVE_INITFINI -DASSEMBLER -I/scratch/src/glibc-2.3.2-arm-linux/csu/. -g0 -o /scratch/src/glibc-2.3.2-arm-linux/csu/crti.o
/scratch/src/glibc-2.3.2-arm-linux/csu/crti.S: Assembler messages:
/scratch/src/glibc-2.3.2-arm-linux/csu/crti.S:96: Error: can't resolve `_GLOBAL_OFFSET_TABLE_' {*UND* section} - `.L7' {.text section}
/scratch/src/glibc-2.3.2-arm-linux/csu/crti.S:61: Error: internal_relocation (type: OFFSET_IMM) not fixed up
/scratch/src/glibc-2.3.2-arm-linux/csu/crti.S:62: Error: internal_relocation (type: OFFSET_IMM) not fixed up
/scratch/src/glibc-2.3.2-arm-linux/csu/crti.S:63: Error: internal_relocation (type: OFFSET_IMM) not fixed up
/scratch/src/glibc-2.3.2-arm-linux/csu/crti.S:64: Error: internal_relocation (type: OFFSET_IMM) not fixed up
make[2]: *** [/scratch/src/glibc-2.3.2-arm-linux/csu/crti.o] Error 1


This is also the same error I get when I tried to do it
under linux. (but I didn't come into the recursive make
problem)

After searching the web I gave up and tried crosstool.
I'm not sure if I got further... under windows I still
have the make problem.  But after removing the recursive
include line again here's what comes out at the compilation
of the glibc:

arm-unknown-linux-gnu-gcc localealias.c -c -std=gnu99 -O -Wall -Winline -Wstrict-prototypes -Wwrite-strings -I../include -I. -I/scratch/src/crosstool-0.28-rc23/build/arm-unknown-linux-gnu/gcc-3.4.0-glibc-2.3.2/build-glibc/intl -I.. -I../libio -I/scratch/src/crosstool-0.28-rc23/build/arm-unknown-linux-gnu/gcc-3.4.0-glibc-2.3.2/build-glibc -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 /scratch/crosstool/arm-unknown-linux-gnu/gcc-3.4.0-glibc-2.3.2/lib/gcc/arm-unknown-linux-gnu/3.4.0/include -isystem /scratch/crosstool/arm-unknown-linux-gnu/gcc-3.4.0-glibc-2.3.2/arm-unknown-linux-gnu/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -D'LOCALEDIR="/usr/share/locale"' -D'LOCALE_ALIAS_PATH="/usr/share/locale"' -o /scratch/src/crosstool-0.28-rc23/build/arm-unknown-linux-gnu/gcc-3.4.0-glibc-2.3.2/build-glibc/intl/localealias.o
In file included from ../include/bits/string2.h:1,
from ../string/string.h:375,
from ../include/string.h:49,
from ../linuxthreads_db/thread_dbP.h:5,
from ../linuxthreads/descr.h:43,
from ../linuxthreads/sysdeps/pthread/bits/libc-tsd.h:23,
from ../include/../locale/localeinfo.h:190,
from ../include/ctype.h:14,
from localealias.c:31:
../string/bits/string2.h:80: warning: `packed' attribute ignored
../string/bits/string2.h:81: warning: `packed' attribute ignored
../string/bits/string2.h:82: warning: `packed' attribute ignored
../string/bits/string2.h:83: warning: `packed' attribute ignored
../string/bits/string2.h:84: warning: `packed' attribute ignored
../string/bits/string2.h:85: warning: `packed' attribute ignored
../string/bits/string2.h:86: warning: `packed' attribute ignored
/tmp/cc0XRKUe.s: Assembler messages:
/tmp/cc0XRKUe.s:3: Error: junk at end of line, first unrecognized character is `,'
/tmp/cc0XRKUe.s:5: Error: junk at end of line, first unrecognized character is `,'
make[2]: *** [/scratch/src/crosstool-0.28-rc23/build/arm-unknown-linux-gnu/gcc-3.4.0-glibc-2.3.2/build-glibc/intl/localealias.o] Error 1



and again I get the same error under linux. Anyone got a clue?

Birger


------ 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]