… I needed to
unset CDPATH in order to get it to build, because otherwise it tries to
tests inside one of the folders from
CDPATH (in my case the setting was
/mnt) instead into
./tests from inside the GMP distribution folder (unpacked
I ended up putting it into a subshell to avoid exporting that change to the environment of the caller.