macvim-dev / macvim

Vim - the text editor - for macOS
https://macvim.org
Vim License
7.53k stars 685 forks source link

Compilation fails on M1 running macOS 11.6 #1211

Closed al3xandru closed 3 years ago

al3xandru commented 3 years ago

Trying to compile main (version b15319996) locally, the build fails with following error:

CompileXIB REPOPATH/macvim/src/MacVim/Base.lproj/Preferences.xib (in target 'MacVim' from project 'MacVim')
    cdREPOPATH/macvim/src/MacVim
    export XCODE_DEVELOPER_USR_PATH\=/Applications/Xcode.app/Contents/Developer/usr/bin/..
    /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --module MacVim --output-partial-info-plist REPOPATH/macvim/src/MacVim/build/MacVim.build/Release/MacVim.build/Base.lproj/Preferences-PartialInfo.plist --auto-activate-custom-fonts --target-device mac --minimum-deployment-target 11.6 --output-format human-readable-text --compile REPOPATH/macvim/src/MacVim/build/Release/MacVim.app/Contents/Resources/Base.lproj/Preferences.nib REPOPATH/macvim/src/MacVim/Base.lproj/Preferences.xib
dyld: lazy symbol binding failed: can't resolve symbol _$s19CoreDeviceProtocols0B5StateOMa in /Applications/Xcode.app/Contents/Developer/usr/bin/../../../SharedFrameworks/DVTFoundation.framework/Versions/A/DVTFoundation because dependent dylib /Library/Developer/PrivateFrameworks/CoreDevice.framework/Versions/A/CoreDevice could not be loaded
dyld: can't resolve symbol _$s19CoreDeviceProtocols0B5StateOMa in /Applications/Xcode.app/Contents/Developer/usr/bin/../../../SharedFrameworks/DVTFoundation.framework/Versions/A/DVTFoundation because dependent dylib /Library/Developer/PrivateFrameworks/CoreDevice.framework/Versions/A/CoreDevice could not be loaded
Command CompileXIB failed with a nonzero exit code

This is an M1 machine, running 11.6 and Xcode 13.0 (13A233).

Command:

./configure --with-features=huge --enable-multibyte --enable-terminal --enable-cscope --enable-python3interp=dynamic  --enable-perlinterp=dynamic --enable-rubyinterp=dynamic --enable-luainterp=dynamic --with-lua-prefix=/opt/homebrew --with-macarchs=arm64 --disable-sparkle" 

Same git version builds on an Intel machine, running macOS 10.5.7 with Xcode 12.4.

al3xandru commented 3 years ago

It works now. Started Xcode and did a clean first.

ychin commented 3 years ago

Huh that's odd. We do have some incremental build issues but I haven't seen this particular instance before. But if clean building works probably not going to spend too much time looking into it. Glad it worked for you.

al3xandru commented 3 years ago

I’d say don’t spend any time on it for now :-). I couldn’t reproduce it and the build worked (might have been due to the Xcode update, etc, etc)