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:
> 
> 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-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.

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

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]