<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!-- P { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>&#8203;Ian,<br>
</p>
<p><br>
</p>
<p>Yes, all packages are installed. I am attaching&nbsp;the list of brewed packages.&nbsp;<br>
</p>
<p>However, when I test them, gcc and open-mpi are failing.&nbsp;<br>
</p>
<p><br>
</p>
<p>Here is the error:&#8203;<br>
</p>
<p><br>
</p>
<div>brew test gcc</div>
<div>Testing gcc</div>
<div>==&gt; /usr/local/Cellar/gcc/7.2.0/bin/gcc-7 -o hello-c hello-c.c</div>
<div>==&gt; /usr/local/Cellar/gcc/7.2.0/bin/g&#43;&#43;-7 -o hello-cc hello-cc.cc</div>
<div>Last 15 lines from /Users/babiuc/Library/Logs/Homebrew/gcc/test.02.g&#43;&#43;-7:</div>
<div>hello-cc.cc</div>
<div><br>
</div>
<div>In file included from /usr/local/Cellar/gcc/7.2.0/include/c&#43;&#43;/7.2.0/ext/string_conversions.h:41:0,</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from /usr/local/Cellar/gcc/7.2.0/include/c&#43;&#43;/7.2.0/bits/basic_string.h:6159,</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from /usr/local/Cellar/gcc/7.2.0/include/c&#43;&#43;/7.2.0/string:52,</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from /usr/local/Cellar/gcc/7.2.0/include/c&#43;&#43;/7.2.0/bits/locale_classes.h:40,</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from /usr/local/Cellar/gcc/7.2.0/include/c&#43;&#43;/7.2.0/bits/ios_base.h:41,</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from /usr/local/Cellar/gcc/7.2.0/include/c&#43;&#43;/7.2.0/ios:42,</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from /usr/local/Cellar/gcc/7.2.0/include/c&#43;&#43;/7.2.0/ostream:38,</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from /usr/local/Cellar/gcc/7.2.0/include/c&#43;&#43;/7.2.0/iostream:39,</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from hello-cc.cc:1:</div>
<div>/usr/local/Cellar/gcc/7.2.0/include/c&#43;&#43;/7.2.0/cstdlib:75:15: fatal error: stdlib.h: No such file or directory</div>
<div>&nbsp;#include_next &lt;stdlib.h&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^~~~~~~~~~</div>
<div>compilation terminated.</div>
<div>Error: gcc: failed</div>
<div><br>
<div>brew test open-mpi</div>
<div>Testing open-mpi</div>
<div>==&gt; /usr/local/Cellar/open-mpi/3.0.0/bin/mpicc hello.c -o hello</div>
<div>==&gt; ./hello</div>
<div>==&gt; /usr/local/Cellar/open-mpi/3.0.0/bin/mpirun -np 4 ./hello</div>
<div>Last 15 lines from /Users/babiuc/Library/Logs/Homebrew/open-mpi/test.03.mpirun:</div>
<div>2017-11-14 11:04:49 -0500</div>
<div><br>
</div>
<div>/usr/local/Cellar/open-mpi/3.0.0/bin/mpirun</div>
<div>-np</div>
<div>4</div>
<div>./hello</div>
<div><br>
</div>
<div>--------------------------------------------------------------------------</div>
<div>There are not enough slots available in the system to satisfy the 4 slots</div>
<div>that were requested by the application:</div>
<div>&nbsp; ./hello</div>
<div><br>
</div>
<div>Either request fewer slots for your application, or make more slots available</div>
<div>for use.</div>
<div>--------------------------------------------------------------------------</div>
<div>Error: open-mpi: failed</div>
<div>Failed executing: /usr/local/Cellar/open-mpi/3.0.0/bin/mpirun -np 4 ./hello<br>
</div>
<br>
</div>
<p>I am reinstalling them now, and test them again.&nbsp;<br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div>
<div dir="ltr">_______________________</div>
<div dir="ltr"><font size="2"><i>Dr. Maria C. Babiuc Hamilton</i></font></div>
<div dir="ltr"><font size="2"><i>Department of Physics</i></font></div>
<div dir="ltr"><font size="2"><i>Marshall University</i></font></div>
<div dir="ltr"><font size="2"><i>S257 Science Building</i></font></div>
<div dir="ltr"><font size="2"><i>Huntington, WV, 25755</i></font></div>
<div dir="ltr"><font size="2"><i>Phone: (304)696-2754</i></font></div>
<div dir="ltr"><font size="2"><i>https://works.bepress.com/maria_babiuc-hamilton/</i></font></div>
</div>
</div>
</div>
<div style="word-wrap:break-word; line-break:after-white-space">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Ian Hinder &lt;ian.hinder@aei.mpg.de&gt;<br>
<b>Sent:</b> Tuesday, November 14, 2017 3:41 AM<br>
<b>To:</b> Hamilton, Maria<br>
<b>Cc:</b> Eloisa Bentivegna; Einstein Toolkit Users<br>
<b>Subject:</b> Re: [Users] Error in thorn Vectors</font>
<div>&nbsp;</div>
</div>
<div><br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 14 Nov 2017, at 01:12, Hamilton, Maria &lt;<a href="mailto:babiuc@marshall.edu" class="">babiuc@marshall.edu</a>&gt; wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">Hello,<br class="">
<br class="">
Yes, previously I had the error in thorns Vectors, and I followed the suggestion to use the current stable version of Cactus.<br class="">
<br class="">
I am not using simfactory, but this command:<br class="">
make ET-config options=simfactory/mdb/optionlists/osx-homebrew.cfg THORNLIST=thornlists/<a href="http://einsteintoolkit.th" class="">einsteintoolkit.th</a><br class="">
<br class="">
The error is: <br class="">
checking for M_PI... no<br class="">
configure: error: M_PI not defined. Try adding -D_XOPEN_SOURCE to CPPFLAGS.<br class="">
<br class="">
Here is what I tried to add to CPPFLAGS:<br class="">
-D_USE_MATH_DEFINES<br class="">
-D_XOPEN_SOURCE<br class="">
-DM_PI = 3.14149265358979323847<br class="">
<br class="">
I also tried to change c11 to c99 at CFLAGS and add <br class="">
-stdlib=libc&#43;&#43; at LIBCXX.<br class="">
<br class="">
None of those worked. <br class="">
<br class="">
Please let me know what is to be done.<br class="">
</div>
</div>
</blockquote>
<div><br class="">
</div>
<div>Hi Maria,</div>
<div><br class="">
</div>
<div>Have you installed all the homebrew packages listed at the top of&nbsp;osx-homebrew.cfg?</div>
<div><br class="">
</div>
</div>
<div class="">
<div class="" style="color:rgb(0,0,0); letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; word-wrap:break-word">
<div class="" style="color:rgb(0,0,0); letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; word-wrap:break-word">
<div class="" style="color:rgb(0,0,0); letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; word-wrap:break-word">
<div class="" style="color:rgb(0,0,0); letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; word-wrap:break-word">
<div class="">--&nbsp;</div>
<div class="">Ian Hinder</div>
<div class=""><a href="http://members.aei.mpg.de/ianhin" class="">http://members.aei.mpg.de/ianhin</a></div>
</div>
</div>
</div>
</div>
</div>
<br class="">
</div>
</div>
</body>
</html>