Skip to content

Conversation

@justinmichaud
Copy link
Collaborator

This allows the python installation to work with lldb scripts in the WebKit repo, like dump-class-layout.

@justinmichaud justinmichaud mentioned this pull request Jan 28, 2025
user_home=$(getent passwd "${container_user_name}" | cut -d: -f6)

sudo apt install lsb-release wget software-properties-common gnupg -y
wget -qO - https://apt.llvm.org/llvm.sh | sudo bash -s 19 -y
Copy link
Member

@TingPing TingPing Feb 17, 2025

Choose a reason for hiding this comment

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

  1. Installing core packages doesn't belong in .wkdev-init, it would go in the dockerfile.
  2. Downloading and installing the entire llvm toolchain is a pretty massive change... Can you not get Ubuntu's LLVM 18 working?

FWIW, I use the LLDB integration in VSCode every day without issue.

Copy link
Member

Choose a reason for hiding this comment

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

I agree, we should try to use the LLVM bundled with Ubuntu and find out the root cause of the issue. @justinmichaud wdyt?

@justinmichaud
Copy link
Collaborator Author

The root cause is a missing symlink:

sudo apt install python3-lldb-20
sudo cp /usr/lib/llvm-20/lib/python3.12/site-packages/lldb/../../../liblldb.so.1 /usr/lib/llvm-20/lib/python3.12/site-packages/lldb/../../../liblldb.so
PYTHONPATH="/usr/lib/llvm-20/lib/python3.12/site-packages/:$PYTHONPATH" linux32 python3 Tools/Scripts/dump-class-layout -t WebKitBuild/JSCOnly/Debug/lib/libJavaScriptCore.so JavaScriptCore JSC::JSCell

works

@nikolaszimmermann
Copy link
Member

Can you update the PR @justinmichaud so we can merge it with the symlink fix instead? Can be done in the Containerfile.

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.

3 participants