Compilation error when building for sh3 target
EXTERNAL Tetz Torsten (Praktikant; ST-FIR/ENG1)
external.Torsten.Tetz@de.bosch.com
Wed Apr 9 15:11:00 GMT 2008
Hello,
I am using crosstool to build toolchains for a sh3 target on my Ubuntu
pc.
I was able to build a working toolchain with crosstool-0.43 from
gcc 4.1.2, glibc 2.3.6, binutils 2.16.1
but now I need a newer linker version. Since a higher version of
binutils
did not seem to be supported by crosstool-0.43 I tried crosstool-NG
instead.
Again I was able to get a working toolchain with
gcc 4.1.2, glibc 2.3.6, binutils 2.16.1
after I applied a small patch to gcc 4.1.2.
But now I ran into an error by building the toolchain with
gcc 4.1.2, glibc 2.3.6,
binutils 2.18
I would really appreciate any hint to a solution for that error
since I couldn't find anyhing with google or on this list that
seemed to be connected to it.
I will attach the error output to the end of this mail.
The complete build output is also available but a little big.
Regards,
Torsten
P.S. end of build log:
[ALL ]
/home/torsten/crosstool-ng-1.0.0/targets/sh3-unknown-linux-gnu/build/gcc
-core-static/bin/sh3-unknown-linux-gnu-gcc -pipe
../sysdeps/unix/sysv/linux/sh/sysdep.S -c -I../include -I.
-I/home/torsten/crosstool-ng-1.0.0/targets/sh3-unknown-linux-gnu/build/b
uild-libc-startfiles/csu -I.. -I../libio -I../nptl
-I/home/torsten/crosstool-ng-1.0.0/targets/sh3-unknown-linux-gnu/build/b
uild-libc-startfiles -I../sysdeps/sh/elf
-I../nptl/sysdeps/unix/sysv/linux/sh -I../nptl/sysdeps/unix/sysv/linux
-I../nptl/sysdeps/pthread -I../sysdeps/pthread
-I../nptl/sysdeps/unix/sysv -I../nptl/sysdeps/unix -I../nptl/sysdeps/sh
-I../sysdeps/unix/sysv/linux/sh/sh3 -I../sysdeps/unix/sysv/linux/sh
-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/sh -I../sysdeps/unix -I../sysdeps/posix
-I../sysdeps/sh/sh3 -I../sysdeps/sh -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/torsten/crosstool-ng-1.0.0/targets/sh3-unknown-linux-gnu/build/gcc
-core-static/lib/gcc/sh3-unknown-linux-gnu/4.1.2/include -isystem
/home/torsten/sh3-unknown-linux-gnu/sh3-unknown-linux-gnu/sys-root/usr/i
nclude -D_LIBC_REENTRANT -D_LIBC_REENTRANT -include
../include/libc-symbols.h -DHAVE_INITFINI -DASSEMBLER
-I/home/torsten/crosstool-ng-1.0.0/targets/sh3-unknown-linux-gnu/build/b
uild-libc-startfiles/csu/. -Wa,--noexecstack -o
/home/torsten/crosstool-ng-1.0.0/targets/sh3-unknown-linux-gnu/build/bui
ld-libc-startfiles/csu/sysdep.o -MD -MP -MF
/home/torsten/crosstool-ng-1.0.0/targets/sh3-unknown-linux-gnu/build/bui
ld-libc-startfiles/csu/sysdep.o.dt -MT
/home/torsten/crosstool-ng-1.0.0/targets/sh3-unknown-linux-gnu/build/bui
ld-libc-startfiles/csu/sysdep.o
[ALL ] ../sysdeps/unix/sh/sysdep.S: Assembler messages:
[ALL ] ../sysdeps/unix/sh/sysdep.S:102: Error: symbol
`__syscall_error_1' is already defined
[ALL ] make[3]: ***
[/home/torsten/crosstool-ng-1.0.0/targets/sh3-unknown-linux-gnu/build/bu
ild-libc-startfiles/csu/sysdep.o] Error 1
[ALL ] make[3]: Leaving directory
`/home/torsten/crosstool-ng-1.0.0/targets/src/glibc-2.3.6/csu'
[ALL ] make[2]: *** [csu/subdir_lib] Error 2
[ALL ] make[2]: Leaving directory
`/home/torsten/crosstool-ng-1.0.0/targets/src/glibc-2.3.6'
[ALL ] make[1]: *** [csu/subdir_lib] Error 2
[ALL ] make[1]: Leaving directory
`/home/torsten/crosstool-ng-1.0.0/targets/sh3-unknown-linux-gnu/build/bu
ild-libc-startfiles'
[ERROR] Build failed in step "Installing C library start files"
[ERROR] Error happened in
"/home/torsten/crosstool-ng-1.0.0/scripts/build/libc_glibc.sh" in
function "do_libc_start_files" (line unknown, sorry)
[ERROR] called from
"/home/torsten/crosstool-ng-1.0.0/scripts/crosstool.sh" at line # 388 in
function "main
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list