Subject: Re: build.sh -x not working with readonly /usr/xsrc
To: Luke Mewburn <lukem@NetBSD.org>
From: Ronald van der Pol <Ronald.vanderPol@rvdp.org>
List: current-users
Date: 04/14/2004 07:49:44
On Tue, Apr 13, 2004 at 23:08:03 +1000, Luke Mewburn wrote:
> This is because /usr/xsrc/xfree/xc/lib/dps/dpsclrops.h
> is a temporary "stale" file generated at runtime by a previous build,
> most likely a previous "native" build of X11.
>
> Ensure you have up to date source without any of these
> temporary stale files, otherwise the build process with be confused by
> these.
>
> The same problem can occur if you have .o files in a read-only
> source tree.
Thanks. I did a fresh checkout of xsrc and I have successfully built
a full release now.
Back to my original problem with -current/macppc (NetBSD 2.0C on an
Apple iBook). Here I also did a fresh checkout of xsrc. When I do a
native:
netbsd/macppc# sh build.sh -x -u -T /usr/tools -M /usr/obj \
-D /usr/build distribution
I get this error:
# link makestrs/makestrs
cc -O -I. -o makestrs makestrs.lo
dependall ===> bdftopcf
dependall ===> fc-cache
nbmake: don't know how to make /usr/xsrc/xfree/xc/lib/expat/expat.h. Stop
nbmake: stopped in /usr/src/x11/tools/fc-cache
*** Failed target: dependall
*** Failed command: cd /usr/src/x11/tools/fc-cache; /usr/tools/bin/nbmake realall
*** Error code 2
Stop.
nbmake: stopped in /usr/src/x11/tools/fc-cache
*** Failed target: dependall-fc-cache
*** Failed command: targ=dependall;dir=fc-cache; case "$dir" in /*) echo "$targ ===> $dir"; cd "$dir"; /usr/tools/bin/nbmake "_THISDIR_=$dir/" $targ; ;; *) echo "$targ ===> $dir"; cd "/usr/src/x11/tools/$dir"; /usr/tools/bin/nbmake "_THISDIR_=$dir/" $targ; ;; esac
*** Error code 1
Stop.
nbmake: stopped in /usr/src/x11/tools
*** Failed target: do-tools
*** Failed command: (cd /usr/src/x11/tools && /usr/tools/bin/nbmake dependall)
*** Error code 1
Stop.
nbmake: stopped in /usr/src/x11
*** Failed target: build
*** Failed command: (cd /usr/src/x11 && /usr/tools/bin/nbmake do-tools)
*** Error code 1
Stop.
nbmake: stopped in /usr/src/x11
*** Failed target: do-x11
*** Failed command: (cd /usr/src/x11 && /usr/tools/bin/nbmake build)
*** Error code 1
Stop.
nbmake: stopped in /usr/src
*** Failed target: build
*** Failed command: (cd /usr/src && /usr/tools/bin/nbmake do-x11)
*** Error code 1
Stop.
nbmake: stopped in /usr/src
*** Failed target: distribution
*** Failed command: (cd /usr/src && /usr/tools/bin/nbmake NOPOSTINSTALL=1 build)
*** Error code 1
Stop.
nbmake: stopped in /usr/src
ERROR: Failed to make distribution
*** BUILD ABORTED ***
I will see what happens when I cross-build on the i386 where I did the
successful i386/x11 built last night.
rvdp