This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: PR bootstrap/35752: Combined gcc + binutils source tree doesn't bootstrap
> The bootstrap works on a Debian chroot but fails in the normal system.
> My current hypothesis is that gold (the new linker) is causing the
> failure.
>
> I am currently trying to isolate the problem.
I traced the problem to libgcc_s.so.1 not being passed to the linker!!!
If I add that manually it links correctly.
In the debian chroot gcj-dbtool is built with libgcj.so. Using gold it
gets linked with libgcj.a. I don't know why this is happening, but I
am able to link both if I add libgcc_s.so.1 to liker command line.
The libtool command line is identical in both cases.
Any idea why gcj is not passing -lgcc_s to collect2? I am a bit lost.
Cheers,
--
Rafael Avila de Espindola
Google Ireland Ltd.
Gordon House
Barrow Street
Dublin 4
Ireland
Registered in Dublin, Ireland
Registration Number: 368047