From: Gary B. <Gary.Braida@Sun.COM> - 2003-02-25 20:32:39
|
For those that are interested, apparently the pre-compiled version of gcc v3.2.2 available at http://www.sunfreeware.com has 64-bit support built-in. I'm going to update my gcc environment and try again. Gary... Steven Wagner wrote: > I don't have my notes on the specifics anymore, but the stock prefab gcc > is almost certainly NOT going to build 64-bit binaries. > > What you end up having to do is ... download your favorite gcc core > version, and then configure it to build sparcv9 binaries (64-bit sparc). > > Check the gcc documentation for more details. But gcc -v output will > look something like this: > > Configured with: ./configure --prefix=/usr/local/gcc-3.0.1-64bit > --enable-languages=c,sparcv9-sun-solaris : (reconfigured) ./configure > --prefix=/usr/local/gcc-3.0.1-64bit > --enable-languages=c,sparcv9-sun-solaris --with-cc=cc : (reconfigured) > ./configure --prefix=/usr/local/gcc-3.0.1-64bit > --enable-languages=c,c++,sparcv9-sun-solaris > > Good luck... > > Gary Braida wrote: > >> Hi Jim, >> >> Just a quick note to thank you and Steve for your replies to my questions >> regarding compiling ganglia v2.5.2 on Solaris 8. >> >> I'm using a pre-compiled version of the gcc compilers and I don't know >> if it supports 64-bit. I'll >> take a closer look. If not, I'll try and find a version that compiles >> 64-bit code and try compiling ganglia again. I may or may not put >> anymore effort >> into getting ganglia to compile using the Sun Forte compilers. >> >> As for the machines I'm attempting to monitor, they're all Solaris boxes >> running Solaris 8 (64-bit kernel). We have a small Beowulf cluster >> (Red Hat on Intel) >> as well that is part of the mix but the goal is to find one tool to >> monitor both >> environments. >> >> Thanks everyone! >> >> Gary... >> >> >> Jim Rowan wrote: >> >>> ... >>> >>> >>>> I'm really just looking for general gotchas and tips for compiling >>> >>> >>> >>> ganglia >>> >>>> on Solaris 8; ideally using Sun's Forte Developer compilers. I was >>> >>> >>> >>> able >>> >>>> to successfully compile gmond using gcc v2.95.3 but the gmond binary >>> >>> >>> >>> would >>> >>>> not start. I've narrowed this problem down to the fact that this >>> >>> >>> >>> system is >>> >>>> running a 64-bit kernel and gmond is looking for 32-bit kernel >>> >>> >>> >>> parameters >>> >>>> judging by the gmond (gmond -d5) error - "gmond: /dev/ksyms is not a >>> >>> >>> >>> 32-bit >>> >>>> kernel namelist". >>> >>> >>> >>> >>> Yes, that (probably) means that gcc built a 32 bit binary. You need it >>> to be 64 bits, and that won't happen by default unless the person that >>> built gcc arranged it to be so. If gcc was built with multi-lib (which >>> would be the default on this platform, at least with new versions of >>> gcc), you can tell it to build a 64 bit version. (I forget how, but >>> info gcc will tell you..) >>> >>> When we got solaris 8/9, I carefully avoided this whole mess by building >>> gcc so that it builds 64 bit binaries by default... In that context, >>> ganglia builds with a simple configure/make/make install. >>> >>> When you do eventually get it built, be aware that some of the metrics >>> that it reports aren't actually collected. You get a flat line. :( >>> >>> >>> >>>> Back to Solaris 8 and Forte compilers and 64-bit compiling and linking. >>>> Any >>>> comments and/or suggestions for compiling ganglia on Solaris using a >>> >>> >>> >>> 64-bit >>> >>>> kernel would be greatly appreciated. >>> >>> >>> >>> >>> Sorry, don't have that compiler... >>> >>> >> >> >> >> ------------------------------------------------------- >> This sf.net email is sponsored by:ThinkGeek >> Welcome to geek heaven. >> http://thinkgeek.com/sf >> _______________________________________________ >> Ganglia-developers mailing list >> Gan...@li... >> https://lists.sourceforge.net/lists/listinfo/ganglia-developers > > > |