Weird test-results from gcc-3.4.4

Randy McMurchy randy at linuxfromscratch.org
Tue Aug 23 19:18:59 PDT 2005


D.Dreschers wrote these words on 08/23/05 20:17 CST:

> in order to avoid rebuilding my complete system is it
> possible to build solely the objc,f77 and ada compiler
> and install them in /usr/local without damaging the
> c and c++ compiler in /usr ?

What do you mean "damaging"? What version of GCC do you currently
have installed?

BTW - If I remember correctly, you cannot build objc, f77 or ada
without building the c compiler.

To answer your question, though, I'm not sure of the internals
of GCC to know how it looks for its support libraries. That is
why I asked what version you currently have installed. Here is
something I noticed from a setup in /opt:

rml at rmlinux: /opt/gcc-3.4.4/bin > ldd gnat
        linux-gate.so.1 =>  (0xffffe000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb7ee1000)
        libc.so.6 => /lib/libc.so.6 (0xb7dc0000)
        /lib/ld-linux.so.2 (0xb7efc000)

Notice that it references stuff in /usr/lib even though it seems
it should be looking at the one in /opt (realizing this issue is
due to the ld library cache):

rml at rmlinux: /opt/gcc-3.4.4 > find . -name libgcc_s.so.1
./lib/libgcc_s.so.1

-- 
Randy

rmlscsi: [GNU ld version 2.15.94.0.2 20041220] [gcc (GCC) 3.4.3]
[GNU C Library stable release version 2.3.4] [Linux 2.6.10 i686]
21:17:00 up 143 days, 20:50, 3 users, load average: 1.32, 1.13, 0.73



More information about the blfs-support mailing list