From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14373 invoked by alias); 1 Aug 2008 14:38:07 -0000 Received: (qmail 14348 invoked by uid 22791); 1 Aug 2008 14:38:06 -0000 X-Spam-Check-By: sourceware.org Received: from wr-out-0506.google.com (HELO wr-out-0506.google.com) (64.233.184.233) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 01 Aug 2008 14:37:35 +0000 Received: by wr-out-0506.google.com with SMTP id c53so776164wra.20 for ; Fri, 01 Aug 2008 07:37:33 -0700 (PDT) Received: by 10.90.86.9 with SMTP id j9mr14836990agb.11.1217601453294; Fri, 01 Aug 2008 07:37:33 -0700 (PDT) Received: by 10.90.28.19 with HTTP; Fri, 1 Aug 2008 07:37:33 -0700 (PDT) Message-ID: <5ef8ba410808010737mda3709r496a828176016d53@mail.gmail.com> Date: Fri, 01 Aug 2008 14:38:00 -0000 From: "David Eisner" To: gcc-help@gcc.gnu.org Subject: gen-classlist.sh problem while building gcc 4.2.4 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-08/txt/msg00000.txt.bz2 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