public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Error compiling GCC-2.95.2
@ 2001-05-24  7:07 Pranav
  2001-05-24  7:14 ` Bart Veer
  0 siblings, 1 reply; 2+ messages in thread
From: Pranav @ 2001-05-24  7:07 UTC (permalink / raw)
  To: ecos-discuss; +Cc: gitam

Hi,

I am trying to ECOS on Strongarm, I am using binutil-2.10.1,gcc 2.95.2 ,
insite 5.0 and ecos-letest.(down loaded from cvs site).
Binutil I had compile and install, but while compiling GCC it givces
following error.

---------Configuration command--------
<path>/configure --target=arm-linux --prefix=/tools
--exec-prefix=/tools/H-i686-pc-linux-gnu --with-gnu-as --with-gnu-ld
--with-newlib
_________________________________________

--------------Error----------------
In file included from gthr-default.h:1,
                 from /src/gcc/gcc-2.95.2/gcc/gthr.h:98,
                 from /src/gcc/gcc-2.95.2/gcc/libgcc2.c:3034:
/src/gcc/gcc-2.95.2/gcc/gthr-posix.h:37: pthread.h: No such file or
directory
make[3]: *** [libgcc2.a] Error 1
make[2]: *** [stmp-multilib-sub] Error 2
make[1]: *** [stmp-multilib] Error 1
make: *** [all-gcc] Error 2
_____________________________________

I had compile ecos-latest version and also define ECOS_REPOSITORY=<eocs
path>/package.
My PATH include /toos/H-i686-pc-linux-gnu/bin:/<ecos path>/tools/bin

What is the reason of above error?

Thanks,
Pranav

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ECOS] Error compiling GCC-2.95.2
  2001-05-24  7:07 [ECOS] Error compiling GCC-2.95.2 Pranav
@ 2001-05-24  7:14 ` Bart Veer
  0 siblings, 0 replies; 2+ messages in thread
From: Bart Veer @ 2001-05-24  7:14 UTC (permalink / raw)
  To: ppranav; +Cc: ecos-discuss, gitam

>>>>> "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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-05-24  7:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-24  7:07 [ECOS] Error compiling GCC-2.95.2 Pranav
2001-05-24  7:14 ` Bart Veer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).