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]

Re: Compilation error when building for sh3 target


-----BEGIN PGP SIGNED MESSAGE-----

Hash: SHA1



EXTERNAL Tetz Torsten (Praktikant; ST-FIR/ENG1) wrote:
> 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

have a look at this file sysdeps/unix/sh/sysdep.S and see if assembler error is correct or not.

> --
> For unsubscribe information see http://sourceware.org/lists.html#faq
> 


- -- 
Khem Raj
MontaVista Software Inc.
-----BEGIN PGP SIGNATURE-----

Version: GnuPG v1.4.7 (MingW32)

Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org



iD8DBQFH/N7PUjbQJxVzeZQRApUkAJ9SRPpfBDECNMxvkvlMZ/o/SLgCKwCgh98K

83MoN7WhkoAiDfXqSKQhPxk=

=B2Q6

-----END PGP SIGNATURE-----


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