CC for Linux with Sun Studio 12 gets Signal 11 parsing gtk.h

I just install SunStudio 12 on a Fedora 7 Linux box, and it appears it can not compile

even the simplest gtk application written in C++.

/opt/sun/sunstudio12/bin/CC -c -g -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include tstgtk.cc

>> Signal 11:

while processing /usr/include/gtk-1.2/gtk/gtk.h at line 1.

tstgtk.cc only contains the one line

#include <gtk/gtk.h>

The same command works if I replace the CC with lowercase suncc or with g++.

/opt/sun/sunstudio12/bin/sunCC -V

sunCC: Sun C++ 5.9 Linux_i386 2007/05/03

uname -a

Linux galactica-304 2.6.21-1.3194.fc7 #1 SMP Wed May 23 22:35:01 EDT 2007 i686 i686 i386 GNU/Linux

[728 byte] By [wshacklea] at [2007-11-27 6:44:22]
# 1
Amazing!If you replace the #include by the actual content of the gtk.h file it still segfaults, but if you remove some lines of the license comment it works ok...
Marc_Glissea at 2007-7-12 18:15:40 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2
Probably CC is not compatible with this license :-)To be more serious - what is the size of gtk.h? On some Linux hosts our compiler has a problem when file size is a multiple of memory page size.
Atanasyana at 2007-7-12 18:15:40 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 3
gtk/gtklayout.h (which gets included by gtk/gtk.h) has size 4096 so this might be the reason. (for the record I get this on debian etch as well)
Marc_Glissea at 2007-7-12 18:15:40 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 4
Look like I'm right. It's the problem with file size and memory page. Temporary workaround is quite simple - add or remove one byte from the file. This bug is assigned to me and I will take a look on it in the near future.
Atanasyana at 2007-7-12 18:15:40 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 5
Hi,Even i have have the same problem . Not a simple hello world program was compiled by the command CC hello.ccbut try the CC command with the option i.eCC -m32 hello.cc it worksbye
psathishcsa at 2007-7-12 18:15:40 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 6
This is probably different problem since the one mentioned above is in compiler's front end, which shouldn't depend on target architecture option, which from what I know affects back end only. Can you post source code of hello.cc here so that we can reproduce it?Thanks!
MaximKartasheva at 2007-7-12 18:15:40 > top of Java-index,Development Tools,Solaris and Linux Development Tools...