Questions tagged [sunstudio]

Oracle Developer Studio, formerly Oracle Solaris Studio, Sun Studio, Forte, & Sun Workshop, includes compilers for C, C++, and Fortran; an IDE and debugger; performance and code analyzers; and other tools for developing on the Solaris and Linux OS'es.

Oracle Developer Studio is a developer tool suite Oracle acquired when it bought Sun Microsystems. At Sun it went through many names, including Sun Studio, Forte, Sun Workshop, and SunPro.

The suite currently includes compilers for C, C++, and Fortran; an IDE based on NetBeans; an enhanced version of the classic Unix dbx debugger; performance, thread, and code analyzers; and other tools for developing & debugging on the Solaris and Linux OS'es.

Documentation is available from http://www.oracle.com/technetwork/server-storage/solarisstudio/documentation/index.html.

Downloads and more information can be found at Oracle’s Solaris Studio web page.

74 questions
2
votes
1 answer

How to print preprocessor macros under Sun Studio?

I'm working under Sun Studio 12.3 on SunOS 5.11 (Solaris 11.3). I need to see the macros that Sun Studio defines to fix a bug report taken under the suite. This is similar to Solaris and Preprocessor Macros, but the cited question uses GCC and its…
jww
  • 97,681
  • 90
  • 411
  • 885
2
votes
0 answers

How to debug a core generated by a C++ binary without debug symbols on Solaris?

I know you can build an application on Linux without -g, and then later debug a corefile from the application with a binary from the same code but built with -g (all other options being the same). If the nm output is identical then the symbols match…
2
votes
1 answer

Sun Studio 12 C compiler for Linux is so slow

I download and tried it today. It compiles my project but "suncc" is even slower then "gcc" which is famous for its leisureliness. I just -xO1 which i thought should do no optimizations. I have a lot of inline declared C functions. Is there a way…
Lothar
  • 12,537
  • 6
  • 72
  • 121
1
vote
1 answer

Sun Studio Compiler: implicit function declaration: typeof

When attempting to compile mpd with Sun Studio compiler: "client.c", line 438: warning: implicit function declaration: typeof I tracked down the offending lines of code, in dlist.h: #define list_for_each_entry(pos, head, member) …
automaciej
  • 429
  • 3
  • 14
1
vote
0 answers

Sun Studio 11 for Solaris 8. Oracle site does not have it (Dead Link)

I need Sun Studio 11 specifically since it is the last one supported on Solaris 8. The Oracle site simply does not have it. It seems to be a bug, and goes around in circles. i.e. Oracle site says "Sun links are dead, go here on Oracle site", and…
KGA
  • 135
  • 1
  • 1
  • 9
1
vote
2 answers

Where can I find the linker(ld) in Sun Solaris Studios 12.2?

At the moment I am using for linking purposes the pre-installed linker on my SPARC machine in the following directory: /usr/ccs/bin/ld I wanna compile my application with the Sun Studios Compiler 12.2 and so I would also like to use the linker that…
Mike
  • 71
  • 1
  • 3
1
vote
2 answers

std::sort problem on solaris (libCstd)

I have a problem on Solaris using the Sun Studio compiler, which is most likely due to the strange STL implementation (libCstd) used, see http://developers.sun.com/solaris/articles/cmp_stlport_libCstd.html. Consider this: std::vector v; // ..…
lytenyn
  • 819
  • 5
  • 21
1
vote
3 answers

How to disable warnings for system headers in Sun Studio 12

We're in the middle of tidying up our codebase by (among other things) fixing all the compiler warnings. The end goal is to turn on the flag that converts all warnings to errors. We've run into a slight snag with system and thirdparty headers. …
Glen
  • 21,816
  • 3
  • 61
  • 76
1
vote
2 answers

Missing Separator when using shell function?

I'm working on Solaris 11, fully patched. I'm trying to determine if the compiler supports an ISA by dumping preprocessor macros under the ISA. Make is dying due to a Missing Separator. I'm having trouble finding information about the Missing…
jww
  • 97,681
  • 90
  • 411
  • 885
1
vote
0 answers

The operand type "__m128i_" is not allowed for the constraint "+x"

I'm testing on Solaris 11.3 with Sun Studio 12.2. I'm having trouble getting a SSE shuffle to compile: solaris:$ cat test.cxx #include #include int main(int argc, char* argv[]) { __m128i a, b; asm ("pshufb %1, %0" :…
jww
  • 97,681
  • 90
  • 411
  • 885
1
vote
1 answer

Invalid reference to argument 'N' in GASM Inlining

I'm building Botan on Solaris 11.3 with the SunCC compiler that comes with Developer Studio 12.5. I'm not too familiar with the library or Solaris, and it takes me some effort to track down issues. The compile is dying on a relatively benign file…
jww
  • 97,681
  • 90
  • 411
  • 885
1
vote
1 answer

SunCC 5.12 through 5.14 and "Types cannot be declared in anonymous union"

We are catching a compile warning under SunCC 5.12 through 5.14. Other compilers, like Clang, GCC, ICC and MSVC does not complain. I'm not sure about the diagnostic because I have not encountered it before. The code in question is for a BigInteger…
jww
  • 97,681
  • 90
  • 411
  • 885
1
vote
1 answer

What causes SunCC crash in g3mangler.cc when using `-std=XXX`?

I'm trying to determine what is causing SunCC 5.11 - 5.13 to die with ../lnk/g3mangler.cc, line 825 (message from SunCC 5.13). Here's what it looks like during a compile. The machine is a 4th gen Core i5, so its got the features which correspond to…
jww
  • 97,681
  • 90
  • 411
  • 885
1
vote
3 answers

Spurious " is expected to return a value" warning?

I'm working under Sun Studio 12.3 on SunOS 5.11 (Solaris 11.3). Its providing a spurious warning: "", line 1: Warning: "" is expected to return a value. The function is part of a base class interface and looks like so. I only…
jww
  • 97,681
  • 90
  • 411
  • 885
1
vote
1 answer

error while loading shared libraries: libCstd.so.1: cannot open shared object file: No such file or directory

error while loading shared libraries: libCstd.so.1: cannot open shared object file: No such file or directory. Hello! I got this error when I tried to run a C++ project in Netbeans 6.8 with the Sun compiler from Sun Studio 12.1. I want analyze…
Jonás
  • 1,459
  • 4
  • 27
  • 43