List Info

Thread: Compilation error when building for sh3 target




Compilation error when building for sh3 target
user name
2008-04-09 10:11:29
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-g
nu/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-g
nu/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/sy
s-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-g
nu/build/bui
ld-libc-startfiles/csu/sysdep.o -MD -MP -MF
/home/torsten/crosstool-ng-1.0.0/targets/sh3-unknown-linux-g
nu/build/bui
ld-libc-startfiles/csu/sysdep.o.dt -MT
/home/torsten/crosstool-ng-1.0.0/targets/sh3-unknown-linux-g
nu/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/cs
u'
[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_gl
ibc.sh" in
function "do_libc_start_files" (line unknown,
sorry)
[ERROR]          called from
"/home/torsten/crosstool-ng-1.0.0/scripts/crosstool.sh&
quot; at line # 388 in
function "main



--
For unsubscribe information see http://sourcewar
e.org/lists.html#faq


Re: Compilation error when building for sh3 target
user name
2008-04-09 10:20:47
-----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-g
nu/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-g
nu/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/sy
s-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-g
nu/build/bui
> ld-libc-startfiles/csu/sysdep.o -MD -MP -MF
>
/home/torsten/crosstool-ng-1.0.0/targets/sh3-unknown-linux-g
nu/build/bui
> ld-libc-startfiles/csu/sysdep.o.dt -MT
>
/home/torsten/crosstool-ng-1.0.0/targets/sh3-unknown-linux-g
nu/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://sourcewar
e.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/SLgCKwCg
h98K

83MoN7WhkoAiDfXqSKQhPxk=

=B2Q6

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


--
For unsubscribe information see http://sourcewar
e.org/lists.html#faq


AW: Compilation error when building for sh3 target
user name
2008-04-10 03:33:16
Hello,

Khem Raj wrote:
>> [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. 

I looked into this file. It is located at
.../src/glibc-2.3.6/sysdeps/unix/sh/sysdep.S

Inside of this file there is no occurrence of
__syscall_error_1 at all.
Only __syscall_error is occuring once.

Regards,
Torsten

--
For unsubscribe information see http://sourcewar
e.org/lists.html#faq


AW: Compilation error when building for sh3 target
user name
2008-04-10 04:10:43
Hello,

EXTERNAL Tetz Torsten (Praktikant; ST-FIR/ENG1) wrote:
> 
> I am using crosstool to build toolchains for a sh3
target on my Ubuntu
> pc.

> But now I ran into an error by building the toolchain
with
> gcc 4.1.2, glibc 2.3.6,
> binutils 2.18
> 

Since the error seemed to be connected with the glibc-2.3.6
I tried to
build with a newer version (gcc 4.1.2, glibc 2.7, binutils
2.18).

With this configuration I get a different error seemingly
connected to
glibc-2.7,
but according to the size of the logfile this one occured
much later
than 
the previous error.

Another build with a newer gcc 4.2.2 showed the same error.
The error is:

[ERROR]    ../sysdeps/unix/sysv/linux/sys/ptrace.h:135:
error: expected
identifier before numeric constant
[ALL  ]    make[3]: ***
[/home/torsten/test_crosstool-ng/build_gcc-4.2.2-glibc-2.7-b
inutils-2.18
/targets/sh3-unknown-linux-gnu/build/build-libc/misc/ptrace.
o] Error 1
[ALL  ]    make[3]: Leaving directory
`/home/torsten/test_crosstool-ng/build_gcc-4.2.2-glibc-2.7-b
inutils-2.18
/targets/src/glibc-2.7/misc'

Compiling only the enum and the macro from ptrace.h in a
testfile works
without error.

Has anyone an idea what could be done against this error?

Regards,
Torsten

--
For unsubscribe information see http://sourcewar
e.org/lists.html#faq


AW: Compilation error when building for sh3 target
user name
2008-04-10 07:53:47
Hello,

EXTERNAL Tetz Torsten (Praktikant; ST-FIR/ENG1) wrote:

> The error is:
> 
> [ERROR]    ../sysdeps/unix/sysv/linux/sys/ptrace.h:135:
error:
> expected identifier before numeric constant
> [ALL  ]    make[3]: ***
>
[/home/torsten/test_crosstool-ng/build_gcc-4.2.2-glibc-2.7-b
inutils-2.18
>
/targets/sh3-unknown-linux-gnu/build/build-libc/misc/ptrace.
o] Error 1
> [ALL  ]    make[3]: Leaving directory
>
`/home/torsten/test_crosstool-ng/build_gcc-4.2.2-glibc-2.7-b
inutils-2.18
> /targets/src/glibc-2.7/misc'
> 
> Compiling only the enum and the macro from ptrace.h in
a testfile
> works without error.
> 
I made a mistake in the last sentence. There is no macro in
ptrace.h.

I build a very small test programm from the contents of
ptrace.h and
tried to build it. It failed with the following messages.

./killme.c:4: error: expected '=', ',', ';', 'asm' or
'__attribute__'
before 'enum'
./killme.c:17: error: expected '=', ',', ';', 'asm' or
'__attribute__'
before 'int'

I attached the testfile to this message.

Regards,
Torsten

--
For unsubscribe information see http://sourcewar
e.org/lists.html#faq


AW: Compilation error when building for sh3 target
user name
2008-04-10 08:09:40
Testfile from last mail.


--
For unsubscribe information see http://sourcewar
e.org/lists.html#faq
  
[1-6]

about | contact  Other archives ( Real Estate discussion Medical topics )