Hi,I've a template class declared in .hxx file and the methods of this class are defined outline in a separate .cpp file. When I compile this .cpp file, with following CC commandline, I find that all the methods from this class are not defined in the final .o file.Why is it like this? Please ...
678 byte By
wdong83a at 2007-11-26 23:16:55
It seems that -xopenmp is not compatible with inline assembly. The compiler I'm using is Sun C 5.8 2005/10/13. I made up the following very simple program to demo the problem.#include <stdio.h>#include <omp.h>int main (){asm("");#pragma omp parallel{printf("Hello - %d\n", ...
Using Solaris 10 (x86) under Parallels on Mac:Running a program under dbx gives this console error:"Unexpected INT 1 in user mode, dr6=ffff0ff0"and locks the vm hard.Same behavior under Studio 11 or 12 EA.Is this a Parallels problem or dbx? I heard the same problem happens on ...
264 byte By
Ginna at 2007-11-26 23:29:17
I'm using collect with a program that using ALSA sound device.I get I/O possible immediately and program exits.Reproduced with Ubuntu 6.10 and Opensuse 10.2.Studio 11 or 12 EA doesn't matter.Any way to workaround?Thanks!
4357 byte By
addya at 2007-11-26 23:32:17
Hi , We are using datastage tx libraries in on of our appliation at API level.The program is written in mix of c and c++ and libraries of Datastage tx version 7.5. However We recently installed version 8.1 on the same box and tried to compile the program with 8.1 version libraries of datastage ...
hi,I'm debugging a program through the sunstudio ui.I have some code in a .inl file but I am unable to step in the functions of that file because sunstudio doesn't recognize it as a source (c++) file. instead, I have to open the file manually and it asks me if I want to load it as a text ...
Hi, I am trying to compile ACE 5.5 in C++.NET but it is giving following error. plz help me how to solve this error.c:\ACE_wrappers\ace\Global_Macros.h(56): error C2086: 'int ACE_BEGIN_VERSIONED_NAMESPACE_DECL' : redefinition..\ace\Assert.h(23) : see declaration of ...
Hi, I am trying to compile ACE 5.5 in C++.NET but it is giving following error. plz help me how to solve this error.c:\ACE_wrappers\ace\Global_Macros.h(56): error C2086: 'int ACE_BEGIN_VERSIONED_NAMESPACE_DECL' : redefinition..\ace\Assert.h(23) : see declaration of ...
Using -library=stlport4 automatically defines _XOPEN_SOURCE=500 in config/stl_sunpro.h. This is quite confusing as it disables the definition of the macros _BSD_SOURCE and _SVID_SOURCE in features.h on linux. This way we get an inconsistant behavior between Cstd where a function like "finite" ...
253 byte By
jpgzia at 2007-11-26 23:39:08
I use the Opensuse 10.2. The J2sdk 1.4.2 has been installed. But after install the sun studio the command f95 can not be found. Also there is no f95 and manual even though I restart the system. What should I do? Please help me \!Thank you!
1370 byte By
JVANHILLa at 2007-11-26 23:47:28
Assertion failed: at_handle_table[at_idx].tag == VAR_TAG, file ../srcfw/FWcvrt.c, line 5502 "test1.f95", Line = 1, Column = 1: INTERNAL: Interrupt: AbortThis appears to be a problem with calling C_F_POINTER with a type member.The following code when compiled (f95 -c test1.f95) will produce the ...
418 byte By
MOGUsera at 2007-11-26 23:51:53
Hi there,I hope someone here can help me....I have tried to install SunStudio11 into a Solaris 8 SPARC machine, but the installation procedure is always failing when it tries to install the compilers...Any idea? Is there more information that I can give?I have installed everything in default ...
Should the collector(libcollector.so) expose functions with common names which may conflict the the applications namespace? collect is crashing because of a name collision with newHeap & deleteHeap which are defined in the application and libcollector.so. These are not standard API ...
I am trying to compile two different codes distributed by NASA. It is written in fortran 77 and I am trying to compile it on Sun Solaris 10 . The first source distribution begines compiling fine. The library of functions develops appropriatly until it gets to one of the subroutines that it ...
Hi. In an e-mail letter from Sun Microsystems I read about Sun Studio 11 to "utilize its record-setting parallelizing compilers." From this message I was attracted by the possibility of adding something like parallel processing, not by changing the processor (hardware), but by adding ...
1167 byte By
pajfra at 2007-11-27 0:00:51
Hi,This is a repost of http://forum.java.sun.com/thread.jspa?threadID=5156578 mistakenly posted in Sun Studio C++ forum.I'm using the example code given in the following article (and the Linker and Library Guide) to define my own time function as a shared ...
692 byte By
lishena at 2007-11-27 0:06:20
Dear allRecently, I hava a task to analysis the performance issue under Solaris built by SunStudio 11. I find that collect is quite a powerful tool, but it still have some limitations:for example, I want to collect the performance data of process 123 for 10 sec. it seems that collect doesn't ...
I have a large program I am loading into dbx (or the Studio gui). I get dbx: forward reference `_Rb_tree<cmri::Registry::Local*,std::pair><cmri::Registry::Local* const, std::map><utcp::String, int, std::less><utcp::String>, std::allocator<std::pair><const ...
I am using SunStudio12 and have stopped the program while in the debugger. I seem to have misplaced the source code window (as I can not find it). Any idea where I can find this as it's difficult to use without this. In the breakpoints windows, I can not select the "Show source" option and ...
What is wrong with that thing?I can't get it to accept the answer to the final question. I paste the text in but it does absolutely nothing.
967 byte By
binla at 2007-11-27 0:10:37
I'm using openmp and want to insert an inline assembly code. But I don't want the compiler to optimize my inline assembly code. This is my test code:#include <stdio.h>#include <omp.h>void magic_break (void){ asm (搒ethi 0x40000, %g0?;}main () {int tid;magic_break;#pragma omp ...
818 byte By
lushua at 2007-11-27 0:13:50
When I tried to check the current work directory of a process, it failed with the message as shown in the title.I looked up some articles saying this is because the program I launched from within a directory that is later removed. But I don't think the directory is removed. So I am confused ...
1209 byte By
shock_ua at 2007-11-27 0:13:57
Hi , I know little about the system callI write a test file hello.c[code]#include<stdio.h>int main(){printf("hello");return 0;}[/code]I use the dtrace to probe the system call mmap, and found this syscall has been invoked twice during the execution, and I print tout he stack.first invoke ...
I am trying to port an application which till now was being compiled with older sun compiler 5.3. to a new compiler 5.6. But while linking I get undefined symbol error message Undefined Symbol - long __rwstd::InterlockedIncrement(long*) equivalence_MTI went through all the posted message in ...
206 byte By
re.tfa at 2007-11-27 0:30:27
Hi,Any one have any demo that show how to create an Dynamic lib and use it.and how load lib after software is loaded, lake an plug-in.Have way to do this?how?thanks
I am using a C library (Solstice FTAM v9.0) in my C++ program. One of the library header files has a declrartionshort class;in one of the structures.The C++ compiler (Sun C++ 5.4 on Solaris 8) gives error. What we should do to compile and link this library in C++.
2565 byte By
B.V.a at 2007-11-27 0:32:24
Hello,I think this will be a very easy question:I am using dbx for investigating memory leaks in a C++ program on a SUN machine. As the memory leak is located in an (internal) platform piece of code, the depth of the stack trace is only two levels (one lowlevel and one internal platform ...
Hello,I am trying to use automatic parallelization with -xautopar. I noticed that nothing but the simplest loops gets parallelized because I use unsafe functions. Adding the pragmas does_not_read/write_global_data or __attribute__((const)) lets the compiler consider these functions as safe. I ...
When building on Linux rh4 SunStudio 12, CC -c test.c -xlang=c99gives warningCC: -xlang=c99 is unavailable on Solaris 6I do not think this is correct for Linux?Message was edited by: Brett_Tiplitz
Building code with using llabs, I get the error"utioHeader.cc", line 4224: Error: The function "llabs" must have a prototype.I am working in Linux rf4 with SunStudio 12.This is defined in stdlib.h, but is defined as#ifdef __USE_ISOC99__extension__ extern long long int llabs (long long int ...
Building on Linux rh4, Sunstudio12"Mutex.cc", line 18: Error: PTHREAD_MUTEX_RECURSIVE is not defined.Looking at the Solaris 9, 10 manuals, this is a valid option for pthread_mutexattr_settype.On Linux, this is contained inside #ifdef __USE_UNIX98in ...
Building on Studio12 rh4,undefined reference to ushort.This is within the __USE_MISC block of types.hI might change my code to use posix types, but thought I would mention this one.
In SunStudio12 rh4, I get the following warning"/xxx.h", line 92: Warning: Types cannot be declared in anonymous union.Code is fromunion{struct{doublexStart;/* 256 - 263 */doublexDelta;/* 264 - 271 */uint32_t xUnits;/* 272 - 275 */} adjunct_1000;struct{doublerowStart;/* 256 - 263 ...
When building 32 bit apps for 64 bit files.getconf LFS_CFLAGS return-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64When building, I get an error"ptvalidate.cc", line 1414: Error: O_LARGEFILE is not defined.This is defined within#ifdef __USE_LARGEFILE64# define O_LARGEFILE0100000#endifSo I am ...
Using SunStudio12 rh4, get the following errors"cmriSockaddr.cc", line 107: Error: The function "gethostbyname_r" must have a prototype."cmriSockaddr.cc", line 181: Error: The function "getservbyname_r" must have a prototype.These both seem to be defined within #ifdef __USE_MISCThe linux man ...
SunStudio12 rh4 (yet again)/storage/temp2/sunstudio12/prod/lib/ld: Dwarf Error: mangled line number sectionSo what file is bad or what do I do with this?
On Solaris, one runs CC -xar to produce an archive on C++.How about on Linux?
Hi,I've a client server system.My client sends a message to server & starts a timer.If the server does not respond with in the limit set by timer, timer goes off and the client shall throw an exception.The problem is client seem to wirte the message to server socket, but it is not ...
I have code that does not work with Studio 12. This could easily be a problem with the code, as it has been in the past. So build the code with a -E. In the past, I could build the output file. With the new compiler, I get the following errors. Suggestions?"/usr/include/bits/environments.h", ...
In openAL, the following code produces an error. This compiles with gcc and produces a warning with icc. Should this error be a warning, etc. as changing open source code is just not that easytypedef void ALCcontext ;typedef void ALCvoid ;ALCcontext * alcGetCurrentContext ( ALCvoid ) ;int main ...
Hi,While compiling our code Octopus, I found a bug in the sun studio express fortran compiler (in x86 linux and sparc solaris). I made a bug report, but in that moment I wasn't able to reduce the file to a single file and in the bug report and I gave a pointer to our svn repository. Now I was ...
When building code, we have stuck in the -G option to all builds (shared or not) so that 2 builds are not necessary to produce the .a and the .so files.With Studio 12, this option appears to fail. When this is done, the object crashes when running.dbx saysdbx: File `Linux-i686/utcpTest' is not ...
I have a problem with a piece of code and wanted to check if it was a known issue or not and if there is a workaround for it.I have a small piece of code that uses SunStudio inlines running on -xtarget=opteron - xarch=amd64#include <sys/types.h>#include <stdio.h>#include ...
100 byte By
c_chana at 2007-11-27 1:16:48
Am I mistaken or is typeof support only available on the Linux edition of Sun Studio Express?
I am trying to compile threadpool in CC 5.8 and am getting an erorError: A class template name was expected instead of boost::threadpool::detail::SizePolicy<boost::threadpool::Pool>.-- corresponding to the friend declarationsI suspect that the friend declaration is not respected. Please ...
Hi, Studio11 f95 8.2 Patch 121020-03 2006/07/26produces more and more multiple symbol definitions when choosing higherand higher optimizations:ld: fatal: symbol `__ABSCO_BRANCH$LB_NEW$1' is multiply-defined:(file objects/SunOS_4.1.4/modules/nmrtabco_m.o type=OBJT; file ...
458 byte By
gcuta at 2007-11-27 1:22:30
f90comp: 0 ERRORS, 96 WARNINGS, 0 OTHER MESSAGES, 0 ANSIUndefinedfirst referenced symbolin fileehash_PEST.osecond_PEST.old: fatal: Symbol referencing errors. No output written to a.outHow can I correct the message?I have similer with other filef90comp: 0 ERRORS, 88 WARNINGS, 0 OTHER MESSAGES, 0 ...
Hi all. I've just started using the sun fortran and c compilers. My code uses the CDF (common data format) library for data output. I can compile the library (using gcc or suncc), but when I call it from fortran code it can't find symbols. The symbols' names in the library have 2 trailing ...
746 byte By
Stitch1a at 2007-11-27 1:24:16
I am trying to confirm that you can develop/debug independantly in different local zones on the one solaris box.We have created two local zones, I have logged into one, installed studio 11 and tried to debug an existing application. When you load the program to debug, it says initialising and ...
I may get early access to a Barcelona based AMD system.To compile a tuned binary to run on this platform what options should I be using for -xtarget & -xarch ?This is of course assuming that SS12EA includes some support for these new processors.Thanks.