Sascha
11/14/2022, 5:34 PM@pact-foundation/pact@10.2.2 which is using @pact-foundation/pact-core@13.12.0 on node@16.18.0 ? For me node-gyp fails in post-install on my m1 mac with
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:807:2: error: Unsupported architecture
#error Unsupported architecture
^
Interesting is that @pact-foundation/pact@9.18.1 works with node@16.18.0 on m1 mac.Timothy Jones
11/14/2022, 8:31 PMSascha
11/14/2022, 10:10 PM/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_intptr_t.h:32:9: error: unknown type name '__darwin_intptr_t'
typedef __darwin_intptr_t intptr_t;
^
In file included from ../native/addon.cc:1:
In file included from ../../../node-addon-api/napi.h:5:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:502:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/typeinfo:60:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/exception:81:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstdlib:85:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stdlib.h:97:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdlib.h:64:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_types.h:43:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_wctype_t;
^Sascha
11/14/2022, 10:12 PMcdefs.h where the first error comes from. The content shows
/*
* Architecture validation for current SDK
*/
#if !defined(__sys_cdefs_arch_unknown__) && defined(__i386__)
#elif !defined(__sys_cdefs_arch_unknown__) && defined(__x86_64__)
#else
#error Unsupported architecture
#endif
I think there should be something like arm ?
My m1 was set up with Apple`s Mac Migration Tool and it looks like that the whole xcode just moved over but without applying further modifications to support the host (arm) architecture.
I am trying to uninstall and reinstall xcode again.Matt (pactflow.io / pact-js / pact-go)
Sascha
11/14/2022, 10:36 PM