Hi thanks for your posts so far. Since what I had assumed was a 32 bit kernel which I compiled didn''t work, I religiously set out on compiling a 64 bit version as my system is currently booted in 64 bit mode. I installed SUNStudio12 on the system and set the SPRO_VROOT to point towards it and when I do a make all in usr/src directory, I get the following error when make cwds and runs in the i86pc/unix direcotry: - o/p on stderr: - ... ... ld: fatal: relocation error: R_AMD64_32: file ./obj64/unix.o: symbol kdi_update_drreg: value 0xfffffffffb821ab8 does not fit ld: fatal: relocation error: R_AMD64_32: file ./obj64/unix.o: symbol kdi_memrange_add: value 0xfffffffffb821b18 does not fit ld: fatal: relocation error: R_AMD64_32: file ./obj64/unix.o: symbol kdi_memranges: value 0xfffffffffbc30be0 does not fit ld: fatal: relocation error: R_AMD64_32: file ./obj64/unix.o: symbol kdi_memranges: value 0xfffffffffbc30be8 does not fit ld: fatal: relocation error: R_AMD64_32: file ./obj64/unix.o: symbol kdi_idt_switch: value 0xfffffffffb821b68 does not fi t ld: fatal: relocation error: R_AMD64_32: file ./obj64/unix.o: symbol kdi_activate: value 0xfffffffffb821c18 does not fit ld: fatal: relocation error: R_AMD64_32: file ./obj64/unix.o: symbol kdi_deactivate: value 0xfffffffffb821d68 does not fi t make: Fatal error: Command failed for target `obj64/unix'' Current working directory /export/path/to/workspace/usr/src/uts/i86pc/unix make: Fatal error: Command failed for target `all.obj64'' Current working directory /export/path/to/workspace/usr/src/uts/i86pc/unix make: Fatal error: Command failed for target `unix'' Current working directory /export/path/to/workspace/usr/src/uts/i86pc make: Fatal error: Command failed for target `i86pc'' Current working directory /export/path/to/workspace/usr/src/uts make: Fatal error: Command failed for target `uts'' o/p on stdout: - .. .. .. /export/path/to/workspace/usr/src/uts/i86pc/cpu/scripts /export/path/to/workspace/usr/src/uts/i86pc/genassym /export/path/to/workspace/usr/src/uts/i86pc/unix /export/path/to/workspace/usr/src/uts/intel/genunix /export/path/to/workspace/usr/src/uts/intel/ip `obj64/ipctf.a'' is up to date. /export/path/to/workspace/usr/src/uts/intel/genunix /export/path/to/workspace/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 *** Error code 1 *** Error code 1 The following command caused the error: BUILD_TYPE=OBJ64 VERSION=''onnv-bugfixes'' make all.targ *** Error code 1 The following command caused the error: cd unix; pwd; make all *** Error code 1 The following command caused the error: cd i86pc; pwd; make all *** Error code 1 The following command caused the error: cd uts; pwd; make all Any help would be much appreciated. Thanks and regards, Bhaskar. This message posted from opensolaris.org
On Wed, 21 Nov 2007, Bhaskar Jayaraman wrote:> Hi thanks for your posts so far. Since what I had assumed was a 32 bit kernel which I compiled didn''t work, I religiously set out on compiling a 64 bit version as my system is currently booted in 64 bit mode. > I installed SUNStudio12 on the system and set the SPRO_VROOT to point towards it and when I do a make all in usr/src directory, I get the following error when make cwds and runs in the i86pc/unix direcotry: -Hmm, the messages below occur if you did not request code to be created for the kernel code model, somewhere in your assemble/link phase. In more plain terms, when you compile kernel modules, you must (that is not optional) specify the "-xmodel=kernel" (when compiled with SunStudio) option. See the "writing device drivers" guide. Did you edit any makefiles ? ON, by default, should give the correct options. FrankH.> > o/p on stderr: - > ... > ... > ld: fatal: relocation error: R_AMD64_32: file ./obj64/unix.o: symbol kdi_update_drreg: value 0xfffffffffb821ab8 does not > fit > ld: fatal: relocation error: R_AMD64_32: file ./obj64/unix.o: symbol kdi_memrange_add: value 0xfffffffffb821b18 does not > fit > ld: fatal: relocation error: R_AMD64_32: file ./obj64/unix.o: symbol kdi_memranges: value 0xfffffffffbc30be0 does not fit > ld: fatal: relocation error: R_AMD64_32: file ./obj64/unix.o: symbol kdi_memranges: value 0xfffffffffbc30be8 does not fit > ld: fatal: relocation error: R_AMD64_32: file ./obj64/unix.o: symbol kdi_idt_switch: value 0xfffffffffb821b68 does not fi > t > ld: fatal: relocation error: R_AMD64_32: file ./obj64/unix.o: symbol kdi_activate: value 0xfffffffffb821c18 does not fit > ld: fatal: relocation error: R_AMD64_32: file ./obj64/unix.o: symbol kdi_deactivate: value 0xfffffffffb821d68 does not fi > t > make: Fatal error: Command failed for target `obj64/unix'' > Current working directory /export/path/to/workspace/usr/src/uts/i86pc/unix > make: Fatal error: Command failed for target `all.obj64'' > Current working directory /export/path/to/workspace/usr/src/uts/i86pc/unix > make: Fatal error: Command failed for target `unix'' > Current working directory /export/path/to/workspace/usr/src/uts/i86pc > make: Fatal error: Command failed for target `i86pc'' > Current working directory /export/path/to/workspace/usr/src/uts > make: Fatal error: Command failed for target `uts'' > > o/p on stdout: - > .. > .. > .. > /export/path/to/workspace/usr/src/uts/i86pc/cpu/scripts > /export/path/to/workspace/usr/src/uts/i86pc/genassym > /export/path/to/workspace/usr/src/uts/i86pc/unix > /export/path/to/workspace/usr/src/uts/intel/genunix > /export/path/to/workspace/usr/src/uts/intel/ip > `obj64/ipctf.a'' is up to date. > /export/path/to/workspace/usr/src/uts/intel/genunix > /export/path/to/workspace/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 > *** Error code 1 > *** Error code 1 > The following command caused the error: > BUILD_TYPE=OBJ64 VERSION=''onnv-bugfixes'' make all.targ > *** Error code 1 > The following command caused the error: > cd unix; pwd; make all > *** Error code 1 > The following command caused the error: > cd i86pc; pwd; make all > *** Error code 1 > The following command caused the error: > cd uts; pwd; make all > > Any help would be much appreciated. > > Thanks and regards, > Bhaskar. > > > This message posted from opensolaris.org > _______________________________________________ > xen-discuss mailing list > xen-discuss@opensolaris.org >------------------------------------------------------------------------------ No good can come from selling your freedom, not for all the gold in the world, for the value of this heavenly gift far exceeds that of any fortune on earth. ------------------------------------------------------------------------------
Bhaskar Jayaraman wrote:> Hi thanks for your posts so far. Since what I had assumed was a 32 bit > kernel which I compiled didn''t work, I religiously set out on compiling > a 64 bit version as my system is currently booted in 64 bit mode. I > installed SUNStudio12 on the system and set the SPRO_VROOT to point > towards it and when I do a make all in usr/src directory, I get the > following error when make cwds and runs in the i86pc/unix direcotry: -Compiling the kernel with Sun Studio 12 doesn''t quite work yet. I don''t know the details (may be it''s what Frank hinted at in his reply), nor a timeline, but currently you need to use Sun Studio 11. sorry ''bout that Michael -- Michael Schuster Sun Microsystems, Inc. recursion, n: see ''recursion''
> Bhaskar Jayaraman wrote: > > Hi thanks for your posts so far. Since what I had > assumed was a 32 bit > > kernel which I compiled didn''t work, I religiously > set out on compiling > > a 64 bit version as my system is currently booted > in 64 bit mode. I > > installed SUNStudio12 on the system and set the > SPRO_VROOT to point > > towards it and when I do a make all in usr/src > directory, I get the > > following error when make cwds and runs in the > i86pc/unix direcotry: - > > Compiling the kernel with Sun Studio 12 doesn''t quite > work yet. I don''t > know the details (may be it''s what Frank hinted at in > his reply), nor a > timeline, but currently you need to use Sun Studio > 11. > > sorry ''bout that > Michael > -- > Michael Schuster Sun Microsystems, Inc. > recursion, n: see ''recursion'' > _______________________________________________ > xen-discuss mailing list > xen-discuss@opensolaris.orgI replaced studio12 with studio11 and am still seeing the same error. I am using the -xmodel=kernel option in the makefile and I havent modified any of them so they all stay as it is. I get this warning during compilation: - cc: Warning: -xarch=amd64 is deprecated, use -m64 to create 64-bit programs So I change amd64_XARCH= -xarch=amd64 -Ui386 -U__i386 to amd64_XARCH= -m64 -Ui386 -U__i386 in the makefile but that didn''t work so I changed the above to amd64_XARCH= -xarch=generic64 -Ui386 -U__i386 and I see no warnings but then the "value does not fit " error still shows up when a make is done in /export/path/to/workspace/usr/src/uts/i86pc/unix/obj64 directory Any clues will be helpful. I saw a similar post by someone else earlier but no solution to it. Regards Bhaskar. This message posted from opensolaris.org
Build is proceeding fine now. I think the SS12 binaries were still around and when I removed them completely and replaced them with SS11 everything fell in place. The small changes that I have made in the makefiles are: - 1] Removing ELFSIGN as I don''t have SUNWosnetSE certificate with me 2] Removing memtest compilation from the Makefile.i86pc.shared as this directory doesn''t exist. 3] Removing ELFSIGN for SUNWosnetCF as I dont have certificate either Will wait for the build to finish and hope for the system to upgrade to the new kernel. Please let me know if you see any issues with the changes above. Thanks and regards. Bhaskar. This message posted from opensolaris.org
I got this ''value ... doesn''t fit'' messages whenever I used the compilers that came along with my SXDE install. I downloaded the studio11 compilers and used them to build ON, then build went through fine. -surya>On Wed, 21 Nov 2007, Bhaskar Jayaraman wrote: > > > >>Hi thanks for your posts so far. Since what I had assumed was a 32 bit kernel which I compiled didn''t work, I religiously set out on compiling a 64 bit version as my system is currently booted in 64 bit mode. >>I installed SUNStudio12 on the system and set the SPRO_VROOT to point towards it and when I do a make all in usr/src directory, I get the following error when make cwds and runs in the i86pc/unix direcotry: - >> >> >>o/p on stderr: - >>... >>... >>ld: fatal: relocation error: R_AMD64_32: file ./obj64/unix.o: symbol kdi_update_drreg: value 0xfffffffffb821ab8 does not >>fit >>ld: fatal: relocation error: R_AMD64_32: file ./obj64/unix.o: symbol kdi_memrange_add: value 0xfffffffffb821b18 does not >>fit >>ld: fatal: relocation error: R_AMD64_32: file ./obj64/unix.o: symbol kdi_memranges: value 0xfffffffffbc30be0 does not fit >>ld: fatal: relocation error: R_AMD64_32: file ./obj64/unix.o: symbol kdi_memranges: value 0xfffffffffbc30be8 does not fit >>ld: fatal: relocation error: R_AMD64_32: file ./obj64/unix.o: symbol kdi_idt_switch: value 0xfffffffffb821b68 does not fi >>t >>ld: fatal: relocation error: R_AMD64_32: file ./obj64/unix.o: symbol kdi_activate: value 0xfffffffffb821c18 does not fit >>ld: fatal: relocation error: R_AMD64_32: file ./obj64/unix.o: symbol kdi_deactivate: value 0xfffffffffb821d68 does not fi >>t >>make: Fatal error: Command failed for target `obj64/unix'' >>Current working directory /export/path/to/workspace/usr/src/uts/i86pc/unix >>make: Fatal error: Command failed for target `all.obj64'' >>Current working directory /export/path/to/workspace/usr/src/uts/i86pc/unix >>make: Fatal error: Command failed for target `unix'' >>Current working directory /export/path/to/workspace/usr/src/uts/i86pc >>make: Fatal error: Command failed for target `i86pc'' >>Current working directory /export/path/to/workspace/usr/src/uts >>make: Fatal error: Command failed for target `uts'' >> >>o/p on stdout: >> >>
Could you say how you completely removed SS12? I''m seeing the exact same "does not fit" problem after moving aside /opt/SUNWspro to /opt/SUNWspro- (I thought I should do a pkgrm, but it was not listed as an installed package.) and untarring SS11 in its place. I''ve tried some other suggestions, like running nightly, with no success. This message posted from opensolaris.org