-
Notifications
You must be signed in to change notification settings - Fork 1.4k
tools: temporarily unset LD_LIBRARY_PATH when generating ssh key #6626
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
Conversation
|
I've never observed it when I was running the script locally. Could it be that the problem is somehow related to your environment? |
|
To avoid environment impacts, I ran a docker container based on ubuntu:22.04 and only installed the dependencies required to build buildroot, but the version mismatch error still occur. Here is the build log (I removed some contents on the beginning of the full log since github only allows files < 25MB to be uploaded). The commands I ran in the container are as follows: apt update
apt install -y git wget vim build-essential file cpio unzip rsync bc language-pack-en-base
git clone -b 2025.02.1 --depth 1 https://github.com/buildroot/buildroot
cd buildroot
wget https://github.com/google/syzkaller/raw/refs/heads/master/tools/create-buildroot-image.sh
chmod +x ./create-buildroot-image.sh
FORCE_UNSAFE_CONFIGURE=1 ./create-buildroot-image.sh |
|
Thanks for providing the clean way to reproduce it! |
|
@a-nogikh Sorry for the late reply, I haven't had time to modify the code yet. Could you please dequeue this pr first? :) |
a-nogikh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
When running tools/create-buildroot-image.sh, the following error occurs:
The reason is that buildroot set
LD_LIBRARY_PATHto include$BUILDROOT/output/host/lib. When the script invokes host's ssh-keygen, the dynamic linker loads the OpenSSL libraries built by buildroot instead of the host, which may resulting in version mismatch.To fix this issue, temporarily unset
LD_LIBRARY_PATHwhen invoking ssh-keygen.