<br clear="all">Hello everybody at Beowulf: this is a rather silly question, but it<br>giving me a long lasting headache, so maybe someone here can help me. I<br>am trying to compile my scalapack application without using the ACML
<br>3.1.0, that has some bugs and problems with compilers, besides some<br>other problems. So, I am trying to compile from source my libraries.<br>mpich 1.2.7 compiles with no problem with<br>+++++++++++++++<br>env CFLAGS="-fast" CXXFLAGS="-fast" FFLAGS="-fast" F90FLAGS="-fast"
<br>LDFLAGS="-fast" \<br> OPTFLAGS="-fast"  CC="pgcc" CXX="pgCC" F90="pgf90"  FC="pgf77"<br>CPP="pgCC -E"<br>+++++++++++++++<br>from PGI guide, and<br>
++++++++++++<br>/configure --enable-f77 --enable-f90 --prefix=/usr/local/mpich-1.2.7<br>--enable-g --enable-debug --enable-dlast -rsh=ssh<br>++++++++++++<br>to configure. The tests ran ok. Then I try to compile BLACS from source
<br>with the attached Bmake.inc, and when I try to run the BLACS tests, I<br>got this:<br>++++++++++++<br>root@monge:/usr/local/BLACS-pgi/TESTING# make<br>pgf77  -o /usr/local/BLACS-pgi/TESTING/EXE/xFbtest_MPI-LINUX-0<br>
blacstest.o btprim_MPI.o<br>tools.o /usr/local/BLACS-pgi/LIB/blacsF77init.a /usr/local/BLACS-pgi/LIB/blacs.a /usr/local/BLACS-pgi/LIB/blacsF77init.a /usr/local/mpich-1.2.7//lib//libmpich.a <br>btprim_MPI.o: In function `btsetup_':btprim_MPI.f:(.text+0x1c):
<br>undefined reference to `mpi_initialized_'<br>:btprim_MPI.f:(.text+0x2f): undefined reference to `mpi_init_'<br>:btprim_MPI.f:(.text+0x60): undefined reference to `mpi_comm_dup_'<br>btprim_MPI.o: In function `ibtmyproc_':btprim_MPI.f:(.text+0xa7):
<br>undefined reference to `mpi_comm_rank_'<br>btprim_MPI.o: In function `ibtnprocs_':btprim_MPI.f:(.text+0xe7):<br>undefined reference to `mpi_comm_size_'<br>btprim_MPI.o: In function `btsend_':btprim_MPI.f:(.text+0x1ef):
<br>undefined reference to `mpi_send_'<br>:btprim_MPI.f:(.text+0x255): undefined reference to `mpi_send_'<br>btprim_MPI.o: In function `btrecv_':btprim_MPI.f:(.text+0x328):<br>undefined reference to `mpi_recv_'<br>btprim_MPI.o: In function `ibtsizeof_':btprim_MPI.f:(.text+0x376):
<br>undefined reference to `mpi_initialized_'<br>:btprim_MPI.f:(.text+0x38c): undefined reference to `mpi_init_'<br>+++++++++++<br>what is clearly a name mangling problem, but I was not able to solve<br>it. <br>So I am not sure that the libraries are compiled correctly or are
<br>working, and I will not dare to go further to compiling scalapack<br>without checking that BLACS is ok. <br><br>Any ideas?<br><br>Thank you very much!<br><br> <br>-----------------------------------------------------------
<br>Ivan S. P. Marin<br>Laboratório de Física Computacional<br><a href="http://lfc.ifsc.usp.br">lfc.ifsc.usp.br</a><br>Instituto de Física de São Carlos - USP<br>----------------------------------------------------------