Skip to content

Architecture error caused by Mac CI tests #626

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
rotu opened this issue Jun 17, 2024 · 1 comment · Fixed by #627
Closed

Architecture error caused by Mac CI tests #626

rotu opened this issue Jun 17, 2024 · 1 comment · Fixed by #627
Labels

Comments

@rotu
Copy link
Contributor

rotu commented Jun 17, 2024

CI is reporting an incompatible architecture problem on macOS:

  1) Uncaught error outside test suite:
     Uncaught Error: dlopen(/Users/runner/work/zeromq.js/zeromq.js/build/Release/zeromq.node, 0x0001): tried: '/Users/runner/work/zeromq.js/zeromq.js/build/Release/zeromq.node' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64h' or 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/runner/work/zeromq.js/zeromq.js/build/Release/zeromq.node' (no such file), '/Users/runner/work/zeromq.js/zeromq.js/build/Release/zeromq.node' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64h' or 'x86_64'))
      at Object.Module._extensions..node (node:internal/modules/cjs/loader:1460:18)
      at Module.load (node:internal/modules/cjs/loader:1203:32)
      at Function.Module._load (node:internal/modules/cjs/loader:1019:12)
      at Module.require (node:internal/modules/cjs/loader:1231:19)
      at require (node:internal/modules/helpers:177:18)
      at load (node_modules/.pnpm/@[email protected]/node_modules/@aminya/node-gyp-build/node-gyp-build.js:22:10)
      at Object.<anonymous> (src/native.ts:5:51)
      at Module._compile (node:internal/modules/cjs/loader:1364:14)
      at Module.m._compile (node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1618:23)
      at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)

https://github.com/zeromq/zeromq.js/actions/runs/9551631841/job/26326410348#step:16:143
logs_24997356421.zip

@aminya
Copy link
Member

aminya commented Jun 17, 2024

That's because we didn't have ARM64 runners to test things back in the day when I added this variant. We could only cross-compile for ARM64, but not test it.

Now that we have ARM64 Macos 14 runners, I created a PR to fix this: #627

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants