GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » Fairroot » External Packages » FairSoft not compiling due to gfortran problems in mac OS
FairSoft not compiling due to gfortran problems in mac OS [message #20862] Mon, 17 April 2017 11:28 Go to next message
Hector Alvarez Pol is currently offline  Hector Alvarez Pol
Messages: 21
Registered: July 2015
Location: Univ. Santiago de Compost...
occasional visitor
From: *usc.es
Hello everyone,

I have updated to macOS Sierra 10.12.4 (16E195) with XCode 8.3.1 (8E1000a).

Compiling FAIRSoft, either versions mar17 or present master, return with a problem compiling pythia6 (see the error at the
end of the message or the complete output in the uploaded file).
The same error appears to me compiling ROOT when gfortran is needed (I was able to compile ROOT with -Dfortran=OFF option).

I have tested both ROOT and FAIRSoft with gfortran from the gcc installed by homebrew:

gcc version 6.3.0 (Homebrew GCC 6.3.0_1)


and compiling directly gcc from the gnu source, after removing the homebrew gcc:

fpvieira:~ hapol$ gfortran -v
Usando especificaciones internas.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/usr/local/gcc-6.3.0/libexec/gcc/x86_64-apple-darwin16.5.0/6.3.0/lto-wrapper
Objetivo: x86_64-apple-darwin16.5.0
Configurado con: ../configure --prefix=/usr/local/gcc-6.3.0 --enable-checking=release --with-gmp=/usr/local/Cellar/gmp/ --with-mpfr=/usr/local/Cellar/mpfr/ --with-mpc=/usr/local/Cellar/libmpc/ --enable-languages=c,c++,fortran --with-isl=/usr/local/Cellar/isl/ --program-suffix=-6.3.0
Modelo de hilos: posix
gcc versión 6.3.0 (GCC)


both with the same (unsuccess) result.

Any idea?

Thank you for your support.

Regards,

Undefined symbols for architecture x86_64:
  "__gfortran_compare_string", referenced from:
      _pyonof_ in pythia6416.f.o
      _pyslha_ in pythia6416.f.o
      _pytune_ in pythia6416.f.o
      _pygive_ in pythia6416.f.o
      _pygive_.constprop.10 in pythia6416.f.o
      _pyoper_ in pythia6416.f.o
  "__gfortran_concat_string", referenced from:
      _pyplot_ in pythia6416.f.o
      _pyinbm_ in pythia6416.f.o
      _pylist_ in pythia6416.f.o
      _pybook_ in pythia6416.f.o
      _pyonof_ in pythia6416.f.o
      _pystat_ in pythia6416.f.o
      _pyinre_ in pythia6416.f.o
      ...
  "__gfortran_pow_i4_i4", referenced from:
      _pyplot_ in pythia6416.f.o
      _pytabu_ in pythia6416.f.o
      _pymihk_ in pythia6416.f.o
  "__gfortran_st_backspace", referenced from:
      _pyrget_ in pythia6416.f.o
      _pyrset_ in pythia6416.f.o
  "__gfortran_st_close", referenced from:
      _pylhef_ in pythia6416.f.o
      _tpythia6_close_fortran_file_ in tpythia6_called_from_cc.F.o
  "__gfortran_st_open", referenced from:
      _tpythia6_open_fortran_file_ in tpythia6_called_from_cc.F.o
  "__gfortran_st_read", referenced from:
      _upevnt_ in pythia6416.f.o
      _pysugi_ in pythia6416.f.o
      _upinit_ in pythia6416.f.o
      _pyonof_ in pythia6416.f.o
      _pyslha_ in pythia6416.f.o
      _pygive_ in pythia6416.f.o
      _pygive_.constprop.10 in pythia6416.f.o
      ...
  "__gfortran_st_read_done", referenced from:
      _upevnt_ in pythia6416.f.o
      _pysugi_ in pythia6416.f.o
      _upinit_ in pythia6416.f.o
      _pyonof_ in pythia6416.f.o
      _pyslha_ in pythia6416.f.o
      _pygive_ in pythia6416.f.o
      _pygive_.constprop.10 in pythia6416.f.o
      ...
  "__gfortran_st_rewind", referenced from:
      _pyslha_ in pythia6416.f.o
      _pylhef_ in pythia6416.f.o
  "__gfortran_st_write", referenced from:
      _pyxxz6_ in pythia6416.f.o
      _pypile_.part.0 in pythia6416.f.o
      _pyplot_ in pythia6416.f.o
      _pystop_ in pythia6416.f.o
      _pyckbd_.part.2 in pythia6416.f.o
      _pyevwt_ in pythia6416.f.o
      _pykcut_ in pythia6416.f.o
      ...
  "__gfortran_st_write_done", referenced from:
      _pyxxz6_ in pythia6416.f.o
      _pypile_.part.0 in pythia6416.f.o
      _pyplot_ in pythia6416.f.o
      _pystop_ in pythia6416.f.o
      _pyckbd_.part.2 in pythia6416.f.o
      _pyevwt_ in pythia6416.f.o
      _pykcut_ in pythia6416.f.o
      ...
  "__gfortran_stop_string", referenced from:
      _pystop_ in pythia6416.f.o
      _pyupev_ in pythia6416.f.o
  "__gfortran_string_len_trim", referenced from:
      _upevnt_ in pythia6416.f.o
      _pyinbm_ in pythia6416.f.o
      _upinit_ in pythia6416.f.o
      _pylist_ in pythia6416.f.o
      _pyonof_ in pythia6416.f.o
      _pyinpr_ in pythia6416.f.o
      _pyslha_ in pythia6416.f.o
      ...
  "__gfortran_transfer_array_write", referenced from:
      _pythrg_ in pythia6416.f.o
      _pymihk_ in pythia6416.f.o
  "__gfortran_transfer_character", referenced from:
      _upevnt_ in pythia6416.f.o
      _upinit_ in pythia6416.f.o
      _pyslha_ in pythia6416.f.o
      _pylhef_ in pythia6416.f.o
      _pyupda_ in pythia6416.f.o
      _pydump_ in pythia6416.f.o
  "__gfortran_transfer_character_write", referenced from:
      _pyxxz6_ in pythia6416.f.o
      _pyplot_ in pythia6416.f.o
      _pyckbd_.part.2 in pythia6416.f.o
      _upevnt_ in pythia6416.f.o
      _pyinbm_ in pythia6416.f.o
      _pysugi_ in pythia6416.f.o
      _pyapps_ in pythia6416.f.o
      ...
  "__gfortran_transfer_integer", referenced from:
      _upevnt_ in pythia6416.f.o
      _pysugi_ in pythia6416.f.o
      _upinit_ in pythia6416.f.o
      _pyonof_ in pythia6416.f.o
      _pyslha_ in pythia6416.f.o
      _pygive_ in pythia6416.f.o
      _pygive_.constprop.10 in pythia6416.f.o
      ...
  "__gfortran_transfer_integer_write", referenced from:
      _pyplot_ in pythia6416.f.o
      _pystop_ in pythia6416.f.o
      _upevnt_ in pythia6416.f.o
      _pysugi_ in pythia6416.f.o
      _upinit_ in pythia6416.f.o
      _pylogo_ in pythia6416.f.o
      _pylist_ in pythia6416.f.o
      ...
  "__gfortran_transfer_real", referenced from:
      _upevnt_ in pythia6416.f.o
      _pysugi_ in pythia6416.f.o
      _upinit_ in pythia6416.f.o
      _pyslha_ in pythia6416.f.o
      _pygive_ in pythia6416.f.o
      _pygive_.constprop.10 in pythia6416.f.o
      _pylhef_ in pythia6416.f.o
      ...
  "__gfortran_transfer_real_write", referenced from:
      _pyxxz6_ in pythia6416.f.o
      _pypile_.part.0 in pythia6416.f.o
      _pyplot_ in pythia6416.f.o
      _pyinbm_ in pythia6416.f.o
      _pytbdy_ in pythia6416.f.o
      _pylist_ in pythia6416.f.o
      _pypdfu_ in pythia6416.f.o
      ...
ld: symbol(s) not found for architecture x86_64
collect2: error: ld devolvió el estado de salida 1
make[2]: *** [libPythia6.dylib] Error 1
make[1]: *** [CMakeFiles/Pythia6.dir/all] Error 2
make: *** [all] Error 2
cp: libPythia6.dylib: No such file or directory
ls: libPythia6.dylib: No such file or directory
**** Checking libraries in /Users/hapol/CODES/FAIRSOFT/install_nov15p3/lib ****
Library libpythia6.dylib is 32bit, but system is 64bit
*** ERROR: Pythia6 could not be created.
*** End installation of external packages with Errors***
  • Attachment: output.txt
    (Size: 16.43KB, Downloaded 424 times)
Re: FairSoft not compiling due to gfortran problems in mac OS [message #20881 is a reply to message #20862] Tue, 25 April 2017 17:16 Go to previous messageGo to next message
Dmytro Kresan is currently offline  Dmytro Kresan
Messages: 166
Registered: June 2004
first-grade participant
From: *dyn.telefonica.de
Hi Hector,

This issue was fixed in the mar17 release (hot fixes), but not yet in the master branch.
I was not able to reproduce your problem with the same tools versions.

Have you tried to download the tarball with mar17 from GitHub again and to do a fresh installation?

Best regards,
Dima
Re: FairSoft not compiling due to gfortran problems in mac OS [message #20896 is a reply to message #20881] Wed, 26 April 2017 20:58 Go to previous message
Hector Alvarez Pol is currently offline  Hector Alvarez Pol
Messages: 21
Registered: July 2015
Location: Univ. Santiago de Compost...
occasional visitor
From: *usc.es
Hi Dmytro,

thank you very much for the tip. It's working now with a fresh mar17.

*** End installation of external packages without Errors***

Best regards,
Previous Topic: Millepede could not be created.
Next Topic: Problem with installing FairSoft
Goto Forum:
  


Current Time: Fri Mar 29 06:34:07 CET 2024

Total time taken to generate the page: 0.00803 seconds