Bug in internal netcdf for mac [SOLVED]
Posted: Thu May 15, 2014 8:16 am
There is a small bug in netcdf that makes it not compile on Mac OS X 10.9 using the Xcode compiler. It requires adding a single line of code to netcdf. I haven't seen any other post about this bug so I don't know if it's been addressed before. Since the abinit build system tries to build netcdf, I attached a patch for abinit v7.6.4 (it's a patch within a patch!) that fixed it for me. The abinit build system will apply the netcdf patch automatically.
Code: Select all
mv 0001-Fic-NetCDF-bug.log 0001-Fic-NetCDF-bug.patch
cd abinit-7.6.4
patch -p1 < ../0001-Fix-NetCDF-bug.patch
make clean && ./configure --with-trio-flavor="netcdf+etsf_io" && make