That error happens if a kernel file is not compiled with -mcmodel=kernel. Can you check the compile logs for the compiler/cw command line that created unix.o ?
FrankH. On Sat, 2 Feb 2008, Saurabh Mishra wrote: > I'm getting following error when compiling unix. I have following things in > place for SunStudio 12 > Makefile.master:__SSNEXT= > > bash-3.00$ grep VROOT Makefile* > Makefile.master:SPRO_VROOT= $(SPRO_ROOT)/SS11 > Makefile.master:sparc_LINT= $(SPRO_VROOT)/bin/lint > Makefile.master:sparcv9_LINT= $(SPRO_VROOT)/bin/lint > Makefile.master:i386_LINT= $(SPRO_VROOT)/bin/lint > Makefile.master:amd64_LINT= $(SPRO_VROOT)/bin/lint > bash-3.00$ > > bash-3.00$ dmake > dmake: defaulting to parallel mode. > See the man page dmake(1) for more information on setting up the .dmakerc > file. > /export/home/saurabh/onnv-gate/onnv-gate/usr/src/uts/intel/genunix > /export/home/saurabh/onnv-gate/onnv-gate/usr/src/uts/intel/ip > `obj64/ipctf.a' is up to date. > /export/home/saurabh/onnv-gate/onnv-gate/usr/src/uts/intel/genunix > /export/home/saurabh/onnv-gate/onnv-gate/usr/src/uts/i86pc/unix > /usr/ccs/bin/ld -dy -b -o obj64/unix -e dboot_image -znointerp -M > ../../i86pc/conf/Mapfile.amd64 \ > ./obj64/unix.o obj64/dboot.o ./obj64/modstubs.o -L > ../../intel/genunix/obj64 -l genunix \ > obj64/libdtracestubs.so > ld: fatal: relocation error: R_AMD64_32: file ./obj64/unix.o: symbol > z_errmsg: value 0xfffffffffb907318 does not fit > *** Error code 1 > dmake: Fatal error: Command failed for target `obj64/unix' > Current working directory > /export/home/saurabh/onnv-gate/onnv-gate/usr/src/uts/i86pc/unix > *** Error code 1 > The following command caused the error: > BUILD_TYPE=OBJ64 VERSION='onnv-gate' dmake def.targ > dmake: Fatal error: Command failed for target `def.obj64' > Current working directory > /export/home/saurabh/onnv-gate/onnv-gate/usr/src/uts/i86pc/unix > bash-3.00$ cc -V > cc: Sun C 5.9 SunOS_i386 Patch 124868-01 2007/07/12 > usage: cc [ options] files. Use 'cc -flags' for details > bash-3.00$ > > bash-3.00$ uname -a > SunOS solaris-devx 5.11 snv_70b i86pc i386 i86pc > bash-3.00$ > > Any hints what could be the issue? > > /Saurabh > > > This message posted from opensolaris.org > _______________________________________________ > opensolaris-code mailing list > [email protected] > http://mail.opensolaris.org/mailman/listinfo/opensolaris-code > _______________________________________________ opensolaris-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
