NetBSD Problem Report #33335

From yamt@mwd.biglobe.ne.jp  Sat Apr 22 09:28:07 2006
Return-Path: <yamt@mwd.biglobe.ne.jp>
Received: from yamt.dyndns.org (FLA1Ace136.kng.mesh.ad.jp [203.136.242.136])
	by narn.netbsd.org (Postfix) with ESMTP id 7C48F63B8A5
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 22 Apr 2006 09:28:06 +0000 (UTC)
Message-Id: <1145698077.577898.321.nullmailer@yamt.dyndns.org>
Date: Sat, 22 Apr 2006 18:27:57 +0900
From: yamt@mwd.biglobe.ne.jp
Reply-To: yamt@mwd.biglobe.ne.jp
To: gnats-bugs@netbsd.org
Subject: NSLU2 libkern failure
X-Send-Pr-Version: 3.95

>Number:         33335
>Category:       port-evbarm
>Synopsis:       NSLU2 libkern failure
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-evbarm-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 22 09:30:00 +0000 2006
>Closed-Date:    Sun Apr 23 14:13:07 +0000 2006
>Last-Modified:  Sun Apr 23 14:15:03 +0000 2006
>Originator:     YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
>Release:        NetBSD 3.99.17
>Organization:

>Environment:


System: NetBSD kaeru 3.99.17 NetBSD 3.99.17 (build.kaeru.xen.nodebug.work) #9: Tue Apr 11 22:13:48 JST 2006 takashi@kaeru:/usr/home/takashi/work/kernel/build.kaeru.xen.nodebug.work i386
Architecture: i386
Machine: i386
>Description:

% sh ./build.sh -T /tmp/tools -M /tmp/obj -m evbarm tools kernel=NSLU2

<...snip...>

    compile  kern/xlat_mbr_fstype.o
    compile  kern/strchr.o
    compile  kern/strrchr.o
building standard kern library
/tmp/tools/bin/arm--netbsdelf-ld: strrchr.o: compiled for a big endian system and target is little endian
/tmp/tools/bin/arm--netbsdelf-ld: failed to merge target specific data of file strrchr.o
/tmp/tools/bin/arm--netbsdelf-ld: strchr.o: compiled for a big endian system and target is little endian
/tmp/tools/bin/arm--netbsdelf-ld: failed to merge target specific data of file strchr.o

<...snip...> (the same messages on each files)

/tmp/tools/bin/arm--netbsdelf-ld: failed to merge target specific data of file qdivrem.o
/tmp/tools/bin/arm--netbsdelf-ld: divsi3.o: compiled for a big endian system and target is little endian
/tmp/tools/bin/arm--netbsdelf-ld: failed to merge target specific data of file divsi3.o

*** Failed target:  libkern.o
*** Failed command: /tmp/tools/bin/arm--netbsdelf-ld -r -o libkern.o `NM=/tmp/tools/bin/arm--netbsdelf-nm NM=/tmp/tools/bin/arm--netbsdelf-nm MKTEMP=/tmp/tools/
bin/nbmktemp /tmp/tools/bin/nblorder __assert.o __main.o bswap64.o byte_swap_2.o byte_swap_4.o ffs.o imax.o imin.o lmax.o lmin.o max.o min.o random.o scanc.o skpc.o strcat.o strcasecmp.o strcpy.o strlen.o strncasecmp.o strncpy.o strtoul.o ulmax.o ulmin.o divsi3.o memchr.o memcmp.o memcpy.o memset.o memmove.o strcmp.o strncmp.o adddi3.o anddi3.o ashldi3.o ashrdi3.o cmpdi2.o divdi3.o iordi3.o lshldi3.o lshrdi3.o moddi3.o muldi3.o negdi2.o notdi2.o qdivrem.o subdi3.o ucmpdi2.o udivdi3.o umoddi3.o xordi3.o __cmsg_alignbytes.o inet_addr.o intoa.o md4c.o md5c.o sha1.o pmatch.o _que.o arc4random.o bcd.o mcount.o strstr.o strlcpy.o strlcat.o xlat_mbr_fstype.o strchr.o strrchr.o | /tmp/tools/bin/nbtsort -q`
*** Error code 1

Stop.
nbmake: stopped in /tmp/obj/exports/nbsd/src/sys/arch/evbarm/compile/NSLU2/lib/kern

*** Failed target:  /tmp/obj/exports/nbsd/src/sys/arch/evbarm/compile/NSLU2/lib/kern/libkern.o
*** Failed command: cd /tmp/obj/exports/nbsd/src/sys/arch/evbarm/compile/NSLU2/lib/kern && /tmp/tools/bin/nbmake -f /exports/nbsd/src/sys/lib/libkern/Makefile KERNDIR=/exports/nbsd/src/sys/lib/libkern CC=/tmp/tools/bin/arm--netbsdelf-gcc CFLAGS=\ -pipe\ -ffreestanding\ -mcpu=xscale\ -mbig-endian\ \ -O2\ -Werror\ -Wall\ -Wno-main\ -Wno-format-zero-length\ -Wpointer-arith\ -Wmissing-prototypes\ -Wstrict-prototypes\ -Wreturn-type\ -Wswitch\ -Wshadow\ -Wcast-qual\ -Wwrite-strings\ -Wno-sign-compare\ \ -fno-zero-initialized-in-bss\ \ AS=/tmp/tools/bin/arm--netbsdelf-as AFLAGS=\ -x\ assembler-with-cpp\ -mcpu=xscale\ -mbig-endian\ -D_LOCORE LORDER=NM=/tmp/tools/bin/arm--netbsdelf-nm\ MKTEMP=/tmp/tools/bin/nbmktemp\ /tmp/tools/bin/nblorder TSORT=/tmp/tools/bin/nbtsort\ -q LD=/tmp/tools/bin/arm--netbsdelf-ld STRIP=/tmp/tools/bin/arm--netbsdelf-strip AR=/tmp/tools/bin/arm--netbsdelf-ar NM=/tmp/tools/bin/arm--netbsdelf-nm RANLIB=/tmp/tools/bin/arm--netbsdelf-ranlib SIZE=/tmp/tools/bin/a
 rm--netbsdelf-size MACHINE=evbarm MACHINE_ARCH=arm KERNCPPFLAGS=-I../../.\ -I/exports/nbsd/src/sys/arch\ -I/exports/nbsd/src/sys\ -nostdinc\ -DCONSPEED=\"115200\"\ -DCONUNIT=\"0\"\ -DDIAGNOSTIC\ -DDEBUG\ -DMAXUSERS=8\ -D_KERNEL\ -D_KERNEL_OPT\ -I/exports/nbsd/src/sys/lib/libkern/../../../common/lib/libc/quad\ -I/exports/nbsd/src/sys/lib/libkern/../../../common/lib/libc/string\ -I/exports/nbsd/src/sys/lib/libkern/../../../common/lib/libc/arch/arm/string KERNMISCCPPFLAGS= LINTFLAGS=-bcehnxzFS libkern.o
*** Error code 1

Stop.
nbmake: stopped in /tmp/obj/exports/nbsd/src/sys/arch/evbarm/compile/NSLU2

ERROR: Failed to make all in /tmp/obj/exports/nbsd/src/sys/arch/evbarm/compile/NSLU2
*** BUILD ABORTED ***

% sh ./build.sh -T /tmp/tools -M /tmp/obj -m evbarm kernel=TS7200

<works fine>

>How-To-Repeat:
	see above.
>Fix:


>Release-Note:

>Audit-Trail:
From: Steve Woodford <scw@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: port-evbarm-maintainer@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org
Subject: Re: port-evbarm/33335: NSLU2 libkern failure
Date: Sat, 22 Apr 2006 22:35:44 +0100

 On Saturday 22 April 2006 10:30, yamt@mwd.biglobe.ne.jp wrote:

 > % sh ./build.sh -T /tmp/tools -M /tmp/obj -m evbarm tools
 > kernel=NSLU2

 NSLU2 is a big-endian platform. You must pass "-a armeb" to build.sh in 
 order to build the kernel.

 Cheers, Steve

State-Changed-From-To: open->closed
State-Changed-By: yamt@netbsd.org
State-Changed-When: Sun, 23 Apr 2006 14:13:07 +0000
State-Changed-Why:
it was due to my ignorance, not a bug.


From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
To: gnats-bugs@netbsd.org
Cc: port-evbarm-maintainer@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org
Subject: Re: port-evbarm/33335: NSLU2 libkern failure
Date: Sun, 23 Apr 2006 23:11:31 +0900

 >  > % sh ./build.sh -T /tmp/tools -M /tmp/obj -m evbarm tools
 >  > kernel=NSLU2
 >  
 >  NSLU2 is a big-endian platform. You must pass "-a armeb" to build.sh in 
 >  order to build the kernel.

 it works fine.  thanks.

 YAMAMOTO Takashi

>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.