Bug 15156

Summary: Excess libraries are installed to the ARM64 QEMU target.
Product: buildroot Reporter: A.K <Alexey.Kazantsev>
Component: OtherAssignee: unassigned
Status: RESOLVED MOVED    
Severity: normal CC: buildroot, yann.morin.1998
Priority: P5    
Version: 2022.08.2   
Target Milestone: ---   
Hardware: All   
OS: All   
Host: Target:
Build:

Description A.K 2022-11-28 08:47:25 UTC
Hello!

Is have noticed, that in the image built with qemu_aarch64_virt_defconfig config some libraries not required by the image binaries, i.e.: libgcc_s.so.1, libgcc_s.so, libatomic.so .

These libraries are listed in the TOOLCHAIN_EXTERNAL_LIBS variable in the toolchain/toolchain-external/pkg-toolchain-external.mk file.

As I can see, they are not installed in the same way as other libraries, however, they defenitelly excess in the built rootfs.

Is it possible adding build stage to clean these unused libraries?

This issue exists in 2022.11-rc2 also.
Comment 1 A.K 2022-12-05 10:00:38 UTC
Little fix: for the qemu_aarch64_virt_defconfig config, please refer package/gcc/gcc-final/gcc-final.mk , definition of components of HOST_GCC_FINAL_POST_INSTALL_HOOKS .
Comment 2 Yann E. MORIN 2024-06-15 15:04:22 UTC
Thank you for your report.

The issue tracker for the Buildroot project has been moved to
the Gitlab.com issue tracker:
    https://gitlab.com/buildroot.org/buildroot/-/issues

We are taking this opportunity to close old issues in this old
tracker. If you believe your issue is still relevant, please
open one in the new issue tracker.

Thank you!