Welcome, Guest
Username: Password: Remember me

TOPIC: crash when using a fortran file (couldn't link your exe)

crash when using a fortran file (couldn't link your exe) 2 years 9 months ago #39821

  • shivanesh.rao
  • shivanesh.rao's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 37
  • Thank you received: 1
Hi all,

I was hoping that someone has come across my issue.

I have installed v8p1r0 a while back and compiled using the instructions on this site (wiki.opentelemac.org/doku.php?id=installation_on_linux). I did the tests, i.e., running compile_telemac.py with no errors.

The installation seems to run fine, i.e., I'm getting reasonable results when doing a simple wind experiment on my domain using 8 cores on a fedora OS on a HP z800.

The problem is when I activate drogues by adding a fortran file in the CAS (with the subroutine flot3d). The error is:
gfortran: error:/lib/libmetis.a: No such file or directory found
Using built-in specs
COLLECT_GCC=/usr/bin/gfortran
...
...
...
Thread model: posix
gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC)
Traceback (most recent call last):
File "/home/srao/telemac/v8p1r0/scripts/python3/telemac3d.py", line 7, in <module>
main('telemac3d')
File "/home/srao/telemac/v8p1r0/scripts/python3/runcode.py", line 272, in main
run_study(cas_file, code_name, options)
File "/home/srao/telemac/v8p1r0/scripts/python3/execution/run_cas.py", line 157, in run_study
run_local_cas(my_study, options)
File "/home/srao/telemac/v8p1r0/scripts/python3/execution/run_cas.py", line 43, in run_local_cas
my_study.compile_exe()
File "/home/srao/telemac/v8p1r0/scripts/python3/execution/study.py", line 332, in compile_exe
self.cfg, self.code_name)
File "/home/srao/telemac/v8p1r0/scripts/python3/execution/process.py", line 641, in process_executable
str(code)+').\n '+tail)
utils.exceptions.TelemacException: Could not link your executable (runcode=1).

... The following command failed for the reason in the listing
mpif90 -fPIC -fconvert=big-endian -frecord-marker=4 -v -lpthread -lm -o "/home/srao/telemac/v8p1r0/examples/telemac3d/particles/Run/out_user_fortran" /home/srao/telemac/v8p1r0/examples/telemac3d/particles/Run/user_fortran/user_flot3d.o /home/srao/telemac/v8p1r0/builds/fedgfmpich2/lib/telemac3d.a /home/srao/telemac/v8p1r0/builds/fedgfmpich2/lib/gaia4telemac3d.a
...
...
...
/home/srao/telemac/v8p1r0/builds/fedgfmpich2/lib/special4telemac3d.a
$METISHOME/lib/libmetis.a

Looks like it can't find: error:/lib/libmetis.a: No such file or directory found.

I definitely installed metis and I can see the file on
/home/srao/telemac/v8p1r0/metis/lib/libmetis.a

Just wondering if I am missing something. I have attached the pysource file as well.

Any guidance appreciated.

Cheers,
Shiv
The administrator has disabled public write access.

crash when using a fortran file (couldn't link your exe) 2 years 9 months ago #39823

  • shivanesh.rao
  • shivanesh.rao's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 37
  • Thank you received: 1
# This file is a template for a Linux environment file
# running "source pysource.template.sh" will position all
# the necessary environment variables for telemac
# To adapt to your installation replace word <word> by their local value
###
### TELEMAC settings
###
# Path to telemac root dir
export HOMETEL=/home/srao/telemac/v8p1r0
# Adding python scripts to PATH
export PATH=$HOMETEL/scripts/python3:.:$PATH
# Configuration file
export SYSTELCFG=$HOMETEL/configs/systel.cfg
# Name of the configuration to use
export USETELCFG=fedgfmpich2
# Path to this file
export SOURCEFILE=$HOMETEL/configs/pysource.sh
### Python
# To force python to flush its output
export PYTHONUNBUFFERED='true'
### API
export PYTHONPATH=$HOMETEL/scripts/python3:$PYTHONPATH
export LD_LIBRARY_PATH=$HOMETEL/builds/$USETELCFG/wrap_api/lib:$LD_LIBRARY_PATH
export PYTHONPATH=$HOMETEL/builds/$USETELCFG/wrap_api/lib:$PYTHONPATH
###
### COMPILERS
###
# Here are a few examples for external libraries
#export SYSTEL=/data/projets/projets.002/systel.002

### MPI
#export MPIHOME=$SYSTEL/LIBRARY/mpi/ifort.10.1.008
#export PATH=$MPIHOME/bin:$PATH
#export LD_LIBRARY_PATH=$MPIHOME/lib:$LD_LIBRARY_PATH
###
### EXTERNAL LIBRARIES
###
### HDF5
#export HDF5HOME=$SYSTEL/LIBRARY/hdf5-1.8.14/arch/C9
#export LD_LIBRARY_PATH=$HDF5HOME/lib:$LD_LIBRARY_PATH
#export LD_RUN_PATH=$HDF5HOME/lib:$MEDHOME/lib:$LD_RUN_PATH
### MED
#export MEDHOME=$SYSTEL/LIBRARY/med-3.2.0/arch/C9
#export LD_LIBRARY_PATH=$MEDHOME/lib:$LD_LIBRARY_PATH
#export PATH=$MEDHOME/bin:$PATH
### MUMPS
#export MUMPSHOME=$SYSTEL/LIBRARY/mumps/gnu
#export SCALAPACKHOME=$SYSTEL/LIBRARY/scalapack/gnu
#export BLACSHOME=$SYSTEL/LIBRARY/blacs/gnu
### METIS
export METISHOME=/home/srao/telemac/v8p1r0/optionals/metis-5.1.0/build
export LD_LIBRARY_PATH=$METISHOME/lib:$LD_LIBRARY_PATH
The administrator has disabled public write access.

crash when using a fortran file (couldn't link your exe) 2 years 9 months ago #39847

  • pham
  • pham's Avatar
  • OFFLINE
  • Administrator
  • Posts: 1559
  • Thank you received: 602
Hello,

It seems that you have an issue of path for metis.

For me:
/home/srao/telemac/v8p1r0/optionals/metis-5.1.0/build and
/home/srao/telemac/v8p1r0/metis
are not the same directories, or you have created a symbolic link.

Have you succeeded in running a simple example with Fortran file, e.g. vasque.
If not, you have an installation issue and this topic should be moved in the Linux installation section.

Chi-Tuan

PS : you should now upgrade to v8p3r1 release. We are not supposed to assist for older releases...
The administrator has disabled public write access.
Moderators: pham

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.