[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Cross-compiling Busybox debian package



Dear Debian Mentors and Busybox Deb maintainers,

This is my first debian package compilation :)

I'm trying to cross compile the busybox deb package (ADM64 -> ARM64).

After reading a bit of doc on the compilation I do the following steps:

dpkg --add-architecture arm64
apt build-dep -aarm64 -y busybox
apt source busybox
cd busybox-1.35.0
export DEB_BUILD_OPTIONS=nocheck
debuild --host-arch arm64 -b --no-sign

You can find the complete step on my github repo:
https://github.com/clementperon/busybox-ubnt-build/blob/main/.github/workflows/default.yml#L37-L71

But I got the following errors:
dpkg-shlibdeps: error: cannot find library libresolv.so.2 needed by
debian/busybox/bin/busybox (ELF format: 'elf64-littleaarch64' abi:
'020100b700000000'; RPATH: '')
2474dpkg-shlibdeps: error: cannot find library libc.so.6 needed by
debian/busybox/bin/busybox (ELF format: 'elf64-littleaarch64' abi:
'020100b700000000'; RPATH: '')
2475dpkg-shlibdeps: error: cannot find library ld-linux-aarch64.so.1
needed by debian/busybox/bin/busybox (ELF format:
'elf64-littleaarch64' abi: '020100b700000000'; RPATH: '')
2476

The arm64 shared libs are stored in
'/usr/aarch64-linux-gnu/lib/libc.so.6'
I tried to set LD_LIBRARY_PATH to /usr/aarch64-linux-gnu/lib
But it didn't help :(

Do you have any idea what I'm missing ?

Thanks for your help,
BR,
Clement


Reply to: