public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Problem while building the ecos Application with newer version gcc tool set.
@ 2002-06-11  7:23 jameshq
  2002-06-11  7:29 ` Andrew Lunn
  2002-06-11  7:31 ` Tim Drury
  0 siblings, 2 replies; 7+ messages in thread
From: jameshq @ 2002-06-11  7:23 UTC (permalink / raw)
  To: Ecos-Discuss

Hi all :
   While I am using the newer version of gcc, g++, insight, binutils.
binutils-2.12.1.tar.bz2
gcc-3.0.4.tar.bz2
gc-g++-3.0.4.tar.bz2
insight-5.2.tar.bz2

I can have the tool set(ARM E7T) built and get the ecos library(default)
successfully but when I tried to compile my application: hello.c as:

arm-elf-gcc -I/e7t/e7t_install/include
hello.c -L/e7t/e7t_install/lib -Ttarget.ld -nostdlib

I got the following error message:

/tools/H-I686~1/bin/../lib/gcc-lib/arm-elf/3.0.4/../../../../arm-elf/bin/ld:
can
not find libsupc++.a
collect2: ld returned 1 exit status

Did I miss something? Thanks for your help.

regards!
james


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

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

* Re: [ECOS] Problem while building the ecos Application with newer version gcc tool set.
  2002-06-11  7:23 [ECOS] Problem while building the ecos Application with newer version gcc tool set jameshq
@ 2002-06-11  7:29 ` Andrew Lunn
  2002-06-11  7:34   ` jameshq
  2002-06-11  7:31 ` Tim Drury
  1 sibling, 1 reply; 7+ messages in thread
From: Andrew Lunn @ 2002-06-11  7:29 UTC (permalink / raw)
  To: jameshq; +Cc: Ecos-Discuss

> I got the following error message:
> 
> /tools/H-I686~1/bin/../lib/gcc-lib/arm-elf/3.0.4/../../../../arm-elf/bin/ld:
> can
> not find libsupc++.a
> collect2: ld returned 1 exit status

The library should be in your gcc install directory:

$ find . -name libsupc++.a
./arm-elf/lib/thumb/libsupc++.a
./arm-elf/lib/libsupc++.a

Is it there?

pass -v to gcc so you see exactly what ld is doing. Does it have the
paths correct?

      Andrew

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

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

* Re: [ECOS] Problem while building the ecos Application with newer version gcc tool set.
  2002-06-11  7:23 [ECOS] Problem while building the ecos Application with newer version gcc tool set jameshq
  2002-06-11  7:29 ` Andrew Lunn
@ 2002-06-11  7:31 ` Tim Drury
  2002-06-11  9:22   ` Martin Buck
  1 sibling, 1 reply; 7+ messages in thread
From: Tim Drury @ 2002-06-11  7:31 UTC (permalink / raw)
  To: Ecos-Discuss


Search the mailing list archives for "cannot find libsupc++.a" and you'll find 
the answer.  I think someone posted the answer again just yesterday.
It involves removing libsupc++ from the target.ld file.

-tim


On Tuesday 11 June 2002 10:23 am, jameshq wrote:
> Hi all :
>    While I am using the newer version of gcc, g++, insight, binutils.
> binutils-2.12.1.tar.bz2
> gcc-3.0.4.tar.bz2
> gc-g++-3.0.4.tar.bz2
> insight-5.2.tar.bz2
>
> I can have the tool set(ARM E7T) built and get the ecos library(default)
> successfully but when I tried to compile my application: hello.c as:
>
> arm-elf-gcc -I/e7t/e7t_install/include
> hello.c -L/e7t/e7t_install/lib -Ttarget.ld -nostdlib
>
> I got the following error message:
>
> /tools/H-I686~1/bin/../lib/gcc-lib/arm-elf/3.0.4/../../../../arm-elf/bin/ld
>: can
> not find libsupc++.a
> collect2: ld returned 1 exit status
>
> Did I miss something? Thanks for your help.
>
> regards!
> james


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

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

