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 17:57:13
My gcc version on os x is gcc version 4.0.1 (Apple Computer, Inc.
build 5247), which is one minor-minor newer than one that seems to be
working.

On 1/27/06, matthew sporleder <msporleder@gmail.com> wrote:
> I keep getting this:
> msporleder/Documents/netbsd/src/tools/binutils/../../gnu/dist/binutils/ga=
s/../include
> -I/Users/msporleder/Documents/netbsd/src/tools/binutils/../../gnu/dist/bi=
nutils/gas/..
> -I/Users/msporleder/Documents/netbsd/src/tools/binutils/../../gnu/dist/bi=
nutils/gas/../bfd
> -I/Users/msporleder/Documents/netbsd/src/tools/binutils/../../gnu/dist/bi=
nutils/gas/../intl
> -I../intl -DLOCALEDIR=3D"\"/Users/msporleder/Documents/netbsd/src/../tool=
s/share/locale\""
>    -W -Wall -Wstrict-prototypes -Wmissing-prototypes -O2
> -no-cpp-precomp -c
> /Users/msporleder/Documents/netbsd/src/tools/binutils/../../gnu/dist/binu=
tils/gas/app.c
> In file included from
> /Users/msporleder/Documents/netbsd/src/tools/binutils/../../gnu/dist/binu=
tils/gas/as.h:94,
>                  from
> /Users/msporleder/Documents/netbsd/src/tools/binutils/../../gnu/dist/binu=
tils/gas/app.c:30:
> /Users/msporleder/Documents/netbsd/src/tools/binutils/../../gnu/dist/binu=
tils/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/binu=
tils/gas/as.h:134,
>                  from
> /Users/msporleder/Documents/netbsd/src/tools/binutils/../../gnu/dist/binu=
tils/gas/app.c:30:
> /Users/msporleder/Documents/netbsd/src/tools/binutils/../../gnu/dist/binu=
tils/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/binu=
tils/gas/config/obj-elf.h:42,
>                  from ./obj-format.h:1,
>                  from
> /Users/msporleder/Documents/netbsd/src/tools/binutils/../../gnu/dist/binu=
tils/gas/config/te-nbsd.h:24,
>                  from ./targ-env.h:1,
>                  from
> /Users/msporleder/Documents/netbsd/src/tools/binutils/../../gnu/dist/binu=
tils/gas/as.h:626,
>                  from
> /Users/msporleder/Documents/netbsd/src/tools/binutils/../../gnu/dist/binu=
tils/gas/app.c:30:
> /Users/msporleder/Documents/netbsd/src/tools/binutils/../../gnu/dist/binu=
tils/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/bi=
nutils/gas
> -I. -D_GNU_SOURCE -I.
> -I/Users/msporleder/Documents/netbsd/src/tools/binutils/../../gnu/dist/bi=
nutils/gas
> -I../bfd -I/Users/msporleder/Documents/netbsd/src/tools/binutils/../../gn=
u/dist/binutils/gas/config
> -I/Users/msporleder/Documents/netbsd/src/tools/binutils/../../gnu/dist/bi=
nutils/gas/../include
> -I/Users/msporleder/Documents/netbsd/src/tools/binutils/../../gnu/dist/bi=
nutils/gas/..
> -I/Users/msporleder/Documents/netbsd/src/tools/binutils/../../gnu/dist/bi=
nutils/gas/../bfd
> -I/Users/msporleder/Documents/netbsd/src/tools/binutils/../../gnu/dist/bi=
nutils/gas/../intl
> -I../intl -DLOCALEDIR=3D"\"/Users/msporleder/Documents/netbsd/src/../tool=
s/share/locale\""
> -W -Wall -Wstrict-prototypes -Wmissing-prototypes -O2 -no-cpp-precomp
> -c /Users/msporleder/Documents/netbsd/src/tools/binutils/../../gnu/dist/b=
inutils/gas/app.c
> *** Error code 1
>
> Stop.
> nbmake: stopped in
> /Users/msporleder/Documents/netbsd/obj/Users/msporleder/Documents/netbsd/=
src/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;; *) exi=
t
> 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 wha=
t
> > 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 t=
o
> > > > figure out if -m i386 will correctly build tools and the rest of th=
e
> > > > 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
> >
>