This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Persistant egcs-1.1.x build failures (cc1 signal 11)


> 
> At 07:48 AM 11/29/98 -0800, H.J. Lu wrote:
> >> Ps, I upgraded to libc6 with this pointer :
> http://huizen.dds.nl/~frodol/glibc/.
> >> No problems , works fine. Build KDE on it. The find_solib error in gdb=
>  was
> >> because I didnt switched the environment (libc5), so thats not the poi=
> nt.
> >>=20
> >
> >How did you upgrade to libc6? It is not recommended to everyone since
> >it can lead to a broken system very easily if you don't know what you
> >are doing. Under which directory you install libc6?
> >
> 
> I upgraded just like said in Frodol's step by step guide. I installed it =
> in
> /usr/i586-linux-libc6/lib. I havent noticed any problems except compiling
> egcs.
> The trick in this guide is that you can switch between your primary libc5=
>  and
> libc6 very easily. If you see any flaws please tell me.=20
> =20

Personally, I won't do it that way. It has so many problems. You have
to know what you are doing. I suggest you get a new glibc 2 based system
instead. I am running RedHat 5.2 now. I have no serious problem.

I don't have the time to write things down in details. If you want to
install glibc 2 under /usr, you can try

1. Install my egcs-1.0.3-libc5.x86.tar.bz2.
2. Configre glibc 2 with --prefix=/usr.
3. Build/install glibc 2.
4. Install my egcs-1.0.3-glibc.x86.tar.bz2.
5. Remove all header files which are not overwritten by the
header files from glibc 2.
6. Add /usr/i486-linux-libc5/lib to /etc/ld.so.conf.
7. Copy all the old shared libraries to /usr/i486-linux-libc5/lib,
excluding those in /lib. 
8. Run ldconfig.
9. Remove all the old libraries, except for those in
/usr/i486-linux-libc5/lib and /lib, with "rm -f".
10. Remove the old lib*.so in /lib.
11. Do
# sync
# sync
# sync
# sync
and then push the reset button.
12. Configure egcs as
# ...../configure --enable-shared --enable-threads --prefix=/usr --with-local-prefix=/usr/local
13. Build/install egcs.
14. Recompile any libraries you want to use to build programs.

Now you are done. You can recompile any programs to link against glibc 2.

As I said, it is very tricky. You have to know what you are
doing.


H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]