how to use dbx

259 byte By lettersa at 2007-11-27 9:15:38
(a) source in DIR1(b) executable in DIR2(c) modules in DIR3(d) input in DIR4uses makefile to compile. source fortran 95.How to debug this program without moving/copying anything ?I mean what switches to provide

libExbridge - does it work ?

2095 byte By tvel10a at 2007-11-27 9:15:40
We are migrating from the C++ 4.2 compiler to SunStudio 11 on Solaris 8. We have vendor libraries which were built with the 4.2 compiler and have no access to source or newer versions. One library is just C while the other is C++. There is an additional vendor library that is built with the 5.x ...

debugging an mpi program with dbx

529 byte By lettersa at 2007-11-27 9:15:42
I tried to run:mpirun -dbx BigScienceit threw up a cryptic message saying ..... Tell dbx to ignore SIG_USR1.............echo "ignore USR1" >> $dbgfileecho "debug /afs/hep.wisc.edu/home/tangri/gyro-5.3.3/sim/DEBUG/BigScience" >> $dbgfileecho "stop in MPI_Init" >> $dbgfileecho ...

Is the Linux version as good as the Solaris version?

342 byte By LePoissona at 2007-11-27 9:20:58
I'd like to migrate to Sun Studio and use Sun's compilers, but I've noticed that the package for Linux is 280M, while the package for Solaris is 920M. Why the difference in size is so big? Does the Linux version lack some functionality? Or more importantly, are the compilers as good and ...

A compiling problem using Sun studio 12.

1032 byte By metyra at 2007-11-27 9:23:22
hi to all !i have a problem when i compile a program using f95 with Sun studio 12.the error is:ld: elf error: file util.a(dout2e.o): elf_getshdr: Request error: class file/memory mismatchld: elf error: file util.a(dout2e.o): elf_getshdr: Request error: class file/memory mismatchld: elf error: ...

fortran compiler

104 byte By Yugsa at 2007-11-27 9:23:32
Hi friendsCan somebody explain how to run f77 on linux platform using sun studio compilers

Strange link issue with Sun Studio 12 and jpeg

29569 byte By ibrown_psg1a at 2007-11-27 9:25:57
Hi, I'm seeing some really odd behaviour compiling my code with SunStudio 12. My project is a configure based project, so I used the new project wizard to import it as a sunstudio project.Now, when I compile it from within sunstudio, it fails with linkage errors to libjpeg. The link directive ...

sunstudio 12 halt @ RHEL5 AMD64/690G

1344 byte By swingler@nsna at 2007-11-27 9:26:09
I am using CentOS 5 on 690G/AMD 64 arch.SunStudio 12 successfully installed with JDK1.5 AMD64 version as JAVA_HOME. I added the /opt/sun/...lib/lib64 directories in /etc/ld.so.config.d/sunstudio.conf and run ldconfig to refresh the cache. version command shows:"Machine hardware:x86_64OS ...

Partial specialisation bug in SS11?

1166 byte By neil57a at 2007-11-27 9:28:38
Hi,I think I may have found a bug in SunStudio 11 related to partial specialisation. However the whole concept of partial specialisation is so confusing I can't be sure. Can someone out there tell me whether my code is broken or the compiler is broken.FYI gcc don't seem to have a problem with ...

C compiler -xarch and -xtarget

183 byte By Tommy_Gunsa at 2007-11-27 9:31:17
All, does any have a little better description of the -xarch and -xtarget options for the Sun Compiler? What is the default for both if nothing is specified? Thanks in advance,

Studio 12 rather unstable

3466 byte By cknite42a at 2007-11-27 9:33:47
~/src/apps/kmt/clamps> dbx ./clampsFor information about new features see `help changes'To remove this message, put `dbxenv suppress_startup_message 7.6' in your .dbxrcReading clampsReading ld.so.1Reading libuuid.so.1Reading libsocket.so.1Reading libxml2.so.2Reading libresolv.so.2Reading ...

out of memory while compiling some f90 code

3580 byte By tony-curtisa at 2007-11-27 9:35:03
Trying to compile "molpro" with Studio12. Studio11 works, same environment. make bombs out with (deprecation warning noted):f90 -dalign -xtypemap=real:64,double:64,integer:64 -c -I. -M../global -fast -ftrap=%none -xarch=v9b -fsimple=2 assg1_mck.Ff90: Warning: -xarch=v9b is deprecated, use -m64 ...

Migrating from Sun forty seven to Sun studio 11 C++ compiler

11514 byte By july@123a at 2007-11-27 9:40:32
Hi All,I am getting the following linking errors while compiling with Sun Studio 11 compiler.Linking /vobs/sphinx/solaris/bin/spx_bo_feed for PROD_DESTEXE/vobs/environment/maketools/atria_cxxl /vobs/sphinx/solaris/bin/spx_bo_feed SunCC SunCC4.0 CC PURELINK -O2 -DOSREV=551 -Dunix -DNDEBUG ...

