Bug 16072 - Make 4.4.1 breaks glibc 2.38 build when cross compiling for arm_hf
Summary: Make 4.4.1 breaks glibc 2.38 build when cross compiling for arm_hf
Status: RESOLVED MOVED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2024.02.1
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-13 23:05 UTC by Farhan Ali
Modified: 2024-06-15 15:21 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!