This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: PATCH: PR ia64/14925: libunwind enabled gcc generates incompatible libgcc_s.so.1


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.


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