opening dependency file /dev/null.d: Operation not permitted

I’m trying to program an Artemis Nano on one of the new Mac “M1” machines (M1 Mac mini) and I’m getting this error when I try to compile anything.

fatal error: opening dependency file /dev/null.d: Operation not permitted

Has anyone else seen this? Any ideas how to proceed?

thanks,

-Steve

see known issue and solution https://github.com/sparkfun/Arduino_Apollo3/issues/330

Thanks Paul, unfortunately the suggested fix didn’t work for me. Here’s the full error message:

Arduino: 1.8.13 (Mac OS X), Board: “RedBoard Artemis Nano, 115200, SparkFun Variable Loader (Recommended)”

: fatal error: opening dependency file /dev/null.d: Operation not permitted

compilation terminated.

exit status 1

Error compiling for board RedBoard Artemis Nano.

I decided to try an older version, so I went back to 1.2.1, and that worked fine. Maybe this will help someone else out there?

Thanks

Make sure to perform BOTH activities.

REMOVE from the VARIANT (Nano in your case). This will disable -MMB and thus you can NOT get the /dev/null.d error message. Try that first.

If you then want to have the faster recompile, do the changes in platform.txt

Ah, OK. I’ve now hit something else, in python’s serial module, that seems to be a BigSur problem (not an m1 problem).

[66618] Failed to execute script artemis_svl

Traceback (most recent call last):

File “artemis_svl.py”, line 38, in

File “”, line 983, in _find_and_load

File “”, line 967, in _find_and_load_unlocked

File “”, line 677, in _load_unlocked

File “/usr/local/lib/python3.7/site-packages/PyInstaller/loader/pyimod03_importers.py”, line 627, in exec_module

File “serial/tools/list_ports.py”, line 29, in

File “”, line 983, in _find_and_load

File “”, line 967, in _find_and_load_unlocked

File “”, line 677, in _load_unlocked

File “/usr/local/lib/python3.7/site-packages/PyInstaller/loader/pyimod03_importers.py”, line 627, in exec_module

File “serial/tools/list_ports_posix.py”, line 31, in

File “”, line 983, in _find_and_load

File “”, line 967, in _find_and_load_unlocked

File “”, line 677, in _load_unlocked

File “/usr/local/lib/python3.7/site-packages/PyInstaller/loader/pyimod03_importers.py”, line 627, in exec_module

File “serial/tools/list_ports_osx.py”, line 32, in

ValueError: dlsym(RTLD_DEFAULT, kIOMasterPortDefault): symbol not found

ValueError: dlsym(RTLD_DEFAULT, kIOMasterPortDefault): symbol not found

I’m confused about where the Arduino IDE is getting it’s python executable and libraries. I have no python3.7 install in my /usr/local/.

Maybe I should start a new thread with this trouble? Once I get things working on this machine I’ll go back an try 2.0.4 again.

I also had a weird experience in lab today with students. They are using windows. We found that with 2.0.4 nobody could get the serial object to print. When we installed 1.2.1 on Windows, suddenly the Serial object worked again. Bleah.