<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Ok I figured it out, my custom-compiled Lapack did not have
dynamic libraries...</p>
<p>Sorry for the noise,</p>
<p>Aleksejs</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 08.09.2016 11:53, Aleksejs Fomins
wrote:<br>
</div>
<blockquote
cite="mid:8702e101-628e-32e9-3475-27b9bcaaed09@lspr.swiss"
type="cite">
<pre wrap="">Dear GMSH,
I have tried installing the newest GMSH from source code. First problem I encountered was when the GMSH executable failed to link due to fortran errors. Adding the -lgfortran to the C and CXX Cmake compile flags fixed the problem, and I could compile gmsh.
Then I tried compiling the shared libraries by following the instructions in README.txt. The static library (.a) compiles fine, but the shared library (.so) throws the following error
-------------------------
/usr/bin/ld: /opt/extlib/lapack/3.5.0/gcc/5.2.0/lib/liblapack.a(dgeev.f.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
-------------------------
Inspecting via make VERBOSE=1 has revealed that the -fPIC is indeed passed to the compiler, twice. I tried adding it again to the C and CXX compile flags, but to no avail. See attached the output of above command.
Please help :)
Aleksejs Fomins
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
gmsh mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gmsh@onelab.info">gmsh@onelab.info</a>
<a class="moz-txt-link-freetext" href="http://onelab.info/mailman/listinfo/gmsh">http://onelab.info/mailman/listinfo/gmsh</a>
</pre>
</blockquote>
<br>
</body>
</html>