* RE: [ECOS] Problem while building the ecos Application with newer version gcc tool set.
  2002-06-11  7:29 ` Andrew Lunn
@ 2002-06-11  7:34   ` jameshq
  2002-06-11  7:38     ` Andrew Lunn
  0 siblings, 1 reply; 7+ messages in thread
From: jameshq @ 2002-06-11  7:34 UTC (permalink / raw)
  To: Andrew Lunn; +Cc: Ecos-Discuss

It is very strange I don't have this library installed. Is it installed
while confinguring? I just got "libgcc.a". how can I solve this problem?
Thanks a lot!


-----Original Message-----
From: Andrew Lunn [mailto:andrew.lunn@ascom.ch]
Sent: 11 June 2002 15:29
To: jameshq
Cc: Ecos-Discuss
Subject: Re: [ECOS] Problem while building the ecos Application with newer
version gcc tool set.


> I got the following error message:
>
>
/tools/H-I686~1/bin/../lib/gcc-lib/arm-elf/3.0.4/../../../../arm-elf/bin/ld:
> can
> not find libsupc++.a
> collect2: ld returned 1 exit status

The library should be in your gcc install directory:

$ find . -name libsupc++.a
./arm-elf/lib/thumb/libsupc++.a
./arm-elf/lib/libsupc++.a

Is it there?

pass -v to gcc so you see exactly what ld is doing. Does it have the
paths correct?

      Andrew


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

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

* Re: [ECOS] Problem while building the ecos Application with newer version gcc tool set.
  2002-06-11  7:34   ` jameshq
@ 2002-06-11  7:38     ` Andrew Lunn
  2002-06-11  8:10       ` jameshq
  0 siblings, 1 reply; 7+ messages in thread
From: Andrew Lunn @ 2002-06-11  7:38 UTC (permalink / raw)
  To: jameshq; +Cc: Ecos-Discuss

On Tue, Jun 11, 2002 at 03:34:07PM +0100, jameshq wrote:
> It is very strange I don't have this library installed. Is it installed
> while confinguring? I just got "libgcc.a". how can I solve this problem?
> Thanks a lot!

The make install would of installed it. When you built gcc, what
languages did you make? I could imagine that if you only build a C
compiler and not a C++ compiler, maybe it did not build this library.

         Andrew

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

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

* RE: [ECOS] Problem while building the ecos Application with newer version gcc tool set.
  2002-06-11  7:38     ` Andrew Lunn
@ 2002-06-11  8:10       ` jameshq
  0 siblings, 0 replies; 7+ messages in thread
From: jameshq @ 2002-06-11  8:10 UTC (permalink / raw)
  To: Andrew Lunn; +Cc: Ecos-Discuss

I followed exactly the same as on the web:
http://sources.redhat.com/ecos/tools/win-arm-elf.html

Configure GCC, ensuring that the GNU Binary Utilities are at the head of the
PATH:
    PATH=/tools/H-i686-pc-cygwin/bin:$PATH ; export PATH
    mkdir -p /tmp/build/gcc
    cd /tmp/build/gcc
    /src/gcc/gcc-2.95.2/configure --target=arm-elf \
      --prefix=/tools \
      --exec-prefix=/tools/H-i686-pc-cygwin \
      --with-gnu-as --with-gnu-ld --with-newlib \
      -v 2>&1 | tee configure.out

Build and install GCC:
    make -w all-gcc install-gcc \
      LANGUAGES="c c++" 2>&1 | tee make.out

I redo it again but still can't get the library. Is it because I am using
the GCC 3.0.4?

Thanks a lot!

james

-----Original Message-----
From: Andrew Lunn [mailto:andrew.lunn@ascom.ch]
Sent: 11 June 2002 15:38
To: jameshq
Cc: Ecos-Discuss
Subject: Re: [ECOS] Problem while building the ecos Application with newer
version gcc tool set.


On Tue, Jun 11, 2002 at 03:34:07PM +0100, jameshq wrote:
> It is very strange I don't have this library installed. Is it installed
> while confinguring? I just got "libgcc.a". how can I solve this problem?
> Thanks a lot!

The make install would of installed it. When you built gcc, what
languages did you make? I could imagine that if you only build a C
compiler and not a C++ compiler, maybe it did not build this library.

         Andrew


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

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

* Re: [ECOS] Problem while building the ecos Application with newer  version gcc tool set.
  2002-06-11  7:31 ` Tim Drury
@ 2002-06-11  9:22   ` Martin Buck
  0 siblings, 0 replies; 7+ messages in thread
From: Martin Buck @ 2002-06-11  9:22 UTC (permalink / raw)
  To: ecos-discuss

Tim Drury wrote:
> Search the mailing list archives for "cannot find libsupc++.a" and you'll find
> the answer.  I think someone posted the answer again just yesterday.
> It involves removing libsupc++ from the target.ld file.

No, it doesn't (at least not if you want to write C++ code). It involves
building and installing libsupc++:
http://sources.redhat.com/ml/ecos-discuss/2001-10/msg00274.html

Martin

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

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

end of thread, other threads:[~2002-06-11 16:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-11  7:23 [ECOS] Problem while building the ecos Application with newer version gcc tool set jameshq
2002-06-11  7:29 ` Andrew Lunn
2002-06-11  7:34   ` jameshq
2002-06-11  7:38     ` Andrew Lunn
2002-06-11  8:10       ` jameshq
2002-06-11  7:31 ` Tim Drury
2002-06-11  9:22   ` Martin Buck

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