I have been unable to configure the LAM test suite, as the configure
script fails because it is unable to link the Fortran libraries from C.
This is despite the fact that I believe I have set the PATH variable to
include both the libraries from the fortran compiler and from the LAM/MPI
build and install. I include below, separated by rows of "xxxxx" some
relevant info concerning my setup. Any help would be greatly
appreciated!!
The FLIBS variable is given by
~/lamtests-7.0.4$ echo $FLIBS
-L/opt/ibmcmp/xlf/8.1/lib -libxl -libxlfpmt4 -libxlfpmt4_r -libxlfpmt8_r
-libxlfpmt8 -libxlfopt -libxlf90 -libxlf90_r -libxlfmath -libxlfpad
-libxlfpad_r -L/usr/local/lib -llamf77mpi -lmpi -impi -liblam -liblammpi++
-libfortran -libfortranbegin -libgmp -libiberty
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
The ./configure output in the LAM test suite is given by:
~/lamtests-7.0.4$ ./configure
Configuring LAM test suite version 7.0.4
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking build system type... powerpc-apple-darwin7.3.0
checking host system type... powerpc-apple-darwin7.3.0
checking for mpicc... yes
checking for gcc... mpicc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether mpicc accepts -g... yes
checking for mpicc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of mpicc... gcc3
checking for mpic++... yes
checking whether we are using the GNU C++ compiler... yes
checking whether mpic++ accepts -g... yes
checking dependency style of mpic++... gcc3
checking for mpif77... yes
checking whether we are using the GNU Fortran 77 compiler... no
checking whether mpif77 accepts -g... yes
checking for ranlib... ranlib
checking for mpi.h... yes
checking for MPI_Initialized in -lmpi... yes
checking if have Fortran MPI bindings... yes
checking how to get verbose linking output from mpif77... -v
checking for Fortran libraries of mpif77... -L/opt/ibmcmp/xlf/8.1/lib
-libxl -libxlfpmt4 -libxlfpmt4_r -libxlfpmt8_r -libxlfpmt8
-libxlfopt -libxlf90 -libxlf90_r -libxlfmath -libxlfpad -libxlfpad_r
-L/usr/local/lib -llamf77mpi
-lmpi -impi -liblam -liblammpi++ -libfortran -libfortranbegin -libgmp
-libiberty
checking for dummy main to link with Fortran libraries... unknown
configure: error: linking to Fortran libraries from C fails
See `config.log' for more details.
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
The 'config.log' gives the relevant output that:
configure:4587: mpicc -o conftest conftest.c -L/opt/ibmcmp/xlf/8.1/lib
-libxl -libxlfpmt4 -libxlfpmt4_r -libxlfpmt8_r -libxlfpmt8
-libxlfopt -libxlf90 -libxlf90_r -libxlfmath -libxlfpad -libxlfpad_r
-L/usr/local/lib -llamf77mpi
-lmpi -impi -liblam -liblammpi++ -libfortran -libfortranbegin -libgmp
-libiberty >&5
ld: can't locate file for: -libxl
mpicc: No such file or directory
configure:4593: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define LAMTEST_MAJOR_VERSION 7
| #define LAMTEST_MINOR_VERSION 0
| #define LAMTEST_RELEASE_VERSION 4
| #define LAMTEST_ALPHA_VERSION 0
| #define LAMTEST_BETA_VERSION 0
| #define LAMTEST_CVS_VERSION 0
| #define LAMTEST_VERSION "7.0.4"
| #define LAMTEST_ARCH "powerpc-apple-darwin7.3.0"
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| /* end confdefs.h. */
| #define F77_DUMMY_MAIN _main
| #ifdef F77_DUMMY_MAIN
|
| # ifdef __cplusplus
| extern "C"
| # endif
| int F77_DUMMY_MAIN() { return 1; }
|
| #endif
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:4627: result: unknown
configure:4647: error: linking to Fortran libraries from C fails
See `config.log' for more details.
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
This suggests that the directory containing -libxl is incorrectly
specified, but I have checked the actual path and it appears to be ok. I
also looked at the command "mpicc: No such file or directory", but found
that it too seemed properly given
%which mpicc
/usr/local/bin/mpicc
Any help running the ./configure script in the LAM test suite would be
greatly appreciated!!
Greg Burton
---------------------------------
|