Subject: Re: corss-building on osx
To: Bruce O'Neel <edoneel@sdf.lonestar.org>
From: matthew sporleder <msporleder@gmail.com>
List: current-users
Date: 01/27/2006 11:15:56
I keep getting this:
msporleder/Documents/netbsd/src/tools/binutils/../../gnu/dist/binutils/gas/=
../include
-I/Users/msporleder/Documents/netbsd/src/tools/binutils/../../gnu/dist/binu=
tils/gas/..
-I/Users/msporleder/Documents/netbsd/src/tools/binutils/../../gnu/dist/binu=
tils/gas/../bfd
-I/Users/msporleder/Documents/netbsd/src/tools/binutils/../../gnu/dist/binu=
tils/gas/../intl
-I../intl -DLOCALEDIR=3D"\"/Users/msporleder/Documents/netbsd/src/../tools/=
share/locale\""
   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -O2
-no-cpp-precomp -c
/Users/msporleder/Documents/netbsd/src/tools/binutils/../../gnu/dist/binuti=
ls/gas/app.c
In file included from
/Users/msporleder/Documents/netbsd/src/tools/binutils/../../gnu/dist/binuti=
ls/gas/as.h:94,
                 from
/Users/msporleder/Documents/netbsd/src/tools/binutils/../../gnu/dist/binuti=
ls/gas/app.c:30:
/Users/msporleder/Documents/netbsd/src/tools/binutils/../../gnu/dist/binuti=
ls/gas/../include/getopt.h:116:
warning: function declaration isn't a prototype
In file included from
/Users/msporleder/Documents/netbsd/src/tools/binutils/../../gnu/dist/binuti=
ls/gas/as.h:134,
                 from
/Users/msporleder/Documents/netbsd/src/tools/binutils/../../gnu/dist/binuti=
ls/gas/app.c:30:
/Users/msporleder/Documents/netbsd/src/tools/binutils/../../gnu/dist/binuti=
ls/gas/../include/libiberty.h:80:
warning: function declaration isn't a prototype
In file included from ./targ-cpu.h:1,
                 from
/Users/msporleder/Documents/netbsd/src/tools/binutils/../../gnu/dist/binuti=
ls/gas/config/obj-elf.h:42,
                 from ./obj-format.h:1,
                 from
/Users/msporleder/Documents/netbsd/src/tools/binutils/../../gnu/dist/binuti=
ls/gas/config/te-nbsd.h:24,
                 from ./targ-env.h:1,
                 from
/Users/msporleder/Documents/netbsd/src/tools/binutils/../../gnu/dist/binuti=
ls/gas/as.h:626,
                 from
/Users/msporleder/Documents/netbsd/src/tools/binutils/../../gnu/dist/binuti=
ls/gas/app.c:30:
/Users/msporleder/Documents/netbsd/src/tools/binutils/../../gnu/dist/binuti=
ls/gas/config/tc-i386.h:451:
error: array type has incomplete element type

*** Failed target:  app.o
*** Failed command: cc -DHAVE_CONFIG_H -I.
-I/Users/msporleder/Documents/netbsd/src/tools/binutils/../../gnu/dist/binu=
tils/gas
-I. -D_GNU_SOURCE -I.
-I/Users/msporleder/Documents/netbsd/src/tools/binutils/../../gnu/dist/binu=
tils/gas
-I../bfd -I/Users/msporleder/Documents/netbsd/src/tools/binutils/../../gnu/=
dist/binutils/gas/config
-I/Users/msporleder/Documents/netbsd/src/tools/binutils/../../gnu/dist/binu=
tils/gas/../include
-I/Users/msporleder/Documents/netbsd/src/tools/binutils/../../gnu/dist/binu=
tils/gas/..
-I/Users/msporleder/Documents/netbsd/src/tools/binutils/../../gnu/dist/binu=
tils/gas/../bfd
-I/Users/msporleder/Documents/netbsd/src/tools/binutils/../../gnu/dist/binu=
tils/gas/../intl
-I../intl -DLOCALEDIR=3D"\"/Users/msporleder/Documents/netbsd/src/../tools/=
share/locale\""
-W -Wall -Wstrict-prototypes -Wmissing-prototypes -O2 -no-cpp-precomp
-c /Users/msporleder/Documents/netbsd/src/tools/binutils/../../gnu/dist/bin=
utils/gas/app.c
*** Error code 1

Stop.
nbmake: stopped in
/Users/msporleder/Documents/netbsd/obj/Users/msporleder/Documents/netbsd/sr=
c/tools/binutils/build/gas

*** Failed target:  all-recursive
*** Failed command: set fnord $MAKEFLAGS; amf=3D$2; dot_seen=3Dno;
target=3D`echo all-recursive | sed s/-recursive//`; list=3D'doc po'; for
subdir in $list; do echo "Making $target in $subdir"; if test
"$subdir" =3D "."; then dot_seen=3Dyes; local_target=3D"$target-am"; else
local_target=3D"$target"; fi; (cd $subdir &&
/Users/msporleder/Documents/netbsd/src/../tools/bin/nbmake -X -f
/Users/msporleder/Documents/netbsd/src/tools/binutils/../Makefile.gnuwrap
$local_target) || case "$amf" in *=3D*) exit 1;; *k*) fail=3Dyes;; *) exit
1;; esac; done; if test "$dot_seen" =3D "no"; then
/Users/msporleder/Documents/netbsd/src/../tools/bin/nbmake -X -f
/Users/msporleder/Documents/netbsd/src/tools/binutils/../Makefile.gnuwrap
"$target-am" || exit 1; fi; test -z "$fail"
*** Error code 1


On 1/27/06, Bruce O'Neel <edoneel@sdf.lonestar.org> wrote:
>
> While I can't say for OS/X, for other systems the -m flag tells you what
> target you want to build for, and build.sh builds the native tools
> for what ever system you are running on.
>
> It does this even when you are building on the same system that is the
> target in order to get the right versions of everything :-)
>
> cheers
>
> bruce
>
>
> On Thu, Jan 26, 2006 at 10:05:14PM -0800, Jeff Rizzo wrote:
> > matthew sporleder wrote:
> > > I actually reformatted to case sensitive hfs.  I guess I'm trying to
> > > figure out if -m i386 will correctly build tools and the rest of the
> > > system.
> > >
> > >
> >
> > It always has for me... I've built for i386 on OS X.4 within the last 3
> > months, with a commandline approximating:
> >
> > ./build.sh -U -M /path/to/obj -T /path/to/tools -m i386 release
> >
> > +j
> >
> >
>
>
>
> --
> edoneel@sdf.lonestar.org
> SDF Public Access UNIX System - http://sdf.lonestar.org
>