Skip to content
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

Build fail for electron and macOS M1 + Homebrew #489

Closed
correnson opened this issue Nov 9, 2021 · 3 comments · Fixed by #522
Closed

Build fail for electron and macOS M1 + Homebrew #489

correnson opened this issue Nov 9, 2021 · 3 comments · Fixed by #522
Labels

Comments

@correnson
Copy link

correnson commented Nov 9, 2021

Describe the bug
Can not rebuild zeromq with electron on mac M1, although using exactly the same configuration on mac x64 does work.

Reproducing

yarn add/rebuild zeromq

Detailed log can be found in discussion.

Tested on

  • macOS M1 (arm64)
  • homebrew/zeromq 4.3.4 for arm64
  • electron 15.3.0 and many others
  • node 16.12.0 and many others
  • ZeroMQ.js versions 5.x and 6.x
@correnson correnson added the bug label Nov 9, 2021
@correnson
Copy link
Author

correnson commented Nov 9, 2021

Detailed log message: build.log

From this build log, it seems that configuration step fails and does not recognize the M1 versions of Xcode or Homebrew tools, but maybe I'm wrong. However, I shall point out that all my other native projects fairly compiles with this config, hence I think the Xcode & Homebrew install are OK.

The bug seems not to depend on specific versions of electron or zeromq. I tried many of them with exactly the same log.

@correnson correnson changed the title Build fail for electron and macOS M1 Build fail for electron and macOS M1 + Homebrew Nov 9, 2021
@YanDevDe
Copy link

I'm also having this issue on M1 Max, with the exactly same error and similar specs

@Bartel-C8
Copy link
Contributor

That exact error message I find here:
nodejs/node-gyp#2144 (comment)

They suggest resolving it with this guideline:
https://github.com/nodejs/node-gyp/blob/master/macOS_Catalina.md

Does the "acid test" work for you?
curl -sL https://github.com/nodejs/node-gyp/raw/master/macOS_Catalina_acid_test.sh | bash

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