Thursday Aug 23, 2007

Been meaning to post something about this for a while, but got caught up with other things.
Anyway, if you're running SunStudio 12 with Fedora 7 you probably noticed that the Collector doesn't work. Here's the output for a simple command line call to collect:


[rv@oak bin]$ ./collect
> Unknown Redhat Linux version
> Fedora release 7 (Moonshine)
> WARNING: Linux-32-bit, 2 CPUs, RH_UNK system oak is not supported
> by the Performance tools.
> NOTE: The J2SE[tm] version 1.5.0_09 found at
> /usr/java/jdk1.5.0_09/bin/java (picked by Sun Studio Default) is
> supported by the Performance tools.
> WARNING: Data collection may fail: system is not properly configured or
> is unsupported.

And here's the output if you run it through the IDE:


Running "/opt/sun/sunstudio12/prod/bin/collect -d /home/rv/Documents/HelloBug/nbproject/private/experiments -o test.1.er -A on -p on -S on /home/rv/Documents/HelloBug/dist/Debug/GNU-Linux-x86/test" in /home/rv/Documents/HelloBug

Unknown Redhat Linux version
Fedora release 7 (Moonshine)
WARNING: Linux-32-bit, 2 CPUs, RH_UNK system oak is not supported by the Performance tools.
WARNING: Data collection may fail: system is not properly configured or is unsupported.
Creating experiment database /home/rv/Documents/HelloBug/nbproject/private/experiments/test.1.er ...
Run failed. Exit value 139.

Notice that it fails with exit value 139.

I found a thread (http://forum.java.sun.com/thread.jspa?threadID=5188632) over at the SunStudio forum but they come up with the wrong conclusions.

You see, the documentation lists the supported platforms and Fedora isn't one of them. But that doesn't mean it shouldn't work. I know people who have been using it with Ubuntu and it's working fine.

I managed to get a hold of someone from the development team to check it out and this is now officially a bug. SunStudio is not open source so I can't point you to wherever the bug's listed, but trust me, it's there somewhere.

I hope they come out with a fix for it in the near future.

This blog copyright 2009 by rv