Mark Martin wrote: > On 10/11/07, *Mark Martin* <storycrafter at gmail.com > <mailto:storycrafter at gmail.com>> wrote: > > /home/mark/opensolaris/polaris/ppc-dev/usr/src/uts/ppc/sysgen > isildur --> 1 job > perl make-hdrs.pl -o ../sys/Makefile.hdrs > isildur --> 1 job > chmod 644 sdr1.h batu.h batl.h sr.h pte0.h pte1.h pvr.h hid0.h > hid1.h msr.h srr1_isi.h srr1_pgm.h > cp -p sdr1.h batu.h batl.h sr.h pte0.h pte1.h pvr.h hid0.h hid1.h > msr.h srr1_isi.h srr1_pgm.h ../sys > /home/mark/opensolaris/polaris/ppc-dev/usr/src/uts/chrp/genassym > echo '/* generated file - do not edit */' > structs.s,part1 > /opt/onbld/bin/ppc/cw -_gcc -S -D_KERNEL -D_SYSCALL32 > -D_DDI_STRICT -Dchrp -D_MACHDEP -DC2_AUDIT > -_gcc=-fno-eliminate-unused-debug-symbols > -_gcc=-fno-eliminate-unused-debug-types -I../../chrp -I../../ppc > -Y I,../../common \ > -Wp,-undef -U__i386 -D__powerpc -D_LONGLONG_TYPE > -D__GNUC__=3 ../../chrp/ml/structs.c > + /opt/polaris/powerpc-unknown-solaris2.11/bin/gcc -fident > -finline -fno-inline-functions -fno-builtin -fno-asm > -nodefaultlibs -mno-integer-ldd-std -D__sun -S -D_KERNEL > -ffreestanding -D_SYSCALL32 -D_DDI_STRICT -Dchrp -D_MACHDEP > -DC2_AUDIT -fno-eliminate-unused-debug-symbols > -fno-eliminate-unused-debug-types -I../../chrp -I../../ppc > -nostdinc -I../../common -Wp,-undef -U__i386 -D__powerpc > -D_LONGLONG_TYPE -D__GNUC__=3 ../../chrp/ml/structs.c > cc1: error: invalid option 'no-integer-ldd-std' > *** Error code 1 > dmake: Fatal error: Command failed for target `structs.s' > > > > Further update, have cw and aw built for cross-chain now (in > /opt/onbld/bin/ppc/). Minor tweak to cw (__sparc definitions causing > above issue). > > Having trouble coercing Make to use correct toolchain to build. uts > should be built cross chain (GNU), while /usr/src/cmd/sgs/ld should be > built using native (SunStudio). I think I can help you with this one, since I had to do the coercing for x86 host/PowerPC target. But first I need to collect my notes (I don't want to give you confusing or incorrect information). I will say that in general, the Solaris build environment is not geared toward enabling cross build environments and it does take a few tricks to "make it work".
Brian > > Mark > > > -- > ------------------------------------------------------ > Born to the false world, the wanderer, > Storyteller, The Pied Piper > On a quest for immortality > Gathering a troop to find the fantasy > -- Nightwish > ------------------------------------------------------------------------ > > _______________________________________________ > powerpc-discuss mailing list > powerpc-discuss at opensolaris.org >