1566 byte By
Lam.sa at 2007-11-26 20:38:19
Hi there. In order to produce developer-friendly stack-traces, I'd like to read the stabs info from our own projects to map the stack offsets to actual code lines.So far, I've sucessfully written the reader to handle the lazy stabs inside our object files, and I get the relevant mapping ...
Hello, I've just installed Sun Studio 11 but it don't find the J2SE. I have the version 6 but it ask me J2SE 1.4.6 , and the script "checkjava" doesn find it. I have jdk1.6.0 on /opt/jdk1.5.6Any ideas?
549 byte By
willocha at 2007-11-26 20:53:24
I have no luck debugging java. When I attach to it it debugs it as a C program.When trying to force it to interpret it as a java program by suppliing a jar or a class file whe nattacing, dbx crashes. When starting the program from dbx I get signal SEGV (access to address exceeded protections) ...
guys,am basically Microsoft .Net Developer with 5 years of experience. I was impressed with the new release of Sun Java Studio by Sun and Google Web Toolkit by Google. I want to develop a commercial Global Web Application. Before i make my decision to buy Dev Support Package for Sun Studio ...
2779 byte By
libma at 2007-11-26 21:21:04
Hi,I am able to perform all these things:gcc a.c -lmgcc a.c -lm -m32CC a.c -lm -m32However, linking with 64 bit lib fails.CC a.c -lm -v###command line files and options (expanded):### a.c -lm -v ### CC: Note: NLSPATH = ...
System: Solaris 10_x86, all of today's patches applied.Testing Sun Studio Express, Feb 07 (downloaded today)I'm compiling a big image processing library. Near the end, suncc -DPC_UNIX_ENV -DPRODUCTION -D__Forte__ -D__SOLARIS2__ -I../include -fast -xtarget=pentium4 -xarch=sse3 -m32 -xunroll=4 ...
hi ,i tried installing sun studio 11 on my SUN BLADE 1500 workstation and it just hangs at 20% . the output in commandl line is as followsInstalling Sun Studio SoftwareException in thread "Thread-23" java.lang.NoClassDefFoundError: com/sun/install/panels/ComponentSelectionListenerat ...
My new article about 64-bit development: 20 issues of porting C++ code on the 64-bit platform.Annotation. Program errors occurring while porting C++ code from 32-bit platforms on 64-bit ones are observed. Examples of the incorrect code and the ways to correct it are given. Methods and means of ...
How can I debug java code from java applications using sun studio 11? I am able to debug c++ code which is native call from java from the same application.To add, I cannot put breakpoints to the java code it gives "cannot find object file corresponding to ".."whereas sun studio allows me to put ...
Some remarks concerning StudioExpress-linux-2007-2 release:(1) On my Debian Etch amd64 system, the only way to install StudioExpress is by unpacking the tarfile. Both the graphical and the batch installer don't work (I get _lots_ of Java errors). I have JDK 1.6.0-amd64 installed, but I also ...
391 byte By
kushala at 2007-11-26 21:35:46
Hi All,I have code like below:const int MQ_OPEN_FLAGS = O_RDWR; mQueueId = ::mq_open (pName, MQ_OPEN_FLAGS);In this case, mq_open is returning errno 17.I cant understnd the reason of this error as we are tryng to open an exisiting mq. In what situation errno 17 can be returned if called this ...
I'm currently using the February 2007 version of Sun Studio Express in order to get support for __attribute__ ((aligned(8))).While trying to create a long long type that would be aligned to an 8 bytes boundary on x86 instead of the usual 4 bytes, I discovered that the __attribute__ ...
I'm new to studio 11 how do I get the a program to run , I create a make file builds sucessfull then lets say I say enter a number after the number is entered and press enter nothing happens is there a certain way this is done using studio 11, another thing while editing if I hit the backspace ...
Hi,Sun Studio 12 Express (February 2007) is segfaulting on my Fortran code.(I'm running on linux/x86.) To whom should I report bugs? I couldn't see itmentioned anywhere in the docs.Cheers
Hello,I've a problem compiling a C program under Linux (Fedora 6) and SunStudio 12 EA.This code compiles fine under Solaris (both Sparc and X86) with both SunStudio 12EA or SunStudio 11. Under Linux, it works fine with gcc.It stops everytime it founds some structure initializer. This is an ...
I used Sun Studio 11 to develop my program for year,but Sun Studio 11 carshed when I run it this morning.Even I uninstalled it and reinstalled it again, the result is the same.Have anyone can help me to resolve this problem?Following is the error messages in popup window:An unexpected exception ...
Hello,I'm a long time programmer for linux/windows and would like to port to unix. I'm running a SPARC with Solaris 10 and I've found gcc and got that working.Now I need ar and ranlib.Where can I find there tools?I am not a SDN member.Thanks.
The man page for CC is quite clear on why you should use pic13 or pic32 when you make .o's for dynamic libraries, however for abs 32/44/64 it just says: use one of those for executables and DONT use pic32 or pic13.The short summary of why I am asking my question is the code/baseline I am ...
7744 byte By
babakfa at 2007-11-26 21:47:53
Hi,I'm using a third party tool which generates *.pc and *.c source files. The error come from ex_set() which calls 'strncpy' . This is what dbx says:--dbxenv suppress_startup_message 6.2Reading ALL_ACBS_LLOANquery0.exedbx: warning: core object name "ALL_ACBS_LLOANq" matchesobject name ...
I use recvmsg(3XNET) with a message control block to receive a message with ancillary datafrom a socket. On Sparc, this fails if the ancillary data contains more than one data messageand the msg_control buffer is not 8-byte aligned.This is my code:[code]struct msghdr msg;union {struct cmsghdr ...
We have a fortran 90 code which does not link and produces a series of errors as listed in the subject.. The code is linked using -xmodel=medium -xarch=amd64a :ld: fatal: relocation error: R_AMD64_32: file processing.o: symbol grid.headg_: value 0xa29ae95c does not fit...ld: fatal: relocation ...
Hi,I've just installed the latest community version of Opensolaris, along with the beta of sun studio 12 on a 16-way 32GB amd64 machine. So far this machine has been running with linux+intel 9.1 compilers. When I tried to run our openmp code, after solving a (very few) porting issues, I found ...
Hello!I have this doubt. In the files "C++ user guide" and "C Users guide" give me options, but it looks are only for Solaris platafroms. Does anyone knows if this moptions also work with Linux?
906 byte By
mig176a at 2007-11-26 22:02:01
HiI'm trying to use 'stdin' to avoid 'gets' and use 'fgets' instead.Using NASM i would do something like:[section .text] extern sizeof extern stdin ; dont seem to exist in any library on solaris 10 extern fread extern fwrite extern fopen extern fclose extern printf extern fgets then ...
Hi,i just wan't to test performance of theese compilers under Linux. I have a good experience in solaris. But I'm not really sure if i can compile kernel with them.Using Sun Studio Express (12), under gentoo amd64 scratch :-).I set variables CC to "cc -m64" & CXX to "CC ...
4473 byte By
wliangya at 2007-11-26 22:04:51
Dear friends,A coredumped problem occured some time in a multi-thread as the following:-- lwp# 1 / thread# 1 --fd90b258 _lock_try_adaptive (0, fd91c000, 10018, 8, 0, 0)fe4912bc bool cmgCall::sendEventIn(unsigned long,unsigned char*,unsigned short) (1f3f010, 2, 213c9bb, 8, 10018, 6e1b50) + ...
I'm trying to create the shared hash_map in shared memory for the two different processes to access it.I've implemented the "Shared memory allocator" for the hash_map to place the data dynamically in shared memory.But, now I am facing the problem that, when the server process instantiates ...
Hello to all!I install Sun Studio 12 EA, cool IDE :)!But! When I try run debugger (gdx) I become some errors:1. dbx: forward reference `basic_string<wchar_t,std::char_traits><wchar_t>,std::allocator< wchar_t> >' not defined, see `help forwardref' I work with Qt4.2.2 (open ...
Well... I see some .o or .lib files in my system. I would like to see them whether they are optimized or not. Is there any utility like elfdump or ar to retrieve the optimization flags from the .o or .lib files?Please let me know your ideas?Thank you,Saravanan ...
1162 byte By
MikeD276a at 2007-11-26 22:11:55
This is an enhancement request for the output of the Performance Analysis Tool.Each call stack sample consists of a list of code lines / instructions, of which all but the last represent function calls.Could you build a list of those code lines, merged from all the call stack samples, and on ...
3310 byte By
B.V.a at 2007-11-26 22:14:25
I am debugging a program which has memory leaks.When I do the following:dbx <program>(dbx) run <input parameters>...everything runs fine, but as I didn't use RTC leaks checking, this is of no use. Therefore I do the following:dbx <program>(dbx) check -memusememuse checking - ...
822 byte By
Laboba at 2007-11-26 22:18:26
I am working in C++ in this environment:$ which CC/hep1/lang/sunstudio11/SUNWspro/prod/bin/CC$ CC -VCC: Sun C++ 5.8 Patch 121017-10 2007/02/21$ uname -aSunOS hep 5.9 Generic_118558-37 sun4u sparc SUNW,A70I have run into the following internal compiler error more than once: >> Assertion: ...
HiWe are facing a crash on solaris tghe problem discription is as followsWe have a Level info class[code]class LevelInfo{char mName[50];long mLevelHandle,mVhandle;string mIndxExpr;char mLvlTag;char mCloseChildTag;char mSubStrExp[30];char mTableName[50];//string IndxExpr;public:void ...
823 byte By
rotasa at 2007-11-26 22:25:05
Hi there,i have a question regarding garbage collection:We are developing here a C++application with sunstudio11 and make use of libgc.Now we have the problem that our application makes exhaustive use of heap allocation and deallocation, which leads to very big heap-size/vss of the program.I ...
When I run sunstudio and I want to debug with Debug/Start Session/Run in debugger, I have the message "Exception occurred in Request Processor". If i show details, i have the messages :Annotation: Exception occurred in Request Processorjava.lang.NullPointerExceptionat ...
1134 byte By
Mordsitha at 2007-11-26 22:26:30
I am working in a team where sometimes the Solaris 10 OS reboots or crashes due to issues with a device driver/custom pci card the team is working on...Recently I updated dumpadm to write Operating System "core" files to a directory/partition where there is enough space for them (if there ...
2633 byte By
allenmda at 2007-11-26 22:30:05
Hi,I have a C++ program that uses fstreams to read a million lines and write them to a file as soon as the line is read.Compilation done with default options and 64bit binaries generated.These are the 'time' outputs1. Solaris snv56 + CC compilationreal 0m9.486suser 0m4.610ssys 0m4.873s2. ...
1224 byte By
rgaaa at 2007-11-26 22:32:13
Hi,I'm constructing some 3rd party libraries from source level with configure/automake in Suse 9.2. A common mistake in all libs is done by config.guess: it prints out "i686-pc-linux-gnuaout" which switch off the shared support at all. It's easy to workaround by print "i686-pc-linux" instead ...
Hello,instead of filing a large number of tiny bug reports or rfe, I thought I would list some of my issues here (my machine is debian and the other ones are mandriva)First, rxm uses /usr/bin/rsh even if there is an other rsh earlier in PATH, which makes it harder to replace rsh with a personal ...
I'm trying to use openssl but the libraries and includes are installed in /usr/sfw instead of /usr.I added -I/usr/sfw/include and -L/usr/sfw/lib and everything compiles okay but when I run my binary ld.so.1 can't find libssl.so.0.9.7.If I use 'export LD_LIBRARY_PATH=/usr/sfw/lib' I then get ...
2463 byte By
wliangya at 2007-11-26 22:38:05
Hi, All,Here is the pstack information from dbx.t@1 (l@1) terminated by signal SEGV (access to address exceeded protections)0xfd90b258: _lock_try_adaptive: ldstub[%o0 + 12], %o1(dbx) wherecurrent thread: t@1=>[1] _lock_try_adaptive(0x10018, 0x2089c, 0x64d530, 0x85e18, 0xffbef338, 0x20bd288), ...
515 byte By
sjoshia at 2007-11-26 22:44:34
Getting this error while building a C++ executable on Solaris 10 using SUN Studio 11.Undefined symbolint*errno()ld: fatal: Symbol referencing errors. We are using the -mt flag as one of the compiler options and the module builds fine if -mt is not specified. I was expecting this to be defined ...
Ok, I'm making great progress porting my code to unix/sparc systems.So how do you create breakpoints in the code for gdb to stop on.For intel I would use: asm("int $3");What's the SPARC equivalence?Thanks.
Hello, I am using libcpc on Niagara: 5.10 Generic_118833-24 sun4v sparc SUNW,Sun-Fire-T200Performance counter library does not seem to be working properly. When I try to compile the code below, the compiler complains "incomplete struct/union/enum _cpc_event: event".When I manually defined ...
I made changes in Options -> Editor -> Indent (...)Click OK and nothing. Changes don't saved and applyed to code.SUSE 10.2 SunStudio EA
Hi,I am having some problems with the debugger.I open my f90 file, then set a breakpoint by clicking on the left side of the editor(where the row numbers appear). Then I run a debugging session (using the icon in the tool bar).The program does stop at my breakpoint but after a while dbx crashes ...
When I run th compilers with no options, it works fine as I expect. But when I add simple options like -xO5 or -xchip=pentium4, next to this options in the command line appears somethings like: -xO3 -xstr... make**language str... don't recognizedTo compile the proyect again, I have to clear ...
I am new to sun studio tools. here is my question:Does Sun Studio have any tool to get the memory allocated at any line no in a file? Can DTrace or collect-analyze do this?
Hi!I work on SUSE 10.2 (opensource) SunStudio EA, Qt 4.2.2 (opensource). Complie source with gcc and option -dwarf-2.When I try see current value of local variable dbx show me wrong value.But if I see global variable dbx show correct value.Can anybody help ...
I am trying to debug an application using Sun studio workshop.At startup it gives the following error -An unexpected exception has occured.Details - [catch]java.lang.OutOfMemoryError: Java heap spaceHow can I get rid of this error?