<div dir="ltr"><div>Hi Bernd, <br></div><div><br></div><div>I figured it out. It seems that clang-6.0.1 defaults to c++14, but std::bool_constant is c++17. I solved it by setting <br></div><div>CXXFLAGS="-std=c++17 -stdlib=libc++"</div><div><br></div><div>I suppose "set_property(TARGET tgt PROPERTY CXX_STANDARD 17)" in CMakeLists.txt would also work for cmake >= 3.82, but I have not tested that.</div><div><br></div><div>best regards,</div><div><br></div><div>Edscott<br></div></div><br><div class="gmail_quote"><div dir="ltr">El mar., 15 de ene. de 2019 a la(s) 14:29, Flemisch, Bernd (<a href="mailto:bernd.flemisch@iws.uni-stuttgart.de">bernd.flemisch@iws.uni-stuttgart.de</a>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div dir="auto" style="direction:ltr;margin:0px;padding:0px;font-family:sans-serif;font-size:11pt;color:black">
Hi Edscott,<br>
<br>
</div>
<div dir="auto" style="direction:ltr;margin:0px;padding:0px;font-family:sans-serif;font-size:11pt;color:black">
can you post the complete output of<br>
</div>
<div dir="auto" style="direction:ltr;margin:0px;padding:0px;font-family:sans-serif;font-size:11pt;color:black">
make VERBOSE=1 ...<br>
</div>
<div dir="auto" style="direction:ltr;margin:0px;padding:0px;font-family:sans-serif;font-size:11pt;color:black">
where ... is the target that you try to compile and that triggers the error?<br>
<br>
</div>
<div dir="auto" style="direction:ltr;margin:0px;padding:0px;font-family:sans-serif;font-size:11pt;color:black">
Kind regards<br>
</div>
<div dir="auto" style="direction:ltr;margin:0px;padding:0px;font-family:sans-serif;font-size:11pt;color:black">
Bernd</div>
<br>
<br>
<br>
<div class="gmail_quote">On Tue, Jan 15, 2019 at 8:23 PM +0100, "Ed Scott Wilson Garcia"
<span dir="ltr"><<a href="mailto:edscott@imp.mx" target="_blank">edscott@imp.mx</a>></span> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="3D"ltr"">
<pre>Hello,
I've currently compiled the release versions of dune-2.6 and dumux-3.0 using clang 6.0.1 on a FreeBSD-12 host. In order to do this, I've set CMAKE_CXX_COMPILER=clang++, CMAKE_CXX_FLAGS=-stdlib=libc++, CMAKE_EXE_LINKER_FLAGS='-lpthread -lstdthreads -lc++' .
But when I try to compile an example program from the dumux templates, I get
error: no member named 'bool_constant' in namespace 'std'
on the instruction (dune/common/std/type_traits.hh:102)
using std::bool_constant
I'm using the same --opts file used to compile dune, but I must be missing something.
I'm going to keep on looking for an answer, but I would appreciate it if someone on this list has any clue.
regards,
Edscott
_______________________________________________
Dune mailing list
<a href="mailto:Dune@lists.dune-project.org" target="_blank">Dune@lists.dune-project.org</a>
<a href="https://lists.dune-project.org/mailman/listinfo/dune" target="_blank">https://lists.dune-project.org/mailman/listinfo/dune</a></pre>
</div>
</blockquote>
</div>
</div>
_______________________________________________<br>
Dune mailing list<br>
<a href="mailto:Dune@lists.dune-project.org" target="_blank">Dune@lists.dune-project.org</a><br>
<a href="https://lists.dune-project.org/mailman/listinfo/dune" rel="noreferrer" target="_blank">https://lists.dune-project.org/mailman/listinfo/dune</a></blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div><div>------------------------------------------------------------------------------------<br></div>Dr. Edscott Wilson Garcia<br></div>Reservoir Engineering<br></div>Mexican Petroleum Institute<br></div></div>