Sun Studio 11 Warning raised after new compiler upgrade

Hi All,
I have an issue regarding the warning raised by new complier upgrade.
Sun Studio 11 is the product and OS is Solaris 8.The following are the warning messages after successful compilation
1. Warning: declarator required in declaration
2. Warning: Last line in file "../inc/bibbnote.h" is not terminated with a newline
Please advise me on the above issue wheather the above warnings can be ignored.
Regards
Vinoth
Message was edited by:
vinothsankar

Those lines are not valid C++, since no typedef name is provided. Sun C++ accepts them as an extension, but issues a warning because the code is not valid.
Examples:
typedef int Int;
Int is declared to be a synonym for int.
typedef int;
Invalid: no name is provided as a synonym for int.
enum Foo { a, b, c};
Foo is declared to be an enumerated type with enumerators a, b, c.
Typedef Foo Bar;
Bar is declared to be a synonym for Foo
typedef enum { d, e, f } E1;
E1 is a synonym for the unnamed enumerated type with enumerators d, e, and f. This is a C style declaration, which serves no useful purpose in C++.
typedef enum E2 { g, h, i } E3;
E2 is declared to be an enumerated type with enumerators g, h, i, and a synonym E3.
typedef enum E4 { j, k, l };
Invalid declaration. No name is provided as a synonym for E4. Remove the "typedef" and you have a valid declaration of E4 as an enumerated t ype.
References: C++ Standard, sections
7.1.3 The typedef specifier
7.2 Enumeration declarations