Could not get the TLB_miss etc . using the collect command

615 byte By makingsofta at 2007-11-27 9:42:52
I could get result by using the command : collect -h IC_miss/0,hi,"MyProgram" andcommand: er_print -functions test.1.er.I tested it in the Sun T1 machine,the SunStudio 11 and the Solaris 10 OS.but when I executed : collect -h ITLB_miss/0,hi, "MyProgram" and er_print -functions test.2.er ...

__vtbl unresolved

751 byte By Qrioa at 2007-11-27 9:44:14
HiI get the following error while linking the final executable of the project.Undefinedfirst referenced symbolin file...::__vtbl [Hint: try checking whether the first non-inlined, non-pure virtual function of class .... is defined]I tried defining first virtual function and still got the same ...

incorrect define for pthread_cleanup_push

789 byte By Toni_Padillaa at 2007-11-27 9:46:30
I'm programming an application in Solaris 10 using Sun Studio 11. That application manages threads for communication.I must use the function [b]pthread_cleanup_push[/b] to control when the thread finishes. But I found that when I used it the compilation failed, and just commenting this line ...

Unnamed structures inside a union and Sun Studio 11

1322 byte By Art_Vandelaya at 2007-11-27 9:50:16
I am curious why the following code snippet:#include <stdio.h>#include <inttypes.h>typedef union foobar{struct{unsigned longuhigh;unsigned longulow;};struct{long shigh;long slow;};int64_t asint64;uint64_t asuint64;} FooBar_t;int main(void){return 0;}generates errors when compiled ...

setup problems

185 byte By Tihiya at 2007-11-27 9:50:19
I tried to install sun studio (tarfile), but when i type sunstudio in command line it says that java isnt installed, and prep_system says it is (and its true). what have i to do?

spurious memory access error using localtime(), SunStudio 12, Solaris 10 x8

1201 byte By jslotta at 2007-11-27 9:58:09
The following code:#include <stdio.h>#include <sys/types.h>#include <time.h>intmain(){ time_t t = time(NULL); struct tm *ptm = localtime(&t); printf("hours = %d\n", ptm->tm_hour);}produces the following error:(dbx) check -accessaccess checking - ON(dbx) runRunning: ...

How to static compile program?

451 byte By teawater@vip.sina.coma at 2007-11-27 9:59:21
I have written a simply code,but I can't compile it staticly.My development tools is sun studio 11.cc -g -xCC -c-o Sun-x86-Solaris/shellcode.o shellcode.ccc -g -xCC-o Sun-x86-Solaris/a.out Sun-x86-Solaris/shellcode.o -Bstaticld: fatal: library -lc: not foundld: fatal: File processing errors. ...

Conflict with non-standard intrinsic REALLOC

831 byte By N.Carlsona at 2007-11-27 10:00:59
I'm taking a stab at building a large code with the Sun Studio Fortran 8.3 compiler (first time using a sun compiler in >10 years!) and have run up against a conflict between a generic subroutine named REALLOC in the code and a non-standard intrinsic with the same name that is provided by ...

Sun STudio 12 install failed on SPROfdxd on x86

2219 byte By ben32a at 2007-11-27 10:01:03
Hi everybody,I get a similar problem than http://forum.java.sun.com/thread.jspa?threadID=5188423&tstart=0except that i cannot get it install doing a -nodiplay install.I'm running Solaris 10 with all the patches required for the installation.I've installed netbeans 5.5.1 and the JDK ...

where can I find the right doc for SunStudio For Linux ?

3155 byte By luoyi82a at 2007-11-27 10:03:01
I can find the docs for SunStudio here, http://docs.sun.com/app/docs/doc/819-5265/6n7c29ck9?a=viewbut it seems that it doesn't right on linux platform. #include <stdio.h>int main(void){#if defined(sun)printf("sun defined \n");#elseprintf("sun undefined \n");#endif#if ...

D-Light does not appear to be available

421 byte By mgroffa at 2007-11-27 10:06:46
I downloaded and installed the June 2007 build of SunStudio 12 Express and cannot find anything related to D-Light. My understanding is that it should be under the tools drop down.Here is the version string for SunStudio:Build 200704122300, SunStudio 20070501Did I somehow obtain the wrong ...

CC (v5.4) linking issue with standard STL

1659 byte By solaris_bitea at 2007-11-27 10:14:01
Hi Friends,We are using CC (v5.4) compiler for our C++ code, which use STL , string, iostream related utility.Compiler version: CC: Forte Developer 7 C++ 5.4 2002/03/09We are linking using these options "-lsocket -lnsl -lCstd -lCrun -lm -lc -lposix4 -mt -lpthread"But we are getting following ...

