Subject: Re: xbuild of mipsel from solaris fails....
To: None <current-users@NetBSD.org>
From: Paul Winder <Paul.Winder@tadpole.com>
List: current-users
Date: 05/31/2006 08:42:50
I found the problem.....

I was using -j 4 on the build.sh distribution, I took this off and it 
worked. It seems some of the dependencies aren't quite right. I also 
noticed during the compile stage, it would fail occassionally. A restart 
would then work - again these disappeared with no -j 4.

Also in the scripts in src/distrib/set they have /bin/sh as the 
interpreter. This can cause problems in a cross compile environment 
where, Eg in solaris, the posix sh is in /usr/xpg4/bin. Changing the 
interpreter to:
	#!/usr/bin/env sh

seems to address this (this is used in build.sh)

Paul

Paul Winder wrote:
> I'm trying to do a distribution build on solaris for mipsel. It gets to 
> the end and finishes with:
> 
> --- makesetfiles ---
> #    create  set lists
> cd /files/home/paul/current/src/distrib/sets && 
> DESTDIR=/files/home/paul/current/src/../current=obj/destdir.evbmips 
> MACHINE=evbmips MACHINE_ARCH=mipsel 
> CKSUM=/files/home/paul/current/src/../current-tools/bin/nbcksum 
> DB=/files/home/paul/current/src/../current-tools/bin/nbdb 
> HOST_SH=/usr/xpg4/bin/sh 
> MAKE=/files/home/paul/current/src/../current-tools/bin/nbmake 
> MKTEMP=/files/home/paul/current/src/../current-tools/bin/nbmktemp 
> MTREE=/files/home/paul/current/src/../current-tools/bin/nbmtree 
> PAX=/files/home/paul/current/src/../current-tools/bin/nbpax 
> TSORT=/files/home/paul/current/src/../current-tools/bin/nbtsort\ -q 
> /usr/xpg4/bin/sh ./maketars -S -d 
> /files/home/paul/current/src/../current=obj/destdir.evbmips -M 
> /files/home/paul/current/src/../current=obj/destdir.evbmips/METALOG  -N 
> /files/home/paul/current/src/etc  -t 
> /files/home/paul/current/src/../current-dist/evbmips/binary/sets
> ./makeflist[10]: test: syntax error
> ./makeflist[10]: test: syntax error
> Creating 
> /files/home/paul/current/src/../current=obj/destdir.evbmips/etc/mtree/set.base 
> 
> ./makeflist[10]: test: syntax error
> ./makeflist[10]: test: syntax error
> Creating 
> /files/home/paul/current/src/../current=obj/destdir.evbmips/etc/mtree/set.comp 
> 
> ./makeflist[10]: test: syntax error
> ./makeflist[10]: test: syntax error
> Creating 
> /files/home/paul/current/src/../current=obj/destdir.evbmips/etc/mtree/set.etc 
> 
> ./makeflist[10]: test: syntax error
> ./makeflist[10]: test: syntax error
> Creating 
> /files/home/paul/current/src/../current=obj/destdir.evbmips/etc/mtree/set.games 
> 
> ./makeflist[10]: test: syntax error
> ./makeflist[10]: test: syntax error
> Creating 
> /files/home/paul/current/src/../current=obj/destdir.evbmips/etc/mtree/set.man 
> 
> ./makeflist[10]: test: syntax error
> ./makeflist[10]: test: syntax error
> Creating 
> /files/home/paul/current/src/../current=obj/destdir.evbmips/etc/mtree/set.misc 
> 
> ./makeflist[10]: test: syntax error
> ./makeflist[10]: test: syntax error
> Creating 
> /files/home/paul/current/src/../current=obj/destdir.evbmips/etc/mtree/set.text 
> 
> 
> 
> I updated the latest sources today.
> 
> I have done this sucessfully before, with a current about a month old....
> 
> Any ideas?
> 
> Thanks
> Paul