Similar Messages

  • After new itunes upgrade getting Windows error 126 that identifies MSVCR80.dll not found.  itunes unable to open. Anyone have cause and resolution.

    After installing new itunes upgrade on Windows Vista PC, itunes does not open. Getting error boxes identfiying Windows error 126 (error 7) plus; MSVCR80.dll not found.
    Anyone have casue and resolution?
    Apple support did not have file or process available to backoff to previous itunes version v11.1.3 to allow recovery so itunes could continue use with no problems as before this new upgrade.

    Solving MSVCR80 issue and Windows iTunes install issues.
    Thanks to user turingtest2 for this solution.
    Solving MSVCR80 issue and Windows iTunes install issues.
    If the above doesn’t do the trick entirely, then use the instructions in the following as it applies to the version of Windows you are using:
    HT1925: Removing and Reinstalling iTunes for Windows XP
    HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    You may be required to boot into safe mode to complete the folder deletion process.

  • Sun Studio cc fails to correctly compile a threaded Perl on FC5

    I have been working Sun C compilers for Linux for some time, but recent versions have not been able to build a threaded Perl correctly. The earliest working example I can find of a successful build and test is documented here <http://groups.google.com/group/perl.daily-build.reports/browse_thread/thread/d7184da0c12fc1d8/9cdc1e236831d8fd?lnk=st&q=linux+pass+debian+%22peters+homeunix+org%22&rnum=6&hl=en#9cdc1e236831d8fd>
    The problems seem to a compiler bug isolated to the Sun Studio cc for Linux. Perl continues to compile and work successfully on Linux with gcc and Intel. It also compiles and runs fine with Sun Studio cc on Solaris.
    The problem is that while suncc seems to compile the files correctly, when miniperl is run (miniperl is a perl built in an intermediate step), it dies with a segmentation fault. Below is a gdb backtrace from the coredump (sorry it isn't exceptionally informative...)
    (gdb) bt
    #0 0x0811d960 in pthread_atfork ()
    #1 0x0810d4c6 in main ()
    I've been going through the various compiler options attempting to find a workaround, but haven't found a solution. Hopefully, posting this information will help you all with finding the problem. If you wish to try for yourself, you can download a recent Perl archive of Perl's code from <http://public.activestate.com/pub/apc/perl-current-snap/perl-current-latest.tar.gz> .
    I configured Perl with the follow command:
    ./Configure -des -Dusedevel -Dcc=suncc -Duseithreads

    I apologize that nobody got back to you on this. Have you tried the
    recent Express 3 release of Sun Studio Mars?
    http://developers.sun.com/sunstudio/downloads/express.jsp

  • Compaq Presario C303NR Doesn't Completely Start-up after New RAM Upgrade

    Hello Paul,
    This is Tammy. I finally made time this morning to upgrade the ram in my laptop, model C303nr. And, I'm in desparate need of help because something went horribly wrong.
    The laptop boots up to my desktop, but then I get nothing but moving vertical lines, much like tv snow, but more structured. I've taken the new memory out a couple of times and tried to re-seated it, but I get the same results. Moreover, when I tried to put the old memory back in, the exact same thing happens. Have I completely broken my laptop?
    Can you or someone out there please help me. This is my first attempt to do something like this and I feel absolutely heartsick over the results.
    Clinging to hope for a fix,
    Tammy
    This question was solved.
    View Solution.

    Hi Paul,
    After the other tech responded by asking me to connect the laptop to an external monitor to check the video card, I decided to take another go at the ram first. Note: My only external monitor is packed knee-deep in a storage room and would have been a nightmare to unearth, so going toe-to-toe again with the ram seemed considerably less challenging at that point.
    I have a small hand-held vac that I use only for blowing dust off of figurines, so I pulled it out and blew the inside of the laptop out as best I could without taking the entire bottom cover off. Then I blew the old ram off for good measure. After I re-installed the old ram, the laptop booted and the screen about windows not shutting down properly came up. (Note: Because of my earlier problem with the ram, I had to do a hard shut-down.) Safe-mode was one of my options, so I chose it. After fully booting into safe-mode everything appeared okay... no vertical, moving, snowy lines. I shut the laptop down and then started it again in normal mode. (Note: Didn't use restart. Did it the long way.) The laptop booted fine again.
    Somewhat encouraged, I decided to take a chance on the new ram. So I blew it off for good measure too and installed one stick. Restarted and everything worked just fine. Shut it down and started it again. Everything still okay. Blew the second stick off,  installed it, and restarted the laptop... fully expecting something to go wrong here. Nothing did. Shut the laptop down and started it again. All surprisingly okay. I hadn't used this laptop since our previous modem/router went out, so I had to set-up wireless connection. All remained okay... and appears to still be okay. Currently running, though it is not the one I am typing this message with.
    In summary, the only thing I can figure out is that I inadvertently introduced dust into either the ram seat or onto the ram itself. Or, that in spite of the ram appearing well seated to a novice, it wasn't. (I had read someone else's thread that indicated this as being a possibility.)
    (Note: I went into such detail above in the event this thread might help someone else at a later date with his/her own ram upgrade problem.)
    A much relieved and grateful...
    Tammy

  • I can't rename photos to export after new Photos upgrade!  After I edit and got to export, I cannot rename the photo.  Please help!

    With the new upgrade - Photos - I can't figure out how to rename my edited photos to export.  The space is either grayed out or does not give me the option.  I spent 30 minutes at the Apple store One-to-One and he couldn't figure it out either.  With both my computer and his.  He said he couldn't change the description or tag faces.  Please tell me step by step how to do this.  I cannot post my photos to my blog or Facebook or Pinterest.  Thank you very much!

    The space is either grayed out or does not give me the option.
    Which preset are you using for the export?  And which naming scheme do you want?
    When you export an edited version as JPEG, you should see these choices:
    If you use the option "Use Title", you can change the title before you export the the filename you want to use for the version.
    With "Sequential" you can enter a prefix and Photos will add a number.
    If all fails, export to a folder on your Desktop and rename the exported files manually.

  • Ath5k probs after new kernel upgrade (/kernel26 2.6.34.3-1)

    I just did a pacman -Syu and the new kernel /kernel26 2.6.34.3-1 causes issues with my ath based card. Ath5k is the kernel module I've used, and now I get a bunch of calibration errors in dmesg.  Is anyone else having this issue? 
    I'd rather not go back to madwifi...but I will if I have to...ath5k has been pretty solid since it's come out.

    See my post here: https://bbs.archlinux.org/viewtopic.php?id=102751
    I had problems but I am using ath9k. I partially solved mine by getting the kernel out of testing. Not sure if the two issues are related.
    Good luck!!!

  • After new Bios Upgrade I cant disable the onboard Ethernet

    It doesnt matter if I leave it on enabled or disabled the Ethernet is still recognized by Windows XP. I was able to disable this in Bios 1.8 but cant do so in 1.9 even though there is a disable function. Whats the problem?

    saemi
    The RAID rebuild lost overwrite the 32GBMLC DATA
    I Think you have in the Warranty replaced your SSD.
    Call HP with your Case number, and asking for a free HP Recovery DVD / USB
    normally they should have given this directly with SSD
    Say thanks by clicking the "Kudos! Star" which is on the left.
    Make it easier for other people to find solutions, by marking my answer with "Accept as Solution" if it solves your issue.

  • Installed Sun studio 12.2. ran 'discover' command on C++ code.Gives warning

    Hi,
    I installed Sun studio 12.2. I compiled C++ code with C++ 5.11 compiler, and ran discover command as shown below:
    > #CC -g -O2 test.cpp
    > #discover -w - a.out
    > discover (warning): a.out will be analyzed in lite mode because it has no annotations. See discover documentation for compiler flag/OS recommendations
    I get the discover warning. After runnig discover command, I executed ./a.out. On cosole, only memory leaks will be displayed and no other error.
    Any reason why discover gives warning??????????????????
    Edited by: Archit on Apr 5, 2011 11:09 PM
    Edited by: Archit on Apr 5, 2011 11:10 PM
    Edited by: Archit on Apr 5, 2011 11:10 PM
    Edited by: Archit on Apr 5, 2011 11:13 PM

    Hi,
    What a woderful fix you have provided !!!!!!!!!!
    It really works.
    I tried running on Solaris 10 update 8. discover tool runs properly. Where as , the tool runs in lite mode on Solaris update 4.
    If possible , can you pint me to some links where I can this kind of info.?
    Thank you very much.

  • After installing Sun Studio 11, libfsu.a in Sun Forte  6 is removed.

    I have Sun compilers 5.0 and 6.2 on my Sun Solaris 8 Ultra Sparc machine. After installing Sun Studio 11, some library files (e.g., libfsu.a in Sun Forte 6) from the old compilers were removed. What is wrong with my installation?
    Note that I install the different versions of compilers in separate directories.

    After the 1st failed installation of Sun studio 11,
    did you making sure that Sun studio 11 is not exist
    on your system before re-install Sun studio 11? The
    rule is you can have different Sun studio releases
    on the same system, but you can not have the
    multiple copy of the same release on the same
    system, even though they are in a totally separate
    directory. If Sun Studio 11 exist after 1st fail
    installation, you need to un-install it first before
    you re-start 2nd installation attemp.
    Installation of Sun Studio 11 should not remove files
    from older releases, but we know the case it did mess
    up package of the older release before.
    -NgocNo, after 1st install failed due to insufficient disk space, I did not uninstall Studio 11. After I deleted some user files to free up disk space, I run the install again, specified the same directory for installation, and just select Sun Performance Libraries. The installation seems to finished successfully. Perhaps this is one scenario where old versions can get messed up.

  • Compilation error while building boost 1_44_0 on Solaris (Sun Studio 10)

    Hi All, I am trying to build boost version 1_44_0 on Solaris.The Solaris box has Sun Studio 10 installed.
    The compiler details are
    bash-2.05$ CC -V
    CC: Sun C++ 5.7 2005/01/07
    I am using the following command to build boost libraries
    *bash-2.05$ bjam --build-dir=/export/home/dfdev/Boost_1_44_0/boost_1_44_0/tmp/build-boost toolset=sun stage*
    But i get the below compilation errors, not even one of the projects build
    sun.compile.c++ /export/home/dfdev/Boost_1_44_0/boost_1_44_0/tmp/build-boost/boo
    st/bin.v2/libs/iostreams/build/sun/release/stdlib-sun-stlport/threading-multi/fi
    le_descriptor.o
    Notice: The Early Access serial number will expire in -7 days.
    In order to purchase the product, visit http://www.sun.com/forte/buy.html
    or contact your Forte Tools reseller.
    "libs/iostreams/src/file_descriptor.cpp", line 352: Error: Could not find boost:
    :shared_ptr<boost::iostreams::detail::file_descriptor_impl>::shared_ptr(boost::i
    ostreams::detail::file_descriptor_impl*) to initialize pimpl_.
    "libs/iostreams/src/file_descriptor.cpp", line 355: Error: Could not find boost:
    :shared_ptr<boost::iostreams::detail::file_descriptor_impl>::shared_ptr(boost::i
    ostreams::detail::file_descriptor_impl*) to initialize pimpl_.
    "libs/iostreams/src/file_descriptor.cpp", line 360: Error: Could not find boost:
    :shared_ptr<boost::iostreams::detail::file_descriptor_impl>::shared_ptr(boost::i
    ostreams::detail::file_descriptor_impl*) to initialize pimpl_.
    "libs/iostreams/src/file_descriptor.cpp", line 380: Error: Could not find boost:
    :shared_ptr<boost::iostreams::detail::file_descriptor_impl>::shared_ptr(boost::i
    ostreams::detail::file_descriptor_impl*) to initialize pimpl_.
    "libs/iostreams/src/file_descriptor.cpp", line 385: Error: Could not find boost:
    :shared_ptr<boost::iostreams::detail::file_descriptor_impl>::shared_ptr(boost::i
    ostreams::detail::file_descriptor_impl*) to initialize pimpl_.
    "libs/iostreams/src/file_descriptor.cpp", line 393: Error: Using static_cast to
    convert from boost::iostreams::file_descriptor_flags to boost::iostreams::detail
    ::file_descriptor_impl::flags not allowed.
    6 Error(s) detected.
    "CC" -library=stlport4 -xO4 -mt -erroff=%none -KPIC -DBOOST_ALL_NO_LIB=1 -DB
    OOST_IOSTREAMS_DYN_LINK=1 -DBOOST_IOSTREAMS_USE_DEPRECATED -DNDEBUG -I"." -c -o
    "/export/home/dfdev/Boost_1_44_0/boost_1_44_0/tmp/build-boost/boost/bin.v2/libs/
    iostreams/build/sun/release/stdlib-sun-stlport/threading-multi/file_descriptor.o
    " "libs/iostreams/src/file_descriptor.cpp"
    ...failed sun.compile.c++ /export/home/dfdev/Boost_1_44_0/boost_1_44_0/tmp/build
    -boost/boost/bin.v2/libs/iostreams/build/sun/release/stdlib-sun-stlport/threadin
    g-multi/file_descriptor.o...
    sun.compile.c++ /export/home/dfdev/Boost_1_44_0/boost_1_44_0/tmp/build-boost/boo
    st/bin.v2/libs/iostreams/build/sun/release/stdlib-sun-stlport/threading-multi/ma
    pped_file.o
    Notice: The Early Access serial number will expire in -7 days.
    In order to purchase the product, visit http://www.sun.com/forte/buy.html
    or contact your Forte Tools reseller.
    "./boost/type_traits/is_array.hpp", line 41: Error: Multiple declaration for boo
    st::is_array.
    "./boost/type_traits/is_array.hpp", line 42: Error: Multiple declaration for boo
    st::is_array.
    "./boost/type_traits/is_array.hpp", line 43: Error: Multiple declaration for boo
    st::is_array.
    "./boost/type_traits/is_array.hpp", line 44: Error: Multiple declaration for boo
    st::is_array.
    "./boost/mpl/aux_/preprocessed/plain/full_lambda.hpp", line 95: Error: The type
    of specialized argument boost::mpl::aux::F<boost::mpl::aux::P1> is dependent on
    another argument.
    "./boost/mpl/aux_/preprocessed/plain/full_lambda.hpp", line 95: Error: Partial s
    pecialization parameter Tag is not used in the arguments.
    "./boost/mpl/aux_/preprocessed/plain/full_lambda.hpp", line 112: Error: Partial
    specialization parameter F is not used in the arguments.
    "./boost/mpl/aux_/preprocessed/plain/full_lambda.hpp", line 172: Error: The type
    of specialized argument boost::mpl::aux::F<boost::mpl::aux::P1, boost::mpl::aux
    ::P2> is dependent on another argument.
    "./boost/mpl/aux_/preprocessed/plain/full_lambda.hpp", line 172: Error: Partial
    specialization parameter Tag is not used in the arguments.
    "./boost/mpl/aux_/preprocessed/plain/full_lambda.hpp", line 189: Error: Partial
    specialization parameter F is not used in the arguments.
    "./boost/mpl/aux_/preprocessed/plain/full_lambda.hpp", line 254: Error: The type
    of specialized argument boost::mpl::aux::F<boost::mpl::aux::P1, boost::mpl::aux
    ::P2, boost::mpl::aux::P3> is dependent on another argument.
    "./boost/mpl/aux_/preprocessed/plain/full_lambda.hpp", line 254: Error: Partial
    specialization parameter Tag is not used in the arguments.
    "./boost/mpl/aux_/preprocessed/plain/full_lambda.hpp", line 271: Error: Partial
    specialization parameter F is not used in the arguments.
    "./boost/mpl/aux_/preprocessed/plain/full_lambda.hpp", line 339: Error: The type
    of specialized argument boost::mpl::aux::F<boost::mpl::aux::P1, boost::mpl::aux
    ::P2, boost::mpl::aux::P3, boost::mpl::aux::P4> is dependent on another argument
    "./boost/mpl/aux_/preprocessed/plain/full_lambda.hpp", line 339: Error: Partial
    specialization parameter Tag is not used in the arguments.
    "./boost/mpl/aux_/preprocessed/plain/full_lambda.hpp", line 357: Error: Partial
    specialization parameter F is not used in the arguments.
    "./boost/mpl/aux_/preprocessed/plain/full_lambda.hpp", line 427: Error: The type
    of specialized argument boost::mpl::aux::F<boost::mpl::aux::P1, boost::mpl::aux
    ::P2, boost::mpl::aux::P3, boost::mpl::aux::P4, boost::mpl::aux::P5> is dependen
    t on another argument.
    "./boost/mpl/aux_/preprocessed/plain/full_lambda.hpp", line 427: Error: Partial
    specialization parameter Tag is not used in the arguments.
    "./boost/mpl/aux_/preprocessed/plain/full_lambda.hpp", line 445: Error: Partial
    specialization parameter F is not used in the arguments.
    "libs/iostreams/src/mapped_file.cpp", line 441: Error: Could not find boost::sha
    red_ptr<boost::iostreams::detail::mapped_file_impl>::shared_ptr(boost::iostreams
    ::detail::mapped_file_impl*) to initialize pimpl_.
    20 Error(s) detected.
    Am i missing something? I will appreciate your input's.
    Regards,
    solarisneo

    C++ 5.7 will not give good results building Boost.
    Support for boost began with C++ 5.9 (Sun Studio 12), but you will get better results using the current release, Sun Studio 12 update 1, and better still with the upcoming release, Oracle Solaris Studio 12.2.

  • Installing Sun Studio 12 on Ubuntu 8.04

    When I try to install Sun Studio 12 with the graphical installer, I get a message half was through that Java is not installed. In my case Sun's Java was already installed. I tell the Sun Studio installer to do the update and it finished what it was doing. After the install is done, I found that the Sun Studio executable is missing, so it looked like the installation did not work. What version of Java is Sun Studio expecting and does it need to be tied to a specific path? Is there a known method for installing Java for Sun Studio 12?
    After this I uninstalled Java and Netbeans and started the system prep tool, which correctly said I was missing netbeans and java. I had the system prep tool install netbeans successfully but I get this message when trying to install java:
    error: Failed dependencies:
    glibc >= 2.1.2-11 is needed by jdk-1.5.0_09-fcs.i586
    sh-utils >= 2.0-1 is needed by jdk-1.5.0_09-fcs.i586
    fileutils >= 4.0-8 is needed by jdk-1.5.0_09-fcs.i586
    gawk >= 3.0.4-1 is needed by jdk-1.5.0_09-fcs.i586
    textutils >= 2.0-2 is needed by jdk-1.5.0_09-fcs.i586
    /bin/sh is needed by jdk-1.5.0_09-fcs.i586
    Any suggestions?

    I could not find any log files with error information from Express or Sun Studio 12. Any ideas?Not yet :-) Can you try to build and debug a sample project? Does it show the same problem?
    I mean one of several sample projects, that are shipped with the Sun Studio IDE.
    Start "sunstudio", from main menu: "File->New Project", select Samples->C/C++/Fortran->Welcome
    Did you try to run compilers and other tools?
    Please, make sure they work. For example, run the following commands:
    cc -V
    CC -V
    f90 -V
    collect -V
    dbx -V
    dmake -v
    (Note: the last one is small "v")

  • General and specific questions on the applicability of Sun Studio 11

    Hi. In an e-mail letter from Sun Microsystems I read about Sun Studio 11 to "utilize its record-setting parallelizing compilers." From this message I was attracted by the possibility of adding something like parallel processing, not by changing the processor (hardware), but by adding Sun-Studio-11 software to a Linux operating system. Now I already have a Fortran compiler, the Intel Fortran Compiler for Linux, which is free and can handle Cray-style pointers, a feature hard to find in a free Fortran compiler.
    1a. So for the most basic of questions, without having parallel-processing hardware, just an ordinary processor [a 1-GigaHertz (GHz) Advanced MicroDevices Duron central processing unit, in my case], is it possible to have parallel processing and thereby increase one's computing speed by installing Sun Studio 11 in a Linux operating system?
    1b. If so, by what factor could one expect the speed of computation to increase over not having Sun Studio 11 installed? (If the gain in speed is dependent on the type of computations being performed, I imagine possibly using a Fortran code to perform numerical calculations using and perhaps searching for minima or maxima in a two-or-more-dimensional surface. So please give me an idea of the sort of gain in speed one could expect for these two types of activites, calculations using formulas and searches for minima and maxima among already-computed quantities.)
    1c. Again if so, how could one just by adding software have parallel processing without two or more hardware processors? In other words, what is the basic working principle of the software to make the simultaneous performance of multiple tasks (multitasking or parallel processing) possible?
    2a. Does Sun Studio 11 include a Fortan compiler?
    2b. If so, must one use it to have parallel processing with Sun Studio 11?
    2c. Or will the Intel Fortran Compiler for Linux work with Sun Studio 11 to have a parallel processing capability?
    Concerning hardware requirements I read that Sun Studio 11 requires a minimum of 512 MegaBytes (MB) of memory, presumably Random Access Memory (RAM). My Hewlett-Packard, ZE1110, Pavilion, notebook computer has 256 MB of RAM, but is expandable to a maximum of 512 MB of RAM. So in this respect it is in principle at least technically possible for me to meet the minimum system requirement for Sun Studio 11 with my computer, if I choose to increase its RAM. Somehow accommodating the cost of such a RAM addition, including whether one may have to buy two, matching, 256-MB RAM modules or just presumably one additional 256-RAM module, is another requirement. But before spending money for such an upgrade, one should first thoroughly investigate other matters to determine if other things are going to work and to determine what gain, if any, one could expect in computing speed with Sun Studio 11 and an additional 256 MB of RAM; then decide, based on such data, whether the purchase is personally worth the money or not. That's one motivation behind this posting; another motivation is for me to learn some things.
    Lastly I would like to here thank whoever was thoughtful enough to provide the Sun Download Manager (SDM) 2.0, which allows the pausing and resumption of the 207-MB download studio11-lin-x86.tar.bz2 for the Linux version of the Sun Studio 11! Using a slow, dialup, Internet connection like mine having a maximum speed of 28.8 kilobits/second, this makes it possible to download that file over a number of Internet sessions instead of having to have an uninterrupted, 19-or-more-hour Internet session. Besides the invconvenience of tying up one's telephone line for that long a time, it might be even be difficult to have such an uninterrupted Internet session for that long a time. I have at least started such a download using the SDM 2.0 potentially over multiple Internet sessions. Whether or not I carry it out to completion could depend on whether everything looks good with Sun Studio 11 for my particular situation. Thanks in advance for your help.

    Thanks for both of your postings here. I'm mostly trying to learn something here.
    From Maxim Kartashev: "For example, if one thread (or process, or lwp) frequently performs an I/O operation, then the other thread (process, lwp) can utilize processor resources to perform, say, some computations while first one waits for operation to complete."
    I think I might understand what you meant above. I guess lwp in the above context stands for light-weight process. And I think you may be talking about a potential gain in speed with just one, ordinary processor. I guess you meant that one program, or perhaps group of programs, could perform input/output processes at the same time it is performing calculations because different parts of the processor are being used in these two groups of processes. Then on "while first one waits for operation to complete" I guess you meant that if the input/output operations finish before the computations finish, then thread 1 that was performing the input/output operations will have to wait until the current computations ordered by thread 2 are complete before thread 1 can utilize the computational resources for its own computations; i.e., two threads can't use the same computational resources of an ordinary processor at the same time. How is my thinking so far, Maxim, right, partly right, or all wrong?
    Now if the above thinking of mine is right, then it appears that one could have some gain in speed doing things like you suggest with just one, ordinary processor. And if so, I imagine that the gain could be a maximum of a factor of two for a program that requires spending as much time in input and output as it does in computation; i.e., keeping both the computational and input/output resources working all of the time without the input/output resources waiting on the computational resources or vice versa. How is my thinking here?
    If the above thinking is correct, just for purposes of discussion with just one, ordinary processor, not a dual processor, and a program which does nothing but computations there would be no gain in speed using Sun Studio 11 and a Fortran compiler over not using Sun Studio 11. In other words, to increase the speed of computation one would have to buy a faster computer, buy parallel processing hardware for an existing computer and use parallel-processing software, or somehow figure out how to harness two or more computers to work for you at the same time with instructions from one piece or perhaps set of pieces of code set up for parallel processing using two or more different computers. The latter case would be a computer analogue or "two 'heads' are better than one," not human heads, but computers. How is my thinking here?
    Here I am still assuming that it is possible for one processor to be used to do two different kinds things at once. However, I don't see how one Fortran program could instruct two things to be done at once. This is because I have not seriously studied parallel processing, I suppose. That is I am used to a sequential set of instructions that proceed from top to botton down the lines of code; i.e., one instruction or line of code can't be executed until the line of code before it has been completely executed. That is the computing "world" with which I am familiar. So how about someone here teaching me with an example of parallel-processing Fortran code how parallel processing works, explaining what instruction or group of instructions tells the computer to execute input and computational instructions at the same time?
    Based on the encouraging information from one or more other people I have been able to use the Intel Fortran for Linux 8.1.024, if I remember correctly, in a computer with a 1-GigaHertz (GHz), Advanced MicroDevices (A.M.D.), Duron Processor. So this is at least one case where it is not essential to have an Intel processor to use the Intel Fortran Compiler for Linux 8.1.024.
    Is the Sun Fortran compiler free for personal use? And can it handle Cray-style pointers?

  • Binary compatibility problems using Sun Studio 12

    I'm working in a project that uses Orbix [1] third-party libraries. I have installed the Sun Studio 12 on Solaris 10 SPARC but I have got some strange segfault problems (the exactly same code works fine in a Linux box - using g++). I read the 1.4 section of Sun Studio 12 C++ Userguide [2] but I have a doubt:
    Is there no way to compile my code using Sun Studio 12 using shared libraries compiled against earlier Sun Studio C++ compiler versions (like Sun Studio 8 or some version before Sun Studio 11)?
    I think my problem is related to the fact that Orbix team used Sun Studio 8 as some notes found in their headers indicate:
    "IONA Technologies ART IDL Compiler POA C++ Generator asp 6.3.3 SunOS 5.8 CC_5.5 2008/06/13 21:04:37 EDT"
    A secondary question: Is CC 5.5 present in Sun Studio 8, right?
    Can anyone help me? Every tips are welcome :) Thanks in advance!
    [1] http://web.progress.com/en/orbix/orbix_standard.html
    [2] http://docs.sun.com/app/docs/doc/820-7599/6nirkt6f7?a=view

    AmadeuBarbosa wrote:
    I'm working in a project that uses Orbix [1] third-party libraries. I have installed the Sun Studio 12 on Solaris 10 SPARC but I have got some strange segfault problems (the exactly same code works fine in a Linux box - using g++). I read the 1.4 section of Sun Studio 12 C++ Userguide [2] but I have a doubt:I don't think 1.4 Binary Compatibility Verification applies in your case. It's referring to processor capability to execute certain (new) instructions; if your third-party libraries were compiled a while ago, it's highly unlikely they use instructions not implemented by the processor you have.
    Is there no way to compile my code using Sun Studio 12 using shared libraries compiled against earlier Sun Studio C++ compiler versions (like Sun Studio 8 or some version before Sun Studio 11)?Generally speaking, any library compiled with older Sun Studio C++ compiler is supposed to be compatible with any library or executable compiled with newer version provided that all parties did everything right. For example, that third-party libraries should not be statically linked with C++ run-time support libraries; your executable should be linked with latest compiler driver (CC) so that it records correct dependencies on support libraries.
    Of course, there could be (and actually are) compiler bugs standing in the way of compatibility. Some of them can be fixed, some - like demangler issue described in http://docs.sun.com/source/820-4155/c++.html - can't. There is no easy way to tell if you hit a compiler bug or bulding/linking issue, or bug in the code that was previously unseen.
    I think my problem is related to the fact that Orbix team used Sun Studio 8 as some notes found in their headers indicate:
    "IONA Technologies ART IDL Compiler POA C++ Generator asp 6.3.3 SunOS 5.8 CC_5.5 2008/06/13 21:04:37 EDT"Yes, looks like it was compiled by 5.5, which is part of Sun Studio 8
    >
    A secondary question: Is CC 5.5 present in Sun Studio 8, right?That's correct.

  • MobileMe "New Calendar" upgrade by Microsoft...??

    Am I missing something? Was the new mobileMe calendar upgrade designed by Microsoft instead of by Apple? Things are supposed to get better with Apple, not worse as with Microsoft.
    iCal before the new calendar upgrade - Organizer sends me new iCal event. Message appears in my iCal notifications. I click on "Accept". Done, perfect, Apple-way.
    iCal after new calendar upgrade - Organizer sends me new iCal event. Message does not appear in iCal notifications. I receive a new email with invite. The email has all broken images (ugly). I click on "Load Images". Images load. Now I see a "Accept" button. Clicking on it actually opens Safari. I wait for Safari to open and for page to load. Now I see a link where I can download an .ics file with the calendar event. I download file. I then have to find the correct .ics file among all the other files I downloaded. I double-click on .ics file to store event in calendar. I have to switch back to finder to delete stray downloaded .ics file.
    ???? Am I missing something? Is this dumb and absurd? Only Microsoft could have come up with such a loss of functionality, loss of practicality, loss of smoothness of streamlining, loss of simple GUI, loss of... my mind.
    My most useful link of the week:
    http://www.me.com/calendar/downgrade
    PS - I confirmed with a tech support chat that this unbelievable behavior is actually by design - ExpressLane Case 195850002

    Agree 100%...the new MobileMe Calendar "upgrade" is a huge step backward in most respects.
    Just spent the last hour trying to help my wife figure out how to undo the damage. In my opinion, the most obnoxious behavior of the new "upgrade" is that it completely commandeers all of your calendars, so instead of being able to send business meeting invites from my business email account and personal invites from my me.com account, all new meetings are now sent from the me.com account.
    Even that behavior could be acceptable if there was an easy way to change the name of my me.com address to something more "business appropriate", but of course that is another me.com failure...

  • Sun Studio cc includes unused static inline functions in object file

    While trying to compile some code originally compiled with GCC I run into a linking problem. My problem seems to be caused by that GCC does not include unused static inline functions in the object files while cc does. The following simple example can be used for illustrating this:
    void foo();
    static inline void bar()
      foo();
    int main()
    }This program compiles and links without any problems using GCC and Sun Studio 12 CC (the C++ compiler) but fails to link using Sun Studio 12 cc:
    khepri%> cc staticinline.c
    Undefined first referenced
    symbol in file
    foo staticinline.o
    ld: fatal: Symbol referencing errors. No output written to a.out
    It is probably fine of cc to include foo() in the object file (although not necessary?). My questions are:
    1. Are there any reasons for why cc includes unused static inline functions in the object file while CC does not?
    2. Are there any ways or options to tell cc to not include unused static inline functions in the object file?
    In the example above this is easy to fix by just removing or #ifdef away the code but the original code where I have this problem is not maintained by me and the static inline functions are in header files that get included in multiple C files and in some of these the functions are used.
    Thanks,
    Olav

    olavsa wrote:
    1. Are there any reasons for why cc includes unused static inline functions in the object file while CC does not?
    2. Are there any ways or options to tell cc to not include unused static inline functions in the object file?Removing dead code is an optimization, so you need at least -xO1 for that.

Maybe you are looking for

  • Incompatible types - found java.lang.String but expected int

    This is an extremely small simple program but i keep getting an "incompatible types - found java.lang.String but expected int" error and dont understand why. Im still pretty new to Java so it might just be something stupid im over looking... import j

  • Mocha in After Effects

    Hi, CS5 PP came with "mocha". CS6 did not. Is it possible to install CS5's mocha in CS6? Pieter

  • Newbie to Mac- program install issues.

    Howdie all. I just received a G4 titanium laptop as a gift from my dad-- his old laptop. I, like many others, came from a pure windows experience-- don't hold it against me, it's a new experience. My reason for posting is that I tried installing NetB

  • ExFAT formated harddrive won't mount on Macbook Pro

    My job recently gave me a 4tb G-Tech G-Drive to access video and audio files to edit. The drive works fines on my bosses Windows computer and the drive is formatted for exFAT but it won't mount on my Macbook Pro. My OSX is 10.8.4 and the drive appear

  • Application builder 8.5

    Bonjour, J'ai créer un exécutable avec l'application builder labview 8.5. qui fonctionne très bien sur mon PC mais lors que je le copie sur un autre PC me donne l'erreur suivante: Impossible de trouver le moteur d'exécution de LabVIEW. Application re