Sun Studio cc fails to correctly compile a threaded Perl on FC5

I have been working Sun C compilers for Linux for some time, but recent versions have not been able to build a threaded Perl correctly. The earliest working example I can find of a successful build and test is documented here <http://groups.google.com/group/perl.daily-build.reports/browse_thread/threa d/d7184da0c12fc1d8/9cdc1e236831d8fd?lnk=st&q=linux+pass+debian+%22peters+hom eunix+org%22&rnum=6&hl=en#9cdc1e236831d8fd>

The problems seem to a compiler bug isolated to the Sun Studio cc for Linux. Perl continues to compile and work successfully on Linux with gcc and Intel. It also compiles and runs fine with Sun Studio cc on Solaris.

The problem is that while suncc seems to compile the files correctly, when miniperl is run (miniperl is a perl built in an intermediate step), it dies with a segmentation fault. Below is a gdb backtrace from the coredump (sorry it isn't exceptionally informative...)

(gdb) bt

#0 0x0811d960 in pthread_atfork ()

#1 0x0810d4c6 in main ()

I've been going through the various compiler options attempting to find a workaround, but haven't found a solution. Hopefully, posting this information will help you all with finding the problem. If you wish to try for yourself, you can download a recent Perl archive of Perl's code from <http://public.activestate.com/pub/apc/perl-current-snap/perl-current-latest .tar.gz> .

I configured Perl with the follow command:

./Configure -des -Dusedevel -Dcc=suncc -Duseithreads

[1531 byte] By [Steve_p] at [2007-11-26 9:44:45]
# 1
I apologize that nobody got back to you on this. Have you tried therecent Express 3 release of Sun Studio Mars? http://developers.sun.com/sunstudio/downloads/express.jsp
ChrisQuenelle at 2007-7-7 0:47:15 > top of Java-index,Development Tools,Solaris and Linux Development Tools...