Solaris / OpenSolarisThis forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I don't think I have sun studio compiler. How can I check that?
I have these:
Code:
bash-3.00# cc -v
Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs
Configured with: /sfw10/builds/build/sfw10-patch/usr/src/cmd/gcc/gcc-3.4.3/confi
gure --prefix=/usr/sfw --with-as=/usr/ccs/bin/as --without-gnu-as --with-ld=/usr
/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++ --enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
bash-3.00# gcc -v
Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.10/3.4.6/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/l
d --enable-shared --enable-languages=c,c++,f77
Thread model: posix
gcc version 3.4.6
bash-3.00# g++ -v
Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.10/3.4.6/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/l
d --enable-shared --enable-languages=c,c++,f77
Thread model: posix
gcc version 3.4.6
I also looked at the config file I use and found these:
Code:
# adjust for where you have installed your compiler (or leave commented
# out if you've got it on your PATH)
# SPECLANG = /opt/SUNWspro/bin/
CVERBOSE = -V
CXXVERBOSE = -verbose=version
FCVERBOSE = -V
# Note: for the most part, the -g/g0 flags used below do not prevent
# optimization, so their usage is probably a good idea, at least at
# first. The stlport4 library is essential: you won't get 447.dealII to
# compile without it.
C_GENFLAGS = -g
CXX_GENFLAGS = -g0 -library=stlport4
F_GENFLAGS = -g
CC = ${SPECLANG}cc ${CVERBOSE} ${C_GENFLAGS}
CXX = ${SPECLANG}CC ${CXXVERBOSE} ${CXX_GENFLAGS}
FC = ${SPECLANG}f90 ${FCVERBOSE} ${F_GENFLAGS}
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
I would expect "cc: not found" or perhaps "/usr/ucb/cc: language optional software package not installed" as it seems you only have gcc installed but not cc calling gcc under the hood.
What says:
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
Then you could have read the reply to the post you linked, reply which I happen to be the author. Linking cc to gcc is likely the root cause of the confusing error messages and behavior you are getting.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
Not necessarily. I have no idea about what you are trying to compile and how as you didn't provide any details about it. I'm only telling the symlink you create is more than likely confusing the script/makefile/whatever you use.
If it supports gcc, you might have better removing the link and setting the CC variable to gcc.
Code:
export CC=gcc
...
If it doesn't support gcc, the easier way would be to install cc.
I am trying to compile SPEC CPU2006. It uses a config file for building that I paste part (related to compiler) of it in post #3.
How can I install cc? there is no package named "cc".
bash-3.00# ./SolarisStudio12.2-solaris-sparc-pkg-ML.sh
Configuring the installer...
Searching for JVM on the system...
Extracting installation data (can take a while, please wait)...
Running the installer wizard...
Java Accessibility Bridge for GNOME loaded.
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
bash-3.00#
Thanks a lot. Installation was successful with --non-interactive
After installation cc was in /usr/bin and when I compile the benchmark it does not complain about cc
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.