Assembly error on Sun Studio 11 - Solaris 10/amd64

Hi All
I am compiling my source code using cc. My cc version is
cc: Sun C 5.8 2005/10/13
I am using Sun Studio 11 and Solaris 10 on amd64 for my build.
I am getting following Assemply errors when compiling my code.
cc -xarch=amd64 -Kpic gptas.c
Assembler:
"/tmp/yabeAAALdaqGz", line 31 : Illegal mnemonic
"/tmp/yabeAAALdaqGz", line 34 : Syntax error
"/tmp/yabeAAALdaqGz", line 37 : Syntax error
"/tmp/yabeAAALdaqGz", line 50 : Illegal mnemonic
Failure in /opt/ss11/SUNWspro/prod/bin/fbe, status = 0x7f00
Fatal Error exec'ing /opt/ss11/SUNWspro/prod/bin/fbe
cc: acomp failed for gptas.c
The c code which I'm trying to compile:
/*ARGSUSED*/
int
#if defined(__STDC__) || defined(__cplusplus)
gptas(unsigned *x, short flag)
#else
gptas(x,flag)
unsigned *x;
short flag;
#endif
#ifdef __STDC__
volatile int r; /* volatile so optimizers won't get
* rid of variable - some assembly code
* depends on offsets with this on
* the stack.
#else
int r; /* var to return explicitly */
#endif
r = 0; /* always set return to 0 */
asm(" movl $1,%eax"); /* this 1 inworking reg will set x /
asm(" pushl %ebx"); /* save the register; eax already saved */
asm(" movl 8(%ebp),%ebx"); /* move the address of x */
asm(" xchg %eax,(%ebx)"); /* atomic swap a one with x /
asm(" cmp $0,%eax"); /* test what was in x /
asm(" jnz .A9999"); /* jump if x was already set /
r = 1; /* indicate set occurred */
asm(" .A9999:");
asm(" popl %ebx"); /* restore the register */
return(r);
Can someone let me know if this is a Compiler issue or it has something to do with my code .
I'll Appreciate any help on this.
Thanks in Advance
Somak

If you specify -S compiler option, assembly file will be produced and it enables you to look at the code assembler is complaining about. For example:
/ASM
pushl %ebx <== line 31
/ASMEND
I'm not too familiar with AMD64 ABI, but it is possible that you can't use 32-bit registers in 64 bit mode with some operations like memory (including stack) access.
I was able to compile code with the following changes:
asm(" movl $1,%eax"); /* this 1 inworking reg will set x /
asm(" pushl %rbx"); /* save the register; eax already saved */
asm(" movl 8(%rbp),%ebx"); /* move the address of x */
asm(" xchg %eax,(%rbx)"); /* atomic swap a one with x /
asm(" cmp $0,%eax"); /* test what was in x /
asm(" jnz .A9999"); /* jump if x was already set /
r = 1; /* indicate set occurred */
asm(" .A9999:");
asm(" popl %rbx"); /* restore the register */

