:wave: Hallo Team! Did anybody manage to install ...
# pact-js
s
👋 Hallo Team! Did anybody manage to install
@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
Copy code
/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
.
t
Do you see other error output? It should work
s
There is also a lot of messages like this
Copy code
/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;
        ^
Ich opened the
cdefs.h
where the first error comes from. The content shows
Copy code
/*
 * 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.
👍 1
m
Yeah, I have not seen this before. It looks like the c development toolchain is cactus. I think you’ll need to ensure your development tools are up to date and correct.
s
Yea it was that. I reinstalled xcode command line tools and install works now 👍
🙌 1