Skip to contentSkip to conversation

New: Using BR2_CONFIG= on a different file-system than O= (build outputs) fails with kconfig syncconfig error

Buildroot [email protected] 1 participant 2 messages Nov 18, 2023

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=15856

Bug ID: 15856
Summary: Using BR2_CONFIG= on a different file-system than O=
(build outputs) fails with kconfig syncconfig error
Product: buildroot
Version: 2023.08.3
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---

If one has BuildRoot sources checked out on a file-system, but uses a build outputs folder on a different file-system (via make O=...) and one also specifies BR2_CONFIG on the first file-system (the one holding the sources), the make syncconfig target fails with an *** Error during update of the configuration. error.

strace-ing the conf syncconfig invocation leads me to the following conclusion:

* something in the build system (perhaps kconfig) creates temporary files in the parent folder of the configuration file (the one specified via BR2_CONFIG);

* but then it tries to move it inside the outputs folder with a simple rename syscall`;

* this fails because the rename is cross mount points;

The output of strace (here /mnt/.../sources where the sources and the config are is a different mount point than /mnt/.../volatile where the outputs are):
~~~~
rename("/mnt/.../sources/buildroot/!custom/.tmpconfig.h", "/mnt/.../volatile/buildroot/build/build/buildroot-config/autoconf.h") = -1 EXDEV (Invalid cross-device link)
~~~~

Signature · 6 lines
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

[Buildroot] [Bug 15856] Using BR2_CONFIG= on a different file-system than O= (build outputs) fails with kconfig syncconfig error

https://bugs.busybox.net/show_bug.cgi?id=15856

Arnout Vandecappelle <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |WONTFIX
             Status|NEW                         |RESOLVED

--- Comment #1 from Arnout Vandecappelle <[email protected]> ---

Quoted 1 line

and one also specifies BR2_CONFIG

BR2_CONFIG is not something that is supposed to be overridden. It is supposed to reside in the same location as the output directory.

We will not accept patches that fix this specific problem you have.

What is your use case for putting the configuration file outside of the output directory? Perhaps we can find a better solution for this specific use case. However, please discuss this on the mailing list [1] rather than in the bug tracker.

[1] https://lists.buildroot.org/mailman/listinfo/buildroot

Signature · 6 lines
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot