Linking error compiling on latest macOS 14.3.1

I’m trying to compile ArduPilot on an Apple silicon Mac (MacBook Air M2), and have been able to do so successfully in the past with no issues. After updating to the latest version of macOS (14.3.1), compile fails at [900/906] Linking build/CubeOrange/bin/arduplane with the following error:

error: /opt/homebrew/opt/qt@5/lib: read: Is a directory

I have tried a SITL build as well and compile fails with the same error. Anyone else experiencing this issue, or could it just be something wrong on my setup?

1 Like

After updating to the latest version of macOS 14.4 (build 23E214), can confirm the issue is still present.

UPDATE: Something I had installed at the same time had inserted a export LDFLAGS='-L/opt/homebrew/opt/qt@5/lib' into my .zshrc file which was adding this to the compile flags for ArduPilot in turn. I’ve removed it and after an unset LDFLAGS, the issue is fixed.