This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: PR ia64/14925: libunwind enabled gcc generates incompatible libgcc_s.so.1
- From: "H. J. Lu" <hjl at lucon dot org>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: Mark Mitchell <mark at codesourcery dot com>, gcc-patches at gcc dot gnu dot org,davidm at hpl dot hp dot com, James E Wilson <wilson at specifixinc dot com>,rth at redhat dot com
- Date: Sat, 4 Sep 2004 07:25:28 -0700
- Subject: Re: PATCH: PR ia64/14925: libunwind enabled gcc generates incompatible libgcc_s.so.1
- References: <20040824161949.GA18964@lucon.org> <1093383883.29568.16.camel@aretha.corp.specifixinc.com> <20040825063331.GA32596@lucon.org> <16684.17472.389422.186130@napali.hpl.hp.com> <412C44CE.8050603@codesourcery.com> <20040826150308.GA31391@lucon.org> <je656uv1jn.fsf@sykes.suse.de> <jek6vatct1.fsf@sykes.suse.de>
On Sat, Sep 04, 2004 at 02:54:02PM +0200, Andreas Schwab wrote:
> Andreas Schwab <schwab@suse.de> writes:
>
> > "H. J. Lu" <hjl@lucon.org> writes:
> >
> >> Here is the version for mainline. The one for gcc 3.4 branch is at
> >>
> >> http://gcc.gnu.org/ml/gcc-patches/2004-08/msg01398.html
> >>
> >> They have been tested on ia64, ia32 and x86_64. Are they OK for
> >> mainline and 3.4?
> >
> > This breaks bootstrap.
> >
> > stage1/xgcc -Bstage1/ -B/usr/local/ia64-suse-linux/bin/ -DUSE_LIBUNWIND_EXCEPTIONS -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Werror -fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -o gengenrtl \
> > gengenrtl.o build-errors.o ../build-ia64-suse-linux/libiberty/libiberty.a
> > ./gengenrtl -h > tmp-genrtl.h
> > ./gengenrtl: error while loading shared libraries: libunwind.so.7: cannot open shared object file: No such file or directory
> > make[2]: *** [s-genrtl] Error 127
>
> This is with binutils-2.15.90.0.1.1. The failure does not happen with
> binutils-2.15.91.0.2.
>
You should use a linker which supports --as-needed/--no-as-needed.
Otherwise, you will run into problem with libgcc_s.so.1 also.
H.J.