Sunstudio 10U1 on linux
Hi there,
i am doing my first steps with sunstudio (10U1) on linux. I am working through the tutorial but didn't come very far. After compiling the (malformed) sourcefile "squares.c" the tutorial says
In the Output window, notice that the build fails. Scroll through the build output to find the build error, which includes two hyperlinks.
However there is no hyperlink at all and the output looks like this:
dmake -m serial -f "/home/mp598358/.sunstudio/10.1-Linux-i686/sampledir/Tutorials/Tutorial1/Makefile"
Build Failed
Total time: 0 seconds
Copy&Paste the "dmake -m serial ..." line to a console "succeeds"
gcc squares.c
squares.c: In function 'doLoop':
squares.c:22: error: 'limt' undeclared (first use in this function)
squares.c:22: error: (Each undeclared identifier is reported only once
squares.c:22: error: for each function it appears in.)
any hints are welcome...
well... its my first posting. so point to the right location if this is not it...
matthias
Hi, Matthias:
I was able to access the hyperlinks from the Output Window [make] in Sunstudio11 on 32 bit SuSE Linux Enterprise 9 using
gcc 3.3.3. Could you provide me some information so that
I can help you on this issue?
Please send me the following information from:
uname -a
cat /etc/*release
/bin/gcc -v
.../bin/sunstudio -V
Thanks,
Julie
Similar Messages
-
Studio Express 07/08 on Ubuntu 8.04
I'm running an AMD X2 64bit system and I just wanted to share my experience with installing and trying to use Sun Studio on Ubuntu 8.04.
I started with the tar-version of Sun Studio 12, got this version running after adding a few libs (see [http://wikis.sun.com/display/SunStudio/Sun+Studio+Linux+Platform+FAQ] ).
But I was not able to start the Thread Analyzer, and that was the tool I actually installed Sun Studio. (So I used OpenSolaris with Studio Express 05/08 in the meantime...)
After the release of Studio Express 07/08 I started a new attempt and finally - also with helpful contents of the post to Fedora in this forum - I got the whole thing running including Thread Analyzer.
The major steps:
1. install the latest jdk (the easiest way is to install netbeans to get all relevant files)
2. add the libs mentioned above
3. change the shell-script (tail --lines=+651...)
Now everything runs fine and smoothly!
KlausHi,
thanks for the hint.
It tried to install on Scientific Linux 5.1 (RHEL 5.1 clone) and I needed to chance the tail line as well.
However many editors don't get the encoding right and may break the binary part while saving. ( A hexeditor worked for me in the end)
Here some enhancement suggestions:
- The script shouldn't state it installed successfully when nothing was done (because of the tail problem).
- The script should work :-)
- A simple tar.bz2 is easier to install, if some thing goes wrong in the script you don't need to start reading the source.
- Put a md5 sum on the download page, it took me a few tries to make sure I got the file downloaded ok and didn't break it while editing.
best regards,
Samuel -
Project folder list not sorted!
Hi,
I've just downloaded and installed SunStudio 12 on Linux x86. Then I created a new C++ project from existing code pointing SunStudio at my project's source folder which contains many subfolders. Everything went fine except that the list of project folders in the "Projects" tab is not sorted alphabetically. Is there an option to make the folder list appear sorted?
Thanks
VadikMy openSUSE 10.2 system uses "LANG=en_GB.UTF-8" throughout.
Folder names are simple things containing only ASCII characters like "libxyz" and "libabc", etc
BTW, I've also reproduced this issue on several openSUSE 10.2 systems used by my colleagues. -
Can't use profiler (Performance Analyzer) in Sun Studio 12, please help!!
Hi,
I've mandriva 2008 (linux), and I've installed Sun Studio 12.
At the first start of Sun Studio a message appear:
Warning - could not install some modules:
ATD Sun Studio Core - The module named com.sun.tools.swdev.toolscommon was needed and not found.
dbx Debugger UI - The module named com.sun.tools.swdev.toolscommon was needed and not found.
ATD Performance Analyzer Actions - The module named com.sun.forte.st.mpmt/1 was needed and not found.
ATD Performance Analyzer Actions - The module named com.sun.tools.swdev.toolscommon was needed and not found.
All other modules works correctly, but unfortunately I need the profiler (performance analyzer) because I want to speed up my C++ code. What can I do???
Please help!
NOTE:
I've added to my .bash_profile this lines:
PATH=/opt/sun/sunstudio12/bin:$PATH
export PATH
PATH=/opt/sun/sunstudio12/man/:$PATH
export PATH
LD_LIBRARY_PATH=/opt/sun/sunstudio12/prod/lib
export LD_LIBRARY_PATH
but unfortunately this don't solve the problem....
Edited by: MLX82 on Feb 1, 2008 11:24 PMIf I type `uname -p` this message appear:
[mlx@localhost ~]$ `uname -p`
bash: Intel(R): command not foundIf I type: --userdir won't work as you can see:
sunstudio --userdir /home/mlx/.sunstudio/12.0-Linux-Intel\(R\)\ Pentium\(R\)\ M\ processor\ 1.73GHz/I get an 426 line error (but this is the correct location, as man of sunstudio say), while if I type for example:
sunstudio --userdir /home/mlx/error 426 disappears, but I get anyway the error on the module:
Warning - could not install some modules:
ATD Performance Analyzer Actions - The module named com.sun.forte.st.mpmt/1 was needed and not found.
ATD Performance Analyzer Actions - The module named com.sun.tools.swdev.toolscommon was needed and not found.
dbx Debugger UI - The module named com.sun.tools.swdev.toolscommon was needed and not found.
ATD Sun Studio Core - The module named com.sun.tools.swdev.toolscommon was needed and not found.On the other hand I've searched the "id" exe and it is in /bin:
[mlx@localhost ~]$ id
uid=500(mlx) gid=500(mlx) gruppi=500(mlx)so I've created a sym link:
cd /usr/bin
ln -s /bin/id ./idbut when I start Sun Studio 12 I get again the error on the module.
So I've tryed to reinstall everything (yes, also OS) but it (partially) solves only the problem installing with batch_installer. Infact now I can use batch_installer but at the end of installation it say:
[root@localhost tmp]# ./batch_installer --accept-sla
Installation failed: cleanup successful.Anyway SunStudio 12 still works, but the main problem about the module of performance analyzer is still here...
how can I solve this? Please help!
Edited by: MLX82 on Feb 4, 2008 3:19 PM -
Build shared problem with configure / config.guess
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 directly from configure:
ac_config_guess="echo i686-pc-linux"
Then the shared support is enabled and there left some minor problems with linker options -soname and --rpath. Then some libs can create the shared libs, for instance the apr and xml2.
Others do not, for instance log4cxx and acetao, but they do not produce any error. It looks like that simply the shared link step is not done, however the symbolic links to the release version are done. I also tryed with LD=CC and LD=cc instead of the gnu ld, but then already in config.log the shared support is not recognized. If I build by hand:
cc -shared *.o -o libACE.so
it seems to work and the result usable by applications. Since acatao includes lots of libraries to build, the manual creation is not handy / possible. So any hint to solving that are welcome. I'm using the latest sunstudio version (feb2007).
thanx rolfIt really depends on autoconf/libtool version those libs are using.
Till the most recent versions libtool had absolutely no clue that SunStudio exists on Linux. And default fallback happened to be gcc.
If you give me some specific lib (source URL or name/version) I can tell you why this lib does not configure with Sun Studio :)
Most recent version of autoconf is wize enough to handle Sun Studio on Linux. So one of the solutions for the libs might be to upgrade to a newer autoconf. Not what common user would commonly do though...
regards,
__Fedor. -
Developing C & Fortran mixed applications
Hi
I develop applications on Linux with C & Fortran (gcc and g77) mixed. I am looking at Sun Studio 11 for a visual environment for project building/debugging. Can Sun Studio handle mixed languages? Will the debugger work for both gcc and g77?
Thanks for helping me.SunStudio is designed to handle mixed languages. Though I dont know the level of g77 debugging support.
You can try latest SunStudio Express on Linux, which does provide both C and Fortran compilers.
Just do not forget to link with Fortran compiler, to get fortran runtime properly linked.
And it surely will work with debugger.
regards,
__Fedor. -
Building shared libraries on linux with SunStudio
Hi,
I installed the sunstudio-compilers on my system (SuSE 10.0/x86-64) and try to build a shared library.
For my (c++-)library I use autoconf/automake, so I hoped it to be trouble-free, but it is not. I configured my library with:
./configure CC=cc CXX=CC CFLAGS=-fast CXXFLAGS=-fast -D_GNU_SOURCE(I needed this -D_GNU_SOURCE to have pthread_rwlock_*).
The compiler run fine, but the linker does not produce any output. I guess the command, which should have created the library is:
/bin/sh ../libtool --tag=CXX --mode=link CC -fast -D_GNU_SOURCE -o libcxxtools.la -rpath /usr/local/lib -lpthread -version-info 3:1:0 base64stream.lo cgi.lo dlloader.lo hdstream.lo hirestime.lo httpreply.lo httprequest.lo iniclass.lo log.lo md5.lo md5stream.lo multifstream.lo net.lo pollclass.lo query_params.lo tcpstream.lo tee.lo thread.lo udp.lo udpstream.lo xmltag.lo iconvstream.lo ../libltdl/libltdlc.la -lnslIt creates a src/libcxxtools.la and symbolic links src/.libs/libcxxtools.so and src/.libs/libcxxtools.so.3, but no shared library src/.libs/libcxxtools.so.3.0.1, where the links point to. Is there any chance to get automake running with sunstudio?libtool problem is that it has embedded knowledge about compiler options, and it is platform-dependant.
libtool knows that it should use -G to link shared library with SunStudio on Solaris.
It has no clue about existance of SunStudio on Linux.
Anyway, if you are compiling with SunStudio you should always link with SunStudio (cc, CC or f90).
Thus proper configure line should include LD=CC for C++, LD=cc for C programs.
If you use default linker (ld) it will fail to resolve dependancies specific to SunStudio compiler.
Thats what happens in your case.
However even if you specify LD=CC it will not do shared libraries for the cause mentioned about - when configuring libtool tries to figure out how to build shared library and deciding not to build it at all.
You can get out with LD=cc (as our cc driver supports gnu-style -shared option).
Though you will have to specify all the SunStudio C++-specific link dependancies manually.
Another option is to modify libtool script. Which version do you use?
regards,
__Fedor. -
Where can I find the right doc for SunStudio For Linux ?
I can find the docs for SunStudio here, http://docs.sun.com/app/docs/doc/819-5265/6n7c29ck9?a=view
but it seems that it doesn't right on linux platform.
#include <stdio.h>
int main(void)
#if defined(sun)
printf("sun defined \n");
#else
printf("sun undefined \n");
#endif
#if defined(unix)
printf("unix defined \n");
#else
printf("unix undefined \n");
#endif
#if defined(sparc)
printf("sparc defined \n");
#else
printf("sparc undefined \n");
#endif
#if defined(i386)
printf("i386 defined \n");
#else
printf("i386 undefined \n");
#endif
#if defined(__sun)
printf("__sun defined \n");
#else
printf("__sun undefined \n");
#endif
#if defined(__unix)
printf("__unix defined \n");
#else
printf("__unix undefined \n");
#endif
#if defined(__SUNPRO_C)
printf("__SUNPRO_C defined \n");
#else
printf("__SUNPRO_C undefined \n");
#endif
#if defined(__sparc)
printf("__sparc defined \n");
#else
printf("__sparc undefined \n");
#endif
#if defined(__i386)
printf("__i386 defined \n");
#else
printf("__i386 undefined \n");
#endif
#if defined(__SVR4)
printf("__SVR4 defined \n");
#else
printf("__SVR4 undefined \n");
#endif
return 0;
}[luoyi@qpd06 test]$ suncc -o test test.c
[luoyi@qpd06 test]$ ./test
sun undefined
unix defined
sparc undefined
i386 undefined
__sun undefined
__unix defined
__SUNPRO_C defined
__sparc undefined
__i386 undefined
__SVR4 undefined
where can I found the correct docs for SunStudio For Linux ?You can refer to cc man pages. Here is about predefinitions:
Predefinitions:unix
sparc (SPARC)
i386 (x86)
sun
The above are not predefined in -Xc mode.
These predefinitions are valid in all modes:
__BUILTIN_VA_ARG_INCR
__SUNPRO_C=0x590
__SVR4(SPARC)
__SunOS(Solaris)
__SunOS_OSN.N(Solaris)
__amd64(x86 with-m64)
__gnu__linux(linux)
__i386(x86)
__linux(linux)
__linux__(linux)
__sparc(SPARC)
__sparcv9(with-m64)
__sun(Solaris)
__unix
__�uname -s�_�uname -r�
__x86_64(x86)
linux(x86,linux)
The following is predefined in -Xa and -Xt modes only:
__RESTRICT
The compiler also predefines the object-like macro
__PRAGMA_REDEFINE_EXTNAME,
to indicate the pragma will be recognized.
... -
Sunstudio on Linux using OpenMP
I am new to use SunStudio.
Rightnow, I want to use openmp to parallel my code.
To do that, I begin from simple example.
PROGRAM calculate
USE omp_lib
INTEGER :: i, max_number
DOUBLE PRECISION :: step, x, value, sum
DOUBLE PRECISION :: num_steps = 1000000000
REAL(8) :: start_time, end_time, run_time, timearray1(2), timearray2(2)
INTEGER :: j
DOUBLE PRECISION :: y, value2 = 0.0
INTEGER :: id, nthrds, nthreads
sum = 0.0
step = 1.0/num_steps;
start_time = dtime(timearray1)
DO i = 1, int(num_steps), 1
x = (i - 0.5)*step;
sum = sum + 4.0/(1.0 + x*x)
END DO
value = step*sum
end_time = dtime(timearray1)
run_time = end_time - start_time
write(*,*) 'run_time is ', end_time, 'seconds'
write(*,*) 'calcuated value is ', value
WRite(*,*) '-------------------------------'
write(*,*) '** Parallel Test **'
write(*,*) '-------------------------------'
max_number = OMP_GET_MAX_THREADS()
write(*,*) 'Max Threads = ', max_number
CALL OMP_SET_NUM_THREADS(4)
sum = 0.0
start_time = dtime(timearray2)
!$OMP PARALLEL PRIVATE(id,sum)
id = OMP_get_thread_num()
DO j = id + 1, int(num_steps), 4
y = (j - 0.5)*step
sum = sum + 4.0/(1.0 + y*y)
END DO
!$OMP CRITICAL
value2 = value2 + sum*step
write(*,*) "My thread is", ID, "value2 is", value2
!$OMP END CRITICAL
!$OMP END PARALLEL
end_time = dtime(timearray2)
run_time = end_time - start_time
write(*,*) value2, end_time
END PROGRAMCompilation proceed with no errors or warnings. I used 'f95 test.f90 -xopenmp -O3 -fast'
But the result is strange, it is
run_time is 10.717370986938477 seconds
calcuated value is 3.1415926525857966
** Parallel Test **
Max Threads = 4
My thread is 1 value2 is 0.7853981633965759
My thread is 0 value2 is 1.57079632680205
My thread is 3 value2 is 2.3561944891987165
My thread is 2 value2 is 3.1415926525868203
3.1415926525868203 11.203296661376953
looks like not parallel at all, I test the same code by GCC, it did parallel.
Anybody can help me out? thank youThank you very much, Peter,
I try your code, the output is strange, the time is wired
'3.1415926525874704 -188950.34375 '
I am using RedHat Enterperise Linux 5.
The purpose here is I want to see how much performance can be improved by openmp, the similar problem coding up by C and compiled by gcc gave
'using 1000000000 steps to calculate Pi
num_threads = 1
pi is 3.141593 in 7.146756 seconds 1 threds
num_threads = 2
pi is 3.141593 in 4.289904 seconds 2 threds
num_threads = 3
pi is 3.141593 in 2.787567 seconds 3 threds
num_threads = 4
pi is 3.141593 in 1.698492 seconds 4 threds
Thanks again
Edited by: frankqi on Feb 11, 2009 12:21 PM -
SunStudio on Linux: C functions are not in std:: namespace
Hi,
i'm using SunStudio 12 compilers on a Debian Etch x86 host and have some compilation problems.
The compilers complains that C functions are not in std:: but only in the global namespace.
I thought the standard was that they are in both namespaces.
I suspect the issue may be related to system headers since the problem never occured with Sarge nor Solaris.
Anyone as some hint to solve this problem ?
I there a "clean" workaround ?
Thanks,
AurelienLet me clarify Paul's comments.
If you include a C-style header like <stdio.h>, you should get names in both namespace std and in the global namespace.
That is, the following program should compile with Sun C++: #include <stdio.h>
int main()
std::printf("Hello ");
printf("world!\n");
}If you include the C++ versions of the C headers, like <cstdio>, using Sun C++ you get names only in namespace std -- except on Linux.
The g++ compiler, particularly on Linux, does not follow the same rules. The <stdio.h> header puts names only in the global namespace, and <cstdio> puts names in both namespaces. To allow compilation of programs on Linux that compile with g++, Sun C++ tends to follow g++ rules where they are looser than what the C++ Standard says. (For some definition of "looser".)
The most portable approach is to use the <xxx.h> C-style headers, and do not qualify the names from the headers with "std::".
That is, the following program should compile everywhere: #include <stdio.h>
int main()
printf("Hello ");
printf("world!\n");
} -
SunStudio on Linux: wctype.h issues
This is a follow-up question about compiling R using SunStudio12.1 on Linux.
R install guide indicates that:
"The OS needs to have enough support for wide-character types: this is checked at configuration.
specifically, the C99 functionality of headers wchar.h and wctype.h, types wctans_t and mbstate_t and functions mbrtowc, mbstowcs, wcrtomb, wcscoll, wcstombs, wctrans, wctype, and iswctype."
With suncc on Linux, the ./configure stops with the following error message:
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking for iconv... in libiconv
checking whether iconv accepts "UTF-8", "latin1" and "UCS-*"... yes*
checking for iconvlist... yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking wctype.h usability... yes
checking wctype.h presence... yes
checking for wctype.h... yes
checking whether mbrtowc exists and is declared... yes
checking whether wcrtomb exists and is declared... yes
checking whether wcscoll exists and is declared... yes
checking whether wcsftime exists and is declared... yes
checking whether wcstod exists and is declared... yes
checking whether mbstowcs exists and is declared... yes
checking whether wcstombs exists and is declared... yes
**checking whether wctrans exists and is declared... no*
checking whether iswblank exists and is declared... no
checking whether wctype exists and is declared... no
checking whether iswctype exists and is declared... no
configure: error: Support for MBCS locales is required.
RTThanks for your instructions.On my openSUSE 11.2 system,
run the first command
CC -E z.cc | grep wint_t I don't see any typedef
extern int iswalnum ( wint_t __wc ) ;
extern int iswalpha ( wint_t __wc ) ;
extern int iswcntrl ( wint_t __wc ) ;
extern int iswdigit ( wint_t __wc ) ;
extern int iswgraph ( wint_t __wc ) ;
extern int iswlower ( wint_t __wc ) ;
extern int iswprint ( wint_t __wc ) ;
extern int iswpunct ( wint_t __wc ) ;
extern int iswspace ( wint_t __wc ) ;
extern int iswupper ( wint_t __wc ) ;
extern int iswxdigit ( wint_t __wc ) ;
extern int iswblank ( wint_t __wc ) ;
extern int iswctype ( wint_t __wc , wctype_t __desc ) ;
extern wint_t towlower ( wint_t __wc ) ;
extern wint_t towupper ( wint_t __wc ) ;
extern wint_t towctrans ( wint_t __wc , wctrans_t __desc ) ;
extern int iswalnum_l ( wint_t __wc , __locale_t __locale ) ;
extern int iswalpha_l ( wint_t __wc , __locale_t __locale ) ;
extern int iswcntrl_l ( wint_t __wc , __locale_t __locale ) ;
extern int iswdigit_l ( wint_t __wc , __locale_t __locale ) ;
extern int iswgraph_l ( wint_t __wc , __locale_t __locale ) ;
extern int iswlower_l ( wint_t __wc , __locale_t __locale ) ;
extern int iswprint_l ( wint_t __wc , __locale_t __locale ) ;
extern int iswpunct_l ( wint_t __wc , __locale_t __locale ) ;
extern int iswspace_l ( wint_t __wc , __locale_t __locale ) ;
extern int iswupper_l ( wint_t __wc , __locale_t __locale ) ;
extern int iswxdigit_l ( wint_t __wc , __locale_t __locale ) ;
extern int iswblank_l ( wint_t __wc , __locale_t __locale ) ;
extern int iswctype_l ( wint_t __wc , wctype_t __desc , __locale_t __locale )
extern wint_t towlower_l ( wint_t __wc , __locale_t __locale ) ;
extern wint_t towupper_l ( wint_t __wc , __locale_t __locale ) ;
extern wint_t towctrans_l ( wint_t __wc , wctrans_t __desc ,
using :: wint_t ; then run the second command
CC -H -c z.cc I get a lot of errors
/opt/sun/sunstudio12.1/prod/include/cc/wctype.h
/usr/include/wctype.h
/opt/sun/sunstudio12.1/prod/include/cc/features.h
/usr/include/features.h
/opt/sun/sunstudio12.1/prod/include/cc/sys/cdefs.h
/usr/include/sys/cdefs.h
/usr/include/bits/wordsize.h
/usr/include/gnu/stubs.h
/usr/include/bits/wordsize.h
/usr/include/gnu/stubs-32.h
/usr/include/bits/types.h
/usr/include/bits/wordsize.h
/usr/include/bits/typesizes.h
/opt/sun/sunstudio12.1/prod/include/cc/stddef.h
/opt/sun/sunstudio12.1/prod/include/cc/sys/isa_defs.h
/usr/include/endian.h
/usr/include/bits/endian.h
/usr/include/bits/byteswap.h
"/usr/include/wctype.h", line 112: Error: wint_t is not defined.
"/usr/include/wctype.h", line 112: Error: __wc is not defined.
"/usr/include/wctype.h", line 112: Error: Badly formed expression.
"/usr/include/wctype.h", line 118: Error: wint_t is not defined.
"/usr/include/wctype.h", line 118: Error: __wc is not defined.
"/usr/include/wctype.h", line 118: Error: Badly formed expression.
"/usr/include/wctype.h", line 121: Error: wint_t is not defined.
"/usr/include/wctype.h", line 121: Error: __wc is not defined.
"/usr/include/wctype.h", line 121: Error: Badly formed expression.
"/usr/include/wctype.h", line 125: Error: wint_t is not defined.
"/usr/include/wctype.h", line 125: Error: __wc is not defined.
"/usr/include/wctype.h", line 125: Error: Badly formed expression.
"/usr/include/wctype.h", line 129: Error: wint_t is not defined.
"/usr/include/wctype.h", line 129: Error: __wc is not defined.
"/usr/include/wctype.h", line 129: Error: Badly formed expression.
"/usr/include/wctype.h", line 134: Error: wint_t is not defined.
"/usr/include/wctype.h", line 134: Error: __wc is not defined.
"/usr/include/wctype.h", line 134: Error: Badly formed expression.
"/usr/include/wctype.h", line 137: Error: wint_t is not defined.
"/usr/include/wctype.h", line 137: Error: __wc is not defined.
"/usr/include/wctype.h", line 137: Error: Badly formed expression.
"/usr/include/wctype.h", line 142: Error: wint_t is not defined.
"/usr/include/wctype.h", line 142: Error: __wc is not defined.
"/usr/include/wctype.h", line 142: Error: Badly formed expression.
"/usr/include/wctype.h", line 147: Error: wint_t is not defined.
Compilation aborted, too many Error messages. -
Hello,
I use Suse Linux 10 OSS.I downloaded new build 13, (last 10u1 was functional but compiler had some issues). Now I can�t run sunstudio:
./sunstudio: line 369: /opt/sun/sunstudiomars/prod/scripts/jdk_chooser: No such file or directory
Sun Studio is unable to find a supported version of the
Java 2 Software Development Kit (SDK). For more information
about finding a supported SDK see /opt/sun/sunstudiomars/READMEs/compiler_ide.
f90 wants some libraries that are not in prod/lib , but only in prod/lib/amd64 (libc_supp.a, libsunmath_sol.a) and finaly writes
spiranthes:/home/lada/f # f90 mod.f90
/usr/bin/ld: cannot find -lfui
Sun Studio 11 is without any problem. I only cannot use Sun dbx with Intel compiler which I had to use.I got exactly the same error (running too on SuSe 10.0).
The use of -xs option results in dbx crashing with:
dbx: warning: Mismatch between N_UNDF and N_ENDM stabs.
dbx: warning: Dbx encountered a stabs problem while scanning the loadobject.
dbx: warning: Delayed loading of object file information will be disabled.
dbx: internal warning: Bad stabs_state transition in objfile.cc (SS_UNLOADED -> SS_LOADED)
*** glibc detected *** free(): invalid pointer: 0x55c042dc ***
dbx: internal error: signal SIGABRT (unknown)
dbx's coredump will appear in /tmpI'm using the Compiler from sunstudio-20060107.linux.tar.bz2. And neither the dbx from the same file nor the dbx from studio11-lin-x86 works. I do the compiling and the linking step separately.
As my Program doesn't work, i created a trivial testfile with:
program main
write(*,*) "Hello world!"
end program mainand tried to debug it. This only worked with compiliation and linking in a single step:
f95 -g -o test test.f90This just works fine with dbx.
But if i use:
f95 -c -g test.f90
f95 -o test test.odbx gives me:
dbx: "MAIN" is not defined as a function or procedure in the scope `test`main`The same with the -xs option. -
Keyboard mapping problem with sunstudio
I'm a new sunstudio user and am having trouble with a setup issue. When I run sunstudio 11 from a sunray with a Sun keyboard all works fine (except the sunray has far too small of screen and it drive me crazy). When I run with my linux desktop being the x-server then none of the special keys (home, end, arrows, backbspace, enter, etc.) work correctly in sunstudio. All other gui apps I've tried (gedit, gvim, staroffice, web browser, etc.) work fine from my linux/pc keyboard.
Using google I discovered xev. It shows the keycode and keysym that is interpreted for each keyboard stroke. When I compare the output from my linux/pc keyboard vs. the sun keyboard connected to the sunray I see the expected differences in keycode, but the keysym and resulting interpretation (e.g. BACKSPACE) is the same. Yet sunstudio ignores any keystroke except normal alphabet characters that come from my linux/pc keyboard.
When using my linux/pc keyboard I'm in one of two configs (both act the same):
- ssh -X hostname
OR
- Xephyr :1 -screen 1250x975 -query hostname &
Thanks for any help.
cbThere is a known problem related to control keys in the netbeans GUI.
http://www.genunix.org/wiki/index.php/Sun_Studio_FAQs#IDE_-TheSun_Studio_IDE_is_ignoring_my_control_keys
It's hard to tell from your message where the programs are
executing from.
Run two X programs next to each other, running on the same machine,
and displaying to the same X server. Verify that one of them can see
ALT keys (for example) and the other one can't. Then you know it's
a problem with the application program, and not due to your keyboard.
The Sun Studio IDE has no idea what physical keyboard you're using.
It only sees the keysyms from the X server. -
hello all,
i've installed SS12u1 on a Sun x2270 under Centos 5.4.
We have to recompile a (veryhuge) scientific app that compiled fine on Solaris 10 amd64 with SS12u1, so the makefiles are identical between the two machines.
But, we faced the following error:
cd /mnt/PELICANS/PelicansTest/lib/octopus-CC/opt2/ ; \
CC -G -o /mnt/PELICANS/PelicansTest/lib/octopus-CC/opt2//../libpel2.so \
-fast -m64 \
-L/home/minjeaud/PELICANS/PelicansTest/lib/octopus-CC -R/home/minjeaud/PELICANS/PelicansTest/lib/octopus-CC \
-L/usr/local/UMFPACKv4.4/UMFPACK/Lib -R/usr/local/UMFPACKv4.4/UMFPACK/Lib \
-L/usr/local/UMFPACKv4.4/AMD/Lib -R/usr/local/UMFPACKv4.4/AMD/Lib \
-L/usr/include -R/usr/include \
PDE_0D_Q0_1node.o PDE_1D_P0_1node.o PDE_1D_P1_2nodes.o PDE_1D_P2_3nodes.o PDE_2D_P0_1node.o PDE_2D_P0_1node_RefinerA.o ...........................
-lCstd -lCrun -lumfpack -lamd -lsunperf -lz -lm
/opt/sun/sunstudio12.1/prod/lib/amd64/ld: /opt/sun/sunstudio12.1/prod/lib/amd64/libmopt.a(f_atan2.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/opt/sun/sunstudio12.1/prod/lib/amd64/libmopt.a: could not read symbols: Bad valueI'm surprised that the error relates to a file included in Sunperf
The sunstudio is fully patched:
rpm -qf /opt/sun/sunstudio12.1/prod/lib/amd64/libmopt.a
sun-langx-12.1-3Is there a problem with this file?
if i suppress "-lm" on the command line, it seems to link correctly, but:
octopus:opt2> ldd ../libpel2.so
libCstd.so.1 => /opt/sun/lib/rtlibs/amd64/libCstd.so.1 (0x00002b075804c000)
libCrun.so.1 => /opt/sun/lib/rtlibs/amd64/libCrun.so.1 (0x00002b0758415000)
libsunperf.so.3 => /opt/sun/sunstudio12.1/lib/amd64/libsunperf.so.3 (0x00002b075862c000)
libc.so.6 => /lib64/libc.so.6 (0x00002b075b98c000)
libm.so.6 => /lib64/libm.so.6 (0x00002b075bce3000)
libfsu.so.1 => /opt/sun/sunstudio12.1/lib/amd64/libfsu.so.1 (0x00002b075bf67000)
libfui.so.1 => /opt/sun/sunstudio12.1/lib/amd64/libfui.so.1 (0x00002b075c3d4000)
/lib64/ld-linux-x86-64.so.2 (0x0000003fc5e00000)
libmtsk.so.1 => not found
libpthread.so.0 => /lib64/libpthread.so.0 (0x00002b075c50e000) i notice that there is a libm in /usr/lib, is it better than libm from sunstudio?
and why it doesn't find libmtsk? in solaris, libmtsk is in /usr/lib, i don't know if it exists in linux?
A find shows me that it exists here:
$ find /opt/sun/ -name libmtsk.so.1
/opt/sun/sunstudio12.1/rtlibs/libmtsk.so.1
/opt/sun/sunstudio12.1/rtlibs/amd64/libmtsk.so.1 Does it mean that i have to use LD_LIBRARY_PATH=/opt/sun/sunstudio12.1/rtlibs ?
Does a documentation exist for this kind of usage on linux?
Thanks in advance for help,
gerardunfortunately, it doesn't work even with the -L -R flags:
CC -G -o /mnt/PELICANS/PelicansTest/lib/octopus-CC/opt2//../libpel2.so \
-fast -xnolibmopt -O4 -KPIC -m64 \
-L/home/minjeaud/PELICANS/PelicansTest/lib/octopus-CC -R/home/minjeaud/PELICANS/PelicansTest/lib/octopus-CC \
-L/usr/local/UMFPACKv4.4/UMFPACK/Lib -R/usr/local/UMFPACKv4.4/UMFPACK/Lib \
-L/usr/local/UMFPACKv4.4/AMD/Lib -R/usr/local/UMFPACKv4.4/AMD/Lib \
-L/usr/include -R/usr/include \
-L/opt/sun/sunstudio12.1/rtlibs/amd64 -R/opt/sun/sunstudio12.1/rtlibs/amd64 \
PDE_0D_Q0_1node.o PDE_1D_P0_1node.o PDE_1D_P1_2nodes.o ...... \
-lCstd -lCrun -lc -library=sunperf -lumfpack -lamd -lz
ldd /mnt/PELICANS/PelicansTest/lib/octopus-CC/libpel2.so
libCstd.so.1 => /opt/sun/sunstudio12.1/rtlibs/amd64/libCstd.so.1 (0x00002b560621a000)
libCrun.so.1 => /opt/sun/sunstudio12.1/rtlibs/amd64/libCrun.so.1 (0x00002b56065e3000)
libc.so.6 => /lib64/libc.so.6 (0x00002b56067fa000)
libz.so.1 => /usr/lib64/libz.so.1 (0x00002b5606b52000)
libsunperf.so.3 => /opt/sun/sunstudio12.1/lib/amd64/libsunperf.so.3 (0x00002b5606d66000)
libfui.so.1 => /opt/sun/sunstudio12.1/lib/amd64/libfui.so.1 (0x00002b560a0c5000)
libfsu.so.1 => /opt/sun/sunstudio12.1/lib/amd64/libfsu.so.1 (0x00002b560a1d6000)
/lib64/ld-linux-x86-64.so.2 (0x0000003fc5e00000)
libm.so.6 => /lib64/libm.so.6 (0x00002b560a643000)
libmtsk.so.1 => not found
libpthread.so.0 => /lib64/libpthread.so.0 (0x00002b560a8f0000)but if i use LD_LIBRARY_PATH:
( setenv LD_LIBRARY_PATH /opt/sun/sunstudio12.1/rtlibs/amd64 ; ldd /mnt/PELICANS/PelicansTest/lib/octopus-CC/opt2//../libpel2.so )
libCstd.so.1 => /opt/sun/sunstudio12.1/rtlibs/amd64/libCstd.so.1 (0x00002ba0c37a7000)
libCrun.so.1 => /opt/sun/sunstudio12.1/rtlibs/amd64/libCrun.so.1 (0x00002ba0c3b70000)
libc.so.6 => /lib64/libc.so.6 (0x00002ba0c3d87000)
libz.so.1 => /usr/lib64/libz.so.1 (0x00002ba0c40df000)
libsunperf.so.3 => /opt/sun/sunstudio12.1/lib/amd64/libsunperf.so.3 (0x00002ba0c42f3000)
libfui.so.1 => /opt/sun/sunstudio12.1/lib/amd64/libfui.so.1 (0x00002ba0c7652000)
libfsu.so.1 => /opt/sun/sunstudio12.1/lib/amd64/libfsu.so.1 (0x00002ba0c7763000)
/lib64/ld-linux-x86-64.so.2 (0x0000003fc5e00000)
libm.so.6 => /lib64/libm.so.6 (0x00002ba0c7bd0000)
libmtsk.so.1 => /opt/sun/sunstudio12.1/rtlibs/amd64/libmtsk.so.1 (0x00002ba0c7e54000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00002ba0c7fc5000)
librt.so.1 => /lib64/librt.so.1 (0x00002ba0c81e0000)
libdl.so.2 => /lib64/libdl.so.2 (0x00002ba0c83ea000)gerard -
Sunstudio startup script not working
The environment is Ubuntu Linux 5.04 with Java 1.5.0_01 installed.
The awk script that checks the Java Version has some problems on this distribution.
Enabled set -x in the sunstudio shell script, here are the relevant lines:
+++ '[' -x /shares/free/opt/jdk1.5.0_01/bin/java ']'
+++ /shares/free/opt/jdk1.5.0_01/bin/java -version
+++ /usr/bin/awk -f /opt/sun/sunstudio10u1/prod/scripts/ver.awk
awk: run time error: regular expression compile failed (missing operand)
"| |(|)|,|
FILENAME="" FNR=0 NR=0
++ ver=
+++ /opt/sun/sunstudio10u1/prod/scripts/jdk_compare 1.3.9 ''
++ gettext -e 'Warning: Ignoring JDK_HOME. Sun Studio does not run with this\nversion of the J2SE.\n'
+++ '[' -x /shares/free/opt/jdk1.5.0_01/bin/java ']'
+++ /usr/bin/awk -f /opt/sun/sunstudio10u1/prod/scripts/ver.awk
+++ /shares/free/opt/jdk1.5.0_01/bin/java -version
awk: run time error: regular expression compile failed (missing operand)
"| |(|)|,|
FILENAME="" FNR=0 NR=0
++ ver=
+++ /opt/sun/sunstudio10u1/prod/scripts/jdk_compare 1.3.9 ''
++ for d in '"${JDKLIST[@]}"'
++ '[' -x /usr/j2se/bin/java -a -x /usr/j2se/bin/javac ']'The rest of the utilities seem to work correctly, netbeans starts up correctly.The awk script was written and tested on various
platforms, both
Linux and Solaris. I'm not familiar with Ubuntu Linux
and thats not
one of the platforms we tested on.=====
www.ubuntulinux.org
Could you do several things for me?
First, could you do some sanity testing on
/usr/bin/awk. Just
enough to make sure its working in other uses. If it
does, can
you see if its a symlink to gawk? If so, what version
of gawk
(you can do "awk --version" if it is). On the Linux
platform I have
(SuSE Linux Enterprise System 9), I get "GNU Awk
3.1.3". If you
can send me the exact version of awk, I might be able
to come
up with an alternative.=====
The installed awk was a symlink to mawk.
I installed also the GNU awk and that fixed it.
You might also be able to fix this. Do you have write
permissions
on your sunstudio install? If you look at the ver.awk
script it has
a comment giving an alternate value of the FS which
is easier
to read, but doesn't work on Solaris (where
/usr/bin/awk isn't
GNU awk). Since we have to work with both GNU and
Solaris
awk, I didn't use this alternate. But if that works
on your system
its a simple way of getting you going.
Of course, you're still not on a supported Linux
platform, so there
are still no guarantees you won't run into other
problems. These
would most likely be in some of the native
executables the IDE
uses (such as dbx and dmake). The core parts of the
IDE (all
Java parts), should work fine on most any Linux
platform.=====
Encountered the problem with dbx dependency to libc:
$ dbx
dbx: /lib/tls/i686/cmov/libc.so.6: version `GLIBC_2.3.4' not found (required by dbx)
$ ldd -v /lib/tls/i686/cmov/libc.so.6
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
Version information:
/lib/tls/i686/cmov/libc.so.6:
ld-linux.so.2 (GLIBC_2.3) => /lib/ld-linux.so.2
ld-linux.so.2 (GLIBC_2.1) => /lib/ld-linux.so.2
ld-linux.so.2 (GLIBC_2.0) => /lib/ld-linux.so.2
ld-linux.so.2 (GLIBC_PRIVATE) => /lib/ld-linux.so.2
$ ldd /opt/sun/sunstudio10u1/bin/dbx
/opt/sun/sunstudio10u1/bin/dbx: /lib/tls/i686/cmov/libc.so.6: version `GLIBC_2.3.4' not found (required by /opt/sun/sunstudio10u1/bin/dbx)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7fce000)
libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0xb7f14000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7ef3000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7ee7000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7dba000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0xb7feb000)
Was there a reason why this version of GNU libc was chosen as minimal requirementl!?
Maybe you are looking for
-
Embedded audio player in Internet Explorer
I have created a webpage that has several sound files on it that people can choose which clip to listen to by pressing play (pause, fast forward, etc.) on the plugin control panel. In firefox and chrome, the sound files come up with the plugin contro
-
How to extend wireless to Branch keeping it secure
Hello everyone I would like to discuss an implementation scenario here. Let me define my current wireless network scenario at Head Office first. At Head Office Access points 3600 series WLC 5500 series Cisco ISE 3415 K9 SSIDs = 2 1. Company wireless
-
Word to Frame hyperlick wierdness
I just spent a day fixing a problem that shouldn't have happened. I have a project glossary that was created in Microsoft Word 2007. It consists of definitions for acrnyms and a list of terms which are linked to their definitions in our departmental
-
Cannot change the open item management setting
When I try to switch the open item management specification on or off, a message comes up telling me that if I want to switch this function on, I must create a new account with the correct setting and use it to make a transfer posting of existing ite
-
Live shape layer properties illustrator cc is missing
Dear Sir live shape layer properties illustrator cc is missing advice me Thanks