Subject: Re: crosscompiling from solaris?
To: None <tech-toolchain@netbsd.org>
From: None <mcmahill@mtl.mit.edu>
List: tech-toolchain
Date: 03/02/2002 06:56:06
On Fri, 1 Mar 2002 mcmahill@mtl.mit.edu wrote:


> I've tried to build a snapshot from a solaris-2.8 box and get the
> following:
> 

...

> buildmake.sh: bad substitution
> 
> ERROR: build of nbmake failed
> *** BUILD ABORTED ***
> 

ok, I replaced /bin/sh with /bin/ksh on that box and got rid of the 'bad
substitution' problems.  Now I get to:

config.status: creating config.h
/export/home0/mcmahill/netbsd-cvs/src/tools/obj/tools.SunOS-5.8-sparc/bin/nbhost-mkdep
-a -I. [rest of big long command line truncated]
"/export/home0/mcmahill/netbsd-cvs/src/tools/compat/../../lib/libc/gen/err.c",
line 78: warning: argument mismatch
"/export/home0/mcmahill/netbsd-cvs/src/tools/compat/../../lib/libc/gen/errx.c",
line 78: warning: argument mismatch
"/export/home0/mcmahill/netbsd-cvs/src/tools/compat/../../lib/libc/gen/warn.c",
line 77: warning: argument mismatch
/opt/SUNWspro/bin/cc -xchip=ultra -dalign -xcode=abs32 -xarch=v9  -I.
-I./include -I/export/home0/mcmahill/netbsd-cvs/src/tools/compat
-DHAVE_CONFIG_H  -D_FILE_OFFSET_BITS=64 -D__DBINTERFACE_PRIVATE -c -o
basename.lo
/export/home0/mcmahill/netbsd-cvs/src/tools/compat/../../lib/libc/gen/basename.c
cc: illegal suffix of output filename
*** Error code 1

Stop.
nbmake: stopped in /export/home0/mcmahill/netbsd-cvs/src/tools/compat

looks like the sun compiler would have been happier with
  cc -c foo.c
  mv foo.o foo.lo

progress, but not there yet...

-dan