Subject: -current tool builds fail
To: None <current-users@netbsd.org>
From: Cherry G. Mathew <cherry.g.mathew@gmail.com>
List: current-users
Date: 06/26/2006 17:29:17
build log below:

The following fixes the build, but may be the wrong solution:

Index: tools/compat/Makefile
===================================================================
RCS file: /cvsroot/src/tools/compat/Makefile,v
retrieving revision 1.43
diff -u -r1.43 Makefile
--- tools/compat/Makefile       20 May 2006 00:23:39 -0000      1.43
+++ tools/compat/Makefile       26 Jun 2006 11:58:25 -0000
@@ -24,7 +24,7 @@
 # -D_FILE_OFFSET_BITS=64 produces a much more amenable `struct stat', and
 # other file ops, on many systems, without changing function names.

-CPPFLAGS+=     -I. -I./include -I${.CURDIR} -DHAVE_NBTOOL_CONFIG_H=1 \
+CPPFLAGS+=     -I. -I${.CURDIR}/include -I${.CURDIR} -DHAVE_NBTOOL_CONFIG_H=1 \
                -D_FILE_OFFSET_BITS=64


Thanks,

-- 
~Cherry




===> build.sh command: ./build.sh -O /Users/cherry/builds/obj-ia64 -T
/Users/cherry/builds/tools-ia64 -mia64 -o tools
===> build.sh started: Mon Jun 26 17:09:47 IST 2006
===> MACHINE:          ia64
===> MACHINE_ARCH:     ia64
===> TOOLDIR path:     /Users/cherry/builds/tools-ia64
===> DESTDIR path:     /Users/cherry/builds/obj-ia64/destdir.ia64
===> RELEASEDIR path:  /Users/cherry/builds/obj-ia64/releasedir
===> makewrapper:      /Users/cherry/builds/tools-ia64/bin/nbmake-ia64
===> Updated /Users/cherry/builds/tools-ia64/bin/nbmake-ia64

[...]

#   compile  compat/getopt_long.lo
cc -O  -no-cpp-precomp -I. -I./include
-I/Volumes/Workspace/sources/netbsd-cvs/src/tools/compat
-DHAVE_NBTOOL_CONFIG_H=1  -D_FILE_OFFSET_BITS=64
-D__DBINTERFACE_PRIVATE -c -o getopt_long.lo.o
/Volumes/Workspace/sources/netbsd-cvs/src/lib/libc/stdlib/getopt_long.c
In file included from
/Volumes/Workspace/sources/netbsd-cvs/src/tools/compat/compat_getopt.h:13,
                 from
/Volumes/Workspace/sources/netbsd-cvs/src/lib/libc/stdlib/getopt_long.c:54:
/Volumes/Workspace/sources/netbsd-cvs/src/include/getopt.h:43:29:
sys/featuretest.h: No such file or directory

*** Failed target:  getopt_long.lo
*** Failed command: cc -O -no-cpp-precomp -I. -I./include
-I/Volumes/Workspace/sources/netbsd-cvs/src/tools/compat
-DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64
-D__DBINTERFACE_PRIVATE -c -o getopt_long.lo.o
/Volumes/Workspace/sources/netbsd-cvs/src/lib/libc/stdlib/getopt_long.c
*** Error code 1

Stop.
nbmake: stopped in /Volumes/Workspace/sources/netbsd-cvs/src/tools/compat

*** Failed target:  dependall
*** Failed command: cd
/Volumes/Workspace/sources/netbsd-cvs/src/tools/compat;
/Users/cherry/builds/tools-ia64/bin/nbmake realall
*** Error code 1

Stop.
nbmake: stopped in /Volumes/Workspace/sources/netbsd-cvs/src/tools/compat

*** Failed target:  dependall-compat
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1";
shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .)
this=""; real="/Volumes/Workspace/sources/netbsd-cvs/src/tools" ;; *)
this="${dir}/";
real="/Volumes/Workspace/sources/netbsd-cvs/src/tools/${dir}" ;; esac;
show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd
"${real}" && /Users/cherry/builds/tools-ia64/bin/nbmake
_THISDIR_="${this}" "$@" ${target}; }; _makedirtarget compat dependall
*** Error code 1

Stop.
nbmake: stopped in /Volumes/Workspace/sources/netbsd-cvs/src/tools

ERROR: Failed to make dependall tools
*** BUILD ABORTED ***