Trying to compile on Linux Ubuntu 12.04 LTS I get the following:
[mpi] Building mpi/gmkx3ftk3tz2, follow log with:
[mpi] tail -f /home/archon/.hashdist/tmp/mpi-gmkx3ftk3tz2/_hashdist/build.log
[mpi|ERROR] Command '[u'/bin/bash', '_hashdist/build.sh']' returned non-zero exit status 1
[mpi|ERROR] command failed (code=1); raising
The error is:
2015/10/21 13:27:14 - INFO: [package:run_job] checking whether fort77 accepts the FLIBS found by autoconf... no
2015/10/21 13:27:14 - INFO: [package:run_job] checking for valid entries in FLIBS...
2015/10/21 13:27:14 - INFO: [package:run_job] checking whether gcc links with FLIBS found by autoconf... yes
2015/10/21 13:27:14 - INFO: [package:run_job] checking whether Fortran 77 and C objects are compatible... no
2015/10/21 13:27:14 - INFO: [package:run_job] checking for file... file
2015/10/21 13:27:14 - INFO: [package:run_job] configure: error: Could not determine a way to link a Fortran test program!
2015/10/21 13:27:14 - INFO: [package:run_job] checking for linker for Fortran main program...
2015/10/21 13:27:14 - ERROR: [package:run_job] Command '[u'/bin/bash', '_hashdist/build.sh']' returned non-zero exit status 1
2015/10/21 13:27:14 - ERROR: [package:run_job] command failed (code=1); raising
This is because it doesn't automatically link with -lgfortran. It should, shouldn't it?
If I modify manually the script
/home/archon/.hashdist/tmp/mpi-gmkx3ftk3tz2/_hashdist/build.sh
adding FC=gfortran, F77=gfortran, CC=gcc, CXX=g++, LIBS="-lgfortran"
(by default it selects Intel fortran compiler)
then the whole process will go on up to the
make install
where it will complain that there are not privileges to install some mpl.so library
or something similar. But even if I modify the build.sh then I have to change dir
in /home/archon/.hashdist/tmp/mpi-gmkx3ftk3tz2/ and run
$ sh _hasdist/build.sh
It doesn't work if I rerun fenics-install.sh
Ho can I instruct the script .yaml to use mph libraries of the system?
Any ideas?