[SEToolkit-developer] Building 64bit binaries
Brought to you by:
dmichelsen
|
From: Jon C. <can...@gm...> - 2007-08-17 03:00:44
|
Once I got past my gcc issues I noticed that the binaries/objects being generated were 32bit. When I started toptool as a test I noticed it complained about not being able to initialize libkvm. I manually added a '-m64' to my Makefiles to force gcc to build 64bit binaries and was immediately faced with not have a 64bit version of libgcc. Not wanting to work through building a 64 bit version of libgcc, I instead resurected by SUN Studio 11 install and re-ran autoreconf to setup for builds using SUNWspro. While successful, I noticed this too built 32 bit objects. I again manually added "-xtarget=generic64 -xarch=v9" to my "CFLAGS" line in the Makefile to force 64bit builds. This was successful, and comparing the ldd output between this new build and a 3.4.1 version in /opt/RICHPse, they now match. Toptool starts like a champ and no longer displays the libkvm error. If it would be of value I can continue forward with a GCC build, but lacking an interest by others I would most likely just stick with SUNWspro. |