[aspect-devel] [deal.II] Re: deal.ii problem during aspect compile, static libs
Thorsten Becker
twb at usc.edu
Tue Jul 1 11:53:32 PDT 2014
Thanks much, Wolfgang and Timo, for your quick reply and comments!
This all makes sense, but I am not sure if any of it applies for me. I
spent a day+ trying to compile shared libraries, that's how I ended up with
my static attempts. (I should have kept track of the shared compilation
problems, and might go back and document those.) During the whole process,
I tried to make sure to have "clean" compiles on the same head node, with
the same compilers and libraries.
In the end, adding a -DCMAKE_EXE_LINKER_FLAGS="-static" to the deal
compiled "worked", though now both the test problems and Aspect are stuck
on something like
Linking CXX executable aspect
/usr/lib/../lib64/libpthread.a(libpthread.o): In function `sem_open':
(.text+0x774d): warning: the use of `mktemp' is dangerous, better use
`mkstemp'
/usr/usc/mpich2/1.5/lib/libmpich.a(simple_pmi.o): In function `PMI_Init':
simple_pmi.c:(.text+0xc89): warning: Using 'gethostbyname' in statically
linked applications requires at runtime the shared libraries from the glibc
v
ersion used for linking
/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
This makes me think that there's still something wrong with the compiler
versions, or that the link line doesn't take into account -static. I wonder
(and Rene's been giving me good suggestions all along) if I should really
heed the -pie advice, or rather try something else?
Thanks!
T
Thorsten W Becker - USC
http://geodynamics.usc.edu/~becker
On Tue, Jul 1, 2014 at 7:59 PM, Timo Heister <heister at clemson.edu> wrote:
> Thorsten,
>
> two quick comments:
>
> >> to post. After numerous attempts to compile shared libraries, I am now
> >> trying
> >> static.
>
> My personal experience is that shared compilation is a lot easier to do.
>
> > 2/ It finds neither of these libraries because you are on a cluster where
> > the frontend node (where we are trying to execute
> 'expand_instantiations')
> > has a different operating system than the compute nodes
>
> If this is the case you can often configure/compile on a compute node
> using an interactive session.
>
> --
> Timo Heister
> http://www.math.clemson.edu/~heister/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geodynamics.org/pipermail/aspect-devel/attachments/20140701/27f095a2/attachment.html>
More information about the Aspect-devel
mailing list