[Dune-devel] SOCIS 2014: build system issue
Jö Fahlke
jorrit at jorrit.de
Fri Jul 18 15:13:35 CEST 2014
Hi!
I've been talking with Ansgar Burchardt, and he has a hypothesis what might be
the reason. Basically, Ubuntu at some point added --as-needed to the default
linker options. This however does not work with the way libpthread is linked
with libstdc++, and thus support for pthreads needs additional support. Which
Ubuntu screwed up at some point.
To verify this hypothesis, could you run the link command with -v, so the g++
frontend outputs the commands it runs in the background? I.e. libtool said it
would run
g++ -std=c++11 -O3 -Wall -DNDEBUG -funroll-loops -finline-functions -pthread -fomit-frame-pointer -ffast-math -mfpmath=sse -msse3 -o threadstest threadstest-threadstest.o -pthread -Wl,--export-dynamic -L/usr/local_machine/openmpi-1.6.5/lib /usr/local_machine/openmpi-1.6.5/lib/libmpi.so -lrt -lnsl -lutil -ldl ../../../lib/.libs/libdunecommon.a -llapack -lblas -lgfortran -lquadmath -lm -pthread -Wl,-rpath -Wl,/usr/local_machine/openmpi-1.6.5/lib -Wl,-rpath -Wl,/usr/local_machine/openmpi-1.6.5/lib
after you've compiled using make, could you run
g++ -v -std=c++11 -O3 -Wall -DNDEBUG -funroll-loops -finline-functions -pthread -fomit-frame-pointer -ffast-math -mfpmath=sse -msse3 -o threadstest threadstest-threadstest.o -pthread -Wl,--export-dynamic -L/usr/local_machine/openmpi-1.6.5/lib /usr/local_machine/openmpi-1.6.5/lib/libmpi.so -lrt -lnsl -lutil -ldl ../../../lib/.libs/libdunecommon.a -llapack -lblas -lgfortran -lquadmath -lm -pthread -Wl,-rpath -Wl,/usr/local_machine/openmpi-1.6.5/lib -Wl,-rpath -Wl,/usr/local_machine/openmpi-1.6.5/lib
that should give uss some more information about what is happening under the
hood.
Also, could you provide the output of "ld --version"?
Regards,
Jö.
--
Jorrit (Jö) Fahlke, Institute for Computational und Applied Mathematics,
University of Münster, Orleans-Ring 10, D-48149 Münster Tel: +49 251 83 35146
Fax: +49 251 83 32729
Kiss a non-smoker; taste the difference.
-- fortune
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <https://lists.dune-project.org/pipermail/dune-devel/attachments/20140718/0512c39a/attachment.sig>
More information about the Dune-devel
mailing list