I am trying to install Charm++ on the latest version of macOS 10.14. Following this http://charm.cs.illinois.edu/manuals/html/charm++/A.html, when I try and do ./build charm++ netlrts-darwin-x86_64 --with-production -j8
I get this error:
configure: error: in `/Users/youssefmoawad/Downloads/charm-6.9.0/netlrts-darwin-x86_64/tmp':
configure: error: C compiler cannot create executables
See `config.log' for more details
make: *** [headers] Error 2
-------------------------------------------------
Charm++ NOT BUILT. Either cd into netlrts-darwin-x86_64/tmp and try
to resolve the problems yourself, visit
http://charm.cs.illinois.edu/
for more information. Otherwise, email the developers at charm@cs.illinois.edu
When I try the installation using the alternative method, through Spack; first off I have to install Spack: https://spack.io. That fails however when I do the spack install hdf5
, getting:
Error: InstallError: OpenMPI requires both C and Fortran compilers!
/Users/youssefmoawad/Downloads/spack/var/spack/repos/builtin/packages/openmpi/package.py:337, in die_without_fortran:
334 # avoid delayed build errors in dependents.
335 if (self.compiler.f77 is None) or (self.compiler.fc is None):
336 raise InstallError(
>> 337 'OpenMPI requires both C and Fortran compilers!'
338 )
See build log for details:
/Users/youssefmoawad/Downloads/spack/var/spack/stage/openmpi-3.1.3-6owrpmticip3filnaljkrsyl3zlonwea/openmpi-3.1.3/spack-build.out
When I disregard that and try to install Charm++ anyway, using spack install charmpp
, I get:
Error: TypeError: expected str, bytes or os.PathLike object, not NoneType
/Users/youssefmoawad/Downloads/spack/var/spack/repos/builtin/packages/charmpp/package.py:173, in install:
170 # here.
171 options = [
172 os.path.basename(self.compiler.cc),
>> 173 os.path.basename(self.compiler.fc),
174 "-j%d" % make_jobs,
175 "--destination=%s" % prefix,
176 ]
See build log for details:
/Users/youssefmoawad/Downloads/spack/var/spack/stage/charmpp-6.8.2-g3j72njzqjejhutygtdksfdy6sp524us/charm-v6.8.2/spack-build.out
I'm not sure what's wrong, but I think it has something to do with Fortran compilers, in which case could I get some help on which compiler to install?
Update
I have tried installing the gfortran
compiler and it installed successfully, but I still encounter the above errors.