This is the mail archive of the gcc-help@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]
Other format: [Raw text]

Re: gen-classlist.sh problem while building gcc 4.2.4


David Eisner <deisner <at> gmail.com> writes:
> Still trying to build gcc-4.2.4 on a Solaris 9 box.  During stage 3, I
> run into this problem:

> ./gen-classlist.sh: test: unknown operator -ef
> make: *** [genclasses] Error 1

> I couldn't find this in the bug database.  Should I report it?

This is <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25557>.
If this isn't a regression (which I'm not sure of), then I guess this
bug won't be fixed in the branch.

The relevant diff between branch-4_2 and branch-4_3 is this (which looks
a bit different from the patch proposed in that PR):

--- gen-classlist.sh.in       2008-02-13 20:44:41.000000000 +0100
+++ gen-classlist.sh.in       2008-02-19 21:08:25.000000000 +0100
@@ -55,7 +62,9 @@
 done

 # Only include generated files once.
-if test ! "${top_builddir}" -ef "@top_srcdir@"; then
+abs_top_builddir=`cd "${top_builddir}"; pwd`
+abs_top_srcdir=`cd "@top_srcdir@"; pwd`
+if test "$abs_top_builddir" != "$abs_top_srcdir"; then
   echo "Adding generated files in builddir '${top_builddir}'."
   # Currently the only generated files are in gnu.*.
   (cd ${top_builddir}; @FIND@ gnu -follow -name '*.java' -print) |
@@ -95,7 +104,7 @@
 rm tmp.omit

 new=
-if test -e ${top_builddir}/lib/classes.2; then
+if test -f ${top_builddir}/lib/classes.2; then
   p=`diff ${top_builddir}/lib/classes.2 ${top_builddir}/lib/classes.1`
   if test "$p" != ""; then
     new="true"


> By the way, I'm not sure why it's even building java.  I didn't
> include java in the enabled languages when I ran configure.  I guess
> it knows best.

Try passing --enable-languages explicitly.

Cheers,
Ralf



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