NetBSD Problem Report #42864

From www@NetBSD.org  Mon Feb 22 15:56:18 2010
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 0E46D63C596
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 22 Feb 2010 15:56:18 +0000 (UTC)
Message-Id: <20100222155617.9F58763C594@www.NetBSD.org>
Date: Mon, 22 Feb 2010 15:56:17 +0000 (UTC)
From: rsff@sapo.pt
Reply-To: rsff@sapo.pt
To: gnats-bugs@NetBSD.org
Subject: building the kernel for NSLU fails due netbsd binutils
X-Send-Pr-Version: www-1.0

>Number:         42864
>Category:       port-arm
>Synopsis:       building the kernel for NSLU fails due netbsd binutils
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-arm-maintainer
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 22 16:00:00 +0000 2010
>Closed-Date:    Sun Jun 06 01:03:59 +0000 2010
>Last-Modified:  Sun Jun 06 01:03:59 +0000 2010
>Originator:     Ricardo
>Release:        5.99.24
>Organization:
>Environment:
rsff@meh:~/net/src$ uname -a
Linux meh 2.6.31-19-generic #56-Ubuntu SMP Thu Jan 28 01:26:53 UTC 2010 i686 GNU/Linux


>Description:
while building  the kernel for nslu2 i get this error :

rsff@meh:~/net/src$ ./build.sh -N 2 -u -m evbarm -a armeb kernel=NSLU2
/home/rsff/net/src/obj/tooldir.Linux-2.6.31-19-generic-i686/bin/armeb--netbsdelf-ld: BFD (NetBSD Binutils nb1) 2.19.1 internal error, aborting at /home/rsff/net/src/tools/binutils/../../external/gpl3/binutils/dist/bfd/elf.c line 370 in bfd_elf_get_elf_syms
/home/rsff/net/src/obj/tooldir.Linux-2.6.31-19-generic-i686/bin/armeb--netbsdelf-ld: Please report this bug.

*** Failed target:  ixp425_fw.o
full output @-->http://www.pastebin.com/m4b46aa12
i used the NPElibrary without crypto version 2.4 and followed the README

after that error when i repeat the same process i get another error that i assume that is arising from previous error like mangling the content ixp425_fw.o-->

/home/rsff/net/src/obj/tooldir.Linux-2.6.31-19-generic-i686/bin/armeb--netbsdelf-ld -Map netbsd.map --cref -T ldscript -X -o netbsd ${SYSTEM_OBJ} ${EXTRA_OBJ} vers.o
ixp425_fw.o: file not recognized: File truncated

full output@http://www.pastebin.com/m1a9f1c18


>How-To-Repeat:
just following this tutorial-->http://mail-index.netbsd.org/port-arm/2008/01/26/0003.html
the 
$ cd ~/net/src
$ ./build.sh -u -m evbarm -a armeb kernel=NSLU2


>Fix:

>Release-Note:

>Audit-Trail:
From: "Jonathan A. Kollasch" <jakllsch@kollasch.net>
To: gnats-bugs@NetBSD.org
Cc: rsff@sapo.pt
Subject: Re: port-arm/42864: building the kernel for NSLU fails due netbsd
 binutils
Date: Mon, 22 Feb 2010 17:41:47 +0000

 --UlVJffcvxoiEqYs2
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline

 Attached patch seems to fix the build issue.
 Can you test if the resulting kernel works?

 --UlVJffcvxoiEqYs2
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="ixpfw.patch"

 Index: sys/arch/arm/xscale/ixp425-fw.mk
 ===================================================================
 RCS file: /cvsroot/src/sys/arch/arm/xscale/ixp425-fw.mk,v
 retrieving revision 1.1
 diff -u -r1.1 ixp425-fw.mk
 --- sys/arch/arm/xscale/ixp425-fw.mk	10 Dec 2006 10:01:49 -0000	1.1
 +++ sys/arch/arm/xscale/ixp425-fw.mk	22 Feb 2010 17:37:55 -0000
 @@ -17,5 +17,5 @@
  ixp425_fw.o:	$S/arch/arm/xscale/IxNpeMicrocode.dat
  	-rm -f ${.OBJDIR}/IxNpeMicrocode.dat
  	-ln -s $S/arch/arm/xscale/IxNpeMicrocode.dat ${.OBJDIR}
 -	${LD} -b binary -d -warn-common -r -d -o ${.TARGET} IxNpeMicrocode.dat
 +	${OBJCOPY} -I binary -O default -B arm IxNpeMicrocode.dat ${.TARGET}
  .endif

 --UlVJffcvxoiEqYs2--

