Mantis - gcc4g95rt
Viewing Issue Advanced Details
3846 regular use major always 2009-08-11 18:53 2011-12-04 12:09
james  
pfelecan  
normal  
closed  
won't fix  
none    
none  
0003846: gfortran does not set RPATH to libgfortran
gfortran does not set RPATH to libgfortran

$ cat main.f
       end
$ gfortran main.f
$ ./a.out
ld.so.1: a.out: fatal: libgfortran.so.3: open failed: No such file or directory
zsh: killed ./a.out


Workaround:
$ gfortran -R/opt/csw/gcc4/lib main.f
$ ./a.out
Issue History
2009-08-11 18:53 james New Issue
2009-10-19 08:16 ghenry Note Added: 0006876
2011-12-04 12:08 pfelecan Status new => assigned
2011-12-04 12:08 pfelecan Assigned To => pfelecan
2011-12-04 12:09 pfelecan Note Added: 0009453
2011-12-04 12:09 pfelecan Status assigned => closed
2011-12-04 12:09 pfelecan Resolution open => won't fix

Notes
(0006876)
ghenry   
2009-10-19 08:16   
the problem also exists when compiling 64 bits on amd64 (on linux, people don't have to set anything):
% (setenv LD_LIBRARY_PATH /opt/csw/gcc4/lib;./BENCHENCOURS)
ld.so.1: BENCHENCOURS: fatal: /opt/csw/gcc4/lib/libgfortran.so.3: wrong ELF class: ELFCLASS32
Killed

Any chance to have a mecanism that recognizes the system? Actually that's the case with sunstudio, unfortunately, few people in scientific area are using it
So having a functionnal gfortran is important to convince people use solaris platforms.
(0009453)
pfelecan   
2011-12-04 12:09   
1. I'm no more the package manager
2. there is work in progress to deliver a new 4th branch GCC suite