[Users] Error in thorn Vectors

Hamilton, Maria babiuc at marshall.edu
Tue Nov 14 10:20:09 CST 2017


?Ian,


Yes, all packages are installed. I am attaching the list of brewed packages.

However, when I test them, gcc and open-mpi are failing.


Here is the error:?


brew test gcc
Testing gcc
==> /usr/local/Cellar/gcc/7.2.0/bin/gcc-7 -o hello-c hello-c.c
==> /usr/local/Cellar/gcc/7.2.0/bin/g++-7 -o hello-cc hello-cc.cc
Last 15 lines from /Users/babiuc/Library/Logs/Homebrew/gcc/test.02.g++-7:
hello-cc.cc

In file included from /usr/local/Cellar/gcc/7.2.0/include/c++/7.2.0/ext/string_conversions.h:41:0,
                 from /usr/local/Cellar/gcc/7.2.0/include/c++/7.2.0/bits/basic_string.h:6159,
                 from /usr/local/Cellar/gcc/7.2.0/include/c++/7.2.0/string:52,
                 from /usr/local/Cellar/gcc/7.2.0/include/c++/7.2.0/bits/locale_classes.h:40,
                 from /usr/local/Cellar/gcc/7.2.0/include/c++/7.2.0/bits/ios_base.h:41,
                 from /usr/local/Cellar/gcc/7.2.0/include/c++/7.2.0/ios:42,
                 from /usr/local/Cellar/gcc/7.2.0/include/c++/7.2.0/ostream:38,
                 from /usr/local/Cellar/gcc/7.2.0/include/c++/7.2.0/iostream:39,
                 from hello-cc.cc:1:
/usr/local/Cellar/gcc/7.2.0/include/c++/7.2.0/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
 #include_next <stdlib.h>
               ^~~~~~~~~~
compilation terminated.
Error: gcc: failed

brew test open-mpi
Testing open-mpi
==> /usr/local/Cellar/open-mpi/3.0.0/bin/mpicc hello.c -o hello
==> ./hello
==> /usr/local/Cellar/open-mpi/3.0.0/bin/mpirun -np 4 ./hello
Last 15 lines from /Users/babiuc/Library/Logs/Homebrew/open-mpi/test.03.mpirun:
2017-11-14 11:04:49 -0500

/usr/local/Cellar/open-mpi/3.0.0/bin/mpirun
-np
4
./hello

--------------------------------------------------------------------------
There are not enough slots available in the system to satisfy the 4 slots
that were requested by the application:
  ./hello

Either request fewer slots for your application, or make more slots available
for use.
--------------------------------------------------------------------------
Error: open-mpi: failed
Failed executing: /usr/local/Cellar/open-mpi/3.0.0/bin/mpirun -np 4 ./hello


I am reinstalling them now, and test them again.

_______________________
Dr. Maria C. Babiuc Hamilton
Department of Physics
Marshall University
S257 Science Building
Huntington, WV, 25755
Phone: (304)696-2754
https://works.bepress.com/maria_babiuc-hamilton/
________________________________
From: Ian Hinder <ian.hinder at aei.mpg.de>
Sent: Tuesday, November 14, 2017 3:41 AM
To: Hamilton, Maria
Cc: Eloisa Bentivegna; Einstein Toolkit Users
Subject: Re: [Users] Error in thorn Vectors



On 14 Nov 2017, at 01:12, Hamilton, Maria <babiuc at marshall.edu<mailto:babiuc at marshall.edu>> wrote:

Hello,

Yes, previously I had the error in thorns Vectors, and I followed the suggestion to use the current stable version of Cactus.

I am not using simfactory, but this command:
make ET-config options=simfactory/mdb/optionlists/osx-homebrew.cfg THORNLIST=thornlists/einsteintoolkit.th<http://einsteintoolkit.th>

The error is:
checking for M_PI... no
configure: error: M_PI not defined. Try adding -D_XOPEN_SOURCE to CPPFLAGS.

Here is what I tried to add to CPPFLAGS:
-D_USE_MATH_DEFINES
-D_XOPEN_SOURCE
-DM_PI = 3.14149265358979323847

I also tried to change c11 to c99 at CFLAGS and add
-stdlib=libc++ at LIBCXX.

None of those worked.

Please let me know what is to be done.

Hi Maria,

Have you installed all the homebrew packages listed at the top of osx-homebrew.cfg?

--
Ian Hinder
http://members.aei.mpg.de/ianhin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.einsteintoolkit.org/pipermail/users/attachments/20171114/162ae67a/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: packages_installed
Type: application/octet-stream
Size: 374 bytes
Desc: packages_installed
Url : http://lists.einsteintoolkit.org/pipermail/users/attachments/20171114/162ae67a/attachment-0001.obj 


More information about the Users mailing list