Subject: cross building on leopard ppc
To: None <current-users@netbsd.org>
From: matthew sporleder <msporleder@gmail.com>
List: current-users
Date: 12/06/2007 07:46:37
I can't even build tools:

Darwin Matthews-Apple.local 9.1.0 Darwin Kernel Version 9.1.0: Wed Oct
31 17:48:21 PDT 2007; root:xnu-1228.0.2~1/RELEASE_PPC Power Macintosh

This is xcode 3.0

cc -c   -O2 -no-cpp-precomp -DIN_GCC -DCROSS_COMPILE  -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic
-Wno-long-long -Wno-variadic-macros -Wold-style-definition
-Wmissing-format-attribute    -DHAVE_CONFIG_H -I. -I.
-I/Users/msporleder/Documents/netbsd/src/tools/gcc/../../gnu/dist/gcc4/gcc
-I/Users/msporleder/Documents/netbsd/src/tools/gcc/../../gnu/dist/gcc4/gcc/.
-I/Users/msporleder/Documents/netbsd/src/tools/gcc/../../gnu/dist/gcc4/gcc/../include
-I/Users/msporleder/Documents/netbsd/src/tools/gcc/../../gnu/dist/gcc4/gcc/../libcpp/include
 -DNETBSD_TOOLS   -I. -I.
-I/Users/msporleder/Documents/netbsd/src/tools/gcc/../../gnu/dist/gcc4/gcc
-I/Users/msporleder/Documents/netbsd/src/tools/gcc/../../gnu/dist/gcc4/gcc/.
-I/Users/msporleder/Documents/netbsd/src/tools/gcc/../../gnu/dist/gcc4/gcc/../include
-I/Users/msporleder/Documents/netbsd/src/tools/gcc/../../gnu/dist/gcc4/gcc/../libcpp/include
 /Users/msporleder/Documents/netbsd/src/tools/gcc/../../gnu/dist/gcc4/gcc/config/rs6000/host-darwin.c
-o host-ppc-darwin.o
/Users/msporleder/Documents/netbsd/src/tools/gcc/../../gnu/dist/gcc4/gcc/config/rs6000/host-darwin.c:38:
warning: 'struct sigaltstack' declared inside parameter list
/Users/msporleder/Documents/netbsd/src/tools/gcc/../../gnu/dist/gcc4/gcc/config/rs6000/host-darwin.c:38:
warning: its scope is only this definition or declaration, which is
probably not what you want
/Users/msporleder/Documents/netbsd/src/tools/gcc/../../gnu/dist/gcc4/gcc/config/rs6000/host-darwin.c:38:
error: conflicting types for 'sigaltstack'
/usr/include/signal.h:89: error: previous declaration of 'sigaltstack' was here
/Users/msporleder/Documents/netbsd/src/tools/gcc/../../gnu/dist/gcc4/gcc/config/rs6000/host-darwin.c:
In function 'segv_handler':
/Users/msporleder/Documents/netbsd/src/tools/gcc/../../gnu/dist/gcc4/gcc/config/rs6000/host-darwin.c:71:
error: 'struct __darwin_mcontext' has no member named 'ss'
/Users/msporleder/Documents/netbsd/src/tools/gcc/../../gnu/dist/gcc4/gcc/config/rs6000/host-darwin.c:120:
error: 'struct __darwin_mcontext' has no member named 'es'
/Users/msporleder/Documents/netbsd/src/tools/gcc/../../gnu/dist/gcc4/gcc/config/rs6000/host-darwin.c:120:
error: 'struct __darwin_mcontext' has no member named 'ss'
/Users/msporleder/Documents/netbsd/src/tools/gcc/../../gnu/dist/gcc4/gcc/config/rs6000/host-darwin.c:
In function 'darwin_rs6000_extra_signals':
/Users/msporleder/Documents/netbsd/src/tools/gcc/../../gnu/dist/gcc4/gcc/config/rs6000/host-darwin.c:134:
warning: passing argument 1 of 'sigaltstack' from incompatible pointer
type
nbgmake[1]: *** [host-ppc-darwin.o] Error 1
nbgmake[1]: Leaving directory
`/Users/msporleder/Documents/netbsd/obj/Users/msporleder/Documents/netbsd/src/tools/gcc/build/gcc'
nbgmake: *** [all-gcc] Error 2

*** Failed target:  .build_done
*** Failed command: (cd build && /usr/bin/env -i
gcc_cv_libc_provides_ssp=yes CC=cc CFLAGS=-O2\ -no-cpp-precomp
CPPFLAGS= CXX=c++ CXXFLAGS=-O
INSTALL=/Users/msporleder/Documents/netbsd/tools/bin/i386--netbsdelf-install\
-c\ \ -r LDFLAGS= AR=ar RANLIB=ranlib
LEX=/Users/msporleder/Documents/netbsd/tools/bin/nblex
MAKE=/Users/msporleder/Documents/netbsd/tools/bin/nbgmake
PATH="/Users/msporleder/Documents/netbsd/tools/bin:$PATH"
YACC=/Users/msporleder/Documents/netbsd/tools/bin/nbyacc MACHINE=
MAKEINFO=/Users/msporleder/Documents/netbsd/tools/bin/nbmakeinfo
LIBGCC= LIBGCC1= LIBGCC1_TEST= LIBGCC2= INSTALL_LIBGCC= EXTRA_PARTS=
CPPFLAGS=-DNETBSD_TOOLS AR=ar RANLIB=ranlib BISON=true DESTDIR=
INSTALL=/Users/msporleder/Documents/netbsd/tools/bin/i386--netbsdelf-install\
-c\ \ -r /Users/msporleder/Documents/netbsd/tools/bin/nbgmake -e
MACHINE= MAKEINFO=/Users/msporleder/Documents/netbsd/tools/bin/nbmakeinfo
LIBGCC= LIBGCC1= LIBGCC1_TEST= LIBGCC2= INSTALL_LIBGCC= EXTRA_PARTS=
CPPFLAGS=-DNETBSD_TOOLS AR=ar RANLIB=ranlib BISON=true DESTDIR=
INSTALL=/Users/msporleder/Documents/netbsd/tools/bin/i386--netbsdelf-install\
-c\ \ -r all-gcc)
*** Error code 2

Stop.
nbmake: stopped in /Users/msporleder/Documents/netbsd/src/tools/gcc

*** Failed target:  dependall
*** Failed command: cd
/Users/msporleder/Documents/netbsd/src/tools/gcc;
/Users/msporleder/Documents/netbsd/tools/bin/nbmake realall
*** Error code 1

Stop.
nbmake: stopped in /Users/msporleder/Documents/netbsd/src/tools/gcc

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

Stop.
nbmake: stopped in /Users/msporleder/Documents/netbsd/src/tools

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

Stop.
nbmake: stopped in /Users/msporleder/Documents/netbsd/src