Tcov Code Coverage Libraries missing from Sun Studio 12!!!

Hi,
When I try to collect coverage statistics using the -xprofile=tcov I get the following message
f90     -xprofile=tcov -w0 -C  -c ./intfaces.f90 -o ./scovintfaces.o
f90     -xprofile=tcov -w0 -C  -c ./gcovsrc.f90 -o ./scovsrc.o
f90     -xprofile=tcov -w0 -C  -c ./gcovdrv.f90 -o ./scovdrv.o
f90      -xprofile=tcov -w0 -C  -o ./five82scov.exec ./scovdrv.o ./scovsrc.o /usr/lib/libg2c.so.0 
f90: Cannot find /opt/sun/sunstudio12/prod/lib/bb_link.oThis file does not seem to be within the packages provided in sun studio 12!!! (linux/x86 editon). I then decided to get the latest patches and now I get the following message
f90     -xprofile=tcov -w0 -C  -c ./intfaces.f90 -o ./scovintfaces.o
/opt/sun/sunstudio12/prod/bin/f90comp: error while loading shared libraries: libyabe.so: cannot open shared object file: No such file or directoryThis file is also nowhere to be found!!! Have the sun developers decided to leave out crucial libraries?!?
Regards

This is not very nice from the compiler, but at least it is documented here:
http://developers.sun.com/sunstudio/documentation/ss12/mr/READMEs/fortran_95.html#limitations
Quote:
The -xprofile=collect and -xprofile=tcov options should not be used when building shared libraries on Linux.

Similar Messages

  • Libraries missing from Crusader Kings II and Europa Universalis IV?

    Dear all,
    I am trying to play Europa Universalis IV and Crusader Kings II in native (32-bit, of course) mode in my 64-bit Arch Linux workstation, and I can't get any of those games to run as I keep getting weird errors.
    More specifically, by running steam with the :
    myhost ~> LD_DEBUG="libs" steam
    command and trying to launch Europa Universalis IV, I get errors such as:
          3825:     /home/myusername/.local/share/Steam/SteamApps/common/Europa Universalis IV/eu4: error: symbol lookup error: undefined symbol: __RML_open_factory (fatal)
          3825:     /home/myusername/.local/share/Steam/SteamApps/common/Europa Universalis IV/eu4: error: symbol lookup error: undefined symbol: __cilkrts_watch_stack (fatal)
    I also tried to run Europa Universalis IV under strace to narrow down the cause of the problem, and I got:
    myhost ~/.local/share/SteamApps/common/Europa Universalis IV> strace ./eu4
    open("/home/myusername/.local/share/Steam/SteamApps/common/Europa Universalis IV/libirml.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    time(NULL)                              = 1388270839
    sched_getaffinity(8517, 128, {f, 0})    = 16
    open("/home/myusername/.local/share/Steam/SteamApps/common/Europa Universalis IV/libcilkrts.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    --- SIGABRT {si_signo=SIGABRT, si_code=SI_TKILL, si_pid=8517, si_uid=1001} ---
    +++ killed by SIGABRT (core dumped) +++
    zsh: abort (core dumped)  strace ./eu4
    From what I understand, it looks like the libirml.so.1 and libcilkrts.so libraries are missing from the Europa Universalis IV package. Crusader Kings II has exactly the same problem.
    Has any of you had the same problem? Do you have any suggestion on where to find / how to install the aforementioned libirml.so.1 and libcilkrts.so libraries? I couldn't find any package on the AUR that provides them.
    I am not an expert in Intel-provided software development tools, but it looks like those are simply redistributable binaries. So, I would guess this should be a relatively easy problem to fix.
    Thank you very much in advance for your attention.

    I don't really understand how this sort of stuff works. But I can tell you that EU4 works fine for me without having either of those libraries on my system.
    As you can see below, I get the same output as you do when performing the tests you did. The game launches fine despite this though. So I'm afraid you'll have to look elsewhere for clues.
    23707: ./eu4: error: symbol lookup error: undefined symbol: __RML_open_factory (fatal)
    23707: ./eu4: error: symbol lookup error: undefined symbol: __cilkrts_watch_stack (fatal)
    open("/home/ziemas/Steam/SteamApps/common/Europa Universalis IV/libirml.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    open("/home/ziemas/Steam/SteamApps/common/Europa Universalis IV/libcilkrts.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    Last edited by Ziemas (2013-12-29 04:23:38)

  • How to call matlab from Sun studio Fortran? ^_^

    Hello, everyone,
    I have a fortran code which calls matlab engine and matlab functions. I have successfully demonstrated the code in Compaq Visual fortran 6.6 platform. However, I don't know how to call matlab in Sun Studio platform. I don't know how to add the required Liberay modules in the Sun Studio Fortran project.
    Now I can build the code successfully, however, I cannot build the project due to the following errors:
    Undefined               first referenced
    symbol                in file
    sum_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
    matgetvariable_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
    mxcreatedoublematrix_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
    matputvariable_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
    maxval_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
    mxcopycomplex16toptr_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
    minval_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
    engopen_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
    mxdestroyarray_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
    engputvariable_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
    mxcreatenumericarray_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
    mxcopyreal8toptr_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
    matopen_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
    matclose_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
    mxclassidfromclassname_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
    mxgetstring_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
    engevalstring_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
    mxgetpr_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
    mxgetpi_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
    mxcopyptrtoreal8_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
    I think this is because that I didn't add the required liberary modules in the project. How to do that?
    I really appricate anyone who can help me to solve my problems. Thank you very much!
    All the best,
    Yunhong

    hello,
    Unfortunately, matlab doesn't exist on solaris x86 platform. They only deliver matlab for sparc platform, and i'm wonder if it is EOL'ed now?
    Sun never convince Mathworks to offer matlab for solaris x86, so you have to use (if it is possible) other software like Mathematica (money) or Scila, Sage, Octave, ... (free)
    We are several Mathworks customers who asked Mathworks for that, and i never understand why people continues to use old or slow sparc machines to compute.
    Anyway, today, solaris isn't a right choice for computing, but i'm waiting for Sun to prove that i'm wrong.
    (my main compute server is a Sun V40z with Solaris 10, but the next one will be a Sun X2270 with CentOS, because matlab)
    gerard

  • Host adapters libraries missing from the CS SDK

    Hi,
    I have some extensions built with Flah Builder 4.5 and the CS Extension Builder, that I had to compile via ANT in order to port them to a continuous integration server. (Hudson)
    I used the CS SDK 1.5.0. to do so, it includes all CS libraries (i.e. CSXS, CSAW...) except the host adapter libraries CSAR. (cs_host_adapter.swc and id_host_adapter.swc)
    I had to extract them from the CS Extension Builder JAR files (not easy to find them...) and to add them to the CS SDK in order to compile the extensions successfully.
    Is it supposed to be so, or should they be included in the CS SDK as well?
    In the same fashion, my extensions also uses the Flex theme Creative_Suite_CS5 that installs with the CS Extension Builder. I also had to extract the theme file from the JARs in order to compile the extension via ANT. It would be nice if this theme was also part of the CS SDK.
    Are these artifacts planned to be added to the CS SDK, or will they remain only in the CS Extension Builder?
    Thanks in advance,
    Martin Rohart

    I would also like to know if there is an easier way to find these libaries.
    I had to do a search through the plugins directory of my FlashBuilder!
    Found them here for anyone else that needs them:
    C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\eclipse\plugins\com.adobe.cside.libsinstaller_2.0.0.4-33034\archive\csar-1.0\release
    Nathan Deamer

  • Database Connection to Oracle from Sun Studio

    I am trying to connect to Oracle 9i from the Sun IDE.
    When I test the driver from the databases in the runtime tab, it gives me the following message:
    Internal test driver incomplete. The driver may not support DatabaseMetadata methods.
    The output window shows this:
    Warning: No tables were found. Check your database.
    Warning: No views were found. Check your database.
    Warning: No procedures were found. Check your database.
    If I try to connect, it seems to connect successfully.
    When I expand the jdbc folder it show 3 folders, one for tables, one for views and one for procedures, but they are empty.
    I also set up the classpath to point to the drivers.
    Anyone know the answer?
    Jim

    I was successful and here're some pointers:
    When you configure the new data source for Oracle, configure the server type for Oracle Bundle and define the proper driver class name and add the proper jar file
    Also:
    Check the database URL
    Userid/password
    Typicaly the Driver Class can be: oracle.jdbc.driver.OracleDriver
    And the DB URL: jdbc:oracle:thin:@<host>:1521:<SID>
    (If connecting using thin drivers)
    Good luck ;-)

  • Why are Player 10.1 source libraries missing from LCCS SDK Navigator?

    I have downloaded the LCCS SDK Navigator. Player 9 and 10 both have SWC and Source files, but 10.1 only has SWC files. This is further confirmed when navigating to the com.adobe.afcs plug-in folder. When installing the 10.1, I have no choice but to "source attach:" the src folder for Player 10.
    This is causing an error. When using Flash Builder 4 to import AFCS componenets (such as <rtc:SimpleChat>), I am recieving a notifications:
    1046: Type was not found or was not a compile-time constant: GroupSpecifier / NetGroup.These error messeges do not appear when using the Player 10 SWC.
    I realize that these errors are related to the new p2p features in 10.1. Others have complained about this issue prior to the release of 10.1 and were able to bypass it by using playerglobal.swc, but that shouldn't be needed anymore. I have installed 10.1 on my machine, including in the C:\Program Files\Adobe\Adobe Flash Builder 4\player\win\ folder that my copy of Flash Developer 4 uses.
    I am left with the assumtion that either the Player 10.1 SWC cannot be used yet (until the source files are available) or that I have somehow incorrectly set up Player 10.1 for Flash Builder. Any assistance would be appreciated.

    Thank you for the advice. I have managed to follow your instructions (add playerglobal.swc 10.1 to the Library Path) and get the messege to disappear, but this leads to another problem in AIR.
    I have set up a basic LCCS SDK tutorial app (the one from the AFCS Developer Guide on page 92-93). Running that app with my email address, password and roomURL works fine in a Web version. I repeat, a Flash web version of this app works fine.
    However, when using it in a playerglobal.swc-added AIR app, I get the following error:
    VerifyError: Error #1014: Class flash.net::GroupSpecifier could not be found.
        at com.adobe.rtc.session::ConnectSession()
        at com.adobe.rtc.session::ConnectSessionContainer()[C:\work\main\connect\cocomoPlayer10.1\sr c\com\adobe\rtc\session\ConnectSessionContainer.as:94]
        at NewPlayer007/_NewPlayer007_ConnectSessionContainer1_c()
        at NewPlayer007/_NewPlayer007_Array1_c()
        at mx.core::DeferredInstanceFromFunction/getInstance()[E:\dev\4.0.0\frameworks\projects\fram ework\src\mx\core\DeferredInstanceFromFunction.as:105]
        at spark.components::SkinnableContainer/createDeferredContent()[E:\dev\4.0.0\frameworks\proj ects\spark\src\spark\components\SkinnableContainer.as:985]
        at spark.components::SkinnableContainer/createContentIfNeeded()[E:\dev\4.0.0\frameworks\proj ects\spark\src\spark\components\SkinnableContainer.as:1014]
        at spark.components::SkinnableContainer/createChildren()[E:\dev\4.0.0\frameworks\projects\sp ark\src\spark\components\SkinnableContainer.as:827]
        at mx.core::UIComponent/initialize()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\ UIComponent.as:7250]
        at spark.components::Application/initialize()[E:\dev\4.0.0\frameworks\projects\spark\src\spa rk\components\Application.as:916]
        at spark.components::WindowedApplication/initialize()[E:\dev\4.0.0\frameworks\projects\airsp ark\src\spark\components\WindowedApplication.as:1833]
        at NewPlayer007/initialize()
        at mx.managers.systemClasses::ChildManager/childAdded()[E:\dev\4.0.0\frameworks\projects\fra mework\src\mx\managers\systemClasses\ChildManager.as:189]
        at mx.managers.systemClasses::ChildManager/initializeTopLevelWindow()[E:\dev\4.0.0\framework s\projects\framework\src\mx\managers\systemClasses\ChildManager.as:341]
        at mx.managers::SystemManager/initializeTopLevelWindow()[E:\dev\4.0.0\frameworks\projects\fr amework\src\mx\managers\SystemManager.as:2810]
        at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::kickOff()[E:\dev\4.0.0\frameworks\projects\fra mework\src\mx\managers\SystemManager.as:2637]
        at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::preloader_completeHandler()[E:\dev\4.0.0\frame works\projects\framework\src\mx\managers\SystemManager.as:2539]
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at mx.preloaders::Preloader/timerHandler()[E:\dev\4.0.0\frameworks\projects\framework\src\mx \preloaders\Preloader.as:515]
        at flash.utils::Timer/_timerDispatch()
        at flash.utils::Timer/tick()
    Since this error is related to GroupSpecifier (but did not occur in the web-version), it seems to be being caused by a conflict between the added playerglobal.swc and afcs.swc. Is it possible I am using conflicting versions or an out-of-date SWC? Or do you think there is another reason for the error in AIR?
    Can you also provide me with download links to the newest compatable playerglobal.swc and afcs.swc? Thank you.

  • GUI tools availabe with sun studio 11

    I have used sun workshop v5 for a good number of years and am happy with the GUI based tools I use for debugging C, Fortan and soon Ada code whcih link with dbx and emacs.
    I have had a trawl through the website but haven't found what I;m looking for.
    so the question is : what are the GUI based tools which I could use with sunstudio 11 which will give similar capability to that availabe with sun workshop v5 ?
    regards
    bladerunner

    I guess the base tools in Workshop 5 you mentioned are IDE, dbx. Sun Studio 11 has all of those functions which are much more far better than Workshop 5. The only missing from Sun Studio 11 IDE is project function. It will be back in next release. Take a look at Sun Studio matrix page to see which function is included in Sun Studio 11. The matrix page does not include WS 5 because this version is 5 years old. Here is the URL
    http://developers.sun.com/prodtech/cc/support/support_matrix.jsp
    -Ngoc

  • Huge debugging binaries after switching from C++ Sun Studio 11 to 12u1

    Hello
    I changed the compiler in our C++ project from Sun Studio 11 to Sun Studio 12u1 (12u3 is currently not available).
    The only change on the command line I had to do was replacing -xarch=v9 with -m64.
    The command line now is "CC -c -g -features=rtti -mt -KPIC -w -staticlib=Cstd,Crun -m64  ...".
    Our static libraries are now 50% bigger, the executables are 10x bigger (200 MB to now 2 GB!!!).
    This also affected the debugger sessions, they are slow and the print statement only produces internal errors.
    I think this is due to the size of the binaries.
    Please help to reduce the binary size.
    Best regards
    Hans

    The debug data format changed between Studio 11 and 12u1 from Sun stabs to the industry-standard dwarf format. (The Studio 12u1 C++ Users Guide is incorrect where it says stabs is the default format.)
    The change in debug format has two consequences:
    1. Debug data is typically 10-15% larger, due to increased information about the program being available (a major reason for the change).
    2. Whereas stabs data resides in the .o files with only index information in the executable program, all the dwarf data is copied into the executable. With dwarf, you can fully debug the program without access to the .o files that make up the program.
    To verify this reason for the larger binaries, try building your program using Studio 11, adding the -xs option. This option causes the stabs to be copied into the executable program. You should find the binaries are similar in size compared to building with Studio 12u1. If this is not the case, we'll need to dig deeper.
    You can revert to using stabs by adding the option -xdebugformat=stabs to every compile and link command (CC or cc).
    In a future version of Studio, we plan to provide an option to leave dwarf data in the .o files with only index information in the executable, so that you can have a smaller executable when you don't mind requiring access to the .o files in order to debug.
    By the way, we do not recommend static linking of libCstd and libCrun. Unless you have a particular reason for linking the static libraries, we recommend the default dynamic linking.

  • Using boost::thread with Sun Studio C++ gives error

    Hi,
    I'm trying to compile a code which uses the boost thread library, but I get the following error:
    CC -library=stlport4 -features=tmplife -features=tmplrefstatic -mt -c -o t t.cpp
    "/opt/boost/include/boost/thread/pthread/mutex.hpp", line 142: Error: The function "pthread_mutex_timedlock" must have a prototype.
    "/opt/boost/include/boost/thread/pthread/mutex.hpp", line 142: Error: The function "pthread_mutex_timedlock" must have a prototype.
    "/opt/boost/include/boost/thread/detail/thread.hpp", line 344: Error: boost::thread::thread(boost::thread&) is not accessible from boost::move(boost::detail::thread_move_t<boost::thread>).
    "/opt/boost/include/boost/thread/pthread/recursive_mutex.hpp", line 179: Error: The function "pthread_mutex_timedlock" must have a prototype.
    "/opt/boost/include/boost/thread/pthread/recursive_mutex.hpp", line 179: Error: The function "pthread_mutex_timedlock" must have a prototype.
    5 Error(s) detected.
    make: *** [t] Error 5the sample source code in question here just a single include:
    #include <boost/thread.hpp>This is with boost 1.40.0. I wonder what I'm doing wrong..
    Akos

    OK, I tried latest version of CC from Sun Studio 12 update 1 and can say that
    - the error about constructor not being accessible is Sun C++ compiler "feature" (only called feature because it existed for so long) that allows binding of rvalues to non-const references; this "feature" will probably be turned off in the next release. It can't be changed in a patch because client's code might rely on it.
    - the other errors are also not Boost-specific: the result of incompatibility of Linux headers and Sun C++ compiler; more thorough investigation is due, but in the past we had several problems like this. This particular can be solved by adding
    -D_GNU_SOURCE to compile line.

  • ECCN number for Sun Studio 10

    Hi,
    I can not find "Sun Studio 10" as a product in the Sun Software Export Matrix:
    http://www.sun.com/sales/its/software/software.html
    Anyone that knows which ECCN number to use in case you are shipping libraries from Sun Studio 10?
    The library I have in mind is Tools.h++.

    Actually, the implementation of -xpagesize and its friends will not be available on x86 until the next release. Sorry for the confusion.

  • What Function/Features you want to have in next Sun Studio release?

    Hello,
    My name is Ngoc Nguyen, from Sun Studio product team. We just shipped Sun Studio 12 ML release (for C, C++, Fortran compiler) past few weeks. We start working on the next release. This is the right time for the community to tell us what feature you want to change or add into next release.
    HOW?
    Please use the following instruction. It seems long at start, but both you and Sun will get benefit from it on the long run. i.e: By this way, All of your suggestion/request will be logged into our worldwide database system and is assigned an Request for Enhancement (*RFE*) ID. Later You can view the progress of your suggestion/request by using this RFE ID.
    - Go to http://bugreport.sun.com/bugreport/
    Check the box at the bottom of the page
    Click on "Start a new Report"
    - Select the following
    Type = Request for Enhancement
    Product/Category = C/C++/Fortran Compilers and Tools - Misc
    Subcategory = C/C++/Fortran Compilers and Tools - Misc
    Release = Other
    Operating System = <your choice>
    - Click on "Continue"
    - On the next screen, you only need to fill out the required fields indicated by *.
    - The "Synopsis" field should be start with "VOC" word. VOC stands for "Voice of Customer". i.e: "VOC: I want to increase performance on xxxxx component".
    - The "Justification" field is important too. general statement like "It is important for us" may not look attractive.
    - After all, click on "Submit"
    This input collection process will last 10 days and will be ended on Wed Oct/31st.
    Looking forward to hear from you.
    Best Regards,
    Ngoc Nguyen
    IMPORTANT: Please don't post your suggestion/request on this forum thread because nobody will help you to log your suggestion into Sun System. Please use the method I outlined above.

    Hello,
    My name is Ngoc Nguyen, from Sun Studio product team. We just shipped Sun Studio 12 ML release (for C, C++, Fortran compiler) past few weeks. We start working on the next release. This is the right time for the community to tell us what feature you want to change or add into next release.
    HOW?
    Please use the following instruction. It seems long at start, but both you and Sun will get benefit from it on the long run. i.e: By this way, All of your suggestion/request will be logged into our worldwide database system and is assigned an Request for Enhancement (*RFE*) ID. Later You can view the progress of your suggestion/request by using this RFE ID.
    - Go to http://bugreport.sun.com/bugreport/
    Check the box at the bottom of the page
    Click on "Start a new Report"
    - Select the following
    Type = Request for Enhancement
    Product/Category = C/C++/Fortran Compilers and Tools - Misc
    Subcategory = C/C++/Fortran Compilers and Tools - Misc
    Release = Other
    Operating System = <your choice>
    - Click on "Continue"
    - On the next screen, you only need to fill out the required fields indicated by *.
    - The "Synopsis" field should be start with "VOC" word. VOC stands for "Voice of Customer". i.e: "VOC: I want to increase performance on xxxxx component".
    - The "Justification" field is important too. general statement like "It is important for us" may not look attractive.
    - After all, click on "Submit"
    This input collection process will last 10 days and will be ended on Wed Oct/31st.
    Looking forward to hear from you.
    Best Regards,
    Ngoc Nguyen
    IMPORTANT: Please don't post your suggestion/request on this forum thread because nobody will help you to log your suggestion into Sun System. Please use the method I outlined above.

  • Sun Studio Compilers for Linux: Problems with undefined variables using CC

    I am experiencing the following errors below while trying to compile C++ programs using Sun C++ from the latest release of Sun Studio Compilers for Linux Alpha, on Red Hat Enterprise Linux 4 with kernel 2.6.9-34.EL and Ubuntu Breezy Badger 5.10 with kernel 2.6.12-10-686. I get the same exact errors on both OS's and on two different machines.
    root@ubuntu:/home/jc/cs225/Machine Problems/cs225/mp1/cs225_mp1# make
    CC -c -g string.cpp
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/iosfwd", line 74: Error: mbstate_t is not defined.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/iosfwd", line 75: Error: mbstate_t is not defined.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/traits", line 191: Error: "," expected instead of "state_type".
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/traits", line 194: Error: Use ";" to terminate declarations.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/traits", line 261: Error: "," expected instead of "get_state".
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/traits", line 265: Error: Use ";" to terminate declarations.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/traits", line 299: Error: "," expected instead of "state_type".
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/traits", line 302: Error: Use ";" to terminate declarations.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/traits", line 410: Error: "," expected instead of "get_state".
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/traits", line 414: Error: Use ";" to terminate declarations.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/traits", line 506: Error: The function "strstr" must have a prototype.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/traits", line 523: Error: The function "strcspn" must have a prototype.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/traits", line 529: Error: The function "strspn" must have a prototype.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/rwlocale", line 125: Error: mbstate_t is not defined.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/rwlocale", line 125: Error: Template parameter std::stateT requires a type argument.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/rwlocale", line 130: Error: mbstate_t is not defined.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/rwlocale", line 130: Error: Template parameter std::stateT requires a type argument.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/limits", line 214: Error: Template declarations cannot have extern "C" linkage.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/limits", line 221: Error: Template declarations cannot have extern "C" linkage.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/limits", line 277: Error: Template declarations cannot have extern "C" linkage.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/limits", line 335: Error: Template declarations cannot have extern "C" linkage.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/limits", line 392: Error: Template declarations cannot have extern "C" linkage.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/limits", line 443: Error: Template declarations cannot have extern "C" linkage.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/limits", line 504: Error: Template declarations cannot have extern "C" linkage.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/limits", line 558: Error: Template declarations cannot have extern "C" linkage.
    Compilation aborted, too many Error messages.
    make: *** [string.o] Error 1
    Except on ubuntu, it has one more error
    "/usr/include/wctype.h", line 47: Error: A declaration was expected instead of "}".
    and what is on line 47 is below
    __END_NAMESPACE_C99
    When I comment this line out, that particular error does not show up but still the other errors above still show up.
    From the testing I did, it appears to have these problems for most of the C++ programs I have written, especially the ones that involve object oriented programming. All programs that I wrote do not have these problems with g++ or Sun CC for Solaris. It does however work fine only for small fraction of the programs I have written. I dont quite understand why it works in some cases and others it doesnt, but I know for sure, that it should be working for all cases when Sun CC from Sun Studio 10 on Solaris 10 for X86 has no problems compiling the same programs.

    I tried workaround number 2 from the 3 choices that were listed by horsh. That fixes the mathcalls.h problem but still I have the following errors.
    jcurran2@ubuntu:~/cs225/Machine Problems/cs225/mp1/cs225_mp1$ make
    CC -c -g string.cpp
    "/usr/include/wctype.h", line 47: Error: A declaration was expected instead of "}".
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/iosfwd", line 74: Error: mbstate_t is not defined.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/iosfwd", line 75: Error: mbstate_t is not defined.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/traits", line 191: Error: "," expected instead of "state_type".
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/traits", line 194: Error: Use ";" to terminate declarations.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/traits", line 261: Error: "," expected instead of "get_state".
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/traits", line 265: Error: Use ";" to terminate declarations.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/traits", line 299: Error: "," expected instead of "state_type".
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/traits", line 302: Error: Use ";" to terminate declarations.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/traits", line 410: Error: "," expected instead of "get_state".
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/traits", line 414: Error: Use ";" to terminate declarations.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/traits", line 506: Error: The function "strstr" must have a prototype.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/traits", line 523: Error: The function "strcspn" must have a prototype.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/traits", line 529: Error: The function "strspn" must have a prototype.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/rwlocale", line 125: Error: mbstate_t is not defined.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/rwlocale", line 125: Error: Template parameter std::stateT requires a type argument.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/rwlocale", line 130: Error: mbstate_t is not defined.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/rwlocale", line 130: Error: Template parameter std::stateT requires a type argument.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/codecvt", line 55: Error: mbstate_t is not defined.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/codecvt", line 55: Error: Template parameter std::stateT requires a type argument.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/codecvt", line 61: Error: "," expected instead of "state_type".
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/codecvt", line 63: Error: Use ";" to terminate declarations.
    Error: Cannot continue processing because of prior errors.
    Compilation aborted.
    make: *** [string.o] Error 1
    jcurran2@ubuntu:~/cs225/Machine Problems/cs225/mp1/cs225_mp1$
    Can someone please respond? There is more to the problem. Perhaps
    there are more glibc headers that have problems. In addition, if Sun wants to port the Sun Studio Compilers for linux to be stable on all linux distributions I suggest using VM ware and installing several linux distrobutions as virtual machines and testing this software on each virtual machine to see the problems that occur on each distribution. That way you might be able to uncover more problems to find a solution that will work best for portability on all linux distributions.

  • Opening performance analyser in Sun Studio 12

    I want to know how to open performance analyzer in sun studio 12?

    Yes, Maxim is right, you can start Performance Analyzer standalone tool:
    # analyzer
    Or you can use it from Sun Studio IDE: main menu "Advanced -> Advanced Profiling -> Start".
    It will run your "main" project under "collect", and show the results.
    Thanks,
    Nik

  • "Deploy" Option Missing from VS

    We just finished installing SharePoint 2013 RTM and VS 2012 for development purposes. I also installed the Preview 2 of the Office and SharePoint Dev Tools. The "Deploy" option which was previously present in Visual Studio to deploy SharePoint projects seems
    to have disappeared. Oddly, I can however still tell the projects to Debug, which does the equivalent of Deploy + starts the debugger.
    This is an extremely annoying issue as it is much faster to Deploy without starting the debugger. If anyone has any solution I'd be very appreciative. Thanks.

    try these linsk:
    https://louisliang.wordpress.com/2013/07/02/deploy-option-missing-from-visual-studio-2012-for-sharepoint-project/
    https://social.msdn.microsoft.com/forums/sharepoint/en-US/c7b00231-680f-4fa1-b7ea-0008697c8122/visual-studio-2012-missing-deploy-option-on-build-menu
    http://stackoverflow.com/questions/22944015/deploy-option-missing-visual-studio-2012
    http://sharepoint.stackexchange.com/questions/49718/where-is-package-menu-item-in-visual-studio-2012
    http://sharepoint.stackexchange.com/questions/82878/missing-deploy-button-visual-studio-2012
    Please mark as answer if you find it useful else vote for it if it is close to answer..happy sharepointing

  • Twice decrease in size of Sun Studio 12 Update 1 in cmp-on to Sun Studio 12

    Recently I have downloaded Sun Studio 12 Update 1 from the Sun server to my computer and I have found an astonishing thing. All the downloaded archives are much smaller (approximately twice) then corresponding archives I "pumped down" previous time, half a year ago. I remind this was a Sun Studio 12 distribution (no word update in the name), the archives were called for example "SunStudio12ml-solaris-x86-200709-pkg.tar.bz2" (the present corresponding archive is SunStudio12u1-SunOS-x86-pkgs-ML.tar.bz2). All new archives are smaller then previous. I didn't install Sun Studio on my computer, still I'd like to understand why the size of these distributions reduced. By no means I think that the quality of the program is determined by its size, but the trend of the modern software is such that every new release of the product is larger then previous, as it accumulates additions, acquires new features. Why this new version of SS 12 diminished in size? What are the distinctions of Sun Studio 12 Update 1 from Sun Studio 12? I'd like to get answer from developers familiar to this family of Sun products.
    Edited by: user_1234 on Dec 14, 2009 7:01 PM
    Edited by: user_1234 on Dec 14, 2009 7:03 PM

    Sun Studio 12 shipped with about 250Mb (uncompressed) of Java 5 + patches, along with other patches.
    Sun Studio 12 upate1 did not need all of that. Only about 10Mb (uncompressed) in patches was included.

Maybe you are looking for

  • Error - Printing a report directly to printer

    Hi, i'm using oracle forms 9i and i'm trying to print a report directly to printer. I using the code above: SET_REPORT_OBJECT_PROPERTY(ReportId,REPORT_DESFORMAT,'PDF'); SET_REPORT_OBJECT_PROPERTY(ReportId,REPORT_SERVER,GetReportTnsName); IF ReportDes

  • EBus Upgrade vs. New Installation

    Looking for pros and cons of a two step applications upgrade (11.5.8 --> 11.5.10 --> 12) vs. a new install of R12 Any help is appreciated.

  • How can I change a style setter using code?

    I have several Labels using the same Style: <Canvas.Resources> < Style TargetType="{x:Type Label}" x:Key="TitleStyle"> < Setter Property="FontSize" Value="24"/> <Setter Property="FontWeight" Value="Bold"/> </Style> </Canvas.Resources> I'd like to cha

  • Images now showing true to size in photoshop and loss of quality

    Hi, Not sure if anyone else is having this issue. I am using Photoshop CC (up to date) on a mac book pro. For example, if I create a new image say 500px x 500px it shows as 50% the size when the file is listed as being displayed as 100%. Here is a li

  • Delete PO item Problem - Budget Exceeded

    Hii SAP expert, need your help, i have create PR --> RFQ -->PO... then i realize i need to delete the PO item because of certain thing are not clarified. therefore i'm using delete indicator tu delete the PO item, when i do the saving action, system