Subject: bin/26028: build.sh -j fails on Solaris cross-build
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <cross+netbsd@distal.com>
List: netbsd-bugs
Date: 06/23/2004 17:00:12
>Number:         26028
>Category:       bin
>Synopsis:       build.sh -j fails on Solaris cross-build
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 23 17:01:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Chris Ross
>Release:        2.0F (HEAD; 23-June-2004)
>Organization:
>Environment:
SunOS xxxx 5.10 s10_54 sun4u sparc SUNW,Sun-Fire-880

>Description:
  I am trying to build -current of NetBSD for each of sparc64 and i386. Both of these cross-builds are hosted from a sparc64 machine running Solaris 10_b54.

  In either run, I occassionally (and unpredictably) see this sort of failure.  The part before the error (and the error) are as follows:

-----8<-----8<-----8<-----8<-----
--- stabs.d ---
#    create  objcopy/stabs.d
CC=/data/NetBSD/obj.i386/data/NetBSD/src/tooldir.SunOS-5.10-sparc/bin/i386--netb
sdelf-gcc /data/NetBSD/obj.i386/data/NetBSD/src/tooldir.SunOS-5.10-sparc/bin/nbm
kdep -f stabs.d --      -I/data/NetBSD/src/gnu/usr.bin/binutils/objcopy/../commo
n/arch/i386 -DHAVE_CONFIG_H -D_GNU_SOURCE -Dbin_dummy_emulation=bin_vanilla_emul
ation -I/binutils -I/binutils -I/binutils/../bfd -I/binutils/../include -I/binut
ils/../intl  -I/data/NetBSD/src/gnu/lib/libbfd/arch/i386  -I/data/NetBSD/src/gnu
/usr.bin/binutils/objcopy/../../../dist/binutils/include -I/data/NetBSD/src/gnu/
usr.bin/binutils/objcopy/../../../dist/binutils/bfd -I/data/NetBSD/src/gnu/usr.b
in/binutils/objcopy/../../../dist/binutils/binutils  -DLOCALEDIR=\"/usr/share/lo
cale\"  -nostdinc -isystem /data/NetBSD/obj.i386/data/NetBSD/src/destdir.i386/us
r/include   /data/NetBSD/src/gnu/usr.bin/binutils/objcopy/../../../dist/binutils
/binutils/stabs.c
--- version.d ---
#    create  objcopy/version.d
CC=/data/NetBSD/obj.i386/data/NetBSD/src/tooldir.SunOS-5.10-sparc/bin/i386--netb
sdelf-gcc /data/NetBSD/obj.i386/data/NetBSD/src/tooldir.SunOS-5.10-sparc/bin/nbm
kdep -f version.d --      -I/data/NetBSD/src/gnu/usr.bin/binutils/objcopy/../com
mon/arch/i386 -DHAVE_CONFIG_H -D_GNU_SOURCE -Dbin_dummy_emulation=bin_vanilla_em
ulation -I/binutils -I/binutils -I/binutils/../bfd -I/binutils/../include -I/bin
utils/../intl  -I/data/NetBSD/src/gnu/lib/libbfd/arch/i386  -I/data/NetBSD/src/g
nu/usr.bin/binutils/objcopy/../../../dist/binutils/include -I/data/NetBSD/src/gn
u/usr.bin/binutils/objcopy/../../../dist/binutils/bfd -I/data/NetBSD/src/gnu/usr
.bin/binutils/objcopy/../../../dist/binutils/binutils  -DLOCALEDIR=\"/usr/share/
locale\"  -nostdinc -isystem /data/NetBSD/obj.i386/data/NetBSD/src/destdir.i386/
usr/include   /data/NetBSD/src/gnu/usr.bin/binutils/objcopy/../../../dist/binuti
ls/binutils/version.c
sh[6]: S-5.10-sparc/bin/i386--netbsdelf-gcc:  not found
sh[7]: syntax error at line 7 : `}' unexpected
*** [version.d] Error code 2
1 error

nbmake: stopped in /data/NetBSD/src/gnu/usr.bin/binutils/objcopy
*** [dependall-objcopy] Error code 2
1 error

nbmake: stopped in /data/NetBSD/src/gnu/usr.bin/binutils
*** [dependall-binutils] Error code 2
1 error

nbmake: stopped in /data/NetBSD/src/gnu/usr.bin
*** [dependall-usr.bin] Error code 2
-----8<-----8<-----8<-----8<-----

  The previous time I saw this, it was complaining about not being able to find ct-prototypes (the compile command line included a "-Wstrict-prototypes" command-line-option)  Clearly something,
perhaps interacting with the Solaris shell, is causing a problem.

  I'm running with /usr/xpg4/bin in my PATH first, and have set all of HOST_SH, CONFIG_SHELL, and BSHELL (which is used to configure the nbmake
tool(s)) set to /usr/xpg4/bin/sh.


>How-To-Repeat:
Try to build a full release on a Solaris machine.
>Fix:
Unknown
>Release-Note:
>Audit-Trail:
>Unformatted: