bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libtool 2.2] testsuite: 19 35 36 44 45 46 48 49 50 51 52 53 60 61 6


From: Ralf Wildenhues
Subject: Re: [libtool 2.2] testsuite: 19 35 36 44 45 46 48 49 50 51 52 53 60 61 62 64 failed [GNU/Linux PowerPC]
Date: Thu, 6 Mar 2008 20:10:04 +0100
User-agent: Mutt/1.5.17+20080114 (2008-01-14)

Hello Nelson, Peter,

* Peter O'Gorman wrote on Thu, Mar 06, 2008 at 06:18:42AM CET:
> Nelson H. F. Beebe wrote:
> 
> > libtool: compile:  gcj -g -O2 -c A3.java 
> > gcj: libgcj.spec: No such file or directory

> Your gcj and automake are broken. Do you have a sane toolchain on any of
> your systems?

First off, let us thank Nelson for doing all this testing work for us.
Thank you!

Then, let's avoid us getting blame for broken gcj installations.
OK to apply this patch to avoid the gcj test when a compile would fail?
Or do you feel tests for working compilers should be done in configure
already?

Cheers,
Ralf

2008-03-06  Ralf Wildenhues  <address@hidden>

        * tests/convenience.at (Java convenience archives): Skip test if
        gcj cannot compile a .java file.
        Report by Nelson H. F. Beebe.

Index: tests/convenience.at
===================================================================
RCS file: /cvsroot/libtool/libtool/tests/convenience.at,v
retrieving revision 1.8
diff -u -r1.8 convenience.at
--- tests/convenience.at        25 Mar 2007 12:12:43 -0000      1.8
+++ tests/convenience.at        6 Mar 2008 19:05:17 -0000
@@ -1,6 +1,6 @@
 # convenience.at -- testing C convenience archives            -*- Autotest -*-
 
-#   Copyright (C) 2005, 2007 Free Software Foundation, Inc.
+#   Copyright (C) 2005, 2007, 2008 Free Software Foundation, Inc.
 #   Written by Ralf Wildenhues, 2005
 #
 #   This file is part of GNU Libtool.
@@ -258,6 +258,14 @@
   public A$i () { a = 0; }
 };
 EOF
+
+  # There are just too many broken gcj installations out there, either missing
+  # libgcj.spec or unable to find it.  Skip this test for them.
+  if test $i -eq 1; then
+    AT_CHECK[($GCJ $GCJFLAGS -c foo1.java || exit 77], [], [ignore], [ignore])
+    rm -f foo1.o foo1.obj
+  fi
+
   $LIBTOOL --tag=GCJ --mode=compile $GCJ $GCJFLAGS -c foo$i.java
   $LIBTOOL --tag=GCJ --mode=compile $GCJ $GCJFLAGS -c A$i.java
   $LIBTOOL --tag=GCJ --mode=link $GCJ $GCJFLAGS $LDFLAGS -o liba$i.la A$i.lo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]