[SCore-users-jp] score_runtime_resource (Re: How to change the results of "mpicc -link_info".)

kameyama @ pccluster.org kameyama @ pccluster.org
2002年 10月 8日 (火) 21:11:46 JST


亀山です.

In article <021008203503.M0144996 @ ushida.frl.cl.nec.co.jp> Jun USHIDA <ushida @ cj.jp.nec.com> wrotes:
> <----------- ここから
> configure:6635: checking for guile
> configure:6659: found /usr/local/bin/guile
> configure:6667: result: yes
> configure:6677: checking for guile-config
> configure:6701: found /usr/local/bin/guile-config
> configure:6709: result: yes
> configure:6970: checking if linking to guile works
> configure:6970: mpicc -o conftest -g -O2 -Wall -W -Wbad-function-cast -Wcast-
> qual -Wpointer-a
> rith -Wcast-align -pedantic -I/usr/local/include -I/usr/local/include -L/usr/
> local/lib confte
> st.c -L/usr/local/lib -lguile -ldl -lm -lfftw_mpi    -lcxml -lfftw -lm   -L/u
> sr/local/lib -lm
>  -lUfor -lfor -lFutil -lcpml -lots -L/usr/lib/gcc-lib/alpha-redhat-linux/egcs
> -2.91.66 -L/usr/
> alpha-redhat-linux/lib >&5
> /opt/score/lib/alpha-redhat-linux/libscoreusr.a(usrsetup.o): In function `set
> up':
> /usr/src/redhat/BUILD/score-3.3/scoredlib/usr/obj.alpha-redhat-linux/../usrse
> tup.c:144: undef
> ined reference to `score_runtime_resource'
> /usr/src/redhat/BUILD/score-3.3/scoredlib/usr/obj.alpha-redhat-linux/../usrse
> tup.c:144: undef
> ined reference to `score_runtime_resource'
> collect2: ld returned 1 exit status
(中略)
> 
> 上記を見ると、guile という schme の実装の動作チェックをしている箇所で、
> score_runtime_resource という関数がリンクできないがために configure が
> error で途中で停止しているようです。
> 
> Score 3.3.2 のマニュアルでは, 
> 「ユーザプログラム、あるいはランタイムライブラリに
>   よって実装されなければならないコールバック関数で,... 」
> とありますが、もともと MPICH で動かしていたプログラムなので、
> SCORE の関数を直接呼出したりはしていないはずなのです。

MPI の場合, この関数は mpi library (libmpich.a) の中にあります.
/usr/local/lib に別の mpi library があったらそちらの library が
link されてしまっているのかも知れません.

あと, SCore のコンパイルは checkpoint などの関係で static link
するのですが, guile が static link を許さない場合はそこで引っかかる
かも知れません.
そのときは,
    -nostatic
オプションをつけてみてください.

                       from Kameyama Toyohisa



SCore-users-jp メーリングリストの案内