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

Compiled and installed on M1 Macs as arm64, recognized by some package as x86_64? #475

Open
cilia opened this issue Jun 6, 2022 · 1 comment

Comments

@cilia
Copy link

cilia commented Jun 6, 2022

This might not be a emacs-plus issue, but I have tried all sorts of things including talking to the maintainer of the problematic package in question first: vedang/pdf-tools#107, and I'm hoping the emacs-plus community could shed some light on the problem.

I'm having trouble of building pdf-tools for emacs-plus (both 27 and 28 tried and failed). It always complains the following before the compilation fails:

ld: warning: ignoring file /opt/homebrew/opt/gettext/lib/libintl.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /opt/homebrew/Cellar/glib/2.72.1/lib/libglib-2.0.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /opt/homebrew/Cellar/poppler/22.02.0/lib/libpoppler-glib.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /opt/homebrew/Cellar/glib/2.72.1/lib/libgobject-2.0.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /opt/homebrew/Cellar/poppler/22.02.0/lib/libpoppler.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /opt/homebrew/Cellar/cairo/1.16.0_5/lib/libcairo.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /opt/homebrew/Cellar/libpng/1.6.37/lib/libpng16.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /opt/homebrew/Cellar/zlib/1.2.11/lib/libz.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64

...

ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I can confirm my emacs-plus is compiled natively on a M1 MBA (macOS 11.6.6), and the resultant Emacs process sampling shows Code Type: ARM64. In addition, it seems the Emacs builds from: https://emacsformacosx.com do not suffer from the same issue, so I wonder if I've made some error in my emacs-plus installation or configuration. Any suggestion is much appreciated.

@danilevy1212
Copy link

Same problem here.

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

No branches or pull requests

2 participants