[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bgl-discuss] blrts_xlc and configure




On Tue, 8 Feb 2005, Satish Balay wrote:

> On Tue, 8 Feb 2005, Anthony Chan wrote:
> 
> > chan/ts_C> a.out
> > fopen does not create any file.
> > 
> > Without linking with rts libraries, the above program works.  
> 
> Its not the 'rts' libraries. blrts_xlc doesn't use any rts libraries.
> And this example code gives the same error with it. [and the gcc cross
> compiler]
> 
> login2 balay/junk> /bgl/BlueLight/DRV521_2004-050113/ppc/blrts-gnu/bin/powerpc-bgl-blrts-gnu-gcc file-test.c
> login2 balay/junk> ./a.out
> fopen does not create any file.
> login2 balay/junk> blrts_xlc file-test.c
> login2 balay/junk> ./a.out
> fopen does not create any file.
> login2 balay/junk>
> 

I determine if a compiler is linked with rts libraries by looking if there 
is any rts symbols. 

chan/ts_C> blrts_xlc ts_fopen.c
chan/ts_C> nm a.out | grep -i rts
00123f98 t rts_brk
....
chan/ts_C> a.out
fopen does not create any file.

chan/ts_C> xlc ts_fopen.c
chan/ts_C> nm a.out | grep -i rts
chan/ts_C> a.out

chan/ts_C> gcc ts_fopen.c
chan/ts_C> nm a.out | grep -i rts
chan/ts_C> a.out

chan/ts_C> ~balay/bin/mpicc.gnu ts_fopen.c
chan/ts_C> nm a.out | grep -i rts
00123f98 t rts_brk
....
chan/ts_C> a.out
fopen does not create any file.

gcc in my path is from /usr/bin/gcc which is different from the one 
from /bgl. /bgl/...-gcc when used as linker does produce rts symbols
as what you have found. 

A.Chan

- --------------------------------------------------------------------
To add or remove yourself from this mailing list, use the 'notifyme'
command on any BGL machine. To remove: notifyme -n, to add: notifyme -y.