jack Griffin | 3 Mar 2003 01:57

Michael C --gcc

Michael C;
 
Hello again.  I am having another problem and I hop you can point me in the right direction.  I got "make" and "gdb" install and they appear to work correctly. 
 
I then decided to install gcc-3.2.2.  I had gcc-2.95.2 install.  The install appeared to go good.  However, when I try to compile a small program I received the following errors.

ld: fatal: library - lstdc++: not found
ld: fatal: library - lgcc_s: not found
ld: fatal: library - lgcc: not found
ld: fatal: File processing errors. No output written to new
collect2: ld returned 1 exit status

I cannot fine the above libraries anywhere on the PC.  I downloaded the latest version -- libstdc++-v3 an attempted to install them but got the following error when I ran ./configure.
 
configure: error: can not find install-sh or install.sh in ./ ../ ././..
 
I had previously run make clean and makd distclean on gcc-3.2.2.

Any help would be appreciated.  Thanks.

J. Griffin
_______________________________________________
Gdb mailing list
Gdb <at> gnu.org
http://mail.gnu.org/mailman/listinfo/gdb
Michael Elizabeth Chastain | 3 Mar 2003 02:28

Re: Michael C --gcc

This looks like a simple issue with --prefix and $PATH.

Make sure that:

  you configure gcc with "--prefix ..."
  you install the new gcc with 'make install'
  your $PATH includs ".../bin:...", the bin directory of your install path

For example, if you configure gcc with "--prefix=/a/b/c/gcc-3.2.2",
then $PATH should include "/a/b/c/gcc-3.2.2/bin".

After you do these things, try 'gcc -v' and 'gcc --version'.
You should see the new 3.2.2 version.

> ld: fatal: library - lstdc++: not found
> ld: fatal: library - lgcc_s: not found
> ld: fatal: library - lgcc: not found
> ld: fatal: File processing errors. No output written to new

-lstdc++ is not part of gcc 3 any more (It's not -lstdc++-v3).
That leads me to think you did an incomplete gcc install.

> I had previously run make clean and makd distclean on gcc-3.2.2.

You have to 'make install' to *install* the compiler before you use it.
You can't just build the compiler and use it out of the build directory
(it sounds like you are trying that).  That works with 'make' and 'gdb'
because they have basically just one file, but gcc has a lot of files
including both libraries and executables, so it needs to be installed.

Michael C
Tha Murdah Show | 13 Mar 2003 05:57
Picon
Favicon

Saturday Night Hip Hop <at> the Stage

ГїёцРЗЖЪБщ
ОТГЗЅ«»бёшДгґшАґХжХэµД Hip-Hop R&B Party
 
ХШјТдєВ·567єЕЈЁЅьРЎДѕЗЕВ·Ј©The Stage
 
ѕЯМеРЕПўЈ¬ЗлІ¦ґтЈє64435935
 
ГЕЖ±ЈєДРКїИліЎ: 30ФЄЈ¬ёЅґшТ»±­±кЧјТыБП
 
Е®КїИліЎГв·С,10µгТФЗ°,ТыБПГв·С
 
ТыБПЈєИ«іЎХыНнТыБПМШјЫ 10-20 ФЄ
 
К±јдЈє20Јє00--БЩіЅ
 
EVERY SATURDAY NIGHT
 
HIP HOP| R&B <at> The Stage
 
Ladies Drink Free until 10pm, Free Entry All Night
 
Fellas 30 RMB Cover includes 1 standard drink
 
This Saturday March 15
 
DJ
 
PACKO
_______________________________________________
Gdb mailing list
Gdb <at> gnu.org
http://mail.gnu.org/mailman/listinfo/gdb

Gmane