Why is the default build trying to use gcc? I am following the directions given in the dev. reference document. The only variable that affects the gcc usage is __GNUC which I have set promptly to '#' but no go. If I set CC=cc then it spews some cc warnings:
--------------------- cd usr/src/uts dmake ..... ..... /opt/onbld/bin/genoffsets -s /opt/onbld/bin/i386/ctfstabs -r /opt/onbld/bin/i386/ctfconvert cc -_noecho -_gcc=-fno-eliminate-unused-debug-symbols -_gcc=-fno-eliminate-unused-debug-types -xarch=amd64 -Ui386 -U__i386 -O ../../intel/amd64/ml/amd64.il -D_ASM_INLINES -Xa -xspace -Wu,-xmodel=kernel -v -xildoff -g -xc99=%none -W0,-noglobal -errtags=yes -errwarn=%all -erroff=E_EMPTY_TRANSLATION_UNIT -erroff=E_STATEMENT_NOT_REACHED -xc99=%none -D_KERNEL -D_SYSCALL32 -D_SYSCALL32_IMPL -D_ELF64 -Dsun -D__sun -D__SVR4 -Di86pc -D_MACHDEP -DOPTERON_ERRATUM_88 -DOPTERON_ERRATUM_91 -DOPTERON_ERRATUM_93 -DOPTERON_ERRATUM_95 -DOPTERON_ERRATUM_100 -DOPTERON_ERRATUM_108 -DOPTERON_ERRATUM_109 -DOPTERON_ERRATUM_121 -DOPTERON_ERRATUM_122 -DOPTERON_ERRATUM_123 -DC2_AUDIT -I../../i86pc -I../../intel -Y I,../../common <../../i86pc/ml/offsets.in >obj64/assym.h cc: Warning: option -_ passed to ld cc: Warning: illegal option -noecho cc: Warning: option -_ passed to ld cc: Warning: option -= passed to ld cc: Warning: option -- passed to ld cc: Warning: illegal option -fno-eliminate-unused-debug-symbols cc: Warning: option -_ passed to ld cc: Warning: option -= passed to ld cc: Warning: option -- passed to ld cc: Warning: illegal option -fno-eliminate-unused-debug-types .... ....so on ----------------- but it starts to build the rest of the stuff fine. what's the right way to use Sun Studio compiler to build the kernel? This message posted from opensolaris.org _______________________________________________ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org