This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: egcs-980221: build fails for shared libstdc++ on HP-UX 10.20
- To: Manfred Hollstein <manfred at s-direktnet dot de>
- Subject: Re: egcs-980221: build fails for shared libstdc++ on HP-UX 10.20
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Thu, 26 Feb 1998 02:13:47 -0700
- cc: geordie at lucent dot com, oliva at dcc dot unicamp dot br, kriol at fnal dot gov, egcs-bugs at cygnus dot com
- Reply-To: law at cygnus dot com
In message <199802260722.IAA00538@saturn.s-direktnet.de>you write:
> > Well, I'll give it a spin myself in an empty directory.
>
> Yep, this is what I'll be doing next, too.
It definitely fails for a build in a "clean" source directory. Looking
more closely at it -- -fPIC was never passed to the compiler when building
the component .o files or when actually creating the shared library:
if [ x"yes" = xyes ]; then \
/var/tmp/egcs/gcc/xgcc -B/var/tmp/egcs/gcc/ -c -g -O2 -fno-implicit-templates -I. -I./stl -I../libio -I./../libio -nostdinc++ -DLD \
`for N in MAIN ADDCC ADDCF ADDFC SUBCC SUBCF SUBFC MULCC MULCF MULFC DIVCC DIVCF DIVFC PLUS MINUS EQCC EQCF EQFC NECC NECF NEFC ABS ARG POLAR CONJ NORM COS COSH EXP LOG POWCC POWCF POWCI POWFC SIN SINH SQRT; do echo " -D${N}"; done` \
./cinst.cc -o pic/ldcomplex.o; \
else true ; fi
/var/tmp/egcs/gcc/xgcc -B/var/tmp/egcs/gcc/ -c -g -O2 -fno-implicit-templates -I. -I./stl -I../libio -I./../libio -nostdinc++ -DLD `for N in MAIN ADDCC ADDCF ADDFC SUBCC SUBCF SUBFC MULCC MULCF MULFC DIVCC DIVCF DIVFC PLUS MINUS EQCC EQCF EQFC NECC NECF NEFC ABS ARG POLAR CONJ NORM COS COSH EXP LOG POWCC POWCF POWCI POWFC SIN SINH SQRT; do echo " -D${N}"; done` \
./cinst.cc -o ldcomplex.o
So we need to fix this..
I'll try a build outside of the source tree overnight.
jeff