public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* egcs-970929: SunOS and --enable-shared - HOW?
@ 1997-10-08  1:51 Manfred Hollstein
  1997-10-09  2:08 ` Alexandre Oliva
  0 siblings, 1 reply; 4+ messages in thread
From: Manfred Hollstein @ 1997-10-08  1:51 UTC (permalink / raw)
  To: egcs

Hi,

I'm just trying to build egcs using:

$ env CC=gcc CFLAGS=-O   LDFLAGS=-s INSTALL="/tools/gnu/bin/install -c" INSTALL_DATA="/tools/gnu/bin/install -c -m 644" INSTALL_PROGRAM="/tools/gnu/bin/install -c -m 755" /bin/sh ../egcs-970929/configure sparc-sun-sunos4.1.4 --srcdir=../egcs-970929 --prefix=/u/b60/manfred/gnu/sparc-sun-sunos4 --with-gnu-as --enable-shared --with-gxx-include-dir='/u/b60/manfred/gnu/sparc-sun-sunos4/lib/gcc-lib/sparc-sun-sunos4.1.4/egcs-2.90.11/include/g++' --with-local-prefix=/u/b60/manfred/gnu/sparc-sun-sunos4 --verbose

Building the compiler went  fine, but building the shared  libstdc++'s
fails miserably:

/u/b60/manfred/work/GNU/egcs-970929-sparc-sun-sunos4.1.4/gcc/xgcc -B/u/b60/manfred/work/GNU/egcs-970929-sparc-sun-sunos4.1.4/gcc/ -g -O2 -fno-implicit-templates  -fpic -fPIC -shared -o libstdc++.so.2.8.0 `cat piclist` 
ld: /u/b60/manfred/work/GNU/egcs-970929-sparc-sun-sunos4.1.4/gcc/libgcc.a(_eh.o): assert pure-text failed: reference to [offset] at 1f874 in /u/b60/manfred/work/GNU/egcs-970929-sparc-sun-sunos4.1.4/gcc/libgcc.a

ld: /u/b60/manfred/work/GNU/egcs-970929-sparc-sun-sunos4.1.4/gcc/libgcc.a(_eh.o): assert pure-text failed: reference to [offset] at 1f878 in /u/b60/manfred/work/GNU/egcs-970929-sparc-sun-sunos4.1.4/gcc/libgcc.a

[lots of messages deleted]

There seem to be two problems:

  1. PICFLAG=-fPIC
     is declared unconditionally although this should come from the
     multilib stuff

  2. $ ./xgcc -B./ --print-multi-lib
     .;
     pic;@fpic		# Error occurs here
     ucpic;@fPIC
     v8;@mcpu=v8
     pic/v8;@fpic@mcpu=v8
     ucpic/v8;@fPIC@mcpu=v8

     Why is xgcc using libgcc.a from ${libsubdir} instead of
     ${libsubdir}/pic ?

Can anybody who believes  to  have built a  shared libstdc++  on SunOS
successfully shed some light on this?

Thanks
--
 Manfred Hollstein                               Alcatel, Dept. US/EC4
 < mailto:manfred@lts.sel.alcatel.de >             Lorenzstrasse 10
                                                 70435 Stuttgart
 Public PGP key on request                       Germany

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1997-10-10  8:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-10-08  1:51 egcs-970929: SunOS and --enable-shared - HOW? Manfred Hollstein
1997-10-09  2:08 ` Alexandre Oliva
1997-10-10  8:51   ` Manfred Hollstein
1997-10-10  8:51   ` Manfred Hollstein

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).