Kratos Multiphysics Forums

Kratos installation/compilation issues => Compilation => Topic started by: Rafael Bravo on February 13, 2016, 12:30:38 AM

Title: [SOLVED] Compilation issues in Mac OSX el Capitan
Post by: Rafael Bravo on February 13, 2016, 12:30:38 AM
Hello all:


I followed all the compilation steps in the wiki for OSX El Capitan.

I think that some parts of the code (KratosMeshingApplication and ExternalSolversApplication) have compatibility problems with 64 bits. Could you solve this issue?.

Thank you in advance.

Regards

Rafael Bravo
University of Granada


I obtain the following error:
[ 30%] Built target KratosMeshingApplication
Undefined symbols for architecture x86_64:
  "_coocsr_", referenced from:
      _coocsc in libitsol.a(sets.c.o)
  "_csrcsc_", referenced from:
      _readhb_c in libitsol.a(auxill.c.o)
      _readhb_2 in libitsol.a(auxill.c.o)
  "_readmtc_", referenced from:
      _readhb_c in libitsol.a(auxill.c.o)
      _readhb_2 in libitsol.a(auxill.c.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [applications/ExternalSolversApplication/KratosExternalSolversApplication.so] Error 1
make[1]: *** [applications/ExternalSolversApplication/CMakeFiles/KratosExternalSolversApplication.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Scanning dependencies of target KratosPFEMApp


[ 44%] Linking CXX shared library KratosExternalSolversApplication.so
ld: warning: path '/Library/Frameworks/Python.framework/Versions/3.5/Python' following -L not a directory
ld: warning: path '/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib' following -L not a directory
ld: warning: path '/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib' following -L not a directory
Undefined symbols for architecture x86_64:
  "_coocsr_", referenced from:
      _coocsc in libitsol.a(sets.c.o)
  "_csrcsc_", referenced from:
      _readhb_c in libitsol.a(auxill.c.o)
      _readhb_2 in libitsol.a(auxill.c.o)
  "_readmtc_", referenced from:
      _readhb_c in libitsol.a(auxill.c.o)
      _readhb_2 in libitsol.a(auxill.c.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [applications/ExternalSolversApplication/KratosExternalSolversApplication.so] Error 1
make[1]: *** [applications/ExternalSolversApplication/CMakeFiles/KratosExternalSolversApplication.dir/all] Error 2
make: *** [all] Error 2



Title: Re: Compilation issues in Mac OSX el Capitan
Post by: Ignasi de Pouplana on February 13, 2016, 01:10:48 AM
Hello Rafael,

I am not sure why you obtained that compilation error, but I have just compiled both the KratosMeshingApplication and the ExternalSolversApplication in my mac without an error.

Could you tell us which version of python, boost and CMake you are using? And which applications you are compiling?
Title: Re: Compilation issues in Mac OSX el Capitan
Post by: Rafael Bravo on February 13, 2016, 04:48:43 PM
Thank you Ignasi. I didn't write -DEXCLUDE_ITSOL=ON  in the release_configure.sh. Now it works fine.

Thank you!