From: ricardo <rsff@sapo.pt>
To: gnats-bugs@NetBSD.org
Cc: "Jonathan A. Kollasch" <jakllsch@kollasch.net>, 
 port-arm-maintainer@netbsd.org, gnats-admin@netbsd.org, 
 netbsd-bugs@netbsd.org
Subject: Re: port-arm/42864: building the kernel for NSLU fails due netbsd
 binutils
Date: Mon, 22 Feb 2010 20:32:56 +0000

 On 22-02-2010 17:45, Jonathan A. Kollasch wrote:
 > The following reply was made to PR port-arm/42864; it has been noted by GNATS.
 >
 > From: "Jonathan A. Kollasch"<jakllsch@kollasch.net>
 > To: gnats-bugs@NetBSD.org
 > Cc: rsff@sapo.pt
 > Subject: Re: port-arm/42864: building the kernel for NSLU fails due netbsd
 >   binutils
 > Date: Mon, 22 Feb 2010 17:41:47 +0000
 >
 >   --UlVJffcvxoiEqYs2
 >   Content-Type: text/plain; charset=us-ascii
 >   Content-Disposition: inline
 >
 >   Attached patch seems to fix the build issue.
 >   Can you test if the resulting kernel works?
 >
 >   --UlVJffcvxoiEqYs2
 >   Content-Type: text/plain; charset=us-ascii
 >   Content-Disposition: attachment; filename="ixpfw.patch"
 >
 >   Index: sys/arch/arm/xscale/ixp425-fw.mk
 >   ===================================================================
 >   RCS file: /cvsroot/src/sys/arch/arm/xscale/ixp425-fw.mk,v
 >   retrieving revision 1.1
 >   diff -u -r1.1 ixp425-fw.mk
 >   --- sys/arch/arm/xscale/ixp425-fw.mk	10 Dec 2006 10:01:49 -0000	1.1
 >   +++ sys/arch/arm/xscale/ixp425-fw.mk	22 Feb 2010 17:37:55 -0000
 >   @@ -17,5 +17,5 @@
 >    ixp425_fw.o:	$S/arch/arm/xscale/IxNpeMicrocode.dat
 >    	-rm -f ${.OBJDIR}/IxNpeMicrocode.dat
 >    	-ln -s $S/arch/arm/xscale/IxNpeMicrocode.dat ${.OBJDIR}
 >   -	${LD} -b binary -d -warn-common -r -d -o ${.TARGET} IxNpeMicrocode.dat
 >   +	${OBJCOPY} -I binary -O default -B arm IxNpeMicrocode.dat ${.TARGET}
 >    .endif
 >
 >   --UlVJffcvxoiEqYs2--
 >
 >
 >
 >    
 Hello there!
 sorry for the delay
 yep its working!!!

 kudos for the fast response!!

From: "Jonathan A. Kollasch" <jakllsch@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/42864 CVS commit: src/sys/arch/arm/xscale
Date: Fri, 26 Mar 2010 15:55:33 +0000

 Module Name:	src
 Committed By:	jakllsch
 Date:		Fri Mar 26 15:55:33 UTC 2010

 Modified Files:
 	src/sys/arch/arm/xscale: ixp425-fw.mk

 Log Message:
 Use objcopy rather than ld to copy Intel NPE firmware blob into ELF.
 Avoids internal error in newer binutils ld.
 Should fix PR/42864 and PR/43057.


 To generate a diff of this commit:
 cvs rdiff -u -r1.1 -r1.2 src/sys/arch/arm/xscale/ixp425-fw.mk

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: mrg@NetBSD.org
State-Changed-When: Sun, 06 Jun 2010 01:03:59 +0000
State-Changed-Why:
jak commited a fix for this a couple of months ago


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.