Subject: Re: m4 missing when building NetBSD/sparc from Linux/i386
To: Jeremy C. Reed <reed@reedmedia.net>
From: James Chacon <jmc@NetBSD.org>
List: current-users
Date: 04/20/2005 13:26:43
On Wed, Apr 20, 2005 at 10:37:48AM -0700, Jeremy C. Reed wrote:
> m4 missing when building NetBSD/sparc from Linux/i386 host.
> 
> #    create  libc/scanf.d
> CC=/netbsd/sparc/tools/bin/sparc--netbsdelf-gcc
> /netbsd/sparc/tools/bin/nbmkdep -f scanf.d --   -DALL_STATE -DUSG_COMPAT
> -D_LIBC -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT
> -I/home/reed/netbsd/src/lib/libc/include -I/home/reed/netbsd/src/lib/libc
> -DHESIOD -DINET6 -DNLS -DYP -D__DBINTERFACE_PRIVATE -DI18NMODULE_MAJOR=4
> -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
> /home/reed/netbsd/src/lib/libc/stdio/scanf.c
> building sdiv.S from
> /home/reed/netbsd/src/lib/libc/arch/sparc/gen/divrem.m4
> /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
> 
> Stop.
> 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.
> 

Update lib/libc/arch and try again. Looks like alpha, sparc and sparc64
were affected.

James