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

zim-tools should be published on macOS ARM #593

Closed
kelson42 opened this issue Apr 12, 2023 · 6 comments · Fixed by #649
Closed

zim-tools should be published on macOS ARM #593

kelson42 opened this issue Apr 12, 2023 · 6 comments · Fixed by #649
Assignees

Comments

@kelson42
Copy link
Contributor

No description provided.

@mgautierfr
Copy link
Member

For now zim-tools doesn't compile of macOS_arm_static as meson doesn't find libmagic.
Maybe related to openzim/zim-tools#344

@kelson42 kelson42 pinned this issue Jun 7, 2023
@rgaudin
Copy link
Member

rgaudin commented Jun 12, 2023

Do you have more details? Do you know what meson is looking for? @FledgeXu uses an arm64 macOS and certainly has a functioning libmagic as it's used by scraperlib.

@mgautierfr
Copy link
Member

@FledgeXu
Copy link

I just tested it.
zimdump and zimsplit are still broken. Here is the log:

❯ ./zimdump
dyld[12475]: Library not loaded: @rpath/libdocopt.dylib
  Referenced from: <29FB06CF-F024-319E-ADCA-001EADE493D7> /Users/fledge/Downloads/zim-tools_macos-arm64-2023-06-12/zimdump
  Reason: tried: '/usr/local/lib/libdocopt.dylib' (no such file), '/usr/lib/libdocopt.dylib' (no such file, not in dyld cache)
zsh: abort      ./zimdump
❯ ./zimsplit
dyld[12571]: Library not loaded: @rpath/libdocopt.dylib
  Referenced from: <F6C57745-5824-3900-9C5D-81C2CA65C978> /Users/fledge/Downloads/zim-tools_macos-arm64-2023-06-12/zimsplit
  Reason: tried: '/usr/local/lib/libdocopt.dylib' (no such file), '/usr/lib/libdocopt.dylib' (no such file, not in dyld cache)
zsh: abort      ./zimsplit

@mgautierfr
Copy link
Member

Hum...

From https://tmp.kiwix.org/ci/fail_log_macos_macOS_arm64_static.tar.gz (which was a upload of fail compilation before 5a86f83 (#624), but configuration step is the same), we have this :
Rejected /Users/runner/BUILD_macOS_arm64_static/INSTALL/lib/libdocopt.a, supports ['aarch64'] but need arm64

I suspect some inconsistency in https://github.com/kiwix/kiwix-build/blob/main/kiwixbuild/platforms/ios.py#L146-L152
but don't know how to solve it (should we have all aarch64 or arm64 ?).
Or the error is elsewhere ?

@kelson42
Copy link
Contributor Author

@automactic ping?

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