Subject: port-evbarm/33335: NSLU2 libkern failure
To: None <port-evbarm-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <yamt@mwd.biglobe.ne.jp>
List: netbsd-bugs
Date: 04/22/2006 09:30:01
>Number:         33335
>Category:       port-evbarm
>Synopsis:       NSLU2 libkern failure
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-evbarm-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 22 09:30:00 +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:
	

>Unformatted: