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

install_sct: Install libffi from conda-forge, rather than defaults #4144

Merged
merged 2 commits into from Jun 29, 2023

Conversation

joshuacwnewton
Copy link
Member

Description

The defaults version of libffi performs some (presumably) backwards-compatible linking between versions of libffi. However, this isn't actually compatible as assumed; instead, this results in the following errors:

Check if figure can be opened with PyQt.............libGL error: MESA-LOADER: failed to open iris: /lib/x86_64-linux-gnu/libLLVM-11.so.1: undefined symbol: ffi_type_sint32, version LIBFFI_BASE_7.0 (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open iris: /lib/x86_64-linux-gnu/libLLVM-11.so.1: undefined symbol: ffi_type_sint32, version LIBFFI_BASE_7.0 (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open swrast: /lib/x86_64-linux-gnu/libLLVM-11.so.1: undefined symbol: ffi_type_sint32, version LIBFFI_BASE_7.0 (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
libGL error: failed to load driver: swrast

So, we install the conda-forge version of libffi, which does not (and will not) have this issue, as confirmed by the conda-forge feedstock maintainer.

Linked issues

Fixes #3927.

This helps to avoid symlinking .so.7 files to libffi 8, which avoids
"undefined symbol: ffi_type_sint32, version LIBFFI_BASE_7.0" errors.
@joshuacwnewton joshuacwnewton added the installation category: install_sct or pip/setup.py label Jun 26, 2023
@joshuacwnewton joshuacwnewton added this to the 6.0 milestone Jun 26, 2023
@joshuacwnewton joshuacwnewton self-assigned this Jun 26, 2023
Copy link
Member

@mguaypaq mguaypaq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the follow-up with upstream!

@mguaypaq mguaypaq merged commit e740edf into master Jun 29, 2023
24 checks passed
@mguaypaq mguaypaq deleted the jn/3927-fix-libffi-7-linking-issues branch June 29, 2023 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
installation category: install_sct or pip/setup.py
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Non-fatal libGL error: failed to load driver errors are thrown during sct_check_dependencies
2 participants