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

FreeImage fails to build on Arm #21487

Open
bedroge opened this issue Sep 27, 2024 · 0 comments
Open

FreeImage fails to build on Arm #21487

bedroge opened this issue Sep 27, 2024 · 0 comments
Labels
aarch64 Related to Arm 64-bit (aarch64) bug report EESSI Related to EESSI project

Comments

@bedroge
Copy link
Contributor

bedroge commented Sep 27, 2024

See EESSI/software-layer#736 (comment) and the comments below that one, and https://sourceforge.net/p/freeimage/bugs/325/.

TLDR: FreeImage ships and builds the sources of some dependencies, e.g. zlib, libpng, libopenjpeg, etc. The libpng sources don't include the Neon code, though, causing errors when you try to link the shared library.

Using -DPNG_ARM_NEON_OPT=0 works around the issue, but it completely disables Neon. It would be better to replace all these shipped dependencies by EB-provided dependencies. Gentoo does the latter by using this "unbundling patch" in combination with a bunch of pre-build commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aarch64 Related to Arm 64-bit (aarch64) bug report EESSI Related to EESSI project
Projects
None yet
Development

No branches or pull requests

1 participant