Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla@busybox.net
To: buildroot@uclibc.org
Subject: [Buildroot] [Bug 15856] New: Using BR2_CONFIG= on a different file-system than O= (build outputs) fails with kconfig syncconfig error
Date: Sat, 18 Nov 2023 08:59:15 +0000	[thread overview]
Message-ID: <bug-15856-163@https.bugs.busybox.net/> (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: unassigned@buildroot.uclibc.org
          Reporter: ciprian.craciun@gmail.com
                CC: buildroot@uclibc.org
  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)
~~~~

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

             reply	other threads:[~2023-11-18  8:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-18  8:59 bugzilla [this message]
2023-11-18 16:17 ` [Buildroot] [Bug 15856] Using BR2_CONFIG= on a different file-system than O= (build outputs) fails with kconfig syncconfig error bugzilla

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-15856-163@https.bugs.busybox.net/ \
    --to=bugzilla@busybox.net \
    --cc=buildroot@uclibc.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox