From: Marcelo Tosatti <marcelo.tosatti@cyclades.com>
To: linuxppc-dev@ozlabs.org
Subject: Makefile check for older binutils broken?
Date: Wed, 26 Oct 2005 11:36:48 -0200 [thread overview]
Message-ID: <20051026133648.GA10373@logos.cnet> (raw)
Hi,
While trying to compile 2.6.14-rc4 on my Pegasos (running Debian unstable):
make[2]: Entering directory `/home/marcelo/8xx/linux-2.6.14-rc4'
*** 2.6 kernels no longer build correctly with old versions of binutils.
*** Please upgrade your binutils to 2.12.1 or newer
make[2]: *** [checkbin] Error 1
Even though Debian uses a recent version of binutils:
GNU assembler 2.16.1 Debian GNU/Linux
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License. This program has absolutely no warranty.
This assembler was configured for a target of `powerpc-linux-gnu'.
The return value of the verification command is 0:
marcelo@pegasos:~$ /bin/echo dssall | as -many -o /tmp/output.as >/dev/null 2>&1
marcelo@pegasos:~$ echo $?
0
So somehow the verification inside the Makefile fails (maybe a make or shell
bug? not sure).
Anyway, surrounding the verification command around an eval expression
does the trick correcting the situation. Is it any good?
I'm not sure what to expect from older binutils versions as I don't have
any around at the moment for testing.
diff --git a/arch/ppc/Makefile b/arch/ppc/Makefile
index 0432a25..cdd9250 100644
--- a/arch/ppc/Makefile
+++ b/arch/ppc/Makefile
@@ -126,7 +126,7 @@ checkbin:
false; \
fi ; \
fi
- @if ! /bin/echo dssall | $(AS) -many -o $(TOUT) >/dev/null 2>&1 ; then \
+ @if ! [[ "/bin/echo dssall | $(AS) -many -o $(TOUT) >/dev/null 2>&1" ]] ; then \
echo -n '*** ${VERSION}.${PATCHLEVEL} kernels no longer build ' ; \
echo 'correctly with old versions of binutils.' ; \
echo '*** Please upgrade your binutils to 2.12.1 or newer' ; \
next reply other threads:[~2005-10-26 18:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-26 13:36 Marcelo Tosatti [this message]
2005-10-26 19:59 ` Makefile check for older binutils broken? Andreas Schwab
2005-10-26 16:08 ` Marcelo Tosatti
2005-10-26 22:02 ` Tom Rini
2005-10-28 8:52 ` Marcelo Tosatti
2005-10-28 16:10 ` Tom Rini
2005-10-28 13:14 ` Marcelo Tosatti
2005-11-01 16:33 ` Marcelo Tosatti
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=20051026133648.GA10373@logos.cnet \
--to=marcelo.tosatti@cyclades.com \
--cc=linuxppc-dev@ozlabs.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 NNTP newsgroup(s).