enclustra-bsp / bsp-xilinx

25 stars 14 forks source link

Buildroot failed after a fresh GitClone #42

Open pmaillard23 opened 1 year ago

pmaillard23 commented 1 year ago

After a fresh git clone of bsp-xillink (master branch), I ran build.sh with

I am working on windows 10 with ubuntu 22.04.2 LTS (tried both with WSL and a VirtualMachine ) => Building U-Boot OK => Building Linux OK => Building Buildroot KO

see extract of log file below:

Generating boot image bootgen -arch zynqmp -image boot.bif -w -o boot.bin bootgen: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory Error generating bootimage: bootimage

BUILD FAILED Device: Zynq-Ultrascale+ Mars XU3 Mars EB1 MMC Targets: U-Boot (fetch + build), Buildroot (fetch + build), Linux (fetch + build) Binaries: MA-XU3-3EG-2I-D11

The lib libcrypto.so.1.1 above seems to have been compiled several times... ./sources/buildroot-rootfs/output/target/usr/lib/libcrypto.so.1.1 ./sources/buildroot-rootfs/output/build/libopenssl-1.1.1q/libcrypto.so.1.1 ./sources/buildroot-rootfs/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libcrypto.so.1.1

Any ideas? Am I the only one with this issue?

modersohn commented 1 year ago

I just ran into the same problem. The issue is not that the generated image is lacking libcrypto.so.1.1 but your system is missing it. I guess that's why the officially supported distro is Ubuntu 20.04 LTS and not 22.04.

I solved this by manually installing libssl1.1 as outlined here: https://askubuntu.com/questions/1403778/upgrading-to-ubuntu-22-04-causes-libcrypto-errors-apt-dpkg-broken