public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
To: gcc-help@gcc.gnu.org
Subject: Re: gen-classlist.sh problem while building gcc 4.2.4
Date: Sat, 02 Aug 2008 12:30:00 -0000	[thread overview]
Message-ID: <loom.20080802T122314-725@post.gmane.org> (raw)
In-Reply-To: <5ef8ba410808010737mda3709r496a828176016d53@mail.gmail.com>

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


  reply	other threads:[~2008-08-02 12:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-01 14:38 David Eisner
2008-08-02 12:30 ` Ralf Wildenhues [this message]
2008-08-06 16:52   ` David Eisner
2008-08-06 17:34     ` David Eisner
2008-08-07  3:15     ` David Eisner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20080802T122314-725@post.gmane.org \
    --to=ralf.wildenhues@gmx.de \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).