问题
We are part of the Oracle OTN Network. Oracle Solaris Studio publisher is installed (enabled?) and allows us to support up to Sun Studio 12.4. We want to add support for Sun Studio 12.5 for the next release.
We tried to install Sun Studio 12.5 following the 12.4 instructions, but we are not finding it:
$ pkg list -af 'pkg://solarisstudio/developer/solarisstudio-125/*'
pkg list: no packages matching 'pkg://solarisstudio/developer/solarisstudio-125/*' known
$ pkg search solarisstudio | grep 125
$
Which package repository can we find Sun Studio 12.5?
Here's an expected result and the result of searching for the latest component.
$ pkg search '*c++@12.4*'
INDEX ACTION VALUE PACKAGE
require depend developer/solarisstudio-124/c++@12.4,5.11-1.0.0.0 pkg:/developer/solarisstudio-124@12.4-1.0.0.0
$ pkg search '*c++@12.5*'
$
回答1:
You can see which versions of Studio have been released at this page: http://www.oracle.com/technetwork/server-storage/solarisstudio/overview/index.html
12.5 is in beta release, but it has not been released yet.
I believe it will be available in the same repo as 12.4 when it finally ships.
Additions:
The beta release is available as java-based standalone installers for Linux and Solaris 10. It's available as a tarball for Solaris 11. There are no IPS packages for Solaris 11 for the beta release of Studio. The IPS packages will be available at the official release of 12.5
回答2:
It appears Sun Studio 12.5 was released for Solaris 11. Also see Download Options for Oracle Developer Studio. It can be added from the commad line with:
sudo pkg install --accept developerstudio-125
Once installed, CC is located at:
$ ls /opt/developerstudio12.5/bin/
analyzer er_cp perftools_validate
bcheck er_export perftools_whichami
binopt er_generic ptclean
c++filt er_html ripc
c89 er_html_cols rtc_patch_area
c99 er_html_columnsD rxm
cb er_html_columnsI rxs
cc er_kernel smctl
CC er_label solstudio
...
The compiler is awful, though. It crashes when testing Debug, Release, C++03, C++11, C++17, with inline ASM, without inline ASM, etc. The bad thing is/was, they are different crashes and not repeats of the same crash. Also see Developer Studio 12.5 and Static error checker encountered an unexpected error on the Oracle boards.
回答3:
The compiler supports C++11 and partial C++14 not c++17.
来源:https://stackoverflow.com/questions/37833267/what-repository-needs-to-be-enabled-for-sun-studio-12-5