All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wenji Huang <wenji.huang@oracle.com>
To: Sam Ravnborg <sam@ravnborg.org>
Cc: linux-kbuild@vger.kernel.org, lkml <linux-kernel@vger.kernel.org>
Subject: Building error of 2.6.29-rc1 using old binutils
Date: Tue, 13 Jan 2009 11:23:10 +0800	[thread overview]
Message-ID: <496C091E.1000003@oracle.com> (raw)
In-Reply-To: <496C06D0.3060903@oracle.com>

Hi,

Sorry, resend it in terms of correct subject.

I got the following building error for 2.6.29-rc1.
# make
   CHK     include/linux/version.h
   CHK     include/linux/utsrelease.h
   SYMLINK include/asm -> include/asm-x86
   CALL    scripts/checksyscalls.sh
   CHK     include/linux/compile.h
   IHEX    firmware/e100/d101m_ucode.bin
   AS      firmware/e100/d101m_ucode.bin.gen.o
   IHEX    firmware/e100/d101s_ucode.bin
   AS      firmware/e100/d101s_ucode.bin.gen.o
   IHEX    firmware/e100/d102e_ucode.bin
   AS      firmware/e100/d102e_ucode.bin.gen.o
   LD      firmware/built-in.o
   LD      vmlinux.o
   MODPOST vmlinux.o
   GEN     .version
   CHK     include/linux/compile.h
   UPD     include/linux/compile.h
   CC      init/version.o
   LD      init/built-in.o
   LD      .tmp_vmlinux1
   STRIP   .tmp_vmlinux1.stripped
objcopy: unrecognized option `--strip-unneeded-symbols'

# objcopy --version
GNU objcopy 2.15.92.0.2 20040927
Copyright 2004 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.


The option --strip-unneeded-symbols is only available on higher version, 
but not exists on binutils-2.15.

Seems to keep Makefile compatible on all kinds of circumstances. Like,

quiet_cmd_kstrip = STRIP   $@
       cmd_kstrip = $(OBJCOPY) --wildcard $(addprefix --strip-symbols 
,$(filter %/scripts/strip-symbols,$^)) $< $@


Regards,
Wenji



  reply	other threads:[~2009-01-13  3:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-18  2:08 [PATCH] Kbuild: generate debug info in building Wenji Huang
2008-11-22 11:43 ` Sam Ravnborg
2008-11-26  5:51   ` Wenji Huang
2009-01-13  3:13   ` Wenji Huang
2009-01-13  3:23     ` Wenji Huang [this message]
2009-01-13  6:04       ` Building error of 2.6.29-rc1 using old binutils Wenji Huang

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=496C091E.1000003@oracle.com \
    --to=wenji.huang@oracle.com \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sam@ravnborg.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.