This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
3.4 PATCH: Default to static libgnat on IRIX 6
- From: Rainer Orth <ro at TechFak dot Uni-Bielefeld dot DE>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Arnaud Charlet <charlet at ACT-Europe dot FR>
- Date: Wed, 7 Jan 2004 19:52:43 +0100 (MET)
- Subject: 3.4 PATCH: Default to static libgnat on IRIX 6
During my last mainline bootstrap on mips-sgi-irix6.5, all Ada tests failed
like this:
FAIL: a22006b
ld32: FATAL 9 : I/O error (-lgnat-3.4): No such file or directory
collect2: ld returned 32 exit status
gnatlink: cannot call /.vol/gcc/obj/gcc-3.4.0-20040105/6.5-gcc-java/gcc/xgcc
gnatmake: *** link failed.
Obviously, libgnat-3.4.a doesn't exist, but only libgnat.a. It turned out
that the versioned library is used when shared libraries are enabled, but
the shared libgnat isn't build during a regular make gnatlib_and_tools.
The following patch avoids this and returns reasonable testsuite results on
IRIX 6.5:
=== acats tests ===
FAIL: c34005a
FAIL: c34005d
FAIL: c34005g
FAIL: c34005j
FAIL: ce3806d
FAIL: ce3806e
FAIL: ce3810a
FAIL: cxaa008
FAIL: cxaa009
FAIL: cxb3010
FAIL: cxb3014
There's still something strange since a couple of tests aren't run (and the
summary isn't include in acats.sum), which I'll have to investigate, but
this is still much better than before.
Ok for mainline?
(Btw, could you have a look at PR ada/13470 which seriously hinders Tru64
UNIX bootstrapping?)
Rainer
-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University
Tue Jan 6 22:38:52 2004 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* link.c [sgi] (shared_libgnat_default): Change to STATIC.
Index: gcc/ada/link.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ada/link.c,v
retrieving revision 1.7
diff -u -p -r1.7 link.c
--- gcc/ada/link.c 5 Jan 2004 15:20:44 -0000 1.7
+++ gcc/ada/link.c 7 Jan 2004 18:50:58 -0000
@@ -96,7 +96,7 @@ const char *object_file_option = "-Wl,-o
const char *run_path_option = "-Wl,-rpath,";
int link_max = 5000;
unsigned char objlist_file_supported = 1;
-char shared_libgnat_default = SHARED;
+char shared_libgnat_default = STATIC;
unsigned char using_gnu_linker = 0;
const char *object_library_extension = ".a";