Hi,

I'm newbie to opensolaris, I'm trying to compile kernel following the 
instructions given in README.opensolaris

I have  solaris community expression edition b119 and on-src.tar.bz2  b110

bash-3.2# pwd
/export/testws/usr/src/uts
bash-3.2# uname -a
SunOS evm16-solaris-exp-b119-216 5.11 snv_119 i86pc i386 i86pc

error:
====
/export/testws/usr/src/tools/proto/opt/onbld/bin/genoffsets -s 
/export/testws/usr/src/tools/proto/opt/onbld/bin/i386/ctfstabs -r 
/export/testws/usr/src/tools/proto/opt/onbld/bin/i386/ctfconvert  
/opt/onbld/bin/i386/cw -_cc -_noecho  -W0,-xdbggen=no%usedonly  
-_gcc=-fno-dwarf2-indirect-strings -m64 -Ui386 -U__i386 -xO3 
../../intel/amd64/ml/amd64.il -D_ASM_INLINES -Xa -xspace  -xmodel=kernel 
-Wu,-save_args -v -xildoff  -g -xc99=%all -W0,-noglobal 
-_gcc=-fno-dwarf2-indirect-strings -xdebugformat=stabs -errtags=yes 
-errwarn=%all -W0,-xglobalstatic  -xstrconst -D_KERNEL -D_SYSCALL32 
-D_SYSCALL32_IMPL -D_ELF64  -D_DDI_STRICT -Dsun -D__sun -D__SVR4     
-I../../intel -I../../common/brand/lx -Y I,../../common  
<../../intel/genassym/offsets.in >../../intel/genassym/obj64/genassym.h
cc: Warning: illegal option -m64
cc: -xmodel should be used with -xarch={amd64|generic64}
genoffsets: /opt/onbld/bin/i386/cw failed with status 1
*** Error code 1
dmake: Fatal error: Command failed for target 
`../../intel/genassym/obj64/genassym.h'
Current working directory /export/testws/usr/src/uts/intel/genassym
*** Error code 1
The following command caused the error:
BUILD_TYPE=OBJ64 VERSION='testws' dmake  all.targ
dmake: Fatal error: Command failed for target `all.obj64'
Current working directory /export/testws/usr/src/uts/intel/genassym
*** Error code 1

To correct above error, I appended "-xarch=amd64" to amd64_STAND_FLAGS=      
-xmodel=kernel, variable in /export/testws/usr/src/Makefile.master.

still I get a similar error to above one:

