This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Error compiling GCC-2.95.2
- To: ppranav at mahindrabt dot com
- Subject: Re: [ECOS] Error compiling GCC-2.95.2
- From: Bart Veer <bartv at redhat dot com>
- Date: Thu, 24 May 2001 15:14:47 +0100
- Cc: ecos-discuss at sources dot redhat dot com, gitam at mahindrabt dot com
- References: <3B0D160D.38C3AC55@mahindrabt.com>
- Reply-To: bartv at redhat dot com
>>>>> "Pranav" == Pranav <ppranav@mahindrabt.com> writes:
Pranav> Hi,
Pranav> I am trying to ECOS on Strongarm, I am using binutil-2.10.1,gcc 2.95.2 ,
Pranav> insite 5.0 and ecos-letest.(down loaded from cvs site).
Pranav> Binutil I had compile and install, but while compiling GCC it givces
Pranav> following error.
Pranav> ---------Configuration command--------
Pranav> <path>/configure --target=arm-linux --prefix=/tools
Pranav> --exec-prefix=/tools/H-i686-pc-linux-gnu --with-gnu-as --with-gnu-ld
Pranav> --with-newlib
Pranav> _________________________________________
Pranav> --------------Error----------------
Pranav> In file included from gthr-default.h:1,
Pranav> from /src/gcc/gcc-2.95.2/gcc/gthr.h:98,
Pranav> from /src/gcc/gcc-2.95.2/gcc/libgcc2.c:3034:
Pranav> /src/gcc/gcc-2.95.2/gcc/gthr-posix.h:37: pthread.h: No such file or
Pranav> directory
Pranav> make[3]: *** [libgcc2.a] Error 1
Pranav> make[2]: *** [stmp-multilib-sub] Error 2
Pranav> make[1]: *** [stmp-multilib] Error 1
Pranav> make: *** [all-gcc] Error 2
Pranav> _____________________________________
Pranav> I had compile ecos-latest version and also define ECOS_REPOSITORY=<eocs
path> /package.
Pranav> My PATH include /toos/H-i686-pc-linux-gnu/bin:/<ecos path>/tools/bin
Pranav> What is the reason of above error?
You have specified the wrong target: it should be --target=arm-elf,
not arm-linux, see
http://sources.redhat.com/ecos/tools/linux-arm-elf.html
Specifying arm-linux means that the code is expected to run in
conjunction with glibc and hence gcc has to be aware of glibc's thread
implementation.
Bart