[aspect-devel] [deal.II] Re: deal.ii problem during aspect compile, static libs

Bruno Turcksin bruno.turcksin at gmail.com
Wed Jul 2 15:06:41 PDT 2014


Thorsten,

I got an error similar to this one before:

> /usr/bin/ld: dynamic STT_GNU_IFUNC symbol `strcmp' with pointer 
> equality in `/usr/lib/../lib64/libc.a(strcmp.o)' can not be used when 
> making an execut
> able; recompile with -fPIE and relink with -pie
> collect2: error: ld returned 1 exit status
> make[2]: *** [aspect] Error 1
> make[1]: *** [CMakeFiles/aspect.dir/all] Error 2
> make: *** [all] Error 2
>
using -fPIE and -pie did not help. On the system I was using, Trilinos 
was compiled both as static library and as dynamic library. Now the 
problem is that cmake reads all the flags it needs for Trilinos from a 
file called TrilinosConfig.cmake. In this file, they are references to 
others libraries which in my case were dynamic libraries. When you use a 
static build, cmake will use a static library over a dynamic library if 
both exist, this caused the conflict in my case. The problem is when you 
compile deal.II but it doesn't appear until you try to create an 
executable. So you should check in the file detailed.log that you are 
not using any shared library.

Best,

Bruno


More information about the Aspect-devel mailing list