gen-classlist.sh problem while building gcc 4.2.4

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

 



Still trying to build gcc-4.2.4 on a Solaris 9 box.  During stage 3, I
run into this problem:

cannes [lib]$ make
true
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

The problem appears to be that the built-in 'test'  operator in the
/bin/sh Bourne shell that ships with Solaris 9 doesn't understand the
-ef operator, though bash does:

cannes [lib]$ /bin/sh -c 'test foo -ef bar && echo same'
/bin/sh: test: unknown operator -ef
cannes [lib]$ /usr/bin/bash -c 'test foo -ef bar && echo same'
cannes [lib]$

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

Workaround: in gen-classlist.sh, change
   if test ! "${top_builddir}" -ef
"../../../../../../gcc-4.2.4/libjava/classpath"; then
to
   if /usr/bin/test ! "${top_builddir}" -ef
"../../../../../../gcc-4.2.4/libjava/classpath"; then

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.

-David


-- 
David Eisner http://cradle.brokenglass.com

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux