<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hello<div><br></div><div>yes I agree, a wonderful mess of a very high order!</div><div><br></div><div>I think it is …acceptable… to compile with some degree of optimisation by default,</div><div>in fact, we always compile with -O2. I think it is still far better than to patch system</div><div>based header files. I have some hope that Apple will soon make sure to clean it up.</div><div><br></div><div>Greetings and thanks for the support! Benedikt</div><div><br></div><div><br><div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br></div></div></div>
</div>
<br><div><div>On 29 Jan 2014, at 17:26, Steffen Müthing <<a href="mailto:steffen.muething@iwr.uni-heidelberg.de">steffen.muething@iwr.uni-heidelberg.de</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br>Am 29.01.2014 um 16:46 schrieb Steffen Müthing <<a href="mailto:steffen.muething@iwr.uni-heidelberg.de">steffen.muething@iwr.uni-heidelberg.de</a>>:<br><br><blockquote type="cite">Am 29.01.2014 um 16:42 schrieb Benedikt Oswald <<a href="mailto:benedikt.oswald@lspr.ch">benedikt.oswald@lspr.ch</a>>:<br><br><blockquote type="cite">amazing, using on my system:<br><br>CMAKE_FLAGS="--enable-experimental-grid-extensions --enable-shared --enable-static -DCMAKE_CXX_FLAGS=\"-O2\" -DCMAKE_PREFIX_PATH=\"$HOME/extlib/alugrid/1.96/openmpi/1.6.5/gcc/4.8.1;$HOME/extlib/metis/5.1.0/gcc/4.8.1;$HOME/extlib/parmetis/4.0.3/openmpi/1.6.5/gcc/4.8.1\" "<span class="Apple-converted-space"> </span><br><br><br>in the opts file, it links the dune-grid-howto examples…and runs through…what a nasty difference this makes!<br></blockquote><br>Yes, the Stackoverflow thread suggests that -Ox (x > 0) triggers inlining of toupper(), which<br>makes the whole problem at the linker stage go away…<br><br>But for some reason, the autotools-based build works (and the resulting programs work). Unfortunately,<br>there’s all kinds of OS X linker magic in the command line, like flat vs. nested library namespaces…<br></blockquote><br>Seems like that conclusion was a little too early, a complete new checkout and build from scratch causes<br>autotools to fail as well with -O0. The main difference is that the autotools-generated binaries crash at<br>run time instead of triggering a link time failure because libtool sets -Wl,-undefined,dynamic_lookup<br>which defers lookup of unknown symbols to the dynamic linker.<br><br>So it looks like the only ways around this problem are to either use at least -O1 or patch a system header.<br>What a mess…<br><br>Steffen<br><br><br><blockquote type="cite"><br>Steffen<br><br><br><blockquote type="cite"><br>Greetings, Benedikt<br><br><br>On 29 Jan 2014, at 16:34, Steffen Müthing <<a href="mailto:steffen.muething@iwr.uni-heidelberg.de">steffen.muething@iwr.uni-heidelberg.de</a>> wrote:<br><br><blockquote type="cite">Looking at the link Christoph posted earlier, I realized that my build was setup<br>with optimization (-O3), which avoids the problem as well. So I rebuilt everything<br>from scratch with -O0, and now my CMake build fails with the same error as<br>Benedikt’s.<br><br>I’m running an -O0 build with autotools right now…<br><br>Steffen<br><br>Am 29.01.2014 um 16:19 schrieb Markus Blatt <<a href="mailto:markus@dr-blatt.de">markus@dr-blatt.de</a>>:<br><br><blockquote type="cite">On Wed, Jan 29, 2014 at 03:04:39PM +0100, Benedikt Oswald wrote:<br><blockquote type="cite">one more point to consider:<br><br>the compilation does not run unto this problem when using the autotools based build.<br>what could be the reason for this ?<br></blockquote><br>that is indeed interesting. Maybe libtool is very smart. Could you<br>please provide the linker lines when using autotools.<br><br>--<span class="Apple-converted-space"> </span><br>Do you need more support with DUNE or HPC in general?<span class="Apple-converted-space"> </span><br><br>Dr. Markus Blatt - HPC-Simulation-Software & Services <a href="http://www.dr-blatt.de">http://www.dr-blatt.de</a><br>Hans-Bunte-Str. 8-10, 69123 Heidelberg, Germany<br>Tel.: +49 (0) 160 97590858 Fax: +49 (0)322 1108991658<span class="Apple-converted-space"> </span><br>_______________________________________________<br>Dune mailing list<br><a href="mailto:Dune@dune-project.org">Dune@dune-project.org</a><br>http://lists.dune-project.org/mailman/listinfo/dune<br></blockquote><br>_______________________________________________<br>Dune mailing list<br><a href="mailto:Dune@dune-project.org">Dune@dune-project.org</a><br>http://lists.dune-project.org/mailman/listinfo/dune<br></blockquote><br></blockquote><br>_______________________________________________<br>Dune mailing list<br><a href="mailto:Dune@dune-project.org">Dune@dune-project.org</a><br><a href="http://lists.dune-project.org/mailman/listinfo/dune">http://lists.dune-project.org/mailman/listinfo/dune</a></blockquote></div></blockquote></div><br></div></body></html>