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]

AW: Compilation error when building for sh3 target


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]