Trouble Downloading Enzo on my MacOS

21 views
Skip to first unread message

Brady Call

unread,
Apr 6, 2024, 1:24:11 PM4/6/24
to enzo-dev
Here is the entire conversation between myself and the Terminal app:

Last login: Sat Apr  6 10:59:44 on ttys000

williambradycall@Williams-MacBook-Air ~ % git clone https://github.com/enzo-project/enzo-dev

Cloning into 'enzo-dev'...

remote: Enumerating objects: 52854, done.

remote: Counting objects: 100% (12714/12714), done.

remote: Compressing objects: 100% (3722/3722), done.

Receiving objects: 100% (52854/52854), 141.70 MiB | 315.00 KiB/s, done.

remote: Total 52854 (delta 12432), reused 9024 (delta 8978), pack-reused 40140

Resolving deltas: 100% (16914/16914), done.

williambradycall@Williams-MacBook-Air ~ % cd /Users/williambradycall/enzo-dev 

williambradycall@Williams-MacBook-Air enzo-dev % ./configure

Configure complete.

williambradycall@Williams-MacBook-Air enzo-dev % cd src/enzo

williambradycall@Williams-MacBook-Air enzo % gmake clean

williambradycall@Williams-MacBook-Air enzo % make clean

williambradycall@Williams-MacBook-Air enzo % make machine-darwin     


 *** Execute 'gmake clean' before rebuilding executables ***


   MACHINE: Darwin (OSX Leopard) 

   MACHINE-NAME: darwin


williambradycall@Williams-MacBook-Air enzo % make show-config


   MACHINE: Darwin (OSX Leopard) 

   MACHINE-NAME: darwin


   PARAMETER_MAX_SUBGRIDS  [max-subgrids-###]                : 100000

   PARAMETER_MAX_BARYONS  [max-baryons-###]                  : 30

   PARAMETER_MAX_TASKS_PER_NODE  [max-tasks-per-node-###]    : 8

   PARAMETER_MEMORY_POOL_SIZE  [memory-pool-###]             : 100000


   CONFIG_PRECISION  [precision-{32,64}]                     : 64

   CONFIG_PARTICLES  [particles-{32,64,128}]                 : 64

   CONFIG_INTEGERS  [integers-{32,64}]                       : 64

   CONFIG_PARTICLE_IDS  [particle-id-{32,64}]                : 64

   CONFIG_INITS  [inits-{32,64}]                             : 64

   CONFIG_IO  [io-{32,64}]                                   : 32

   CONFIG_USE_MPI  [use-mpi-{yes,no}]                        : yes

   CONFIG_TASKMAP  [taskmap-{yes,no}]                        : no

   CONFIG_PACKED_AMR  [packed-amr-{yes,no}]                  : yes

   CONFIG_PACKED_MEM  [packed-mem-{yes,no}]                  : no

   CONFIG_LCAPERF  [lcaperf-{yes,no}]                        : no

   CONFIG_PAPI  [papi-{yes,no}]                              : no

   CONFIG_PYTHON  [python-{yes,no}]                          : no

   CONFIG_NEW_PROBLEM_TYPES  [new-problem-types-{yes,no}]    : no

   CONFIG_ECUDA  [cuda-{yes,no}]                             : no

   CONFIG_OOC_BOUNDARY  [ooc-boundary-{yes,no}]              : no

   CONFIG_ACCELERATION_BOUNDARY  [acceleration-boundary-{yes,no}] : yes

   CONFIG_OPT  [opt-{warn,debug,cudadebug,high,aggressive}]  : debug

   CONFIG_TESTING  [testing-{yes,no}]                        : no

   CONFIG_PHOTON  [photon-{yes,no}]                          : yes

   CONFIG_HYPRE  [hypre-{yes,no}]                            : no

   CONFIG_EMISSIVITY  [emissivity-{yes,no}]                  : no

   CONFIG_USE_HDF4  [use-hdf4-{yes,no}]                      : no

   CONFIG_NEW_GRID_IO  [newgridio-{yes,no}]                  : yes

   CONFIG_BITWISE_IDENTICALITY  [bitwise-{yes,no}]           : no

   CONFIG_FAST_SIB  [fastsib-{yes,no}]                       : yes

   CONFIG_GRAVITY_4S  [gravity-4s-{yes,no}]                  : no

   CONFIG_ENZO_PERFORMANCE  [enzo-performance-{yes,no}]      : yes

   CONFIG_GRACKLE  [grackle-{yes,no}]                        : no

   CONFIG_LOG2ALLOC  [log2alloc-{yes,no}]                    : no

   CONFIG_UUID  [uuid-{yes,no}]                              : yes


williambradycall@Williams-MacBook-Air enzo % make

-e

Updating DEPEND

make: [dep] Error 127 (ignored)

make: [dep] Error 127 (ignored)

make: [dep] Error 127 (ignored)

make: [dep] Error 127 (ignored)

make: [dep] Error 127 (ignored)

make: [dep] Error 127 (ignored)

make: [dep] Error 127 (ignored)

Compiling enzo.C


mpic++  -c -o enzo.o -DLINUX -DH5_USE_16_API   -D__max_subgrids=100000 -D__max_baryons=30 -D__max_cpu_per_node=8 -D__memory_pool_size=100000 -DINITS64 -DLARGE_INTS -DCONFIG_PINT_8 -DIO_32    -DUSE_MPI   -DCONFIG_PFLOAT_8 -DCONFIG_BFLOAT_8  -DUSE_HDF5_GROUPS   -DTRANSFER   -DNEW_GRID_IO -DFAST_SIB      -DENZO_PERFORMANCE    -DUSE_UUID -DSAB  -g -I/include -I/Developer/CUDA/common/inc -I/usr/local/include           -I. enzo.C


In file included from enzo.C:30:

./EnzoTiming.h:209:7: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]

      sprintf(level_name, "Level_%02d", level);

      ^

/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:180:1: note: 'sprintf' has been explicitly marked deprecated here

__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")

^

/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:218:48: note: expanded from macro '__deprecated_msg'

        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))

                                                      ^

In file included from enzo.C:34:

In file included from ./typedefs.h:16:

./EquilibriumTable.h:5:1: warning: '/*' within block comment [-Wcomment]

/*****************************************/

^

In file included from enzo.C:41:

In file included from ./Grid.h:20:

./AMRH5writer.h:24:10: fatal error: 'hdf5.h' file not found

#include <hdf5.h>

         ^~~~~~~~

2 warnings and 1 error generated.


make: *** [enzo.o] Error 1

williambradycall@Williams-MacBook-Air enzo % 

John Wise

unread,
Apr 9, 2024, 8:11:34 AM4/9/24
to enzo...@googlegroups.com

From your error message (last line is the relevant), you are missing one of the dependencies, HDF5, which Enzo uses for I/O.

https://enzo.readthedocs.io/en/latest/user_guide/building_enzo.html

You should install it with your preferred package manager (e.g. homebrew), adjust the machine file, and try to compile again.

John

--
You received this message because you are subscribed to the Google Groups "enzo-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to enzo-dev+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/enzo-dev/da04cd36-3587-4191-9c15-4d00d0caa45an%40googlegroups.com.
-- 
John Wise
Director, Center for Relativistic Astrophysics
Professor, School of Physics
Georgia Institute of Technology
https://cosmo.gatech.edu
Reply all
Reply to author
Forward
0 new messages