public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* gen-classlist.sh problem while building gcc 4.2.4
@ 2008-08-01 14:38 David Eisner
  2008-08-02 12:30 ` Ralf Wildenhues
  0 siblings, 1 reply; 5+ messages in thread
From: David Eisner @ 2008-08-01 14:38 UTC (permalink / raw)
  To: gcc-help

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-08-06 17:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-01 14:38 gen-classlist.sh problem while building gcc 4.2.4 David Eisner
2008-08-02 12:30 ` Ralf Wildenhues
2008-08-06 16:52   ` David Eisner
2008-08-06 17:34     ` David Eisner
2008-08-07  3:15     ` David Eisner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).