Compile WITH_MATC fails at the linker stage

Discussion about building and installing Elmer
Post Reply
KaiMartin
Posts: 42
Joined: 02 Jun 2013, 00:07
Antispam: Yes
Location: Hannover, Germany
Contact:

Compile WITH_MATC fails at the linker stage

Post by KaiMartin »

If I try to compile elmer with "WITH_MATC" on a Debian/jessie desktop I get errors by the linker:

Code: Select all

$ make
(...snip...)
[ 84%] [ 84%] Built target CoupledNSUpdate
Built target CompressibleNS
[ 84%] Built target DCRComplexSolve
[ 84%] Built target DFTSolver
/usr/bin/ld: listheaders: TLS definition in ../../matc/src/libmatc.so section .tbss mismatches non-TLS reference in CMakeFiles/ElmerGUI.dir/vtkpost/matc.cpp.o
../../matc/src/libmatc.so: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
ElmerGUI/Application/CMakeFiles/ElmerGUI.dir/build.make:1821: recipe for target 'ElmerGUI/Application/ElmerGUI' failed
make[2]: *** [ElmerGUI/Application/ElmerGUI] Error 1
CMakeFiles/Makefile2:13788: recipe for target 'ElmerGUI/Application/CMakeFiles/ElmerGUI.dir/all' failed
make[1]: *** [ElmerGUI/Application/CMakeFiles/ElmerGUI.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 84%] Built target DistanceSolve
[ 84%] Built target DataToFieldSolver
[ 84%] Built target DivProjection
Makefile:147: recipe for target 'all' failed
make: *** [all] Error 2
Anything I can do about this?

KaiMartin
---<)kaimartin(>---
raback
Site Admin
Posts: 4812
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: Compile WITH_MATC fails at the linker stage

Post by raback »

Hi Kai

I think that this is related to the matc within ElmerGUI only. Hence it is not really needed if you don't want to apply matc within the VTK postprocessor of ElmerGUI. I think Paraview can do all the things that the build in VTK widget + matc can do.

-Peter
KaiMartin
Posts: 42
Joined: 02 Jun 2013, 00:07
Antispam: Yes
Location: Hannover, Germany
Contact:

Re: Compile WITH_MATC fails at the linker stage

Post by KaiMartin »

Hi Peter

ok, so I probably won't need MATC in the first place. Just had the ambition to "compile everything"...

This is my first serious elmer project. Will probably come back with more newbie questions.

KaiMartin
---<)kaimartin(>---
annier
Posts: 1168
Joined: 27 Aug 2013, 13:51
Antispam: Yes

Re: Compile WITH_MATC fails at the linker stage

Post by annier »

Hi Kai,
Did you succeed in installing OpenMP, OCC along with the ElmerGUI?
During my installation in Ubuntu 14.04, i had not installed them along with ElmerGUI.


Yours
Anil Kunwar
Anil Kunwar
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
KaiMartin
Posts: 42
Joined: 02 Jun 2013, 00:07
Antispam: Yes
Location: Hannover, Germany
Contact:

Re: Compile WITH_MATC fails at the linker stage

Post by KaiMartin »

annier wrote:Hi Kai,
Did you succeed in installing OpenMP, OCC along with the ElmerGUI?
Yes.
I got cmake to compile elmer with all optional components included except for two. The two exceptions are "WITH_TRILINOS" and "WITH_MATC". Matc had the build problems mentioned above. And trilinos is not available in Debian. There once was a package for trilinos. But it got removed from all repos in 2012. I did not find a specific reason. It probably was a license issue. The homepage of the projects acknowledges that some of the various licenses that apply to parts of trilinos are outright incompatible.

I don't remember to have actively installed packages for OpenMP. They were probably drawn in by some other numerical package. Looking at the list of installed packages I seem to have:
libgomp1
lib32gomp1
libc32gomp1
The version of these packages is 4.9.1-19

On the OCC side I have every package installed that starts with "liboce". In addition "oce-draw". The version of these packages is 0.15-5 . I had to add some symlinks to make the compile with elmger-gui work. See the other thread I marked as "[solved]".

These are the packages I installed to make cmake-gui happy:
gfortran
cmake-qt-gui
qt4-qmake
libqt4-dev
libvtk5-qt4-dev
python-vtk
libvtk-java;

This mini bash script does the symlink magic:

Code: Select all

  cd ../elmerfem/ElmerGUI/Application/src/ 
  for i in ../forms/*.ui ; do ln -s $i . ; echo $i; done
  cd ../../../ElmerGUItester/src  
  ln -s ../forms/mainform.ui .
  cd ../../../../build/
  make -j4 install
Hope, this hepls,

KaiMartin
Last edited by KaiMartin on 05 Mar 2015, 15:45, edited 1 time in total.
---<)kaimartin(>---
annier
Posts: 1168
Joined: 27 Aug 2013, 13:51
Antispam: Yes

Re: Compile WITH_MATC fails at the linker stage

Post by annier »

Hi Kai,
Thank you for posting a very helpful information.

Yours
Anil Kunwar
Anil Kunwar
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
Post Reply