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
1
vote
1 answer

Which compiler (Sun Studio or gcc ) to choose while porting from Solaris Sparc to Linux x86

We have decide to port our application that currently runs on solaris sparc to linux x86 system. Which compiler, Sun Studio or GNU gcc would be more beneficial to use on linux? Which one would produce at a good level of optimized binaries? Any help…
1
vote
2 answers

Error building ace in solaris and linux

I have issues building ace 5.3 in linux. I get the following error. g++ -W -Wall -Wpointer-arith -pipe -O3 -g -Wno-uninitialized -fno-implicit-templates -DACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION -D_POSIX_THREADS -D_POSIX_THREAD_SAFE_FUNCTIONS…
user3484214
  • 41
  • 1
  • 1
  • 3
1
vote
0 answers

compiling numpy with sunperf atlas libraries

I would like to use the sunperf libraries when compiling scipy and numpy. I tried using setupscons.py which seems to check from SUNPERF libraries, but it didnt recognize where mine are: here is a listing of /pkg/linux/SS12/sunstudio12.1 (thats where…
Wolfgang Kerzendorf
  • 724
  • 1
  • 9
  • 24
1
vote
2 answers

Unable to compile T1 Architecture and Simulation modelling tool

First of, I am very new to this. I am trying to compile the T1 Architecture and Simulation modelling tool (http://www.oracle.com/technetwork/systems/opensparc/opensparc-t1-page-1444609.html), using Sun Studio 12.3 as compiler on Solaris 10 with…
user3285014
  • 319
  • 1
  • 3
  • 12
1
vote
1 answer

Compiling with debug symbols requires additional libraries?

I have a curious problem: When building object files with -g, the linker suddenly complains about missing symbols from libbar on wich my tool depends indirectly through libfoo. This does not happen without -g. These symbols seem to be coming from…
lytenyn
  • 819
  • 5
  • 21
1
vote
1 answer

Organizing a large c++ system in Sun Studio (NetBeans)

My group is maintaining a c++ system that includes multiple executables and many static libraries. It was developed without a contemporary ide, i.e. with emacs. We'd like to start using Sun Studio (NetBeans). Is there a resource describing how to…
wsh8z
  • 29
  • 1
0
votes
5 answers

Static linking with Sunstudio

I'm trying to link my library xxx to a library yyy. I want to link statically so that I don't need to package yyy along with xxx when I deliver xxx. I have two versions of yyy provided by a third-party: libyyy.so and libyyyln.a. So here I go and…
Mathieu JVL
  • 345
  • 2
  • 8
0
votes
1 answer

How can I determine the project directory and other environmental variables in SunStudio?

I'm currently trying to add a post build step to a SunStudio project's build/make file, but to continue I need to know the project's directory. Problem is ${PWD} doesn't return the current directory and I can't find any environmental variable like…
Robert Gould
  • 68,773
  • 61
  • 187
  • 272
0
votes
1 answer

Populate global function pointers in shared library (Solaris, Sun Studio)

I am creating a small C++ wrapper shared library around a Fortran 95 library. Since the Fortran symbols contain . in the symbol name, I have to use dlsym to load the Fortran function into a C++ function pointer. Currently, I have a bunch of global…
lytenyn
  • 819
  • 5
  • 21
0
votes
0 answers

Boost 1.81.0 (chrono and thread) library compilation is failing with Sun Studio 12.5

Facing below error when i am compiling chrono or thread alone in sun studio 12.5 Error I am getting while build boost thread/ chrono is below "CC" -std=c++11 -m64 -xarch=sparc -mt -lCstd -xO4 -mt -erroff=%none -xldscope=hidden -m64…
0
votes
2 answers

developerstudio12.6 CC on Solaris intel i386, compiler do not show errors or warnings but fails

Trying to compile C++ program using developerstudio12.6 CC on Solaris intel i386. compiler do not show errors or warnings but fails. Possible to figure why CC do not show any warnings or errors - what is possibly going…
0
votes
1 answer

Need for -xarch=XXX when an instruction is used in byte code form?

I have a x86 RDRAND implementation like below. I have a similar implementation for RDSEED. inline void RDRAND32(void* output) { #if defined(HAVE_GCC_RDRAND_ASM) __asm__ ( "1:\n" ".byte 0x0f, 0xc7, 0xf0;\n" "jnc…
jww
  • 97,681
  • 90
  • 411
  • 885
0
votes
2 answers

Warnings and SunStudio C++ compiler

I talked my team into turning on compiler warnings again. Some how all warnings (-w) were disabled (don't ask...). Most of them are obvious but one of them is really annoying. I get it from my date and time classes which are used in lots of places.…
Nazgob
  • 8,502
  • 4
  • 40
  • 42
0
votes
0 answers

Can gcc initialize uninitialized pointers to NULL? Or what would explain this behavior?

Can gcc somehow initialize uninitialized pointers to NULL? At work, we build our software on both gcc 4.1.2 as well as Sun Studio 12. The gcc version, running on Red Hat Enterprise Linux, has been running fine, 5 days a week, for several months. We…
Andrew Cheong
  • 29,362
  • 15
  • 90
  • 145
0
votes
0 answers

Detect Sun Studio compiler and add platform libraries in CMakeList.txt?

Sun Studio 12.5 on Solaris 11.3. Solve one problem and move to the next... Building our project with CMake results the link error below. I believe its a simple matter of detecting SunCC and adding -lnsl -lsocket to LDLIBS. However, the method to…
jww
  • 97,681
  • 90
  • 411
  • 885