Author Topic: [SOLVED] Compilation issues in Mac OSX el Capitan  (Read 809 times)

Rafael Bravo

  • Newbie
  • *
  • Posts: 3
[SOLVED] Compilation issues in Mac OSX el Capitan
« 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



« Last Edit: May 05, 2016, 09:14:47 PM by Miguel Angel Celigueta »

Ignasi de Pouplana

  • Newbie
  • *
  • Posts: 21
Re: Compilation issues in Mac OSX el Capitan
« Reply #1 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?

Rafael Bravo

  • Newbie
  • *
  • Posts: 3
Re: Compilation issues in Mac OSX el Capitan
« Reply #2 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!