GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » Fairroot » External Packages » Millepede could not be created.
Re: Millepede could not be created. [message #19820 is a reply to message #19804] Mon, 31 October 2016 15:08 Go to previous messageGo to previous message
Florian Uhlig is currently offline  Florian Uhlig
Messages: 424
Registered: May 2007
first-grade participant
From: *gsi.de
Hi Jarok,

the problem is due to the linkage of the pede executable.

Quote:

gcc -Wall -O3 \
-o pede mpdef.o mpdalc.o mpmod.o mpbits.o mpqldec.o mptest1.o mptest2.o mille.o mpnum.o mptext.o mphistab.o minresDataModule.o minresModule.o minresqlpDataModule.o minresqlpBlasModule.o minresqlpModule.o randoms.o vertpr.o linesrch.o Dbandmatrix.o pede.o readc.o -lgfortran -lm -lgomp -L= -lz
/usr/bin/ld: no se puede encontrar -lgfortran
collect2: error: ld returned 1 exit status
Makefile:115: fallo en las instrucciones para el objetivo 'pede'
make: *** [pede] Error 1


Somehow gcc can not find the corresponding gfortran library.

Looking at the following compilation unit for me it looks like that there is a mismatch between the fortran and c++ versions.

Quote:

-- The Fortran compiler identification is GNU 5.4.0
-- Check for working Fortran compiler: /usr/bin/gfortran
-- Check for working Fortran compiler: /usr/bin/gfortran -- works
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Checking whether /usr/bin/gfortran supports Fortran 90
-- Checking whether /usr/bin/gfortran supports Fortran 90 -- yes
-- The C compiler identification is GNU 4.9.3
-- The CXX compiler identification is GNU 4.9.3


Could it be that you have only installed the c and c++ compilers of gcc version 4.9.3 but not the fortran compiler?

Ciao

Florian
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: install_cmake.sh script does not recognize installed cmake correctly
Next Topic: FairSoft not compiling due to gfortran problems in mac OS
Goto Forum:
  


Current Time: Fri Mar 29 14:23:02 CET 2024

Total time taken to generate the page: 0.00655 seconds