public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Manfred Hollstein <manfred@ks.sel.alcatel.de>
To: egcs@cygnus.com
Subject: egcs-970929: SunOS and --enable-shared - HOW?
Date: Wed, 08 Oct 1997 01:51:00 -0000	[thread overview]
Message-ID: <9710080752.AA23586@lts.sel.alcatel.de> (raw)

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

             reply	other threads:[~1997-10-08  1:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-10-08  1:51 Manfred Hollstein [this message]
1997-10-09  2:08 ` Alexandre Oliva
1997-10-10  8:51   ` Manfred Hollstein
1997-10-10  8:51   ` Manfred Hollstein

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9710080752.AA23586@lts.sel.alcatel.de \
    --to=manfred@ks.sel.alcatel.de \
    --cc=egcs@cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).