Help!!! Compilation Problem with gcc263

Help!!! Compilation Problem with gcc263

Post by boufk.. » Thu, 04 May 1995 04:00:00



  I have this message when I try to compile using options -g or -p with -lm :

    ld : Output file requires shared library 'libc.so.4'
    gcc: Internal compiler error: program ld goto fatal signal 6.

  I tried -g apart and -lm apart, the compilation was fine.
  Can you help me?

 
 
 

Help!!! Compilation Problem with gcc263

Post by Dimitrios P. Bour » Fri, 05 May 1995 04:00:00



: >  I have this message when I try to compile using options -g or -p with -lm :
: >
: >    ld : Output file requires shared library 'libc.so.4'
: >    gcc: Internal compiler error: program ld goto fatal signal 6.
: >
: >  I tried -g apart and -lm apart, the compilation was fine.
: >  Can you help me?

: Is this with the Slackware 2.2 distribution?  I believe there is a bug, and
: I think the following is a fix.  It worked for me.

: > cd /usr/lib/gcc-lib/i486-linux/2.6.3

: edit "specs"

: Now change these old lines:

: %{mieee-fp:-lieee} %{p:-lgmon -lc_p} %{pg:-lgmon -lc_p} ....<continued!>
: %{!p:%{!pg:%{!g*:-lc} %{g*:-lg}}}

: to this:

: %{mieee-fp:-lieee} %{p:-lgmon -lc_p -lc} %{pg:-lgmon -lc_p -lc} ....<cont'ed!>
:                                     ^^^                    ^^^
: %{!p:%{!pg:%{!g*:-lc} %{g*:-lg -lc}}}
:                                ^^^

: I think that should work.

  Actually, it's much simpler than that. The problem is that when using -g,
 the compiler tries to find a libg.sa, i.e., the stub file for libg.so.4, in
 order to compile the source program as a shared object, using the shared
 object libc, compiled with -g (that is, libg.so.4). However, that file is
 not there, as very few users will need to debug libc code. Nevertheless,
 the loader (ld, that is) is quite fussy about not being able to find the
 file, and complains. The solution is to:

  1. go in /usr/lib and

  2. ln -s libc.sa libg.sa

 effectively instructing the loader to use the standard libc.sa when wanting
 to use libg.sa. The above problem does not exist when compiling staticly,
 since a symbolic link named libg.a already exists in /usr/lib, pointing to
 libc.a.

  Dimitri

 
 
 

1. problem using -g with gcc263

Hi all,

First of all, what happened to comp.os.linux.help?  I couldn't
access it any more.  Does it still exist?

I ftp'ed the new "d" series in the new slackware dist. which
contains gcc 2.6.3, and installed it.  First it complained
about libc.so.4.5.26 being outdated.  So I ftp'ed image.4.6.27.tar.gz
and unpacked that (and made the sym links).  Now if I compile
without the -g switch, it seem to work fine.  However if I compile
with the -g switch, at the linking stage I get a "can't find
libc.so.4" error.  I do have /usr/lib/libc.so.4 linked to libc.so.4.6.27!

Can anyone help?

Also, I've heard that gcc263 for linux still has bug with alloc().
Does anyone know if this has been fixed, or when will it get fixed?

Thanks in advance.

--
Andy I. Liaw                     Department of Statistics  

(409) 845-5757                   College Station, TX 77845-3143

2. DJ500 Problems

3. Cross compilation compilation problems

4. HELP! grub won't boot Win98 anymore!

5. lmscd + gcc263 + 1.3.12

6. Solaris 8 - cannot log in 'nobody group not found'

7. gcc263 can't find standard headers

8. Putting keywords in Subject: lines

9. Compilation Problems: Programmers -- Can you Help?

10. Urgent: Compilation problems with mod_perl-1.15 Help!!!!!

11. Kernel 1.3.20 compilation problem HELP!!

12. Linux Kernel compilation problems -- Please Help!!!

13. Help: How to set environmental variable OPENWIN and xmkmf compilation problems/error