Hi ferreters,
I’m trying to build PyFerret (v7.6.0) on my Mac, running OS X 10.15.5 and using MacPorts installs of python 3.8 and the other various programs and libraries (rather than Homebrew). The build is failing with the errors
make[1]: *** [pymod_optimized_build] Error 1
make: *** [optimized] Error 2
after issuing the "/opt/local/bin/gcc [lots of flags and options etc] -Wl,-headerpad_max_install_names” command, after "python3.8
setup.py --quiet build )"
Some more details appended below, including some changes and tricks that I needed to get the scripts to begin to work with MacPorts.
I guess this follows on from an earlier message on this topic from Andy Jacobson in 2019 (here), and I would be happy to help make this particular
build possible for more people….although please note I’m definitely a bodger when it comes to things like this!
Happy to follow this up offline with the developers if that would be better.
Cheers,
Paul
Details
1. Installed the MacPort versions of the HomeBrew packages as listed here
2a. To get the gfortran alias to work type sudo port select --set gcc mp-gcc9
2b. Note, using gcc version 9. Latest is version 10, which fails on compiling compute_mnstd.F (type conversion error). This seems to be related to this issue detailed
on the netcdf-fortran GitHub, although adding the “-fallow-argument-mismatch” flag doesn’t help. No error with gcc v9 or v8.
3. Edited LIBDIR variables in site_specific.mk to point to /opt/local/lib
4. Edited copy_dylibs.sh to copy MacPorts dynamic libraries (rather than HomeBrew) - but is this needed given LIBDIR?
5. Edited external_functions/ef_utility/site_specific.mk to use the gcc compiler rather than the Mac one (from which clang)…although it didn’t work with the latter either.
Happy to attach stdout and the scripts etc, but didn’t want to overload the list initially.
|