Skip to content

Add LLVM 19 and 20 bootstrap shards. #422

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

maleadt
Copy link
Contributor

@maleadt maleadt commented Apr 16, 2025

No description provided.

@maleadt
Copy link
Contributor Author

maleadt commented Apr 16, 2025

Error loading shared library libxml2.so.16: No such file or directory (needed by /opt/x86_64-linux-musl/bin/../lib/libLLVM.so.20.1)
Error relocating /opt/x86_64-linux-musl/bin/../lib/libLLVM.so.20.1: xmlDocGetRootElement: symbol not found
Error relocating /opt/x86_64-linux-musl/bin/../lib/libLLVM.so.20.1: xmlNewNs: symbol not found
Error relocating /opt/x86_64-linux-musl/bin/../lib/libLLVM.so.20.1: xmlDocSetRootElement: symbol not found
Error relocating /opt/x86_64-linux-musl/bin/../lib/libLLVM.so.20.1: xmlCopyNamespace: symbol not found
Error relocating /opt/x86_64-linux-musl/bin/../lib/libLLVM.so.20.1: xmlSetGenericErrorFunc: symbol not found
Error relocating /opt/x86_64-linux-musl/bin/../lib/libLLVM.so.20.1: xmlStrdup: symbol not found
Error relocating /opt/x86_64-linux-musl/bin/../lib/libLLVM.so.20.1: xmlReadMemory: symbol not found
Error relocating /opt/x86_64-linux-musl/bin/../lib/libLLVM.so.20.1: xmlUnlinkNode: symbol not found
Error relocating /opt/x86_64-linux-musl/bin/../lib/libLLVM.so.20.1: xmlNewDoc: symbol not found
Error relocating /opt/x86_64-linux-musl/bin/../lib/libLLVM.so.20.1: xmlFreeDoc: symbol not found
Error relocating /opt/x86_64-linux-musl/bin/../lib/libLLVM.so.20.1: xmlNewProp: symbol not found
Error relocating /opt/x86_64-linux-musl/bin/../lib/libLLVM.so.20.1: xmlFreeNs: symbol not found
Error relocating /opt/x86_64-linux-musl/bin/../lib/libLLVM.so.20.1: xmlDocDumpFormatMemoryEnc: symbol not found
Error relocating /opt/x86_64-linux-musl/bin/../lib/libLLVM.so.20.1: xmlFreeNode: symbol not found
Error relocating /opt/x86_64-linux-musl/bin/../lib/libLLVM.so.20.1: xmlAddChild: symbol not found
Error relocating /opt/x86_64-linux-musl/bin/../lib/libLLVM.so.20.1: xmlFree: symbol not found

Yet libxml2 is included...

❯ tar -tvf LLVMBootstrap.*.x86_64-linux-musl.tar.gz | grep xml
drwxr-xr-x 0/0               0 1970-01-01 01:00 include/libxml2
drwxr-xr-x 0/0               0 1970-01-01 01:00 include/libxml2/libxml
drwxr-xr-x 0/0               0 1970-01-01 01:00 lib/cmake/libxml2
drwxr-xr-x 0/0               0 1970-01-01 01:00 share/gtk-doc/html/libxml2
lrwxr-xr-x 0/0               0 1970-01-01 01:00 x86_64-linux-musl/lib64/libxml2.so -> libxml2.so.16.0.1
-rwxr-xr-x 0/0         5667928 1970-01-01 01:00 x86_64-linux-musl/lib64/libxml2.so.16.0.1
lrwxr-xr-x 0/0               0 1970-01-01 01:00 x86_64-linux-musl/lib64/libxml2.so.2 -> libxml2.so.16.0.1

Looks like the build switched from linking against libxml2.so.2 to libxml2.so.16.

@giordano
Copy link
Member

Xml2 had a breaking change

@giordano
Copy link
Member

See JuliaPackaging/Yggdrasil#10965

@maleadt
Copy link
Contributor Author

maleadt commented Apr 16, 2025

OK, so what are you suggesting? Superficially it seems like there's just a library symlink missing.

@giordano
Copy link
Member

I haven't inspected yet how xml2 is used here, but we consistently should make sure that we use a compatible version at all time.

@maleadt
Copy link
Contributor Author

maleadt commented Apr 16, 2025

Seems to work with the additional libxml2 symlink (or at least passes whatever tests are done here).

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@maleadt
Copy link
Contributor Author

maleadt commented Apr 16, 2025

In addition, PoCL builds find with the LLVM 20 toolchain added here.

@giordano Is there anything else you want me to check?

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

Successfully merging this pull request may close these issues.

None yet

2 participants