I didn’t figure out the problem. But, after uninstalling macports completely and reinstalling, at least gmp has installed and I am reinstalling the high level ports with lots of dependencies now instead of using restore_ports.tcl
From: macports-users <[email protected]> on behalf of Kendall Shaw <[email protected]> Date: Thursday, April 20, 2017 at 9:30 AM To: macports-users <[email protected]> Subject: Permission denied writing temp file during restore_ports.tcl on macOS sierra Building gmp fails because it can’t write to a directory that it creates in /var/folders/xx/_blah/T: :info:build make: error: couldn't create cache file '/var/folders/sr/_cb62lmn0v36cvbz11hjgy7r0000gn/T/xcrun_db-eQZtJHV5' (errno=Permission denied) Changing permissions using chmod -R g+w /var/folders/sr/_cb62lmn0v36cvbz11hjgy7r0000gn doesn’t change, it still creates a directory and then says it can’t write to it. And I’ve tried a few variations of this changing group and ownership Do you know what needs to be done? Kendall
