AW: Compilation error when building for sh3 target
EXTERNAL Tetz Torsten (Praktikant; ST-FIR/ENG1)
external.Torsten.Tetz@de.bosch.com
Thu Apr 10 12:54:00 GMT 2008
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-binutils-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-binutils-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://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list