Subject: m4 missing when building NetBSD/sparc from Linux/i386
To: None <>
From: Jeremy C. Reed <>
List: current-users
Date: 04/20/2005 10:37:48
m4 missing when building NetBSD/sparc from Linux/i386 host.

#    create  libc/scanf.d
/netbsd/sparc/tools/bin/nbmkdep -f scanf.d --   -DALL_STATE -DUSG_COMPAT
-I/home/reed/netbsd/src/lib/libc/include -I/home/reed/netbsd/src/lib/libc
-DCITRUS -I/home/reed/netbsd/src/libexec/ld.elf_so
-I/home/reed/netbsd/src/lib/libc/dlfcn -DCITRUS_ICONV -DWITH_RUNE
-I/home/reed/netbsd/src/lib/libc -DPOSIX_MISTAKE -DCOMPAT__RES -DPORTMAP
-DFLOATING_POINT   -nostdinc -isystem /netbsd/sparc/destdir/usr/include
building sdiv.S from
/bin/sh: line 1: m4: command not found

*** Failed target:  sdiv.S
*** Failed command: (echo
"define(NAME,\`.div')define(OP,\`div')define(S,\`true')"; cat
/home/reed/netbsd/src/lib/libc/arch/sparc/gen/divrem.m4) | m4 > sdiv.S
*** Error code 127

nbmake: stopped in /home/reed/netbsd/src/lib/libc

*** Failed target:  do-lib-libc
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1";
shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this="";
real="/home/reed/netbsd/src" ;; *) this="${dir}/";
real="/home/reed/netbsd/src/${dir}" ;; esac; show=${this:-.}; echo
"${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" &&
/netbsd/sparc/tools/bin/nbmake _THISDIR_="${this}" "$@" ${target}; };
_makedirtarget lib/libc dependall
*** Error code 1

I do have it available in my tools: /netbsd/sparc/tools/bin/nbm4

I didn't have this problem with macppc, i386, hp700 builds, but I did cvs
update a couple times again since then. I am now trying a xen-i386 build.

 Jeremy C. Reed

 	  	 	 open source, Unix, *BSD, Linux training