/opt/onbld/bin/i386/cw -_cc -m64 -Ui386 -U__i386 -xO3 
../../intel/amd64/ml/amd64.il  ../../i86xpv/ml/amd64.il -D_ASM_INLINES -Xa 
-xspace  -xmodel=kernel -xarch=amd64 -Wu,-save_args -v -xildoff  -g -xc99=%all 
-W0,-noglobal -_gcc=-fno-dwarf2-indirect-strings -xdebugformat=stabs 
-errtags=yes -errwarn=%all -W0,-xglobalstatic  -DDIS_MEM -D_KERNEL -D_SYSCALL32 
-D_SYSCALL32_IMPL -D_ELF64  -D_DDI_STRICT -Dsun -D__sun -D__SVR4 -D__i86xpv 
-D__xpv -D_MACHDEP -DOPTERON_ERRATUM_88 -DOPTERON_ERRATUM_91 
-DOPTERON_ERRATUM_93 -DOPTERON_ERRATUM_95 -DOPTERON_ERRATUM_99 
-DOPTERON_ERRATUM_100 -DOPTERON_ERRATUM_101 -DOPTERON_ERRATUM_108 
-DOPTERON_ERRATUM_109 -DOPTERON_ERRATUM_121 -DOPTERON_ERRATUM_122 
-DOPTERON_ERRATUM_123 -DOPTERON_ERRATUM_131 -DOPTERON_WORKAROUND_6336786 
-DOPTERON_WORKAROUND_6323525 -DOPTERON_ERRATUM_172 -DOPTERON_ERRATUM_298      
-I../../i86xpv -I../../i86pc -I/export/testws/usr/src/common  
-I../../common/xen -I../../intel -Y I,../../common  -c -o obj64/cmi_hw.o 
../../i86pc/os/cmi_hw.c
+ /usr/sfw/bin/gcc -fident -finline -fno-inline-functions -fno-builtin -fno-asm 
-nodefaultlibs -D__sun -m64 -mtune=opteron -Ui386 -U__i386 -fno-strict-aliasing 
-fno-unit-at-a-time -fno-optimize-sibling-calls -O2 -D_ASM_INLINES 
-ffreestanding -mno-red-zone -m64 -mtune=opteron -msave-args -Wall 
-Wno-unknown-pragmas -Wno-missing-braces -Wno-sign-compare -Wno-parentheses 
-Wno-uninitialized -Wno-implicit-function-declaration -Wno-unused 
-Wno-trigraphs -Wno-char-subscripts -Wno-switch -gdwarf-2 -std=gnu99 
-fno-dwarf2-indirect-strings -Werror -DDIS_MEM -D_KERNEL -ffreestanding 
-D_SYSCALL32 -D_SYSCALL32_IMPL -D_ELF64 -D_DDI_STRICT -Dsun -D__sun -D__SVR4 
-D__i86xpv -D__xpv -D_MACHDEP -DOPTERON_ERRATUM_88 -DOPTERON_ERRATUM_91 
-DOPTERON_ERRATUM_93 -DOPTERON_ERRATUM_95 -DOPTERON_ERRATUM_99 
-DOPTERON_ERRATUM_100 -DOPTERON_ERRATUM_101 -DOPTERON_ERRATUM_108 
-DOPTERON_ERRATUM_109 -DOPTERON_ERRATUM_121 -DOPTERON_ERRATUM_122 
-DOPTERON_ERRATUM_123 -DOPTERON_ERRATUM_131 -DOPTERON_WORKAROUND_6336786 
-DOPTERON_WORKAROUND_6323525 -DOPTERON_ERRATUM_172 -DOPTERON_ERRATUM_298 
-I../../i86xpv -I../../i86pc -I/export/testws/usr/src/common -I../../common/xen 
-I../../intel -nostdinc -I../../common -c -o /tmp/.cwCAAgEaO7x.o 
../../i86pc/os/cmi_hw.c -mcmodel=kernel
+ /opt/SUNWspro/bin/cc -m64 -Ui386 -U__i386 -xO3 ../../intel/amd64/ml/amd64.il 
../../i86xpv/ml/amd64.il -D_ASM_INLINES -Xa -xspace -xmodel=kernel -xarch=amd64 
-Wu,-save_args -v -xildoff -g -xc99=%all -W0,-noglobal -xdebugformat=stabs 
-errtags=yes -errwarn=%all -W0,-xglobalstatic -DDIS_MEM -D_KERNEL -D_SYSCALL32 
-D_SYSCALL32_IMPL -D_ELF64 -D_DDI_STRICT -Dsun -D__sun -D__SVR4 -D__i86xpv 
-D__xpv -D_MACHDEP -DOPTERON_ERRATUM_88 -DOPTERON_ERRATUM_91 
-DOPTERON_ERRATUM_93 -DOPTERON_ERRATUM_95 -DOPTERON_ERRATUM_99 
-DOPTERON_ERRATUM_100 -DOPTERON_ERRATUM_101 -DOPTERON_ERRATUM_108 
-DOPTERON_ERRATUM_109 -DOPTERON_ERRATUM_121 -DOPTERON_ERRATUM_122 
-DOPTERON_ERRATUM_123 -DOPTERON_ERRATUM_131 -DOPTERON_WORKAROUND_6336786 
-DOPTERON_WORKAROUND_6323525 -DOPTERON_ERRATUM_172 -DOPTERON_ERRATUM_298 
-I../../i86xpv -I../../i86pc -I/export/testws/usr/src/common -I../../common/xen 
-I../../intel -Y I,../../common -c -o obj64/cmi_hw.o ../../i86pc/os/cmi_hw.c
cc: Warning: illegal option -m64
/export/testws/usr/src/tools/proto/opt/onbld/bin/i386/ctfconvert -i -L VERSION 
obj64/cmi_hw.o
*** Error code 1
The following command caused the error:
BUILD_TYPE=OBJ64 VERSION='testws' dmake  all.targ
dmake: Fatal error: Command failed for target `all.obj64'
Current working directory /export/testws/usr/src/uts/i86xpv/unix
*** Error code 1


Any help is greatly appreciated. please let me know, if additional info required
-- 
This message posted from opensolaris.org

Reply via email to