g++ -mabi=64 testsuite failures on irix6.5

Billinghurst, David (CRTS) David.Billinghurst@riotinto.com
Mon May 21 19:59:00 GMT 2001


OK. Here is how I run the multi-abi testsuites on irix6.5.  It is a bit of a
mess, but I cannot find ways to simplify it.  Kaveh Ghazi manages to do run
multilibbed testuites on irix6.2, and gets similar results.  I am not sure
exactly how he does it.
* local patch to gcc/testsuite/lib/g++.exp (below)
* set LD_LIBRARYN32_PATH and LD_LIBRARY64_PATH explicitly
* run multilibbed "make check-gcc"
* run libstdc++-v3 testsuite for -n32 only

LD_LIBRARYN32_PATH=${OBJDIR}/gcc:${OBJDIR}/mips-sgi-irix6.5/libobjc/.libs:${
OBJDIR}/mips-sgi-irix6.5/libstdc++-v3/src/.libs
export LD_LIBRARYN32_PATH
LD_LIBRARY64_PATH=${OBJDIR}/gcc:${OBJDIR}/mips-sgi-irix6.5/mabi=64/libobjc/.
libs:${OBJDIR}/mips-sgi-irix6.5/mabi=64/libstdc++v3/src/.libs
export LD_LIBRARY64_PATH

make -k RUNTESTFLAGS='--target_board \"unix{,-mabi=64}\"' check-gcc >
check-gcc.log 2>&1
make -k check-target-libstdc++-v3 > check-target-libstdc++-v3.log 2>&1


Index: g++.exp
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/lib/g++.exp,v
retrieving revision 1.19
diff -u -r1.19 g++.exp
--- g++.exp	2001/05/14 01:27:23	1.19
+++ g++.exp	2001/05/22 02:18:04
@@ -148,6 +148,18 @@
           append flags "-L${librx} ";
       }
     }
+
+    # On IRIX 6, we have to set variables akin to LD_LIBRARY_PATH, but
+    # called LD_LIBRARYN32_PATH (for the N32 ABI) and LD_LIBRARY64_PATH
+    # (for the 64-bit ABI).  The right way to do this would be to modify
+    # unix.exp -- but that's not an option since it's part of DejaGNU
+    # proper, so we do it here.  We really only need to do 
+    # this on IRIX, but it shouldn't hurt to do it anywhere else.
+    setenv  LD_LIBRARY_PATH     $ld_library_path
+    setenv  SHLIB_PATH          $ld_library_path
+    setenv  LD_LIBRARYN32_PATH  $ld_library_path
+    setenv  LD_LIBRARY64_PATH   $ld_library_path
+
     return "$flags"
 }
 
@@ -292,20 +304,6 @@
 	return $text
     }
 }
-
-# On IRIX 6, we have to set variables akin to LD_LIBRARY_PATH, but
-# called LD_LIBRARYN32_PATH (for the N32 ABI) and LD_LIBRARY64_PATH
-# (for the 64-bit ABI).  The right way to do this would be to modify
-# unix.exp -- but that's not an option since it's part of DejaGNU
-# proper, so we do it here, by trickery.  We really only need to do 
-# this on IRIX, but it shouldn't hurt to do it anywhere else.
-
-proc g++_set_ld_library_path { name element op } {
-  setenv LD_LIBRARYN32_PATH [getenv LD_LIBRARY_PATH]
-  setenv LD_LIBRARY64_PATH [getenv LD_LIBRARY_PATH]
-}
-
-trace variable env(LD_LIBRARY_PATH) w g++_set_ld_library_path
 
 # Utility used by mike-g++.exp and old-dejagnu.exp.
 # Check the compiler(/assembler/linker) output for text indicating that


> -----Original Message-----
> From:	Jeffrey Oldham [SMTP:oldham@codesourcery.com]
> Sent:	Tuesday, 22 May 2001 10:34
> To:	Billinghurst, David (CRTS)
> Cc:	gcc-bugs@gcc.gnu.org
> Subject:	Re: g++ -mabi=64 testsuite failures on irix6.5
> 
> On Mon, May 21, 2001 at 11:32:09PM -0000, Billinghurst, David (CRTS)
> wrote:
> > Yes.  I have a work around in my local trees.  I had forgotten about it.
> > (Submitted to gcc-patches some time last year)
> 
> Will you please resurrect your patch and submit it?
> 
> 



More information about the Gcc-bugs mailing list