Sun Studio, working on Gentoo, except f95

Greetings again,
I finally have access to a GNU/Linux machine with glibc 2.3.4 and a 2.6 kernel. Of the binaries, cc and dbx work, at least for my limited tests.
However, when I attempt to compile any fortran source I get:
*** glibc detected *** double free or corruption (!prev): 0x092c0e98 ***
"foo.f90", Line = 1, Column = 1: INTERNAL: Interrupt: Aborted
*** glibc detected *** double free or corruption (!prev): 0x092c0e98 ***
FOO: Aborted
I assume this is the GNU libc issue related Gentoo's particular setup?
glibc version is listed as:
2.3.4.20041102-r1
Which may or may not have weird gentoo patches applied to it.
Dave

Yep, it compiled just as it does on Solaris, and I can run the application. i would test it more extensively but this Linux machine is pretty obsolete and the application in question has a lot of computationally expensive subroutines. The generated code itself does not seem to have problems running, even if the environmental variable isn't set.
Setting the variable to 1 rather than 0 seems to give a number of clues as to what the problem is through all these warning messages it generates, though I must admit this kind of system level stuff is largely beyond me, and I don't have a really good grasp of the glibc internals.
Cheers,
Dave

Similar Messages

  • Installing Sun Studio 11 on Gentoo linux?

    I have been having problems attempting to install Sun Studio 11 on Gentoo. I emerge'd "alien", with the hope that I could trick the installation program into using it, but that doesn't work. I get all kinds of java errors (I am using sun-jre-bin 1.5 update 3).
    Is there a way to actually get these various and sundry .rpm packages on the system? There seem to be an awful lot of them.
    Thanks!

    hi guys, i posted in another topic, i m sorry for that.
    I followed your advice, bhut nothing helped.
    Now, it still does not work: Failed installation
    Here s the log:
    Installing Sun Studio Software
            Log file: /var/opt/sun/install/logs/Sun_Studio_Software_install.B10241137
    Installed: /var/prod/com.sun.studio_11/uninstall_Sun_Studio_Software.class
    Uninstaller is at: /var/prod/com.sun.studio_11/uninstall_Sun_Studio_Software.class
    Standalone Tools: Building Software
    Installing RPM: sun-dmake-11.0-1
    error: Failed dependencies:
            /opt/sun/sunstudio11/bin is needed by sun-dmake-11.0-1.i386
            /opt/sun/sunstudio11/inventory/v15n1 is needed by sun-dmake-11.0-1.i386
            /opt/sun/sunstudio11/lib is needed by sun-dmake-11.0-1.i386
            /opt/sun/sunstudio11 is needed by sun-dmake-11.0-1.i386
    Error: RPM sun-dmake-11.0-1 install failed}.
    Install complete. Package: sun-dmake-11.0-1
    rpm: Skipping rpm remove of sun-mrdmk-locale-zh-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-mrdmk-locale-ja-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-mrdmk-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-dmake-locale-zh-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-dmake-locale-ja-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-dmake-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-updck-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-pnsn-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-prfgn-locale-zh-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-prfgn-locale-ja-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-prfgn-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-mrpgn-locale-zh-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-mrpgn-locale-ja-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-mrpgn-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-mrdwf-locale-zh-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-mrdwf-locale-ja-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-mrdwf-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-dwrfb-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-mrpan-locale-zh-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-mrpan-locale-ja-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-mrpan-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-prflx-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-prflb-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-prfax-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-prfan-locale-zh-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-prfan-locale-ja-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-prfan-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-updck-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-pnsn-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-mrdbx-locale-zh-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-mrdbx-locale-ja-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-mrdbx-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-jdbxx-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-jdbx-locale-zh-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-jdbx-locale-ja-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-jdbx-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-dbxx-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-dbx-locale-zh-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-dbx-locale-ja-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-dbx-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-dbxx-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-dbx-locale-zh-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-dbx-locale-ja-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-dbx-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-mrxm-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-xmsrc-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-xmshr-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-xmbin-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-gvim-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-mrxd-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-fdxd-11.0-1, not installed.
    rpm: Skipping rpm remove of openmotif-2.1.31-3_IST, not installed.
    rpm: Skipping rpm remove of sun-exted-locale-zh-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-exted-locale-ja-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-exted-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-nbcpp-locale-zh-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-nbcpp-locale-ja-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-nbcpp-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-nbide-locale-zh-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-nbide-locale-ja-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-nbide-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-mrlnx-locale-zh-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-mrlnx-locale-ja-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-mrlnx-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-mride-locale-zh-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-mride-locale-ja-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-mride-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-nbreg-locale-zh-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-nbreg-locale-ja-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-nbreg-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-idext-locale-zh-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-idext-locale-ja-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-idext-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-xdplg-locale-zh-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-xdplg-locale-ja-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-xdplg-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-svc-locale-zh-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-svc-locale-ja-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-svc-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-dbxui-locale-zh-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-dbxui-locale-ja-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-dbxui-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-tdemo-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-mrdmk-locale-zh-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-mrdmk-locale-ja-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-mrdmk-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-dmake-locale-zh-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-dmake-locale-ja-11.0-1, not installed.
    rpm: Skipping rpm remove of sun-dmake-11.0-1, not installed.

  • Exceptions not caught in shared library when compiled under Sun Studio 9

    I realize it's a fairly old version of Sun Studio, however if at all possibly we'd like to avoid updating to the latest.
    Sun Studio 9, version reports
    version of "/opt/SUNWspro/bin/../prod/bin/../../bin/cc": Sun C 5.6 2004/07/15
    version of "/opt/SUNWspro/bin/../prod/bin/../../bin/CC": Sun C++ 5.6 2004/07/15
    uname -a
    SunOS sunblade 5.9 Generic_118558-27 sun4u sparc SUNW,Sun-Blade-100
    The problem is within our shared library a function calls another method within a try/catch block. This method then sometimes throws an exception which does have a matching catch block. On all other systems (Windows, AIX, HP-UX, Linux) the code works, the exception is caught and handled. On Solaris with Sun Studio 9 though, the exception is ignored and instead triggers an abort and core dump.
    Stack Trace:
    ffffffff7daa871c lwpkill (6, 0, ffffffff7fffd9c0, ffffffff7d3064d4, 2, ffffffff7fffd9ec) + 8
    ffffffff7da3e4b8 abort (ffffffff7d40dac8, ffffffff7d40cc38, ffffffff7d411e78, 10604c, 2, ffffffff7d40dac8) + 100
    ffffffff7d3064d4 __1cH__CimplRdefault_terminate6F_v_ (ffffffff7d40dac8, ffffffff7d40cc38, ffffffff7d411e78, 10604c, 104e40, ffffffff7d3064d0) + 4
    ffffffff7d3062b4 __1cH__CimplMex_terminate6F_v_ (ffffffff7d40de40, 0, 0, ffffffff7d40de40, ffffffff7d40c978, 1) + 24
    ffffffff7d306f04 exthrow_body (ffffffff7d40de40, 0, 0, 105af4, 52, ffffffff7d40e2e8) + 84
    ffffffff7d306e58 __1cG__CrunIex_throw6Fpvpkn0AQstatic_type_info_pF1_v_v_ (ffffffff7d40dec8, ffffffff7f0dea78, ffffffff7ecb6b28, ffffffff7d40de40, 0, ffffffff7d40de40) + 3c
    ffffffff7ecb6d90 __1cLIGExceptionFThrow6FnQenumIGErrorCodes_pkcxxp2x_v_ (fffffffffffff3e3, 0, 0, 0, ffffffff7f1187da, a0) + 80
    ffffffff7ecb6e78 __1cOThrowException6FnQenumIGErrorCodes_pkcxxp1x_v_ (fffffffffffff3e3, 0, 0, 0, ffffffff7f1187da, a0) + 30
    ffffffff7f083304 __1cSIGRasterProcessingNVerifyPalette6FpnMIGRasterPage_nTenumIGContrastModes__v_ (1001f3c10, 0, 0, 0, 0, 0) + b4
    ffffffff7f083760 __1cSIGRasterProcessingOInvertContrast6FpnMIGRasterPage_nTenumIGContrastModes_nTenumIGColorChannels_pnPtagAT_RECTANGLE__v_ (1001f3c10, 0, 0, ffffffff7fffe1a8, 0, 0) + 20
    ffffffff7f039a2c iIG_IP_contrast_invert (1001f3c10, 100162b10, 0, 0, 0, 0) + 104
    ffffffff7f039ba0 iIG_IP_contrast_invert_masked (1001f3c10, 100162b10, 0, 0, 0, 0) + 80
    000000010000b4e0 ipcontrast_invert_notify (10014d000, 10014d, 0, 100000, 100162000, 100162) + 48
    Try/catch block:
         try
              <Triggering function>
         catch(const IGException& ige)
              <Handling Code>
    The code which throws the exception is a static method of IGException which has a basic throw line:
         throw IGException(...);
    Source code is compiled with the following flags, none of which I could find any info to suggest affect this:
    CC -c -Xt -xCC -misalign -xarch=v9 -O
    Linking of the shared object is then done via the following, again nothing obvious that could cause issues. mapfile is an empty file.
    ld -o <outputfilename> -G -z textoff -M mapfile -z noversion -64 -h <outputfilename> <object files> -L/opt/SUNWspro/lib/v9 -lCrun -lX11 -lc -lm
    I did read somewhere mentioning to make sure to use RTLD_GLOBAL if using dlopen on the .so, but the test app is using ld to link the library.
    Does anyone have any ideas why with the Sun Studio 9 compiler these exceptions are not being caught? Based on the fact they are caught on all other compilers, i'm guessing this issue is with the compiler.
    Also, as a test it seems that if the shared object is not built as a 64-bit object, then everything works. The issue only seems to occur when it is a 64-bit object. Likely an issue with the 64-bit compiling?
    Edited by: 837682 on Feb 17, 2011 9:23 AM

    As the other poster pointed out, you need to link the shared library using CC, not ld. I should have noticed that error in the original post.
    Try using CC instead of ld in your link command. The CC command causes additional files to be linked into the shared library that are required for proper operation, and particularly for exception handling. I think that is the actual source of your problem.
    You should not use -L options that point into the compiler installation area, and when you use CC to link, you don't need to.
    I'm surprised that you seem to have a copy of libCrun.so.1 in the compiler installation area -- that should not be the case. The the only versions of libCrun should be static libraries libCrun.a. You almost never want to link with a static version of a system library, and absolutely never when building a shared library. The file /opt/SUNWspro/lib/libCrun.so.1 ought to be a symbolic link pointing to /usr/lib/libCrun.so.1, but if that were the case, the version command would have the same output.
    By any chance, did you install your compiler by copying it from another installation? If you do that, you need to use tar, not cp, to ensure that symbolic links are preserved.

  • Exception not always caught in Sun Studio 12

    Hi,
    We're using Sun Studio 12 (Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25) on a Solaris 10 SPARC machine. In our applications an exception thrown is sometimes not caught in the try/catch statement and the program continues at an outer catch statement (which usually leads to the program exiting). So far I've not been able to reduce the code down to a simple example and I don't yet know what conditions causes this behaviour.
    In general the code has a big try/catch statement in main. Somewhere deep in the code there is a second try/catch statement which protects against a piece of code which we know may throw an exception. This is usually a smart pointer being dereferenced. The act of dereferencing the smart pointer in turn causes an exception to be thrown which is caught internally in a third try/catch inside the dereference code. The exception is successfully caught and some clean up is done. Then the exception is re-thrown by either using a throw; statement or a new throw xmsg("...");. All our exceptions are always of type xmsg which simply takes a string argument.
    When the problem manifests itself the second try/catch is ignored and the re-thrown exception is instead caught in the outer catch statement in main which causes the program to log an error and exit.
    We have lots of code which is structured the same way and the same style of code works in many cases only to fail in some specific case. It's an elusive problem because the problem moves around and it also depends on how the program is compiled. It only seems to happen when compiled in debug mode. If I compile with -xO4 the problem seems to go away.
    The problem also goes away or moves to a different place if the code has changed somewhere between compiles, i.e. some other developer has modified some code, not necessarily in the same are where the problem originally happened.
    One thing we have is a function we call DoThrow (used to suppress a warning on an older compiler) defined like this:
    void DoThrow(const std::string& msg)
      throw xmsg(msg);
    }As an experiment I replaced the call to DoThrow with a straight throw xmsg(...) at a place where the first exception was thrown and the problem went away. I'm not sure if removing the call to DoThrow fixed the problem or if the minor restructuring of the code was enough to move the problem elsewhere.
    For production releases we still use WorkShop 6, update 2 which does not have any problems like this. We really would like to upgrade to Sun Studio 12 because it's a much better compiler over all. We can't upgrade until we feel confident we have a workaround.
    Does anyone have any thoughts on what might be wrong or any ideas on what I can do to narrow down the problem?
    Thanks,
    Krister

    Many thanks. You've given me a few areas to focus on and I'll bring my house in order.
    The only external C++ library we depend on is STLport 5.0.2 which we compile ourselves. It's currently compiled with 5.3 on Solaris 8 and I will recompile it with 5.9 on Solaris 10. All other external libraries are C libraries. Our own code is put in static libraries and linked statically. I've read that exceptions thrown in shared libraries can be problematic.
    Your comment about complex conditional expressions (a ? f() : g()) is interesting. We've been bitten before by compiler bugs affecting those types of expressions. Destructors called twice or destructors called for temporaries never created. We may still have some conditional expressions like that.
    The exception is of type xmsg, defined this way:
    class xmsg
      public:
        xmsg(const char* s) : _msg(s) {}
        xmsg(const std::string& s) : _msg(s) {}
        const std::string& why() const { return _msg; }
      private:
        const std::string _msg;
    };There are three catch blocks involved and all the try/catch statement look like this:
    try
    catch(const xmsg& msg)
    }Here is a stack trace from dbx at the point where the exception is thrown the first time.
      [1] __exdbg_notify_of_throw(0xffbf4ae8, 0xffbf4ad0, 0x959b292c, 0xffff0000, 0x0, 0xfc00), at 0xfb6549b4
      [2] _ex_debug_handshake1(0x0, 0x101cb84, 0x1, 0x14ffc, 0xfb66a67c, 0xfb66ad38), at 0xfb655728
      [3] _ex_throw_body(0xfb66af80, 0x80b2ac, 0xfb66a67c, 0x14d9c, 0x0, 0xfb66af80), at 0xfb655934
      [4] __Crun::ex_throw(0xfb66afd0, 0x1460bf8, 0x7ead20, 0x0, 0x16538, 0x1), at 0xfb6558bc
    =>[5] TransportSource<User>::Activate(this = 0x1624810, r = CLASS, _ARG3 = CLASS), line 39 in "TransportSource.H"
      [6] Source<User>::DoActivate(this = 0x162486c, r = CLASS, e = CLASS), line 272 in "Factory.H"
      [7] BaseFactory::Load(this = 0x16020a8, e = CLASS), line 2799 in "BaseFactory.C"
      [8] GPAuthorizationSource::Load(this = 0x15d2440), line 110 in "GPAuthorization.C"
      [9] ExchangeServer::ExchangeServer(this = 0xffbfa95c, argc = 8, argv = 0xffbfbaec), line 380 in "exchangeServer.C"
      [10] main(argc = 8, argv = 0xffbfbaec), line 1525 in "exchangeServer.C"Here is the code for the Activate function in stack frame 5. The exception thrown is the second one.
        virtual T& Activate(const Reference& r, Exemplar<T>&)
          _transport->In().Write(r);
          DemarshallStream out;
          _transport->Method(Process::Activate, out);
          if(!out.Data())
         throw xmsg("Failed to call Activate on server " + _transport->Name());
          if(!out.GetBool())
         throw xmsg("Server returned error: " + out.GetString());
          const ClassHandle& h = out.GetClassHandle(&_connection);
          // don't need to pass refresh flag here because a call to Activate
          // means the object is being loaded for the first time.
          BaseExemplar* x = _handle.GetFactory().Demarshall(h, out, false,
         &_connection, this);
          BaseTransportSource::DoActivate(out);
          if(!x)
         throw xmsg("Failed to activate ref: " + r.ExternalValue());
          return static_cast<T&>(*x->GetInstance());
        }The exception is caught (frame 7 in the stack trace above) and re-thrown in the below code, at the last throw statement.
    void BaseFactory::Load(BaseExemplar& e)
      SourceMap::iterator p = _sources.find(&e._key->Type());
      if(p == _sources.end())
        throw xmsg("Factory<" + _handle.Name() + ">::Load - no source for: "
          + e._key->ExternalValue());
      AutoPointer<BaseGuard> g(Guard());
      std::list<BaseSource*>::iterator i = p->second.begin();
      while(true)
        try
          (*i)->_currentExemplar = &e;
          BO& x = (*i)->DoActivate(*e._key, e);
          (*i)->_currentExemplar = 0;
          if(!e._instance)
         e._instance = &x;
         Activate(e, ActivatedOld, 0);
          return;
        catch(const xmsg& msg)
          (*i)->_currentExemplar = 0;
          ++i;
          if(i == p->second.end())
         throw;
    }There is a second try/catch one level up (stack frame 8, the call to GPAuthorizationSource::Load). Here's a snippet of that piece of code.
        try
          const Exemplar<User>& user = UserFactory::Instance().CreateExemplar(
         *new UserReference(authorizationTable._login.Value()));
          *user;
        catch(const xmsg& msg)
          Logger::Instance() << LogHeader << MsgClass(MsgClass::Error)
         << "Error PMAutorizationSource: " << msg.why() << EndMsg;
        // ...I put a break-point in the catch block in the above code but I never hit the break point and the exception is caught in an outer try/catch, an error is printed and the program exits.
      try
      catch(const xmsg& msg)
        std::cerr << "ERROR: " << msg.why() << std::endl;
      }I'm sorry I have not yet been able to produce a smaller example that can be compiled and tested in isolation. I know that's important in order to track down the problem. It seems like the smallest change in seemingly unrelated parts of the code makes the problem come or go.

  • Sun studio 12: java exception on load

    I frequently get the following error when starting the sun studio 12 netbeans ui on Solaris 10 on Intel:
    *********** Exception occurred ************ at 12:45 PM on Jul 3, 2007
    java.lang.UnsatisfiedLinkError: no base in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
    at java.lang.Runtime.loadLibrary0(Runtime.java:822)
    at java.lang.System.loadLibrary(System.java:992)
    at com.sun.tools.swdev.toolscommon.base.InstallDir.loadLibrary(InstallDi
    r.java:85)
    at com.sun.tools.swdev.toolscommon.base.Stat.<clinit>(Stat.java:201)
    and this prevents the UI from working properly. I have to retry a few times and sometimes it starts up without any issues. Any idea what can cause this and how to prevent it from happening?

    It seems to depend on what directory I am in when I try and launch sunstudio. Sometimes it only works when I am in the root folder, sometimes it works when I am in the folder that contains my project.
    This is the only message on the console where i run it from:
    Warning: Cannot convert string "-monotype-arial-regular-r-normal--*-140-*-*-p-*-iso8859-1" to type FontStruct
    Here are the full traces:
    java.lang.NoClassDefFoundError
         at com.sun.tools.swdev.sunstudio.redirect.CESRedirector.getBestPath(CESRedirector.java:103)
         at com.sun.tools.swdev.sunstudio.redirect.CESRedirector.redirect(CESRedirector.java:66)
         at org.openide.text.CloneableEditorSupportRedirector.findRedirect(CloneableEditorSupportRedirector.java:50)
         at org.openide.text.CloneableEditorSupport.getLineSet(CloneableEditorSupport.java:932)
         at com.sun.tools.debugger.dbxgui.utils.IpeUtils.lineNumberToLine(IpeUtils.java:96)
         at com.sun.tools.debugger.dbxgui.debugger.EditorBridge.getLine(EditorBridge.java:277)
         at com.sun.tools.debugger.dbxgui.debugger.breakpoints.NativeBreakpoint.addAnnotation(NativeBreakpoint.java:1516)
         at com.sun.tools.debugger.dbxgui.debugger.breakpoints.BreakpointXMLCodec.startElement(BreakpointXMLCodec.java:161)
         at org.netbeans.modules.cnd.api.xml.XMLDecoder._startElement(XMLDecoder.java:87)
         at org.netbeans.modules.cnd.api.xml.XMLDecoder.checkStartRecursion(XMLDecoder.java:104)
         at org.netbeans.modules.cnd.api.xml.XMLDecoder._startElement(XMLDecoder.java:84)
         at org.netbeans.modules.cnd.api.xml.XMLDecoder.checkStartRecursion(XMLDecoder.java:104)
         at org.netbeans.modules.cnd.api.xml.XMLDecoder._startElement(XMLDecoder.java:84)
         at org.netbeans.modules.cnd.api.xml.XMLDocReader$Parser.startElement(XMLDocReader.java:233)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:533)
         at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:220)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:872)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
         at org.netbeans.modules.cnd.api.xml.XMLDocReader.read(XMLDocReader.java:111)
         at com.sun.tools.debugger.dbxgui.debugger.breakpoints.BreakpointXMLReader.readFrom(BreakpointXMLReader.java:36)
         at com.sun.tools.debugger.dbxgui.debugger.UserdirFile.read(UserdirFile.java:105)
         at com.sun.tools.debugger.dbxgui.debugger.breakpoints.BreakpointXMLReader.read(BreakpointXMLReader.java:30)
         at com.sun.tools.debugger.dbxgui.debugger.breakpoints.BreakpointBag.restore(BreakpointBag.java:322)
         at com.sun.tools.debugger.dbxgui.debugger.DbxDebuggerManager.breakpointBag(DbxDebuggerManager.java:878)
         at com.sun.tools.debugger.dbxgui.DbxGuiModule.restored(DbxGuiModule.java:137)
         at org.netbeans.core.startup.NbInstaller.loadCode(NbInstaller.java:366)
         at org.netbeans.core.startup.NbInstaller.load(NbInstaller.java:282)
         at org.netbeans.ModuleManager.enable(ModuleManager.java:904)
         at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:383)
         at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:317)
         at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:250)
         at org.netbeans.core.startup.Main.getModuleSystem(Main.java:210)
         at org.netbeans.core.startup.Main.start(Main.java:381)
         at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:96)
    [catch] at java.lang.Thread.run(Thread.java:595)
    and
    java.lang.UnsatisfiedLinkError: no base in java.library.path
         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
         at java.lang.Runtime.loadLibrary0(Runtime.java:822)
         at java.lang.System.loadLibrary(System.java:993)
         at com.sun.tools.swdev.toolscommon.base.InstallDir.loadLibrary(InstallDir.java:85)
         at com.sun.tools.swdev.toolscommon.base.Stat.<clinit>(Stat.java:201)
         at com.sun.tools.swdev.sunstudio.redirect.CESRedirector.getBestPath(CESRedirector.java:103)
         at com.sun.tools.swdev.sunstudio.redirect.CESRedirector.redirect(CESRedirector.java:66)
         at org.openide.text.CloneableEditorSupportRedirector.findRedirect(CloneableEditorSupportRedirector.java:50)
         at org.openide.text.CloneableEditorSupport.setMIMEType(CloneableEditorSupport.java:1190)
         at org.apache.tools.ant.module.loader.AntProjectDataEditor.<init>(AntProjectDataEditor.java:52)
         at org.apache.tools.ant.module.loader.AntProjectDataObject.<init>(AntProjectDataObject.java:43)
         at org.apache.tools.ant.module.loader.AntProjectDataLoader.createMultiObject(AntProjectDataLoader.java:66)
         at org.openide.loaders.MultiFileLoader.handleFindDataObject(MultiFileLoader.java:83)
         at org.openide.loaders.DataObjectPool.handleFindDataObject(DataObjectPool.java:129)
         at org.openide.loaders.DataLoader.findDataObject(DataLoader.java:364)
         at org.openide.loaders.DataLoaderPool.findDataObject(DataLoaderPool.java:408)
         at org.openide.loaders.DataLoaderPool.findDataObject(DataLoaderPool.java:368)
         at org.openide.loaders.DataObject.find(DataObject.java:465)
         at org.netbeans.modules.cnd.makeproject.api.configurations.Item.getDataObject(Item.java:246)
         at org.netbeans.modules.cnd.makeproject.api.configurations.Item.addPropertyChangeListener(Item.java:157)
         at org.netbeans.modules.cnd.makeproject.api.configurations.Item.setFolder(Item.java:152)
         at org.netbeans.modules.cnd.makeproject.api.configurations.Folder.addItem(Folder.java:183)
         at org.netbeans.modules.cnd.makeproject.configurations.ConfigurationXMLCodec.endElement(ConfigurationXMLCodec.java:340)
         at org.netbeans.modules.cnd.api.xml.XMLDecoder.checkEndRecursion(XMLDecoder.java:133)
         at org.netbeans.modules.cnd.api.xml.XMLDecoder._endElement(XMLDecoder.java:92)
         at org.netbeans.modules.cnd.api.xml.XMLDocReader$Parser.endElement(XMLDocReader.java:245)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:633)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1241)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
         at org.netbeans.modules.cnd.api.xml.XMLDocReader.read(XMLDocReader.java:111)
         at org.netbeans.modules.cnd.makeproject.configurations.ConfigurationXMLReader.read(ConfigurationXMLReader.java:86)
         at org.netbeans.modules.cnd.makeproject.api.configurations.ConfigurationDescriptorProvider.getConfigurationDescriptor(ConfigurationDescriptorProvider.java:62)
         at org.netbeans.modules.cnd.makeproject.MakeProject$ProjectOpenedHookImpl.projectOpened(MakeProject.java:496)
         at org.netbeans.spi.project.ui.ProjectOpenedHook$1.projectOpened(ProjectOpenedHook.java:56)
         at org.netbeans.modules.project.ui.OpenProjectList.notifyOpened(OpenProjectList.java:593)
         at org.netbeans.modules.project.ui.OpenProjectList.getDefault(OpenProjectList.java:154)
         at org.netbeans.modules.project.ui.OpenProjectsTrampolineImpl.getOpenProjectsAPI(OpenProjectsTrampolineImpl.java:45)
         at org.netbeans.api.project.ui.OpenProjects.getOpenProjects(OpenProjects.java:81)
         at org.netbeans.modules.cnd.modelimpl.platform.ModelSupport.init(ModelSupport.java:108)
         at org.netbeans.modules.cnd.modelimpl.csm.core.ModelImpl.<init>(ModelImpl.java:57)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at java.lang.Class.newInstance0(Class.java:350)
         at java.lang.Class.newInstance(Class.java:303)
         at org.openide.util.lookup.MetaInfServicesLookup$P.getInstance(MetaInfServicesLookup.java:412)
         at org.openide.util.lookup.AbstractLookup.lookup(AbstractLookup.java:342)
         at org.openide.util.lookup.ProxyLookup.lookup(ProxyLookup.java:188)
         at org.netbeans.modules.cnd.api.model.CsmModelAccessor.getModel(CsmModelAccessor.java:139)
         at org.netbeans.modules.cnd.highlight.HighlightProvider.<init>(HighlightProvider.java:69)
         at org.netbeans.modules.cnd.highlight.HighlightProvider.<clinit>(HighlightProvider.java:59)
         at org.netbeans.modules.cnd.highlight.HighlightInstaller.restored(HighlightInstaller.java:32)
         at org.netbeans.core.startup.NbInstaller.loadCode(NbInstaller.java:366)
         at org.netbeans.core.startup.NbInstaller.load(NbInstaller.java:282)
         at org.netbeans.ModuleManager.enable(ModuleManager.java:904)
         at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:383)
         at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:317)
         at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:250)
         at org.netbeans.core.startup.Main.getModuleSystem(Main.java:210)
         at org.netbeans.core.startup.Main.start(Main.java:381)
         at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:96)
    [catch] at java.lang.Thread.run(Thread.java:595)

  • Exception when starting sun studio

    when am starting sun studio, it is giving an error message (exception)-java.lang.out of memory error : java heap space.
    i cant able to start sun studio. What will do...?
    Thanks in advance
    vinod

    Check current limits by issuing; this output is from my Ubuntu machine:
    $ ulimit -a
    core file size (blocks, -c) 0
    data seg size           (kbytes, -d) unlimited
    scheduling priority (-e) 0
    file size (blocks, -f) unlimited
    pending signals (-i) 16379
    max locked memory (kbytes, -l) 32
    max memory size         (kbytes, -m) unlimited
    open files (-n) 1024
    pipe size (512 bytes, -p) 8
    POSIX message queues (bytes, -q) 819200
    real-time priority (-r) 0
    stack size              (kbytes, -s) 8192
    cpu time (seconds, -t) unlimited
    max user processes (-u) 16379
    virtual memory          (kbytes, -v) unlimited
    file locks (-x) unlimited
    I marked settings that would probably need closer attention. Easies way to troubleshoot the problem is to set everything to unlimited and see if it helps.
    Also, check if you have enough swap - Sun Studio needs at least one gig of swap and 512 RAM (see http://docs.sun.com/source/820-2973/release_notesML.html#SystemReqs).

  • Sun Studio 12 startup exception

    Hi,
    Below was the exception I got when I started Sun Studio, it was running fine until I installed glib from pkgutil and it was still running fine when I was in the IDE. The error only happened after I quit Sun Studio and go back in. Any idea?
    java.lang.NullPointerException
    at org.netbeans.core.windows.persistence.TCRefParser$PropertyHandler.startElement(TCRefParser.java:250)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:533)
    at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:798)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:878)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(XMLDocumentScannerImpl.java:1157)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1794)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
    at org.netbeans.core.windows.persistence.TCRefParser$PropertyHandler.readData(TCRefParser.java:220)
    at org.netbeans.core.windows.persistence.TCRefParser.load(TCRefParser.java:79)
    at org.netbeans.core.windows.persistence.ModeParser.readTCRefs(ModeParser.java:293)
    at org.netbeans.core.windows.persistence.ModeParser.load(ModeParser.java:120)
    at org.netbeans.core.windows.persistence.WindowManagerParser.readModes(WindowManagerParser.java:408)
    at org.netbeans.core.windows.persistence.WindowManagerParser.load(WindowManagerParser.java:87)
    at org.netbeans.core.windows.persistence.PersistenceManager.loadWindowSystem(PersistenceManager.java:1015)
    at org.netbeans.core.windows.PersistenceHandler.load(PersistenceHandler.java:83)
    at org.netbeans.core.windows.WindowSystemImpl.load(WindowSystemImpl.java:45)
    [catch] at org.netbeans.core.NonGui$3.run(NonGui.java:224)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

    Are you saying that "sunstudio" does not run anymore on this system?
    Can you try to start it with empty userdir?
    % rm -rf /tmp/newdir
    % sunstudio --userdir  /tmp/newdir
    BTW, what OS do you use? I guess it is Linux, correct?
    Thanks,
    Nik

  • Sun studio not working in linux

    I installed sun studio 12 in suse 10 linux, and i created a simple pgm,
    when compiling it, it shows these below errors,
    Running "/root/Desktop/sunstudio12/bin/dmake -f Makefile CONF=Debug" in /root/SunStudioProjects/Add
    dmake: defaulting to parallel mode.
    See the man page dmake(1) for more information on setting up the .dmakerc file.
    linux-n3wz --> 1 job
    /root/Desktop/sunstudio12/bin/dmake -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf
    linux-n3wz --> 1 job
    mkdir -p build/Debug/Sun12-Linux-x86
    cc -c -g -o build/Debug/Sun12-Linux-x86/newmain.o newmain.c
    linux-n3wz --> Job output
    mkdir -p build/Debug/Sun12-Linux-x86
    cc -c -g -o build/Debug/Sun12-Linux-x86/newmain.o newmain.c
    (/root/SunStudioProjects/Add)newmain.c:
    "/root/Desktop/sunstudio12/prod/include/cc/stdio.h", line 5: cannot find include file: <stdio.h>
    "/root/Desktop/sunstudio12/prod/include/cc/stdlib.h", line 6: cannot find include file: <stdlib.h>
    "newmain.c", line 17: warning: implicit function declaration: scanf
    "newmain.c", line 19: warning: implicit function declaration: printf
    "newmain.c", line 20: undefined symbol: EXIT_SUCCESS
    cc: acomp failed for newmain.c
    *** Error code 2
    dmake: Fatal error: Command failed for target `build/Debug/Sun12-Linux-x86/newmain.o'
    Current working directory /root/SunStudioProjects/Add
    *** Error code 1
    dmake: Fatal error: Command failed for target `.build-impl'
    Build failed. Exit value 1.
    CAN any body tell me whats the exact problem?
    this same pgm is currectly running in sunstudio 12 installed in solaris.

    satmatrix wrote:
    ok, shall i install ubuntu in my laptop?No, I'm just saying that I'm not familiar with SuSe enough to tell what package you need to install to have standard includes. But you already have an answer now...
    Solaris 10 is not installable in my laptop, it doesnt support graphics, also i had tried opensolaris, it works without errors and it supports graphics,
    but can i install Sun Studio 12 in that?Of course. You can do it using OpenSolaris package manager; no need to download, unpack, install - package manager will do it for you.

  • Sun Studio & NetBeans not working

    Hi,
    I'm using Solaris Express CE b60 and some days ago Sun Studio and NetBeans is refusing to start.
    When run from a terminal Sun Studio writes this messages:
    "Warning: Missing charsets in String to FontSet conversion
    Warning: Cannot convert string "-monotype-arial-regular-r-normal---140---p--iso8859-1" to type FontStruct
    Warning: Unable to load any usable ISO8859-1 font
    Warning:
    Name: FONTLIST_DEFAULT_TAG_STRING
    Class: XmRendition
    Conversion failed. Cannot load font.
    Warning: Cannot convert string "-monotype-arial-regular-r-normal---140---p--iso8859-2" to type FontStruct
    Warning: Unable to load any usable ISO8859-1 font
    Warning:
    Name: FONTLIST_DEFAULT_TAG_STRING
    Class: XmRendition
    Conversion failed. Cannot load font."
    I haven't installed or removed nothing.
    Has someone an idea?
    Andrew

    Andrew,
    What java is in your path? (Use java -version to determine this). If you use java 1.4 that might be the reason. Please try java 1.5 or 1.6.
    Vladimir

  • 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.

  • Sun Update Manager attempts to patch wrong arch of Sun Studio 12

    Hi,
    I'm having patching problems as mentioned here: http://forum.java.sun.com/thread.jspa?threadID=5198127&tstart=0
    However, I recently (last week) installed an x86_64 version of Sun Studio 12 on my sparc NFS server as documented here: http://docs.sun.com/app/docs/doc/820-0274/6nc1b7u4r?a=view
    (Installing the Sun Studio 12 Software on a Solaris Server for Use by Clients With a Different Architecture)
    The clients are Sun Solaris 10 11/06 x86_64.
    After running "check for updates", Sun Update Manager today returned 9 patches for Sun Studio 12. All of these patches appear to be for sparc architecture:
    126995-01
    124861-02
    124867-01
    124863-01
    127000-01
    127143-01
    126503-01
    127001-01
    124872-01
    My question is, why doesn't Sun Update Manager realize that I installed the x86_64 version of Sun Studio 12 (for NFS exporting) and give me the x86_64 version of these patches?
    Or am I missing something? How does the procedure "Installing the Sun Studio 12 Software on a Solaris Server for Use by Clients With a Different Architecture" result in the package system on the NFS server being aware of the correct arch version of Sun Studio 12?
    This should explain more:
    (/opt/x86_64/SUNWspro is my NFS share)
    # pwd
    /opt/x86_64/SUNWspro
    # ls -l
    total 62
    lrwxrwxrwx 1 root root 15 Aug 12 18:32 LEGAL-SS12 -> prod/LEGAL-SS12
    drwxr-xr-x 2 root sys 25 Aug 12 18:33 READMEs
    lrwxrwxrwx 1 root root 9 Aug 12 18:31 atd1 -> prod/atd1
    drwxr-xr-x 3 root sys 95 Aug 12 18:33 bin
    drwxr-xr-x 5 root sys 5 Aug 12 18:32 contrib
    drwxr-xr-x 2 root sys 3 Aug 12 18:32 docs
    drwxr-xr-x 2 root sys 7 Aug 12 18:33 examples
    drwxr-xr-x 2 root sys 5 Aug 12 18:32 include
    drwxr-xr-x 3 root sys 3 Aug 12 18:30 inventory
    drwxr-xr-x 9 root sys 40 Aug 12 18:33 lib
    drwxr-xr-x 12 root sys 13 Aug 12 18:30 man
    drwxr-xr-x 2 root root 4 Aug 12 19:46 nb-install
    drwxr-xr-x 21 root sys 21 Aug 12 18:32 prod
    drwxr-xr-x 5 root sys 5 Aug 12 18:33 sfw
    # uname -a
    SunOS <hostname> 5.10 Generic_125100-10 sun4u sparc SUNW,Sun-Fire-V440
    # cd bin
    # ls
    CC cscope er_print gvim smctl visu
    CCadmin ctc er_rm indent ss_attach visuroot
    amd64 ctcr er_src lint sunCC whatdir
    analyzer ctrace etags lock_lint sunas xdcapture
    b2m cxref f77 ootags sunc89 xdconfig
    bcheck dbx f90 prepare_system sunc99 xdesigner
    bil2xd dem f95 ptclean suncc xdhelp
    c++filt dmake fbe rcs-checkin sunf77 xdrecord
    c89 dumpstabs fdumpmod rtc_patch_area sunf90 xdreplay
    c99 dwarfdump fpp rxm sunf95 xdroot
    cb ellcc fpr rxs sunstudio xdtosj
    cc er_archive fsplit sbcleanup tcov xemacs
    cc-5.0 er_cp gil2xd sbenter tha xemacs-mule
    cflow er_export gnuattach sbquery uil2xd
    checkjava er_kernel gnuclient sbtags version
    collect er_mv gnudoit smallxd version-5.0
    # file f95
    f95: ELF 32-bit LSB executable 80386 Version 1 [FPU], dynamically linked, stripped
    I obviously have the i386 version of f95 sitting on my sparc server. The x86 clients are happy with it - works great, but I want to be able to patch it.
    Can anyone tell me how to apply patches to my Sun Studio 12 installation in this case?
    Thanks,
    Phil

    its probably best to get your other patching issue sorted out first before going any further with this. it may turn out that fixing the problem of smpatch analyze recommending already installed patches will also fix this problem

  • Sun Studio 11: Cannot create a new file

    When I want to create a new *.h or *.cc file in my CVS mounted directory tree, studio raises it's famous "Unexpected Exception" dialog with a java stack trace. I have them prepared if you want, I just wanted to check before if there is some already known bug or advice. This worked flawlessly on Sun Studio 10.
    As for source browser (another topic in this forum), yeah, I would also very much like some kind of source browser, e.g. to be able to find all definitions/calls to my virtual method, have a class hierarchy...
    And one final note on the constant problems in communication between NetBeans and XEmacs, especially if there are two or more XEmacs windows open. Initially all works ok, but with time it starts...source error hyper links from make/build window and search dialog fail to open and position in the source file, then it can't open a file from Filesystems window, and when I restart the SunStudio, everything works again for some time.
    This was most annoying in release 9, then somewhat better in 10 but still present, and I see now nothing is better in release 11.
    Details:
    OS = SunOS 5.8 Generic_117350-26
    HW = sun4u sparc SUNW,Sun-Blade-1500
    SunStudio 11, netbeans 3.5V11, jdk1.5.0_06
    (all mounted from a Solaris 9 driven server)
    Thanks for reading and answers.
    Best regards.

    Thank you for your report! There is no bug filed for
    this issue,
    so, please, provide us with the java stack trace . OK, so there is a stack trace when opening a new header file:
    java.lang.NullPointerException
    at org.netbeans.modules.cpp.editor.CCFSrcFileIterator.addChangeListener(CCFSrcFileIterator.java:110)
    at org.openide.loaders.TemplateWizardIterImpl.setIterator(TemplateWizardIterImpl.java:73)
    at org.openide.loaders.TemplateWizard.setTemplateImpl(TemplateWizard.java:168)
    at org.openide.loaders.TemplateWizard1.implStoreSettings(TemplateWizard1.java:499)
    at org.openide.loaders.TemplateWizardPanel1.storeSettings(TemplateWizardPanel1.java:112)
    at org.openide.WizardDescriptor.updateState(WizardDescriptor.java:471)
    at org.openide.loaders.TemplateWizard.updateState(TemplateWizard.java:619)
    at org.openide.WizardDescriptor.goToNextStep(WizardDescriptor.java:612)
    at org.openide.WizardDescriptor.access$300(WizardDescriptor.java:55)
    at org.openide.WizardDescriptor$Listener.actionPerformed(WizardDescriptor.java:1110)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
    at java.awt.Component.processMouseEvent(Component.java:5488)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
    at java.awt.Component.processEvent(Component.java:5253)
    at java.awt.Container.processEvent(Container.java:1966)
    at java.awt.Component.dispatchEventImpl(Component.java:3955)
    at java.awt.Container.dispatchEventImpl(Container.java:2024)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
    at java.awt.Container.dispatchEventImpl(Container.java:2010)
    at java.awt.Window.dispatchEventImpl(Window.java:1774)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    [catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
    at java.awt.Dialog$1.run(Dialog.java:515)
    at java.awt.Dialog.show(Dialog.java:536)
    at org.netbeans.core.NbPresenter.superShow(NbPresenter.java:690)
    at org.netbeans.core.NbPresenter.doShow(NbPresenter.java:733)
    at org.netbeans.core.NbPresenter.run(NbPresenter.java:721)
    at org.openide.util.Mutex$1.run(Mutex.java:952)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    Then there is one for cpp file:
    java.util.NoSuchElementException
    at org.openide.loaders.TemplateWizard$DefaultIterator.nextPanel(TemplateWizard.java:812)
    at org.openide.loaders.TemplateWizardIterImpl.nextPanel(TemplateWizardIterImpl.java:136)
    at org.openide.WizardDescriptor$Listener.actionPerformed(WizardDescriptor.java:1106)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
    at java.awt.Component.processMouseEvent(Component.java:5488)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
    at java.awt.Component.processEvent(Component.java:5253)
    at java.awt.Container.processEvent(Container.java:1966)
    at java.awt.Component.dispatchEventImpl(Component.java:3955)
    at java.awt.Container.dispatchEventImpl(Container.java:2024)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
    at java.awt.Container.dispatchEventImpl(Container.java:2010)
    at java.awt.Window.dispatchEventImpl(Window.java:1774)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    [catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
    at java.awt.Dialog$1.run(Dialog.java:515)
    at java.awt.Dialog.show(Dialog.java:536)
    at org.netbeans.core.NbPresenter.superShow(NbPresenter.java:690)
    at org.netbeans.core.NbPresenter.doShow(NbPresenter.java:733)
    at org.netbeans.core.NbPresenter.run(NbPresenter.java:721)
    at org.openide.util.Mutex$1.run(Mutex.java:952)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    About XEmacs: yes, the communication between IDE and
    XEmacs is not stable. It was a little bit improved in
    Sun Studio
    10, but not enough. We plan to improve it in next
    release. I'll
    try to create a test case according to your
    description. BTW,
    why there are two or more XEmacs windows? Usually
    there
    should be only one window with many buffers. I don't
    think
    Sun Studio IDE can manage several XEmacs windows.Why? Because it is a great help to be able to watch two different buffers/modules at the same time when writing source code. If there is only one window with many buffers, I have to either split window in two (Ctrl X 2) or continuously switch between two buffers, which is annoying.
    Thanks for the feedback.

  • Sun Studio creator + jboss  jboss-4.2.2.GA

    Everything is runing well in jboss-4.0.3SP1 with Sun Studio Creator(JSF)
    but when Sun Studio Creator(JSF) deploying war to jboss-4.2.2.GA, I got the following Error
    please help me
    12:45:25,343 ERROR [[]] Exception sending context initialized event to listener instance
    of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
    java.lang.ExceptionInInitializerError
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessor
    Impl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructor
    AccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    at java.lang.Class.newInstance0(Class.java:350)
    at java.lang.Class.newInstance(Class.java:303)
    at com.sun.faces.config.rules.RenderKitRule.begin(RenderKitRule.java:79)
    at com.sun.org.apache.commons.digester.Digester.startElement(Digester.java:1273)
    at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
    at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
    at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher
    .dispatch(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Sour
    ce)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
    at com.sun.org.apache.commons.digester.Digester.parse(Digester.java:1548)
    at com.sun.faces.config.ConfigureListener.parse(ConfigureListener.java:1417)
    at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.jav
    a:348)
    at org.jboss.web.jsf.integration.config.JBossJSFConfigureListener.contextInitializ
    ed(JBossJSFConfigureListener.java:69)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:385
    6)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4361)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
    va:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
    at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.apache.catalina.core.StandardContext.init(StandardContext.java:5312)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
    va:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
    at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeploye
    r.java:301)
    at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:1
    04)
    at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
    at org.jboss.web.WebModule.startModule(WebModule.java:83)
    at org.jboss.web.WebModule.startService(WebModule.java:61)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.jav
    a:289)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport
    .java:245)
    at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
    va:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:15
    5)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:9
    78)
    at $Proxy0.start(Unknown Source)
    at org.jboss.system.ServiceController.start(ServiceController.java:417)
    at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
    va:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:15
    5)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy44.start(Unknown Source)
    at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
    va:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:15
    5)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:13
    3)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperat
    ionInterceptor.java:142)
    at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
    at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMB
    eanSupport.java:238)
    at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.j
    ava:87)
    at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubD
    eployerInterceptorSupport.java:188)
    at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:
    95)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy45.start(Unknown Source)
    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
    at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
    va:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:15
    5)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:13
    3)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperat
    ionInterceptor.java:142)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy9.deploy(Unknown Source)
    at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.j
    ava:421)
    at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.jav
    a:634)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(Abs
    tractDeploymentScanner.java:263)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(Abstr
    actDeploymentScanner.java:274)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(Abstra
    ctDeploymentScanner.java:225)
    Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.loggin
    g.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Invalid
    class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Lo
    g' visible, which is not allowed. (Caused by org.apache.commons.logging.LogConfigurationEx
    ception: Invalid class loader hierarchy. You have more than one version of 'org.apache.co
    mmons.logging.Log' visible, which is not allowed.) (Caused by org.apache.commons.logging.L
    ogConfigurationException: org.apache.commons.logging.LogConfigurationException: Invalid cl
    ass loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log'
    visible, which is not allowed. (Caused by org.apache.commons.logging.LogConfigurationExcep
    tion: Invalid class loader hierarchy. You have more than one version of 'org.apache.commo
    ns.logging.Log' visible, which is not allowed.))
    at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:
    543)
    at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:
    235)
    at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:
    209)
    at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
    at com.sun.faces.config.beans.RenderKitBean.<clinit>(RenderKitBean.java:26)
    ... 111 more
    Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.loggin
    g.LogConfigurationException: Invalid class loader hierarchy. You have more than one versi
    on of 'org.apache.commons.logging.Log' visible, which is not allowed. (Caused by org.apach
    e.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have mor
    e than one version of 'org.apache.commons.logging.Log' visible, which is not allowed.)
    at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl
    .java:397)
    at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:
    529)
    ... 115 more
    Caused by: org.apache.commons.logging.LogConfigurationException: Invalid class loader hier
    archy. You have more than one version of 'org.apache.commons.logging.Log' visible, which
    is not allowed.
    at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl
    .java:385)
    ... 116 more
    12:45:25,484 ERROR [StandardContext] Error listenerStart
    12:45:25,484 ERROR [StandardContext] Context [] startup failed due to previous errors
    12:45:25,640 WARN [ServiceController] Problem starting service jboss.web.deployment:war=M
    angalyam.war,id=950888772
    org.jboss.deployment.DeploymentException: URL file:/C:/Program Files/jboss-4.2.2.GA/server
    /default/tmp/deploy/tmp3295Mangalyam-exp.war/ deployment failed
    at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeploye
    r.java:379)
    at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:1
    04)
    at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
    at org.jboss.web.WebModule.startModule(WebModule.java:83)
    at org.jboss.web.WebModule.startService(WebModule.java:61)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.jav
    a:289)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport
    .java:245)
    at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
    va:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:15
    5)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:9
    78)
    at $Proxy0.start(Unknown Source)
    at org.jboss.system.ServiceController.start(ServiceController.java:417)
    at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
    va:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:15
    5)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy44.start(Unknown Source)
    at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
    va:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:15
    5)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:13
    3)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperat
    ionInterceptor.java:142)
    at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
    at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMB
    eanSupport.java:238)
    at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.j
    ava:87)
    at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubD
    eployerInterceptorSupport.java:188)
    at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:
    95)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy45.start(Unknown Source)
    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
    at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
    va:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:15
    5)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:13
    3)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperat
    ionInterceptor.java:142)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy9.deploy(Unknown Source)
    at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.j
    ava:421)
    at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.jav
    a:634)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(Abs
    tractDeploymentScanner.java:263)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(Abstr
    actDeploymentScanner.java:274)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(Abstra
    ctDeploymentScanner.java:225)
    12:45:25,703 ERROR [MainDeployer] Could not start deployment: file:/C:/Program Files/jboss
    -4.2.2.GA/server/default/deploy/Mangalyam.war
    org.jboss.deployment.DeploymentException: URL file:/C:/Program Files/jboss-4.2.2.GA/server
    /default/tmp/deploy/tmp3295Mangalyam-exp.war/ deployment failed
    at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeploye
    r.java:379)
    at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:1
    04)
    at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
    at org.jboss.web.WebModule.startModule(WebModule.java:83)
    at org.jboss.web.WebModule.startService(WebModule.java:61)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.jav
    a:289)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport
    .java:245)
    at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
    va:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:15
    5)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:9
    78)
    at $Proxy0.start(Unknown Source)
    at org.jboss.system.ServiceController.start(ServiceController.java:417)
    at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
    va:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:15
    5)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy44.start(Unknown Source)
    at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
    va:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:15
    5)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:13
    3)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperat
    ionInterceptor.java:142)
    at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
    at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMB
    eanSupport.java:238)
    at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.j
    ava:87)
    at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubD
    eployerInterceptorSupport.java:188)
    at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:
    95)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy45.start(Unknown Source)
    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
    at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
    va:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:15
    5)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:13
    3)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperat
    ionInterceptor.java:142)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy9.deploy(Unknown Source)
    at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.j
    ava:421)
    at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.jav
    a:634)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(Abs
    tractDeploymentScanner.java:263)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(Abstr
    actDeploymentScanner.java:274)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(Abstra
    ctDeploymentScanner.java:225)

    I figured it out by looking at the application server logs on the admin console. The problem was a permissions issue. I'm working with some plug-ins from ESRI (the gis software company) for ArcGIS Server 9.2. I forgot that you have to add some lines to the server.policy file (located at:
    /<install directory>/SunAppServer8/domains/creator/config/
    The text you have to add is
    grant {
    permission java.util.logging.LoggingPermission "control","";
    permission java.lang.RuntimePermission "*","read";
    permission java.util.PropertyPermission "PEOBJEDITHOME","read,write";
    permission java.util.PropertyPermission "ARCGIS_RELEASEALL_SHUTDOWN_HOOK","read,write";
    permission java.util.PropertyPermission "ARCGIS_IUNKNOWN_VARIENT_OBJECTS","read,write";
    So there you go.

  • SIGN in Sun Studio 11 (x86) running slowly

    Hi,
    I recently discovered that the sign (dsign) intrinsic function seems to be much slower than expected when using the -fast switch on an x86 platform. I compile with f95 -f77 -fast.
    Specifically, the intrinsic sign function is much slower than replacing the sign with a homegrown function which consists of an if-then-else statement (see below: function "fastsign"). However, when using -g or no optional compiler switches at all, the intrinsic sign function is slightly faster than the homegrown function.
    I'm experiencing this problem on Solaris 10, Sun Studio 11, Fortran 95 8.2 Patch 121020-02 2006/04/06 with an AMD Opteron CPU at 2.6GHz.
    As a check, I ran the code on an UltraSparc II 450MHz with Solaris 9 and the Fortran 77 5.3 2001/05/15 compiler, also with the -fast switch and found that the intrinsic sign and the homegrown function mentioned above take about the same amount of time.
    While it's not difficult to replace the uses of the intrinsic sign with the function I created, this problem only occurs when using the -fast switch.
    Any help anyone could give me would be appreciated. Alternatively, if someone could suggest an alternative library to use, that would work too.
    I realize that this post is sort of similar to a post by another user experiencing slow double intrinsic functions, so I apologize in advance if this should not be a new post.
    Thanks in advance,
    Jon
    c
           program test1
    c
           implicit    none
           integer     i     , imax
           real*8      q1    , q2    , q3    , q4    , t1    , t2
           real        etime , dummy(2)
           parameter ( imax = 1000000 )
           real*8      fastsign
    c
    c-----------------------------------------------------------------------
    c
    c      Initialise CPU timer
    c
           t1 = dble ( etime ( dummy ) )
    c
           q1 = 1.0d0
    c
           t1 = dble ( etime ( dummy ) )
           q3 = 0.0d0
           do i = 1,imax
             q2 = sign ( 0.5d0, q1 )
             q3 = q3 + ( 0.5d0 + q2 ) * 2.0d0
           enddo
           t1 = dble ( etime ( dummy ) ) - t1
    c
           t2 = dble ( etime ( dummy ) )
           q4 = 0.0d0
           do i = 1,imax
             q2 = fastsign ( 0.5d0, q1)
             q4 = q4 + ( 0.5d0 + q2 ) * 2.0d0
           enddo
           t2 = dble ( etime ( dummy ) ) - t2
    c
           write(6,2000) q3, q4
           write(6,2010) 'd_sign'           , t1
           write(6,2010) 'fastsign'         , t2
           write(6,2010) 'sign/fastsign'    , t1 / t2
    c
    c
    2000   format(2e16.8)
    2010   format(a16,1pe16.8)
    c
           stop
           end
    c
    c-----------------------------------------------------------------------
    c
           function fastsign ( a1, a2 )
    c
           real*8        fastsign, a1      , a2
    c
    c-----------------------------------------------------------------------
    c
           if (a2 .ge. 0.0d0) then
             fastsign =   a1
           else
             fastsign = - a1
           endif
    c
           return
           end
    c
    c-----------------------------------------------------------------------
    c

    If you compile with -S, you will see that the implementation of SIGN is inlined from a function called __f95_sign. You can find that function in /opt/SUNWspro/prod/lib/libm.il, or in .../prod/lib/amd64/libm.il for the version used with -xarch=amd64. It's just a text file, so you can change it if you like. (It might be prudent, though, to make a different .il file just for your version of __f95_sign.)
    By the way, your implementation of fastsign assumes that a1 is positive. If a1 is negative, it will get incorrect results. It also assumes that a2 is not a NaN, but that probably doesn't matter.
    It's also possible that your timing results have been skewed by the compiler inlining fastsign. That inlining happens earlier than the inlining of __f95_sign, so the compiler can apply more optimizations. In some cases it will delete a loop entirely. I haven't looked at what it's doing to your code. It's best to inhibit inlining with -xinline=.

  • Problems with sun studio 12 in suse linux 11

    Hi.
    I installed Sun Studio 12 suse linux with no problems. However, the debugging modules (DBX) are not working any more. When I started Sun Studio, it gave a message about modules that could not be loaded in tha moment. I did not pay attention. But I noticed that all debugging options were disabled.
    Using the module manager, I saw the DBX module was not checked, and I could not change it. I was marked with a red X. So I thought to reinstall the application. However, the uninstall utility doesn't work either.
    According with the documentation, running ./uninstaller does it, but I get the following error message instead
    Exception in thread "main" java.lang.NoClassDefFoundError: uninstall_Sun_Studio_12/class
    Caused by: java.lang.ClassNotFoundException: uninstall_Sun_Studio_12.class
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    I tried to uninstall manually, and then execute installer, by using first the software manager in linux and deleting the producregistry file manually. It worked because I executed the installer. However, in Sun Studio IDE, debugging options are still not available despite I "reinstalled" the application. I checked the log files and they say the file uninstall_Sun_Studio_12.class could not be written.
    So my questions are:
    1. Is there any other way to repair Sun Studio? What could be the possible for this module to stop working?
    2. Does anyone have an idea of why the installer cannot write the uninstaller class?
    I found that perhaps problems regarding Java / Netbeans versions could be the problem, but the ones I have installed are those packages that were installed along with Sun Studio, and both are valid.
    Thank you very much.

    Perhaps you can simply delete the Sun Studio 12 installation tree, because it will not work on SUSE Linux 11.
    This OS is not supported, so any problems you see with SS12 on SUSE 11 will not be fixed.
    But we have a newer version, that should work better.
    You can try to download and install Sun Studio Express 2008/11 (extract pre-installed image from tar.bz2 file).
    Here is a pointer to the web page:
    http://developers.sun.com/sunstudio/downloads/express
    All you need is to provide a email address, and press "Download Now" button.
    You will see a page, that gives you 2 options to download Sun Studio Express 2008/11.
    Use "Option 2": Download Tarfile Installer
    Thanks,
    Nik

Maybe you are looking for

  • HDD Upgrade on a Late 2006 Mini - Some Pre Op advice please!

    Hi there I'm looking to update the HDD in my Mac Mini (Model MA608LL/A) and would like a bit of advice and to ask a few questions on whether the drives I'm looking at are suitable. The drives i'm looking at are: Hitachi Travelstar 7K500 250GB 2.5" SA

  • My itunes icon is not appearing in my dock

    My itunes icon is no longer appearing in my dock and when I plug my iTouch in the only thing that comes up is iPhoto.  What should I do?  I am on 10.5.8.  I know I know.  It is way past time for an upgrade..... Any help would be greatly appreciated..

  • AIR archive? Old installer?

    Hello boyzngirlz, I need following Versions of the Adobe AIR: 1.0.4.42320 1.0.4880 1.0.4990 1.0.6.4030 1.0.8.4990 1.1.0.5790 1.5.0.7220, such that I can test AIR-Application on these different Versions. I could download the current AIR installer from

  • Cannot get the details in ME2N when using ALV but can when using BEST

    Hi experts, Could you let me know why I am not able to get the results when using ALV as Scope of List in ME2N Transaction, but can get data when using BEST? Regards, Pri

  • IMAQ-dx acquires at half the expected framerate

    I have a USB 2.0 camera that I am using with IMAQ-dx. I currently have the video mode set to 640x480 MJPG 30.00 fps. However, whenever I attempt to use the grab function I get frames returned at about 15 fps, with spikes between about 10 and 19 fps.