XCode 14.2 link fails with bus error: 10

Trying to build my project on Ventura 13.2 with XCode 14.2 Fails with "Command Ld failed with nonzero exit code. Build log shows:

clang: error: unable to execute command: Bus error: 10
clang: error: linker command failed due to signal (use -v to see invocation)

Builds fine with XCode 13.x on 10.15.

I have tried removeing derived data folders, rebooting, cleaning project, still no good.

Answered by Dave_lmc in 757892022

I have not solved it. I had been using an older build system until recently, but have now upgraded to latest everything- Ventura 13.4.1, x-code 14.3.1. And our server is now also upgrade to Ventura, so I no longer have the option of connecting via AFP.

Smaller projects build OK, but my large project stil failes with Bus error 10.

I have some new information-- My project files (The XCode project itself, all sources, libraries, etc.) are on a file server. Link fails as described above if I connect with SMB (as I normally do). However, I tried connecting over AFP and strangely enough link completes normally.

Reverting back to SMB and link fails again.

Can anyone explain that? Its a fairly large project with a hundred or so source files altogether. It does seem to buid quite a bit slower when connected over the AFP connection, so maybe some kind of a timing issue?

I have the same problem. Have you solved it?

Accepted Answer

I have not solved it. I had been using an older build system until recently, but have now upgraded to latest everything- Ventura 13.4.1, x-code 14.3.1. And our server is now also upgrade to Ventura, so I no longer have the option of connecting via AFP.

Smaller projects build OK, but my large project stil failes with Bus error 10.

Somehow I marked this as solved, unintentionally, and there is no way to remove it....

XCode 14.2 link fails with bus error: 10
 
 
Q