Skip to content

Conversation

@Radon10043
Copy link
Contributor

When running tools/create-buildroot-image.sh, the following error occurs:

OpenSSL version mismatch. Built against 30000020, you have 30400010
make: *** [fs/ext2/ext2.mk:65: /vol/linux/bisect/buildroot/output/images/rootfs.ext2] Error 255

The reason is that buildroot set LD_LIBRARY_PATH to 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_PATH when invoking ssh-keygen.

@a-nogikh
Copy link
Collaborator

I've never observed it when I was running the script locally. Could it be that the problem is somehow related to your environment?

@Radon10043
Copy link
Contributor Author

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

@a-nogikh
Copy link
Collaborator

Thanks for providing the clean way to reproduce it!
That also caused the same problem on my side.

a-nogikh
a-nogikh previously approved these changes Jan 26, 2026
@a-nogikh a-nogikh enabled auto-merge January 26, 2026 09:39
@a-nogikh a-nogikh added this pull request to the merge queue Jan 26, 2026
@Radon10043
Copy link
Contributor Author

@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 a-nogikh removed this pull request from the merge queue due to a manual request Jan 26, 2026
Copy link
Collaborator

@a-nogikh a-nogikh left a comment

Choose a reason for hiding this comment

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

Thanks!

@a-nogikh a-nogikh enabled auto-merge January 26, 2026 10:14
@a-nogikh a-nogikh added this pull request to the merge queue Jan 26, 2026
Merged via the queue into google:master with commit ee98cb7 Jan 26, 2026
18 checks passed
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.

2 participants