[I can't decide if this should be reported against gcc or classpath. Apologies if I got it wrong.]
My gcc build is failing when gen-classlist.sh is invoked, in two places: First place: top_builddir=.. top_srcdir=../../../../../../gcc-4.2.4/libjava/classpath /bin/sh ./gen-classlist.sh standard Adding java source files from srcdir '../../../../../../gcc-4.2.4/libjava/classpath'. Adding java source files from VM directory /export/data/software/cradle/build/gcc/gcc-4.2.4/libjava Adding java source files from VM directory /export/data/software/cradle/build/gcc/objdir/sparc-sun-solaris2.9/sparcv9/libjava ./gen-classlist.sh: test: unknown operator -ef make: *** [genclasses] Error 1 Second place: Adding java source files from srcdir '../../../../../../gcc-4.2.4/libjava/classpath'. Adding java source files from VM directory /export/data/software/cradle/build/gcc/gcc-4.2.4/libjava Adding java source files from VM directory /export/data/software/cradle/build/gcc/objdir/sparc-sun-solaris2.9/sparcv9/libjava Adding generated files in builddir '..'. ./gen-classlist.sh: test: argument expected make: *** [genclasses] Error 1 The first problem occurs because on Solaris 9, at least, the /bin/sh test built-in doesn't understand the -ef operator, and the second problem occurs because it doesn't understand the -e operator. From the Solaris test(1) man page: ---8<--- file1 -ef file2 True if file1 and file2 exist and refer to the same file. (Not available in sh.) ... -e file True if file exists. (Not available in sh.) --->8--- Workaround: In gen-classlist.sh, replace those two calls to test with /usr/bin/test. -- Summary: gen-classlist.sh uses unrecognized 'test' arguments Product: gcc Version: 4.2.4 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: deisner at gmail dot com GCC build triplet: sparc-sun-solaris2.9 GCC host triplet: sparc-sun-solaris2.9 GCC target triplet: sparc-sun-solaris2.9 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37000