Similar Messages

  • Netbeans error during Sun Studio 12 install

    I am trying to install Sun Studio 12 on a SunFire X4140 running Solaris 10 5/08. When I run the ./prepare_system -s netbeans command, I get the following error,
    "Preparation failed at step netbeans."
    The Sun Studio 12 [Release Notes|http://docs.sun.com/source/820-2063/release_notes.html] state:
    "This failure occurs because the NetBeans installation software needs to find a compatible version of the Java runtime environment either in your search path, or at one of these explicit installation points: /usr/jdk/latest/bin/java OR /usr/jdk/jdk1.5.0_09/bin/java".
    I have confirmed that "/usr/jdk/latest/bin/java" is installed- in fact it was installed by running "./prepare_system -s java". I have even changed the path to include "/usr/jdk/latest/bin" and still no go.
    Please advise.

    Hi,
    I would recommend to use latest Sun Studio Express 07/08 if possible.
    It is distributed as tar.bz2 archive wrapped by shell script.
    If you need to install a packaged version of Sun Studio you could try next workaround:
    - find zip NetBeans 5.5.1 on you media ( should be in the folder archives-...)
    - unpack it into subdirectory /opt
    However in this case you will need to check that it could be run properly (find java) by yourself.
    Regards,
    Leonid

  • DBX error in Sun Studio 9 on Sun 5.10

    Hello this topic is the "following" of this one : http://forums.sun.com/thread.jspa?threadID=5333342&tstart=0
    Indeed I thought the problem was solved but it wasn't.
    I will try to find new elements to provide you with.

    Ok for the pstack I will run it on the next try
    regarding the patch, I alrerady tried but the patch refused to be installed because no patch was installed before !?
    more over when I tried to installed previous patch, it was refused too because they are obsolete ! :/
    by the way, yesterday I found a log with this inside
    dbx: can't stat /opt/HCLT/presenter/4.2/ee21/c/libdbg/libndcorex.so -- No such file or directory
    Reading libndcorex.so
    dbx: warning: Couldn't open file: /opt/HCLT/presenter/4.2/ee21/c/libdbg/libndcorex.so (No such file or directory)
    dbx: internal error: Can't read /opt/HCLT/presenter/4.2/ee21/c/libdbg/libndcorex.so
    Reading libXext.so.0
    dbx: warning: The corefile has a different ELF checksum for /usr/lib/libXext.so.0
    checksums are:  file: 0x43e6  core: 0xf768
    See `help core mismatch' for more details.
    dbx: can't stat /opt/HCLT/presenter/4.2/ee21/c/libdbg/libndsec.so -- No such file or directory
    Reading libndsec.so
    dbx: warning: Couldn't open file: /opt/HCLT/presenter/4.2/ee21/c/libdbg/libndsec.so (No such file or directory)
    dbx: internal error: Can't read /opt/HCLT/presenter/4.2/ee21/c/libdbg/libndsec.so
    dbx: can't stat /opt/HCLT/presenter/4.2/ee21/c/libdbg/libndoaba.so -- No such file or directory
    Reading libndoaba.so
    dbx: warning: Couldn't open file: /opt/HCLT/presenter/4.2/ee21/c/libdbg/libndoaba.so (No such file or directory)
    dbx: internal error: Can't read /opt/HCLT/presenter/4.2/ee21/c/libdbg/libndoaba.so
    Reading libdga.so.1
    dbx: warning: The corefile has a different ELF checksum for /usr/openwin/lib/libdga.so.1
    checksums are:  file: 0xd9a9  core: 0xb265
    See `help core mismatch' for more details.
    Reading libc_psr.so.1
    dbx: warning: The corefile has a different ELF checksum for /usr/lib/libthread.so.1
    checksums are:  file: 0x909e  core: 0xe33b
    See `help core mismatch' for more details.
    dbx: core file read error: address 0xfe6dd698 not in data space
    dbx: warning: could not initialize libthread_db.so -- generic libthread_db.so error
    dbx: warning: thread related commands will not be available
    dbx: warning: see `help lwp', `help lwps' and `help where'
    (l@1) terminated by signal ABRT (Abort)The strange point is that presenter 4.2 has never been installed on this machine, we're running Presenter 5.3 !?

  • Trouble viewing disassembly with Sun Studio 11

    I was wondering how someone can bring up a window with a program�s disassembly when debugging a C program with Sun Studio 11. (SPARC). I would like to be able to set breakpoints at specific assembly instructions using Sun Studios�s GUI interface rather than using typed commands with DBX. I would also like to know how to get a window that shows the current value of the registers. Any help would be greatly appreciated.
    Chris

    Oops, it appears that you can't set breakpoints
    through Disassembler window, it just shows the code
    and current position within the code, that's all.It
    gives you better view of context than dbx's 'dis' or
    'list -i' commands, though.Actually you can set breakpoints through Disassembler window:
    - select an address, click right mouse button to open context menu
    - choose "Set Breakpoint"
    If you need this feature, please file an RFE (Request
    For Enhancement) through bugs.sun.comThe Disassembler window has been significantly improved between
    EA1 and FCS. Now users can set and delete breakpoints using the
    same way as they do in source file - click on the left gray area (toggle
    breakpoints). Also Disassembler window has "Step Into", "Step Over",
    "Step Out" and "Run To Cursor" buttons.
    Thanks,
    Nik

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

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

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

  • Compiling iperf on Solaris 10 8/07 w/ Sun Studio 12 -- Errors

    /var/tmp/iperf-2.0.2 (nocc-testjump) #> /usr/local/bin/make
    /usr/local/bin/make  all-recursive
    make[1]: Entering directory `/var/tmp/iperf-2.0.2'
    Making all in compat
    make[2]: Entering directory `/var/tmp/iperf-2.0.2/compat'
    if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I../include -I../include    -O2  -MT delay.o -MD -MP -MF ".deps/delay.Tpo" -c -o delay.o delay.cpp; \
            then mv -f ".deps/delay.Tpo" ".deps/delay.Po"; else rm -f ".deps/delay.Tpo"; exit 1; fi
    In file included from /usr/include/sys/wait.h:24,
                     from /usr/include/stdlib.h:22,
                     from ../include/headers.h:78,
                     from ../include/Timestamp.hpp:63,
                     from delay.cpp:53:
    /usr/include/sys/siginfo.h:259: 'ctid_t' is used as a type, but is not defined
       as a type.
    /usr/include/sys/siginfo.h:260: 'zoneid_t' is used as a type, but is not
       defined as a type.
    /usr/include/sys/siginfo.h:390: 'ctid_t' is used as a type, but is not defined
       as a type.
    /usr/include/sys/siginfo.h:391: 'zoneid_t' is used as a type, but is not
       defined as a type.
    make[2]: *** [delay.o] Error 1
    make[2]: Leaving directory `/var/tmp/iperf-2.0.2/compat'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/var/tmp/iperf-2.0.2'
    make: *** [all] Error 2
    /var/tmp/iperf-2.0.2 (nocc-testjump) #> Any ideas why I'm getting this problem?

    In general, if you are having a problem compiling Open Source code with Sun Studio, you need to try the community support portal for that code.
    Start with the Iperf home page
    [http://starplane.org/tooldoc/iperf/]
    Often, Open Source code has been tried only with gcc, and won't build with other compilers without some effort.
    If nobody else has tried using Sun Studio, you might need to do some debugging of configuration scripts and even source code.
    The Iperf home page provides an address where you can report such problems.
    In addition, older versions of autoconf and libtool don't work with Sun Studio, and can generate invalid makefiles. Be sure you have the current versions of both, if they are used by Iperf.

  • Sun Studio 11 Installation Problem on Solaris 9

    Hi
    I am installing Sun Studio11 on Solaris 9 SPARC Platform using -nodisplay option. The command line output is showing as installation is success.
    But when I see the install log file I am seeing the following errors.
    Begin------------------------------------------------------------------------------------------
    Installing Package: SPROcpl
    Processing package instance <SPROcpl> from </mcc/app/ds/Compiler/CD1/kits/ide/packages>
    Sun Studio 11 C++ Compiler
    (sparc) 11.0,REV=2005.10.13
    Using </mcc/app/ds/sunstudio11> as the package base directory.
    ## Processing package information.
    ## Processing system information.
    ## Verifying package dependencies.
    ## Verifying disk space requirements.
    Installing Sun Studio 11 C++ Compiler as <SPROcpl>
    ## Installing part 1 of 1.
    WARNING: /mcc/app/ds/sunstudio11/SUNWspro/inventory/v15n1/SPROcpl <not present on Read Only file system>
    WARNING: /mcc/app/ds/sunstudio11/SUNWspro/prod/bin/CC <not present on Read Only file system>
    WARNING: /mcc/app/ds/sunstudio11/SUNWspro/prod/bin/CCadmin <not present on Read Only file system>
    WARNING: /mcc/app/ds/sunstudio11/SUNWspro/prod/bin/CClink <not present on Read Only file system>
    WARNING: /mcc/app/ds/sunstudio11/SUNWspro/prod/bin/c++filt <not present on Read Only file system>
    WARNING: /mcc/app/ds/sunstudio11/SUNWspro/prod/bin/ccfe <not present on Read Only file system>
    End ------------------------------------------------------------------------------------------
    The above errors are coming for almost all the packages / components.
    Also I am not seeing any files created in <installdir>/SUNWspro/prod/bin folder.
    Thanks in advance

    Give this a whizz:
    for a in `pkginfo | nawk '/SPRO/{print $2}'` ; do pkgchk $a ; doneDoes it report anything? If it doesn't, I wouldn't lose too much sleep over the warnings.
    Paul

  • I can�t install Sun Studio 11 in Solaris 8

    Hello!!
    We are trying to install Sun Studio 11 on our Server.
    The server is running under Solaris 8, we install J2SE 1.4.2_10 SDK prior to run the Sun Studio installer, but when we run the installer, it report the following error
    Could not find class during deserialization of the WizardState:java.lang.ClassNotFoundException: com.sun.install.products.Product
    java.lang.ClassNotFoundException: com.sun.install.products.Product
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.lang.ClassNotFoundException.<init>(Compiled Code)
    at java.io.ObjectInputStream.inputObject(Compiled Code)
    at java.io.ObjectInputStream.readObject(Compiled Code)
    at java.io.ObjectInputStream.readObject(Compiled Code)
    at java.util.Hashtable.readObject(Compiled Code)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Compiled Code)
    at java.io.ObjectInputStream.invokeObjectReader(Compiled Code)
    at java.io.ObjectInputStream.inputObject(Compiled Code)
    at java.io.ObjectInputStream.readObject(Compiled Code)
    at java.io.ObjectInputStream.readObject(Compiled Code)
    at com.sun.wizards.core.GenericWizardState.setWizardState(Compiled Code)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Compiled Code)
    at com.sun.wizards.core.ArchiveReader.callObjectMethod(Compiled Code)
    at com.sun.wizards.core.ArchiveReader.<init>(Compiled Code)
    at com.sun.forte.install.tasks.AddChildWizardTask.fetchChildWizards(Compiled Code)
    at com.sun.forte.install.tasks.AddChildWizardTask.perform(Compiled Code)
    at com.sun.wizards.core.Sequence.perform(Compiled Code)
    at com.sun.wizards.core.SequenceManager.run(Compiled Code)
    at java.lang.Thread.run(Thread.java:479)
    Could not find class during deserialization of the WizardState:java.lang.ClassNotFoundException: com.sun.install.products.Product
    java.lang.ClassNotFoundException: com.sun.install.products.Product
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.lang.ClassNotFoundException.<init>(Compiled Code)
    at java.io.ObjectInputStream.inputObject(Compiled Code)
    at java.io.ObjectInputStream.readObject(Compiled Code)
    at java.io.ObjectInputStream.readObject(Compiled Code)
    at java.util.Hashtable.readObject(Compiled Code)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Compiled Code)
    at java.io.ObjectInputStream.invokeObjectReader(Compiled Code)
    at java.io.ObjectInputStream.inputObject(Compiled Code)
    at java.io.ObjectInputStream.readObject(Compiled Code)
    at java.io.ObjectInputStream.readObject(Compiled Code)
    at com.sun.wizards.core.GenericWizardState.setWizardState(Compiled Code)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Compiled Code)
    at com.sun.wizards.core.ArchiveReader.callObjectMethod(Compiled Code)
    at com.sun.wizards.core.ArchiveReader.<init>(Compiled Code)
    at com.sun.wizards.core.GenericWizardState.setWizardState(Compiled Code)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Compiled Code)
    at com.sun.wizards.core.ArchiveReader.callObjectMethod(Compiled Code)
    at com.sun.wizards.core.ArchiveReader.<init>(Compiled Code)
    at java.lang.reflect.Constructor.newInstance(Native Method)
    at install.instantiateArchiveReader(ArchiveClassLoader.java:203)
    at install.<init>(ArchiveClassLoader.java:143)
    at install.main(Compiled Code
    Some one has any idea?
    Thank you in advance.
    PD: Sorry for my English, I�am a beginner English student, please be pacient.

    i've installed java 1.5.0b06 and I can install SUN Studio 11 in Solaris 8
    feedback:
    ==========================================================
    # echo $PATH
    /usr/j2se/jre1.5.0_06/bin:/usr/j2se/jre1.5.0_06:/usr/sbin:/usr/bin
    # java -version
    java version "1.5.0_06"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
    Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)
    ==========================================================
    but when i try to install
    ==========================================================
    # ./installer -nodisplay
    Could not find class during deserialization of the WizardState:java.lang.ClassNotFoundException: com.sun.install.products.Product
    java.lang.ClassNotFoundException: com.sun.install.products.Product
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.lang.ClassNotFoundException.<init>(Compiled Code)
    at java.io.ObjectInputStream.inputObject(Compiled Code)
    at java.io.ObjectInputStream.readObject(Compiled Code)
    at java.io.ObjectInputStream.readObject(Compiled Code)
    at java.util.Hashtable.readObject(Compiled Code)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Compiled Code)
    at java.io.ObjectInputStream.invokeObjectReader(Compiled Code)
    at java.io.ObjectInputStream.inputObject(Compiled Code)
    at java.io.ObjectInputStream.readObject(Compiled Code)
    at java.io.ObjectInputStream.readObject(Compiled Code)
    at com.sun.wizards.core.GenericWizardState.setWizardState(Compiled Code)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Compiled Code)
    at com.sun.wizards.core.ArchiveReader.callObjectMethod(Compiled Code)
    at com.sun.wizards.core.ArchiveReader.<init>(Compiled Code)
    at com.sun.forte.install.tasks.AddChildWizardTask.fetchChildWizards(Compiled Code)
    at com.sun.forte.install.tasks.AddChildWizardTask.perform(Compiled Code)
    at com.sun.wizards.core.Sequence.perform(Compiled Code)
    at com.sun.wizards.core.SequenceManager.run(Compiled Code)
    at java.lang.Thread.run(Thread.java:472)
    Could not find class during deserialization of the WizardState:java.lang.ClassNotFoundException: com.sun.install.products.Product
    java.lang.ClassNotFoundException: com.sun.install.products.Product
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.lang.ClassNotFoundException.<init>(Compiled Code)
    at java.io.ObjectInputStream.inputObject(Compiled Code)
    at java.io.ObjectInputStream.readObject(Compiled Code)
    at java.io.ObjectInputStream.readObject(Compiled Code)
    at java.util.Hashtable.readObject(Compiled Code)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Compiled Code)
    at java.io.ObjectInputStream.invokeObjectReader(Compiled Code)
    at java.io.ObjectInputStream.inputObject(Compiled Code)
    at java.io.ObjectInputStream.readObject(Compiled Code)
    at java.io.ObjectInputStream.readObject(Compiled Code)
    at com.sun.wizards.core.GenericWizardState.setWizardState(Compiled Code)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Compiled Code)
    at com.sun.wizards.core.ArchiveReader.callObjectMethod(Compiled Code)
    at com.sun.wizards.core.ArchiveReader.<init>(Compiled Code)
    at com.sun.wizards.core.GenericWizardState.setWizardState(Compiled Code)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Compiled Code)
    at com.sun.wizards.core.ArchiveReader.callObjectMethod(Compiled Code)
    at com.sun.wizards.core.ArchiveReader.<init>(Compiled Code)
    at java.lang.reflect.Constructor.newInstance(Native Method)
    at install.instantiateArchiveReader(ArchiveClassLoader.java:203)
    at install.<init>(ArchiveClassLoader.java:143)
    at install.main(Compiled Code)
    ===============================================================
    so i am confused or maybe i have to install 1.4.2.10??

  • Building NCAR Graphics 5.2.1 on Solaris 10 x86u9 under Sun Studio 10 (2005)

    Hello,
    I've got the following error when compiling ncar program with Sun
    cc and f90 and /usr/ccs/bin/ld.
    cc -ansi -O -I/usr/openwin/include -I/usr/include/X11 -DSYSV -
    D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped -Di386 -DNeedFuncProto -
    c cl.c
    cc: Warning: illegal option -nsi
    cc: -a conflicts with -dy.
    *** Error code 1
    make: Fatal error: Command failed for target `cl.o'
    After that i've changed the config/SolarisPC file and tried a build with gcc 3.4.3 and f90 but I got
    ld fatal: library -lc not found.
    I have an old box from 2001 which was under HCL of Solaris 8 x86.
    The people at NCAR did not update their configuration files for Solaris 10 x86. The SolarisPC file is old and is using by default g77 as the fortran compiler. Could I mix gcc with f90 ? Which linker should I use in that case?
    /usr/ccs/bin/ld or /usr/ucb/ld?

    Please refer to the C Users Guide for details of cc command line options. All manuals for Sun Studio 12u1 are listed here:
    http://download.oracle.com/docs/cd/E19205-01/index.html
    There is no -ansi option in Sun/Oracle C, nor has there ever been. The compiler attempts to interpret it as -a followed by some other letters, which is why you get a complaint about -a. Remove the option.
    Depending on what you expect from the -ansi option, either the default compiler behavior or the -Xc option should work. I suggest trying the default behavior (no -X option). Refer to the manual for details.
    Always use the /usr/ccs/bin/ld linker, but you normally should not use the ld linker directly. If you mixing C and Fortran, use the f90 driver to do the linking; it knows what Fortran libraries need to be linked, depending on command line option. When linking a program using only C, use the cc driver to link. Some C command-line options require linking special system files; the cc and f90 drivers know the rules.
    To mix Fortran with C, refer to the Fortran Users Guide. I recommend using the Studio C compiler when mixing code, not gcc. The requirements of gcc are not known to the f90 driver, but it does know the requirements of Studio C.
    The schema for a mixed Fortran and C program is something like this:
    cc -c f1.c f2.c <other options>
    f90 -c f3.f90 f4.f90 <other options>
    f90 -o myprog f1.o f2.0 f3.0 f4.0 <other options>

  • Strange C++ error when using newer Sun Studio compiler

    My company has just set up a new build machine for our product. We have gone from
    this version: CC: Sun C++ 5.7 Patch 117830-11 2007/04/04
    to this one: CC: Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25
    we have also upgraded the OS (solaris/sparc). I think the new one has gcc but the old one doesn't (we don't use it).
    and now I am getting this error:
    "/opt/SUNWspro/prod/include/CC/./new", line 32: Error, badextlnk: operator new(unsigned) was declared before with a different language.
    "/opt/SUNWspro/prod/include/CC/./new", line 35: Error, badextlnk: operator delete(void*) was declared before with a different language.
    "/opt/SUNWspro/prod/include/CC/./new", line 37: Error, badextlnk: operator new[](unsigned) was declared before with a different language.
    "/opt/SUNWspro/prod/include/CC/./new", line 40: Error, badextlnk: operator delete[](void*) was declared before with a different language.
    "/opt/SUNWspro/prod/include/CC/./new", line 53: Error, badollnk: Only one of a set of overloaded functions can be extern "C".
    "/opt/SUNWspro/prod/include/CC/./new", line 54: Error, badollnk: Only one of a set of overloaded functions can be extern "C".
    "/opt/SUNWspro/prod/include/CC/./new", line 55: Error, badollnk: Only one of a set of overloaded functions can be extern "C".
    "/opt/SUNWspro/prod/include/CC/./new", line 56: Error, badollnk: Only one of a set of overloaded functions can be extern "C".
    "/opt/SUNWspro/prod/include/CC/Cstd/rw/iterator", line 106: Error, temnotexternc: Template declarations cannot have extern "C" linkage.
    "/opt/SUNWspro/prod/include/CC/Cstd/rw/iterator", line 169: Error, temnotexternc: Template declarations cannot have extern "C" linkage.
    "/opt/SUNWspro/prod/include/CC/Cstd/rw/iterator", line 185: Error, temnotexternc: Template declarations cannot have extern "C" linkage.
    "/opt/SUNWspro/prod/include/CC/Cstd/rw/iterator", line 198: Error, temnotexternc: Template declarations cannot have extern "C" linkage.
    "/opt/SUNWspro/prod/include/CC/Cstd/rw/iterator", line 202: Error, temnotexternc: Template declarations cannot have extern "C" linkage.
    "/opt/SUNWspro/prod/include/CC/Cstd/rw/iterator", line 206: Error, temnotexternc: Template declarations cannot have extern "C" linkage.
    "/opt/SUNWspro/prod/include/CC/Cstd/rw/iterator", line 217: Error, badollnk: Only one of a set of overloaded functions can be extern "C".
    "/opt/SUNWspro/prod/include/CC/Cstd/rw/iterator", line 225: Error, temnotexternc: Template declarations cannot have extern "C" linkage.
    "/opt/SUNWspro/prod/include/CC/Cstd/rw/iterator", line 239: Error, temnotexternc: Template declarations cannot have extern "C" linkage.
    "/opt/SUNWspro/prod/include/CC/Cstd/rw/iterator", line 249: Error, temnotexternc: Template declarations cannot have extern "C" linkage.
    "/opt/SUNWspro/prod/include/CC/Cstd/rw/iterator", line 264: Error, temnotexternc: Template declarations cannot have extern "C" linkage.
    "/opt/SUNWspro/prod/include/CC/Cstd/rw/iterator", line 275: Error, temnotexternc: Template declarations cannot have extern "C" linkage.
    I have no idea what could be causing this. I can find one link to it on this forum: http://forums.sun.com/thread.jspa?messageID=9488983 . But the only answer to that query says it is the same as another bug which appears entirely different, not to mention being very old (while talking about an imminent fix), and being related to a different OS and (I think) a different version of sun studio (express vs. normal?).
    Any ideas? Could it be related to having gcc/g++ on the machine?

    Hi,
    I am also facing the same error while upgrading the Sun compiler description as below
    when I am compiling the cxx file on the system with compiler version (CC: Sun C++ 5.9 SunOS_sparc 2007/05/03) , I am facing the following error:-
    /opt/SUNWspro/bin/CC -dy -misalign -xcode=abs64 -xarch=v9 -D__EXTENSIONS__ -Dsun4_R5=1 -I. -Isun4_R5_v -I/home/as185259/ash_iadraid/ash_get_10/IA/PORT/include -I/home/as185259/ash_iadraid/ash_get_10/IA/WV/WV5.3.6-ncr0302/build/include/sun4_R5_v -I/app/oracle/product/10.2.0/client_1/sqllib/public -I/app/oracle/product/10.2.0/client_1/precomp/public -I/opt/informix/include -DSVR4 -O -g p -pta -c MContext.cxx -o sun4_R5_v/MContext.o || \
    (rm -f sun4_R5_v.d; false)CC: Warning: -xarch=v9 is deprecated, use -m64 to create 64-bit programs
    "/home/as185259/ash_iadraid/ash_get_10/IA/WV/WV5.3.6-ncr0302/build/include/sun4_R5_v/ssmalloc.h", line 97: Error: Only one of a set of overloaded functions can be extern "C".
    "/home/as185259/ash_iadraid/ash_get_10/IA/WV/WV5.3.6-ncr0302/build/include/sun4_R5_v/ssmalloc.h", line 99: Error: Only one of a set of overloaded functions can be extern "C".
    "/home/as185259/ash_iadraid/ash_get_10/IA/WV/WV5.3.6-ncr0302/build/include/sun4_R5_v/ssmalloc.h", line 101: Error: Only one of a set of overloaded functions can be extern "C".
    "/home/as185259/ash_iadraid/ash_get_10/IA/WV/WV5.3.6-ncr0302/build/include/sun4_R5_v/ssmalloc.h", line 102: Error: Only one of a set of overloaded functions can be extern "C".
    4 Error(s) detected.
    The same file with the same compilation command is getting compiled with compiler version CC: Sun WorkShop 6 update 2 C+ 5.3 2001/05/15 .
    Can anyone suggest what should be the resolution:-
    The code for the ssmalloc.h file is as under:-
    #ifndef SSMALLOC_H
    #define SSMALLOCH
    #include <stddef.h>
    #if defined(__sparcv9)
    namespace ssmalloc {
    #endif
    #if defined(__cplusplus)
    extern "C" {
    #endif
    The type for the malloc routine depends on
    the compiler and library that you are using.
    #if defined(hpux) || defined(sun4_R5) || defined(__GNUC_) || defined(_OS2_)
    typedef void MALLOC_PTR;
    #else
    typedef char *MALLOC_PTR;
    #endif
    #if defined(_GNUG_)
    typedef size_t MALLOC_SIZE;
    #else
    typedef unsigned MALLOC_SIZE;
    #endif
    #if defined(sun4) && ! defined(_GNUG_)
    # define FREE_RETURNS int
    # define FREE_RETURN return 0
    #else
    # define FREE_RETURNS void
    # define FREE_RETURN return
    #endif
    // User-callable routines.
    // Note: memalign and valloc are broken in that they do not aling
    // memory on documented boundaries, and thus do not behave as described
    // on the "malloc" manual page. They simply call malloc.
    MALLOC_PTR malloc (MALLOC_SIZE size);
    FREE_RETURNS free (MALLOC_PTR data);
    MALLOC_PTR realloc (MALLOC_PTR data, MALLOC_SIZE size);
    MALLOC_PTR calloc (size_t nelem, size_t elsz);
    MALLOC_PTR valloc (unsigned size);
    MALLOC_PTR memalign (unsigned alignment, unsigned size);
    // This memory allocator supports memory allocation inside signal
    // handlers. For correct operation, the following functions must be
    // called upon entering and exiting signal handlers that allocate
    // memory.
    void ssmalloc_enter_signal_level();
    void ssmalloc_exit_signal_level();
    // Set this variable to not 0 (possibly in the debugger) if you want
    // to get malloc to check memory data structures very carefully as it
    // goes. This may be handy if you are trying to detect a memory
    // trasher.
    // It also causes ssmalloc to abort the program instead of returning
    // zero if memory runs out.
    extern int check_memory_very_carefully;
    #if defined(__cplusplus)
    #endif
    #if defined(__sparcv9)
    } // namespace ssmalloc {
    #endif
    #endif / SSMALLOCH */
    The Machine is
    root@ldg1-> uname -a
    SunOS ldg1 5.10 Generic_138888-03 sun4v sparc SUNW,Sun-Blade-T6320
    Thanks
    Vijay

  • Two compile issues with Sun Studio 12 @ x86(_64 = amd64)

    The following two issues are absent on Solaris 10 SPARC and all previous Sun Studio versions (8 to 11), but present on both amd64 Solaris 10 and Linux 2.6 versions:
    1. mozilla.org's Spidermonkey "JavaScript" (ECMAscript) can't be compiled with it: in file jsinterp.c an endless loop is entered by the optimizer in level -xO1 and higher (!). With no optimization, linking is impossible (unresolved symbols from jsinterp.o), which hints to defunct output.
    2. the optimizer (ube) is crashing in sources with a switch with many many case labels in optimization level -xO3 and higher with a segfault.

    I have trouble to seperate a reasonable (example) source out of our complex sources showing the second issue --- what I can already tell is, that the following special pragma has to do with it (while I'm now in doubt that the each 256 case labels per switch, two switches in an if else clause have to do with it):
    #pragma opt 0 (func_name)
    Own1 Own2 func_name(...)
    The buggy versions I can tell you: they are
    on Solaris 10 amd64:
    /opt/SUNWspro/bin/cc -V
    cc: Sun C 5.9 SunOS_i386 2007/05/03
    /opt/SUNWspro/prod/bin/ube -V
    ube: Sun Compiler Common 12 SunOS_i386 2007/05/03
    on GNU/Linux:
    cc -V
    cc: Sun C 5.9 Linux_i386 2007/05/03
    ube -V
    ube: Sun Compiler Common 12 Linux_i386 2007/05/03
    The only important compiler option in this regard seems to be the optimization level, but the situation is complex too, if others should be also involved. I will investigate further...

  • Sun Studio C++ v5.3 adding complex gives errors

    If anyone can privide info on the following issue I would greatly appreciate it.. I have a simple test app that does not compile. This is with Sun Studion C++ v5.3 (I think then called Sun Workshop Pro) on a Solaris 5.8 machine.
    #include <complex>
    using namespace std;
    int main()
      complex<int> a(1, 2);
      complex<int> b(3, 4);
      complex<int> c;
      c = a + b;
      cout << "Answer: " << c << endl;
      return 0;
    }When compiling I get the following error:
    /opt/SUNWspro/WS6U2/include/CC/Cstd/complex Line 1006: Error The operation "std::complex<int> += const std::complex<int> is illegal
    sol_cpx.cc Line 10 Where: While instantiating std::complex<int>+ ( const std::complex<int>, const std::complex<int> )
    sol_cpx.cc Line 10 Where: Instantiated from non-template code
    Are there any compiler flags to handle this or is there an update I can get to fix this? Any help would be much appreciated since I'm clueless. Thank you!

    complex<int> is not supported. The only specializations of type complex are float, double, and long double.
    The suggestion to try stlport won't work with C++ 5.3.
    We began supplying stlport with C++ 5.4.
    C++ 5.3 has been declared End Of Life, and only limited support is available for it. You can download a copy of the current release, Sun Studio 10, and try it free for 60 days.
    http://www.sun.com/software/products/studio/index.xml

  • C compiler cannot create executables error, Sun Studio 12, snv_69

    I am having difficulty compiling a program for R version 2.6.0 from the bioconductor site called RSQLite. I have successfully build R with Sun Studio 12, but now this particular package complains that my C compiler cannot create executables and I have idea how to go about trying to fix this. I don't know if you need to see the 'configure' file to help with this.
    The output from the config.log file is:
      $ ./configure
    ## Platform. ##
    hostname = me
    uname -m = i86pc
    uname -r = 5.11
    uname -s = SunOS
    uname -v = snv_69
    /usr/bin/uname -p = i386
    /bin/uname -X     = System = SunOS
    Node = solenv
    Release = 5.11
    KernelID = snv_69
    Machine = i86pc
    BusType = <unknown>
    Serial = <unknown>
    Users = <unknown>
    OEM# = 0
    Origin# = 1
    NumCPU = 1
    /bin/arch              = i86pc
    /usr/bin/arch -k       = i86pc
    /usr/convex/getsysinfo = unknown
    hostinfo               = unknown
    /bin/machine           = unknown
    /usr/bin/oslevel       = unknown
    /bin/universe          = unknown
    PATH: /opt/local/bin
    PATH: /opt/sfw/bin
    PATH: /usr/sfw/bin
    PATH: /opt/local/teTeX/bin
    PATH: /opt/coolstack/bin
    PATH: /usr/sbin
    PATH: /opt/local/bin/amd64
    PATH: /usr/bin
    PATH: /usr/gnu/bin
    PATH: /usr/openwin/bin
    PATH: /opt/SUNWspro/bin
    PATH: /opt/local/php5/bin
    PATH: /usr/local/bin
    PATH: /usr/ccs/bin
    PATH: /usr/local/ActiveTcl/bin
    PATH: /opt/staroffice8/program
    PATH: /opt/csw/bin
    ## Core tests. ##
    configure:1313: checking for gcc
    configure:1339: result: dmake: defaulting to parallel mode.
    See the man page dmake(1) for more information on setting up the .dmakerc file.
    /opt/studio12/SUNWspro/bin/cc -m64
    configure:1583: checking for C compiler version
    configure:1586: dmake: defaulting to parallel mode.
    See the man page dmake(1) for more information on setting up the .dmakerc file.
    /opt/studio12/SUNWspro/bin/cc -m64 --version </dev/null >&5
    ./configure: line 1587: dmake:: command not found
    configure:1589: $? = 127
    configure:1591: dmake: defaulting to parallel mode.
    See the man page dmake(1) for more information on setting up the .dmakerc file.
    /opt/studio12/SUNWspro/bin/cc -m64 -v </dev/null >&5
    ./configure: line 1592: dmake:: command not found
    configure:1594: $? = 127
    configure:1596: dmake: defaulting to parallel mode.
    See the man page dmake(1) for more information on setting up the .dmakerc file.
    /opt/studio12/SUNWspro/bin/cc -m64 -V </dev/null >&5
    ./configure: line 1597: dmake:: command not found
    configure:1599: $? = 127
    configure:1622: checking for C compiler default output file name
    configure:1625: dmake: defaulting to parallel mode.
    See the man page dmake(1) for more information on setting up the .dmakerc file.
    /opt/studio12/SUNWspro/bin/cc -m64 dmake: defaulting to parallel mode.
    See the man page dmake(1) for more information on setting up the .dmakerc file.
    -xO5 -xc99 -xlibmieee -xlibmil -nofstore   conftest.c  >&5
    ./configure: line 1626: dmake:: command not found
    configure:1628: $? = 127
    configure: failed program was:
    | /* confdefs.h.  */
    |
    | #define PACKAGE_NAME ""
    | #define PACKAGE_TARNAME ""
    | #define PACKAGE_VERSION ""
    | #define PACKAGE_STRING ""
    | #define PACKAGE_BUGREPORT ""
    | /* end confdefs.h.  */
    |
    | int
    | main ()
    | {
    |
    |   ;
    |   return 0;
    | }
    configure:1667: error: C compiler cannot create executables
    See `config.log' for more details.
    ## Cache variables. ##
    ac_cv_env_CC_set=
    ac_cv_env_CC_value=
    ac_cv_env_CFLAGS_set=
    ac_cv_env_CFLAGS_value=
    ac_cv_env_CPPFLAGS_set=
    ac_cv_env_CPPFLAGS_value=
    ac_cv_env_CPP_set=
    ac_cv_env_CPP_value=
    ac_cv_env_LDFLAGS_set=
    ac_cv_env_LDFLAGS_value=
    ac_cv_env_build_alias_set=
    ac_cv_env_build_alias_value=
    ac_cv_env_host_alias_set=
    ac_cv_env_host_alias_value=
    ac_cv_env_target_alias_set=
    ac_cv_env_target_alias_value=
    ac_cv_prog_ac_ct_CC='dmake: defaulting to parallel mode.
    ## Output variables. ##
    -xO5 -xc99 -xlibmieee -xlibmil -nofstore'
    /opt/studio12/SUNWspro/bin/cc -m64'
    /opt/studio12/SUNWspro/bin/cc -m64'
    CC='dmake: defaulting to parallel mode.
    CFLAGS='dmake: defaulting to parallel mode.
    CPP=''
    CPPFLAGS=''
    DEFS=''
    ECHO_C=''
    ECHO_N='-n'
    ECHO_T=''
    EXEEXT=''
    LDFLAGS=''
    LIBOBJS=''
    LIBS=''
    LTLIBOBJS=''
    OBJEXT=''
    PACKAGE_BUGREPORT=''
    PACKAGE_NAME=''
    PACKAGE_STRING=''
    PACKAGE_TARNAME=''
    PACKAGE_VERSION=''
    PATH_SEPARATOR=':'
    PKG_CPPFLAGS=''
    PKG_LIBS=''
    SHELL='/bin/bash'
    See the man page dmake(1) for more information on setting up the .dmakerc file.
    See the man page dmake(1) for more information on setting up the .dmakerc file.
    See the man page dmake(1) for more information on setting up the .dmakerc file.
    ac_ct_CC='dmake: defaulting to parallel mode.
    bindir='${exec_prefix}/bin'
    build_alias=''
    datadir='${prefix}/share'
    exec_prefix='NONE'
    host_alias=''
    includedir='${prefix}/include'
    infodir='${prefix}/info'
    libdir='${exec_prefix}/lib'
    libexecdir='${exec_prefix}/libexec'
    localstatedir='${prefix}/var'
    mandir='${prefix}/man'
    oldincludedir='/usr/include'
    prefix='NONE'
    program_transform_name='s,x,x,'
    sbindir='${exec_prefix}/sbin'
    sharedstatedir='${prefix}/com'
    sysconfdir='${prefix}/etc'
    target_alias=''
    ## confdefs.h. ##
    #define PACKAGE_BUGREPORT ""
    #define PACKAGE_NAME ""
    #define PACKAGE_STRING ""
    #define PACKAGE_TARNAME ""
    #define PACKAGE_VERSION ""
    configure: exit 77

    Apparently the the config program is running dmake without the -m option. Dmake replies that it is defaulting to parallel mode, and the config program uses that message as a compiler command or option. After that, the wheels come off. :-)
    Fix the configure script to run dmake as
    dmake -m serial
    and see if that fixes the problem.

  • Error building using Coverity Prevent and Sun Studio 11

    We recently started using a static code-checking tool called Coverity Prevent. When we first started using it, we were on a very old verison of the Forte Compiler (Forte 6 update 2). Builds completed fine through Prevent. In the last month, we've upgraded to Sun Studio 11 (can't go to 12 because we're using Solaris 8). Now I can't get a build to run completely through Prevent. Prevent has a preprocessor that's a bit more strict than most compilers. I'm getting the following errors in a lot of places.
    "/vobs1/cots/ForteDeveloper/SUNWspro/prod/include/CC/rw7/rw/defs.h", line 316: error #101:
    "istream" has already been declared in the current scope
    class _RWCLASSTYPE istream;
    ^
    "/vobs1/cots/ForteDeveloper/SUNWspro/prod/include/CC/rw7/rw/defs.h", line 317: error #101:
    "ostream" has already been declared in the current scope
    class _RWCLASSTYPE ostream;
    ^
    "/vobs1/cots/ForteDeveloper/SUNWspro/prod/include/CC/rw7/rw/defs.h", line 318: error #101:
    "ios" has already been declared in the current scope
    class _RWCLASSTYPE ios;
    ^
    "/vobs1/cots/ForteDeveloper/SUNWspro/prod/include/CC/Cstd/iostream.h", line 4: error #101:
    "istream" has already been declared in the current scope
    using std::istream;
    ^
    "/vobs1/cots/ForteDeveloper/SUNWspro/prod/include/CC/Cstd/iostream.h", line 9: error #101:
    "ostream" has already been declared in the current scope
    using std::ostream;
    ^
    I've googled a bit, and most of the solutions involve someone mistakenly putting "using namespace std" in a header file. I can't find any case where we do this in our code. One specific file that is failing includes one local header, and that header only includes <fstream.h> and <rw/cstring.h>. It seems like RW and std are conflicting with each other somewhere, but I can't figure out where. The compiler command looks like:
    /vobs1/cots/ForteDeveloper/SUNWspro/bin/CC -xildoff -instances=static -mt -g -fsimple
    -xlibmil -xO3 -xtarget=ultra -DUSE_VFU_LL_C -DXRT -KPIC -library=rwtools7_std -x
    libmopt -DRW_MULTI_THREAD -I/vobs1/cots/rogue/workspaces/SOLARIS7/SUNPRO50/12d -c c4i_file_stream.cpp
    We're still pointing at an older version of RW for the DBTools libraries (rebuilt using the compiler's internal Tools++), but we're using the compiler's internal Tools++ headers and libraries for everything else.

    It sounds like Prevent is not processing the #include directives, or possibly some other preprocessing directives, the same way as the Sun C++ compiler.
    The C++ Users Guide documents how #include directives are processed, and in particular the order in which directories are searched.
    [http://docs.sun.com/app/docs/doc/819-5267/bkaso?a=view]
    If Prevent provides similar documentation, you can compare the docs. If you see a difference, maybe Prevent has some options to control the behavior to make it work like the Sun compiler.
    Note: The CC driver passes some -I directives to the C++ compiler proper (ccfe) that do not appear on the CC command line that you write. The exact -I options depend on other options on the command line. Possibly Prevent is not using the same set of implicit -I directives.
    If you can't resolve the #include directive issue, you might need to talk to Coventry tech support.
    We at Sun are happy to work with 3rd-party vendors to help them get their products working correctly on Sun.

  • Nable to Install Sun Studio 10 on Solaris 10

    Hi,
    I am trying to install Sun Studio on Our Sun Fire V245 server and I end up getting this error.
    ==========================================================
    Installing Solaris patches
    |-1%--------------25%-----------------50%-----------------75%--------------100%|
    Installing Sun Studio Software
    Exception in thread "Thread-27" java.lang.NoClassDefFoundError: com/sun/install/panels/ComponentSelectionListener
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
    at java.lang.Class.getDeclaredMethod(Class.java:1935)
    at java.awt.Component.isCoalesceEventsOverriden(Component.java:5952)
    at java.awt.Component.access$500(Component.java:169)
    at java.awt.Component$3.run(Component.java:5906)
    at java.awt.Component$3.run(Component.java:5904)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Component.checkCoalescing(Component.java:5903)
    at java.awt.Component.<init>(Component.java:5872)
    at java.awt.Container.<init>(Container.java:251)
    at javax.swing.JComponent.<init>(JComponent.java:570)
    at javax.swing.JPanel.<init>(JPanel.java:65)
    at javax.swing.JPanel.<init>(JPanel.java:92)
    at javax.swing.JPanel.<init>(JPanel.java:100)
    at com.sun.wizards.core.WizardComponent.<init>(WizardComponent.java:159)
    at com.sun.wizards.core.WizardComponent.<init>(WizardComponent.java:145)
    at com.sun.wizards.core.WizardLeaf.<init>(WizardLeaf.java:78)
    at com.sun.install.panels.ComponentPanel.<init>(ComponentPanel.java:144)
    at com.sun.install.products.CreateSimpleUninstaller.createSimpleUninstallerTree(CreateSimpleUninstaller.java:42)
    at com.sun.install.products.UninstallArchiveCreator.writeArchiveFile(UninstallArchiveCreator.java:537)
    at com.sun.install.products.UninstallArchiveCreator.writeArchive(UninstallArchiveCreator.java:317)
    at com.sun.install.products.UninstallUnit.install(UninstallUnit.java:740)
    at com.sun.install.products.Product.performInstallation(Product.java:649)
    at com.sun.install.tasks.ProductTask.perform(ProductTask.java:153)
    at com.sun.wizards.core.Sequence.perform(Sequence.java:343)
    at com.sun.wizards.core.SequenceManager.run(SequenceManager.java:226)
    at java.lang.Thread.run(Thread.java:619)
    ===========================================================
    Server uname output is given below
    bash-3.00# uname -a
    SunOS lspv245n.ind.hp.com 5.10 Generic_142909-17 sun4u sparc SUNW,Sun-Fire-V245
    bash-3.00#
    Could someone help me? (I am experienceing the same error on our SunFire 4200 server as well.)
    Thanks,
    Roy

    If you install packages (using the script or installer GUI), you need to have root privileges. You don't say whether you have root privileges.
    Studio 10 is 5 years old and is End Of Life. Is there some reason you need to install it? Since you are using Solaris 10, I suggest getting the current release instead, Studio 12.2.

Maybe you are looking for

  • Migrating large iPhoto library from my old mac to a new iMac

    Hi there. This seems a little complicated, but hopefully I can explain my problem clearly and somebody will have faced this same problem. I currently have a Macbook pro of approximately five years old and it is running an outdated version of iPhoto (

  • What is the fastest way of getting data?

    With a scanning electron microscope, I need to scan a 512*512 pixel area with a pixel repetition of 15000 (two channels), meaning averaging over 15000 measurements. Simultaneously I have to adjust the voltage output for every pixel. I am using a 6111

  • Confuse and frustrated

    My mom recently got an ipod shuffle, we went throught all of the approriate steps to setting it up and adding music to i tunes, when the ipod was ready to coe out of the port there was no music, and the computer sayd that it doesn't need to be reform

  • HT4106 Will the camera kit allow you to view images from a usb flash drive?

    Will the camera kit allow you to view images from a usb flash drive?

  • How do I re-download CS5 to my new computer?

    I have the serial numbers of my CS5 package from my old computer, but I have a new computer now and need to download it again. I know you can have 2 downloads, so this would be my 2nd one. I just can't find the place to re-download the product. Can a