Kicad-mac-builder fail on Ventura/Intel

I’m trying to build 7.0.6 stable on an Intel Mac with 13.4.1(c) (Ventura) using kicad-mac-builder. It runs for a long time, then fails; the first few lines are for context:

checking whether we are using the Intel C++ compiler... no
checking whether we are using the IBM xlC C++ compiler... no
checking whether clang++ supports C++11 features by default... no
checking whether clang++ supports C++11 features with -std=gnu++11... yes
checking for ar... ar
checking if C compiler (clang -mmacosx-version-min=13.4) works with SDK/version options... configure: error: in `/Users/jeff/go/src/github.com/gmofishsauce/kicad-mac-builder/build/wxwidgets/src/wxwidgets':
configure: error: building C++ programs doesnt work, try using --with-macosx-version-min with a different OS version or omitting it entirely.
See config.log for more details
make[3]: *** [wxwidgets/src/wxwidgets-stamp/wxwidgets-configure] Error 1

Then in ./build/wxwidgets/src/wxwidgets/config.log I find:

configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "wxWidgets"
| #define PACKAGE_TARNAME "wxwidgets"
| #define PACKAGE_VERSION "3.2.2.1"
| #define PACKAGE_STRING "wxWidgets 3.2.2.1"
| #define PACKAGE_BUGREPORT "wx-dev@googlegroups.com"
| #define PACKAGE_URL ""
| #define __BSD__ 1
| #define __DARWIN__ 1
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|              #ifndef __INTEL_COMPILER
|                 choke me
|              #endif
|
|   ;
|   return 0;
| }

This is really odd, because the documentation says I must have clang, but the Intel documentation says __INTEL_COMPILER is only defined for the “old”, g++ based compiler. And in the first line of the context, above, it says checking whether we are using the Intel C++ compiler... no.

So of course the #ifndef in that tiny program fails.

Can someone help me with this? Edit: one other add:

$ clang --version
Apple clang version 11.0.0 (clang-1100.0.33.17)
Target: x86_64-apple-darwin22.5.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

This problem turned out to be clang’s problematic macos-min-version flag. I was able to compile after setting --macos-min-version=10.11:

WX_SKIP_DOXYGEN_VERSION_CHECK=1 ./build.py --arch x86_64 --target setup-kicad-dependencies --macos-min-version=10.11

I know that is a ridiculous value. A semver too small draws complaints from the KiCad build, and a semver too large causes clang to abort. Only a small range of value work, and near as I can tell all of them are ridiculous.

3 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.