-xarch default

278 byte By richard.buckwaltera at 2007-11-27 10:14:42
<p>When I compile with "-###" in Studio 10 on an UltraSparc machine it says the default for -xarch is "generic". The man page on the other hand says the default is, "v8plus". Is this a mistake in the man page or am I missing something? Any help would be greatly appreciated.</p>

Buiding R statsitical package using SunStudio 12 : linking problem

2728 byte By leonardz77a at 2007-11-27 10:15:11
On an athlon64 running SUSE 10.2 and an opteron running SLES 9 I can build R version 2.5.1 ( http://www.r-project.org/) with no problem using gcc. The configure works fine, but make stops at a linking error using SS12 compilers.Error:/export/isos/Sun_Studio/sunstudio12/bin/cc -V -m64 -shared -fPIC-V ...

building postgres issue on SUnStudio 12

1092 byte By leonardz77a at 2007-11-27 10:15:14
Using SunStudio 12 on SLES9 on an opteron platform:I run into a problem using spinlocks -see below. gsql-bugs responded : use gcc (see below). It does build fine under gcc, and will build under SS12 if I disable spinlocks as suggested. Is this an issue that the SunStudo development team can ...

cannot execute functions from dbx

324 byte By slashgmga at 2007-11-27 10:16:57
I tried calling these functions from dbx but nothing seems to work.print strlen("hello");dbx: can't find a system call entry point -- program not linked with libc?loadobject shows that libc.so is mapped.(dbx) loadobject -list | grep libcm/lib/libc.so.1any particular ...

Studio12: status of bug 6470247?

446 byte By stupplema at 2007-11-27 10:16:58
I'm seeing a similar error to that reported for bug 6533415 here: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6533415This bug is marked as a duplicate of 6470247, but that bug isn't accessible on the public bugs.sun.com site. Is it possible for this bug to be made visible? If not can ...

after installation of compiler am getting these errors

1003 byte By GE_KK_HYDa at 2007-11-27 10:19:52
ssg1cm01:# /opt/SUNWspro/bin/CC test.CLicense Error : Licensing product (Sun WorkShop Compiler C++ SPARC).License File: 7588@ssg1cm01License server does not support this featureFeature:workshop.cc.sparcServer nameFLEXlm error:-18,147.ssg1cm01:# cd /tmpssg1cm01:# cat >test.fPROGRAM TESTWRITE(*,*) ...

Sun Studio Version 11 Compiler Patches/Rogue Wave Question

605 byte By Kerrangstera at 2007-11-27 10:24:26
I get the following errors:"/sccm/software/sstud11/SUNWspro/prod/include/CC/rw7/rw/defs.h", line 316: Error: A typedef name cannot be used in an elaborated type specifier.."/sccm/software/sstud11/SUNWspro/prod/include/CC/rw7/rw/defs.h", line 317: Error: A typedef name cannot be used in an ...

Managing several project configurations

784 byte By coelurusa at 2007-11-27 10:25:08
Hi!Being a newbie with Sun Studio, but not exactly with programming, I have a question regarding project configurations.Currently, I have a group of projects configured as dynamic libraries, the number may grow up to between 10 and 20. I want to be able to switch to static libraries, or even have ...

Writing to /proc/*/ctl

363 byte By CHATEAUDYQUEMa at 2007-11-27 10:27:03
I am having problems trying to write into a /proc/<pid>/ctl file. I start process A and process B. I try to write into process B's ctl file from process A. I get "Permission denied" error. When I look at file permissions, the file has write-only permissions and it is owned by me. I open the ...

Using stlport4

390 byte By ScAra at 2007-11-27 10:28:33
Hi all,because I use boost libraries I compile and link my stuff completly with stlport4. What I have to do, if I deploy my software? Can I assume that all what needed is on the target machines or do I have to pack some stlport4 stuff in my installation package.All programs are build with sunstudio ...

gcc & glibc & ABI compatibility - latest update

772 byte By petrosysa at 2007-11-27 10:28:59
Hi,I am contemplating building the rhel5 version of our application using the SunStudio 12 compiler. We have a very large C/C++ application and the catch is that we don't have the source for a number of big 3rd commercial C++ libraries that we need to link against. These libs are built on rhel4 ...

How to invoke math functions from dbx?

299 byte By DieterRupperta at 2007-11-27 10:29:25
<p>Is there an easy way to invoke math functions from dbx? If I try, for example, to call sqrt I get meaningless results:</p><p>(dbx) print sqrt(4.0) </p><p>sqrt(4) = 1074790400</p><p>(dbx) </p><p>This is from code which uses sqrt, so sqrt should be accessible. Does this need some kind of cast?</p>

Can you introduce an IDE debug tool for me?

236 byte By hupo1982a at 2007-11-27 10:29:54
<p>I will debug my project under Solaris OS, my project is a big one. I debuged it with DDD (Data Display Debugger) under Linux. I want to know are there an IDE debug tool under Solaris 8? Like the DDD under Linux.</p><p>Thank you !</p>

BUS ERROR PROBLEM

6886 byte By LDERa at 2007-11-27 10:31:24
Hi everyone,We encounter a problem with our software that coredumps from time to time, especially at high activity peaks or after having run for some timeWe recently recompiled a part of this software with SunStudio 8 (CC5.5) (no changes made to the source code)We were previously working with Sun ...

Is there a 64-bit version of the CC compiler itself?

1205 byte By sjgilbertza at 2007-11-27 10:32:43
Hello,We have a large (~4k lines) .cpp file which brings in a very large number of templates. On our v440 we see the compiler using more and more memory until it reaches 2Gb when it falls over with the message"Insufficient memory is available for compilation to continue."sun02% uname -aSunOS sun02 ...

Installation problem: "Attach to native process failed"

838 byte By Joe_Krahna at 2007-11-27 10:33:05
I am installing Sun Studio 12 on a SUSE Linux Enterprise Server 10 (ia64), and get the error "Attach to native process failed". I found that the installer script is using the default java executable, which seems to be causing the problem. If I edit the install script to use ...

question of inline assembly

840 byte By netexa at 2007-11-27 10:34:21
I'm on Solaris 10 x86 on an AMD64 system.The following code:== 1.c ==int main(){ int i; for(i=0;i<5;++i)__asm ("pause");}cannot pass -fast compiler option. Actually, it cannot pass optimization level > 2, i.e., it passes -O2, but cannot pass -O3/4/5.$ cc -fast -o 1 1.c"1.c", [main]:ube: error: ...

Handling of Fortran language extensions

1051 byte By Joe_Krahna at 2007-11-27 10:36:45
One place where Sun Fortran needs work is in management of language extensions. For example, it seems that it is not possible to exclude the generic REALLOC() extension function, meaning that it is not possible to have a generic subroutine interface of that name. The same is probably true of many ...

Fortran Standards checking tool

1146 byte By Joe_Krahna at 2007-11-27 10:38:14
I have been thinking for some time that it would be great to have a Fortran parsing tool that does precise syntax checking against standards. There are a few tools like this, but I think we need an Open Source tool so that it can be used by everyone as the common standards-checking tool.In order to ...

My executable file's problem

840 byte By hupo1982a at 2007-11-27 10:40:59
For our software's new version, I rebuild the project on my Solaris 8 OS.But when I got the executable file, I can't run it. When inputting the "./filename", nothing was happied.I used the "file" command, I got the message: "ELF 32-bit MSB executable SPARC32PLUS Version 1, V8+ Required, ...

wlaking 2 different c++ china produced different results

8923 byte By autohanda at 2007-11-27 10:45:57
i have cast my print statements:(dbx) whatis (CBioseq *)((*(CBioseq_Info *)((*this).m_Contents.operator->()))class ncbi::objects::CBioseq *;(dbx) whatis (CBioseq *)((*(*this).m_Object.operator->()).m_object) class ncbi::objects::CBioseq *;they both point to the same address:(dbx) p (CBioseq ...

Executable differ on twice compiled at the same time

291 byte By YangSevena at 2007-11-27 10:48:17
<p>When I compile an executable twice use command "/opt/SUNWspro/WS6U2/bin/cc -g" at he same time, and then use "diff" command to compare this twice output file, I found that they are different.</p><p>After use "strip" command to strip this two files, they are different also.</p><p>Why?</p>

Compiler failures with Studio 11 on Solaris 10 x64

1098 byte By idstorea at 2007-11-27 10:51:05
The compiler gives me the following error when I try to compile the larger tests in my environment:"Tests.cc", [main]:ube: error: Assert has been violated at '/set/venus_patch/builds.intel-S2/build.0509/intel-S2/lang/ube/opt/src/cfg.c 3150'.I am using the following compilation ...

Disappointments with -C run-time checks.

1216 byte By Joe_Krahna at 2007-11-27 10:51:15
Sun Fortran's run-time checks are too strict, and are aborting on code that is actually valid, but might be considered bad usage. Unfortunately, there are no options to select which code checks should be enforced. It would be nice to at least have an option to issue warnings when errors are not ...

A couple of Fortran 2003 C interop problems in Sun Studio 12

2051 byte By cfddoca at 2007-11-27 10:57:34
This is question for the Sun Fortran compiler team.I'm trying to compile some code using Sun Studio 12 compilers under both Linux and Solaris Express (5/07) and am encountering errors while compiling some code that g95 accepts and I think is allowed by the standard. The following example ...