This is the mail archive of the gcc@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]

Re: libtool (was: GCC 3.0: sparc-sun-solaris2.8 fails to build today)


On Jun 10, 2001, Mark Mitchell <mark@codesourcery.com> wrote:

>>>>>> "Alexandre" == Alexandre Oliva <aoliva@redhat.com> writes:
>>> I think this is good.  In fact, I think that if we can do this
>>> automatically in some way, we should try to do so.

Alexandre> I wouldn't go that far.  

> If you disagree, or if it's hard to do the automated thing, please do
> document the thing that one should do.

I don't see how to switch shells in a safe way, so I'd rather not take
that risk.  I hereby volunteer to refer to the documentation below
people who report this problem to gcc-help.

Ok to install?

s
Index: gcc/ChangeLog
from  Alexandre Oliva  <aoliva@redhat.com>
	* doc/install.texi (ix86-*-solaris*): Removed, outdated.
	(*-*-solaris*): Document problem in /bin/sh that affects
	configuring libraries.
	(sparc-*-solaris*): Recommend GNU binutils 2.11.1 or vendor tools.
	(*-sun-solaris2.8): Document linker problem that explains why
	libjava is disabled by default.

Index: gcc/doc/install.texi
===================================================================
RCS file: /cvs/gcc/egcs/gcc/doc/install.texi,v
retrieving revision 1.1.2.20
diff -u -p -r1.1.2.20 install.texi
--- gcc/doc/install.texi 2001/06/12 19:39:42 1.1.2.20
+++ gcc/doc/install.texi 2001/06/13 02:54:52
@@ -1204,8 +1204,6 @@ GNU Compiler Collection on your machine.
 @item
 @uref{#ix86-*-sco3.2v5*,,i?86-*-sco3.2v5*}
 @item
-@uref{#ix86-*-solaris*,,i?86-*-solaris*}
-@item
 @uref{#ix86-*-udk,,i?86-*-udk}
 @item
 @uref{#ix86-*-isc,,i?86-*-isc}
@@ -1951,19 +1949,6 @@ engineering and will hopefully be addres
 </p>
 <hr>
 @end html
-@heading @anchor{ix86-*-solaris*}i?86-*-solaris*
-
-GCC 2.95.2, when configured to use the GNU assembler, would invoke
-it with the @code{-s} switch, that GNU as up to 2.9.5.0.12 does
-not support.  If you'd rather not use a newer GNU as nor the native
-assembler, you'll need the patch 
-@uref{x86-sol2-gas.patch,,@file{x86-sol2-gas.patch}}.
-
-
-@html
-</p>
-<hr>
-@end html
 @heading @anchor{ix86-*-udk}i?86-*-udk
 
 This target emulates the SCO Universal Development Kit and requires that
@@ -2911,6 +2896,12 @@ error: can't compute value of an express
 This is Sun bug 4237974.  This is fixed with patch 108908-02 and has
 been fixed in later (5.x) versions of the assembler.
 
+Solaris' /bin/sh will often fail to configure libstdc++-v3, boehm-gc or
+libjava.  If you encounter this problem, set @var{CONFIG_SHELL} to
+@code{/bin/ksh} in your environment and run @samp{make bootstrap} again.
+Another possibility that sometimes helps is to remove
+@code{*-*-solaris*/config.cache}.
+
 @html
 <p>
 <hr>
@@ -2957,8 +2948,9 @@ On Solaris 2, trying to use the linker a
 For example, the linker may hang indefinitely.  The fix is to remove
 @file{/usr/ucb} from your @code{PATH}.
 
-binutils 2.9.1 has known bugs on this platform. We recommend to use
-binutils 2.10 or the vendor tools (Sun as, Sun ld).
+All releases of binutils prior to 2.11.1 have known bugs on this
+platform. We recommend to use binutils 2.11.1 or the vendor tools (Sun
+as, Sun ld).
 
 Unfortunately, C++ shared libraries, including libstdc++, won't work
 properly if assembled with Sun as: the linker will complain about
@@ -2966,7 +2958,6 @@ relocations in read-only sections, in th
 tables. Also, Sun as fails to process long symbols resulting from
 mangling template-heavy C++ function names.
 
-
 @html
 </p>
 <hr>
@@ -3026,6 +3017,12 @@ will assume that any missing type is 'in
 For Solaris 8, this is fixed by revision 24 or later of patch 108652
 (for SPARCs) or 108653 (for Intels).
 
+Solaris 8's linker fails to link some libjava programs if
+previously-installed GCC java libraries already exist in the configured
+prefix.  For this reason, libgcj is disabled by default on Solaris 8.
+If you use GNU ld, or if you don't have a previously-installed libgcj in
+the same prefix, use @code{--enable-libgcj} to build and install the
+Java libraries.
 
 @html
 <p>

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

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