-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
Problem
The library only works on Linux x86-64 and fails on ARM64 systems including:
- Apple Silicon Macs (M1/M2/M3/M4)
- ARM-based Docker/DDEV containers
- ARM64 Linux servers
Error
Failed to load publiccode-parser library
Root Cause
Only one binary is shipped: lib/libpubliccode-parser.so (x86-64 Linux)
The library needs binaries for:
- Linux ARM64
- macOS Intel (x86-64)
- macOS Apple Silicon (ARM64)
Solution Needed
- Build binaries for all architectures in CI
- Update
src/Parser.phpto detect platform and load correct binary - Ship all binaries with the package
- Update README to reflect multi-platform support
Files to Modify
Makefile- add cross-compilation targetssrc/Parser.php:150-169- add platform detection.github/workflows/packagist.yml- build all architecturesREADME.md:13- update supported platforms
Related
The Go library already supports cross-compilation, so this is mainly a build/distribution issue.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels