Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions easybuild/easyblocks/l/llvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -748,6 +748,12 @@ def configure_step(self):
else:
self.general_opts['LLVM_ENABLE_LIBXML2'] = 'OFF'

libffi_root = get_software_root('libffi')
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We should've probably checked if libffi is a dependency, right (via self.cfg.dependencies())?
I think the failure in easybuilders/easybuild-easyconfigs#23603 (comment) may well be caused by this change (though I don't know why not on jsc-zen3)

self.general_opts['LLVM_ENABLE_FFI'] = 'ON' if libffi_root else 'OFF'
if libffi_root:
self.general_opts['FFI_INCLUDE_DIR'] = os.path.join(libffi_root, 'include')
self.general_opts['FFI_LIBRARY_DIR'] = os.path.join(libffi_root, 'lib64')

# If 'ON', risk finding a system zlib or zstd leading to including /usr/include as -isystem that can lead
# to errors during compilation of 'offload.tools.kernelreplay' due to the inclusion of LLVMSupport (19.x)
self.general_opts['LLVM_ENABLE_ZLIB'] = 'ON' if get_software_root('zlib') else 'OFF'
Expand Down