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]

Error: cannot represent SWI relocation in this object file format


Hi All,
I'm trying to build a toolchain for arm-linux target with 
binutils-2.15, gcc-3.4.2 and glibc-2.3.3 and kernel headers linux-2.6.9
on an x86 host running FC3.

While building the glibc-2.3.3 i get the following error.

arm-linux-gcc ../sysdeps/unix/syscall.S -c  -I../include -I.
-I/home/indraneel/linux-cross-arm-2.6/build-tools/build-glibc/misc
-I.. -I../libio 
-I/home/indraneel/linux-cross-arm-2.6/build-tools/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
/home/indraneel/linux-cross-arm-2.6/tools/lib/gcc/arm-linux/3.4.2/include
-isystem /home/indraneel/linux-cross-arm-2.6/tools/arm-linux/include/
-D_LIBC_REENTRANT -include ../include/libc-symbols.h       -DASSEMBLER
    -o /home/indraneel/linux-cross-arm-2.6/build-tools/build-glibc/misc/syscall.o
-MD -MP -MF /home/indraneel/linux-cross-arm-2.6/build-tools/build-glibc/misc/syscall.o.dt
../sysdeps/unix/syscall.S: Assembler messages:
../sysdeps/unix/syscall.S:28: Error: cannot represent SWI relocation
in this object file format
make[2]: *** [/home/indraneel/linux-cross-arm-2.6/build-tools/build-glibc/misc/syscall.o]
Error 1
make[2]: Leaving directory
`/home/indraneel/linux-cross-arm-2.6/build-tools/glibc-2.3.3/misc'
make[1]: *** [misc/subdir_lib] Error 2
make[1]: Leaving directory
`/home/indraneel/linux-cross-arm-2.6/build-tools/glibc-2.3.3'
make: *** [all] Error 2

I have made sure that the include/asm points to the correct asm-arm directory. 
I have no idea how to proceed from here(Should i change my Binutils
version?). Please help me out.

IM

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