Re: [osol-discuss] OS b132: Sun C++ cannot compile C++ source due to linker segfault.

2010-02-25 Thread John Martin
On 02/25/10 12:13 AM, William Kucharski wrote: What I see in b133 is this: $ CC test.cc CC: Fatal error in ld: Segmentation Fault (core dumped) ld: fatal: file /opt/sunstudio12.1/prod/lib/crti.o: section [9].rela.annotate has invalid type [ SHT_RELA ] When previously reported, the two

Re: [osol-discuss] OS b132: Sun C++ cannot compile C++ source due to linker segfault.

2010-02-25 Thread Shawn Walker
On 02/24/10 11:13 PM, William Kucharski wrote: What I see in b133 is this: $ CC test.cc CC: Fatal error in ld: Segmentation Fault (core dumped) ld: fatal: file /opt/sunstudio12.1/prod/lib/crti.o: section [9].rela.annotate has invalid type [ SHT_RELA ] If you have installed sunstudio12u1,

Re: [osol-discuss] OS b132: Sun C++ cannot compile C++ source due to linker segfault.

2010-02-25 Thread Sivakumar Shanmugasundaram
Till you get the updated compiler, you can try setting the environment variable LD_NOEXEC_64=1 -Siva PS: Did we not just had a similar question? On 02/25/10 11:10 AM, Ginn Chen wrote: An old bug. You need to update the compiler. However, I don't know how to do that on OpenSolaris. I just

Re: [osol-discuss] OS b132: Sun C++ cannot compile C++ source due to linker segfault.

2010-02-24 Thread William Kucharski
What I see in b133 is this: $ CC test.cc CC: Fatal error in ld: Segmentation Fault (core dumped) ld: fatal: file /opt/sunstudio12.1/prod/lib/crti.o: section [9].rela.annotate has invalid type [ SHT_RELA ] -- This message posted from opensolaris.org

Re: [osol-discuss] OS b132: Sun C++ cannot compile C++ source due to linker segfault.

2010-02-24 Thread Ginn Chen
An old bug. You need to update the compiler. However, I don't know how to do that on OpenSolaris. I just rsync the updated compiler from a Solaris 10 machine. Ginn On Feb 25, 2010, at 1:13 PM, William Kucharski wrote: What I see in b133 is this: $ CC test.cc CC: Fatal error in ld:

Re: [osol-discuss] OS b132: Sun C++ cannot compile C++ source due to linker segfault.

2010-02-17 Thread Karel Gardas
Try setting environment variable LD_NOEXEC_64=1 and do the compilation. Thank you for this! Indeed, when I do this, I'm able to compile the file. On the other hand this breaks compilation with -m64 for which I need to unset this variable. Anyway, thanks! Karel -- This message posted from

[osol-discuss] OS b132: Sun C++ cannot compile C++ source due to linker segfault.

2010-02-16 Thread Karel Gardas
Hello, after update from b129 to b132 I'm not able to use CC as the called ld segfaults: $ cat test.cc #include iostream int main() { std::cerr Hello std::endl; return 0; } $ CC test.cc CC: Fatal error in ld: Segmentation Fault (core dumped) ld: fatal: file

[osol-discuss] OS b132: Sun C++ cannot compile C++ source due to linker segfault.

2010-02-16 Thread Karel Gardas
Hello, after update from b129 to b132 I'm not able to use CC as the called ld segfaults: $ cat test.cc #include iostream int main() { std::cerr Hello std::endl; return 0; } $ CC test.cc CC: Fatal error in ld: Segmentation Fault (core dumped) ld: fatal: file

Re: [osol-discuss] OS b132: Sun C++ cannot compile C++ source due to linker segfault.

2010-02-16 Thread Karel Gardas
Oops, the forum is not working correctly while trying to inline the information. Please see transcript including CC/ld error message here: http://www.mico.org/~karel/suncc_ld_segfault.txt Thanks, Karel -- This message posted from opensolaris.org ___

Re: [osol-discuss] OS b132: Sun C++ cannot compile C++ source due to linker segfault.

2010-02-16 Thread John Martin
On 02/16/10 07:49 AM, Karel Gardas wrote: $ CC test.cc CC: Fatal error in ld: Segmentation Fault (core dumped) ld: fatal: file /opt/sunstudio12.1/prod/lib/crti.o: section [9].rela.annotate has invalid type [ SHT_RELA ] is this a known bug or should it be reported somewhere? CR

Re: [osol-discuss] OS b132: Sun C++ cannot compile C++ source due to linker segfault.

2010-02-16 Thread Alan Coopersmith
John Martin wrote: CR 6823945. Apply the latest SS12U1 patch 141858. Which would require installing a machine running an older version of Solaris, installing the Studio tools on it, and then patching, since you can't apply SVR4 package patches on OpenSolaris (and b132 means he must be running

Re: [osol-discuss] OS b132: Sun C++ cannot compile C++ source due to linker segfault.

2010-02-16 Thread Sivakumar Shanmugasundaram
Try setting environment variable LD_NOEXEC_64=1 and do the compilation. -Siva On 16/02/2010 18:19, Karel Gardas wrote: Hello, after update from b129 to b132 I'm not able to use CC as the called ld segfaults: $ cat test.cc #includeiostream int main() { std::cerr Hello std::endl; return 0; }

Re: [osol-discuss] OS b132: Sun C++ cannot compile C++ source due to linker segfault.

2010-02-16 Thread Dan Pitic
In the linker options, use -xannotate=no -- This message posted from opensolaris.org ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org