Bug 16072

Summary: Make 4.4.1 breaks glibc 2.38 build when cross compiling for arm_hf
Product: buildroot Reporter: Farhan Ali <farhandude>
Component: OtherAssignee: unassigned
Status: RESOLVED MOVED    
Severity: normal CC: buildroot, yann.morin.1998
Priority: P5    
Version: 2024.02.1   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description Farhan Ali 2024-05-13 23:05:41 UTC
make 4.4.1 is showing some strange behavior when it comes to handling command line variables. Buildroot passes 'install_root' command line variable to the glibc build, this variable is processed in :

buildroot-2024.02.1/output/build/glibc-2.38-44-gd37c2b20a4787463d192b32041c3406c2bd91de0/build/config.make:

...
install_root = $(DESTDIR)
...

DESTDIR is empty
With make 4.4.1, install_root gets overridden in config.make
With make 4.2.1, install_root DOES NOT get overridden

Due to this overriding, glibc tries to install its artifacts in '/' which fails

Farhan
Comment 1 Farhan Ali 2024-05-13 23:08:20 UTC
Just adding this for reference:

make command-line variables cannot be overridden with simple assignment:

https://www.gnu.org/software/make/manual/html_node/Overriding.html
Comment 2 Yann E. MORIN 2024-06-15 15:21:46 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!