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

Thorsten Becker twb at usc.edu
Wed Jul 2 15:18:07 PDT 2014


Thanks much, we'll check that!

Thorsten W Becker - USC
http://geodynamics.usc.edu/~becker


On Thu, Jul 3, 2014 at 12:06 AM, Bruno Turcksin <bruno.turcksin at gmail.com>
wrote:

> 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
>
> _______________________________________________
> Aspect-devel mailing list
> Aspect-devel at geodynamics.org
> http://lists.geodynamics.org/cgi-bin/mailman/listinfo/aspect-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geodynamics.org/pipermail/aspect-devel/attachments/20140703/47aec304/attachment.html>


More information about the Aspect-devel mailing list