Mktemp: illegal option -- p error on osx with mix firmware

i create nerves basic template prj, set MIX_TARGET, run mix deps.get, run mix firmware and i get:

Copying rootfs_overlay: /Users/alpa/Documents/src_elixir/prj/examples/getzi/control_hub/rootfs_overlay
mktemp: illegal option -- p  
usage: mktemp [-d] [-q] [-t prefix] [-u] template ...
       mktemp [-d] [-q] [-u] -t prefix 

Any idea?

Thanks !

We have a fix that’s getting so close to being released.

See Firmware builds broken on macOS 13 · Issue #781 · nerves-project/nerves_system_br · GitHub and Add explicit check for $TMPDIR before calling mktemp in merge-squashfs by schrockwell · Pull Request #782 · nerves-project/nerves_system_br · GitHub.

The issue that’s holding up the release is completely unrelated. I really hope to get it out today or tomorrow.

1 Like