Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [Question] Difficulties with Autotools and nilfs-utils package
@ 2025-07-06  3:37 Matthew Silva
  2025-07-06  5:04 ` Baruch Siach via buildroot
  0 siblings, 1 reply; 3+ messages in thread
From: Matthew Silva @ 2025-07-06  3:37 UTC (permalink / raw)
  To: buildroot

Hi all.

I am in the process of attempting to add partclone
(https://github.com/Thomas-Tsai/partclone) to buildroot; however, I'm
running into some issues with its dependency on the nilfs-utils package.

I add it as a dependency both in the Config.in and partclone.mk file but
when the autotools ./configure runs for partclone, it fails with an
error saying it is unable to find the "nilfs.h" header file.

Looking at the target /usr/include folder, the nilfs.h header is
installed there. However, it is not present in the sysroot /usr/include
folder.

Comparing this to the e2fsprogs dependency that partclone also has, the
required "ext2fs.h" header file gets installed in both the target AND
the sysroot /usr/include folders.

My understanding is that autotools is failing because it expects the
nilfs.h file to be in the sysroot. And it needs to be in the sysroot
because that is where the cross-compiler (x86_64-buildroot-linux-gnu in
this case) looks for files when building for the target. (Please correct
me if I am wrong on either of these).

I am unable to figure out why the nilfs-utils package will not install
its headers into the sysroot folder. I am not sure if it is a buildroot
setting or an autotools setting that would be the cause of this issue.

Curious if anyone has seen this before or knows what could be causing
this. Any guidance is appreciated.

Thanks.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Buildroot] [Question] Difficulties with Autotools and nilfs-utils package
  2025-07-06  3:37 [Buildroot] [Question] Difficulties with Autotools and nilfs-utils package Matthew Silva
@ 2025-07-06  5:04 ` Baruch Siach via buildroot
  2025-07-06 16:35   ` Matthew Silva
  0 siblings, 1 reply; 3+ messages in thread
From: Baruch Siach via buildroot @ 2025-07-06  5:04 UTC (permalink / raw)
  To: Matthew Silva; +Cc: buildroot

Hi Matthew,

On Sat, Jul 05 2025, Matthew Silva wrote:
> I am in the process of attempting to add partclone
> (https://github.com/Thomas-Tsai/partclone) to buildroot; however, I'm
> running into some issues with its dependency on the nilfs-utils package.
>
> I add it as a dependency both in the Config.in and partclone.mk file but
> when the autotools ./configure runs for partclone, it fails with an
> error saying it is unable to find the "nilfs.h" header file.
>
> Looking at the target /usr/include folder, the nilfs.h header is
> installed there. However, it is not present in the sysroot /usr/include
> folder.
>
> Comparing this to the e2fsprogs dependency that partclone also has, the
> required "ext2fs.h" header file gets installed in both the target AND
> the sysroot /usr/include folders.
>
> My understanding is that autotools is failing because it expects the
> nilfs.h file to be in the sysroot. And it needs to be in the sysroot
> because that is where the cross-compiler (x86_64-buildroot-linux-gnu in
> this case) looks for files when building for the target. (Please correct
> me if I am wrong on either of these).
>
> I am unable to figure out why the nilfs-utils package will not install
> its headers into the sysroot folder. I am not sure if it is a buildroot
> setting or an autotools setting that would be the cause of this issue.

Try adding 'NILFS_UTILS_INSTALL_STAGING = YES' to
package/nilfs-utils/nilfs-utils.mk.

baruch

-- 
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch@tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Buildroot] [Question] Difficulties with Autotools and nilfs-utils package
  2025-07-06  5:04 ` Baruch Siach via buildroot
@ 2025-07-06 16:35   ` Matthew Silva
  0 siblings, 0 replies; 3+ messages in thread
From: Matthew Silva @ 2025-07-06 16:35 UTC (permalink / raw)
  To: Baruch Siach; +Cc: buildroot

On Sun Jul 6, 2025 at 1:04 AM EDT, Baruch Siach wrote:
> Hi Matthew,
>
> On Sat, Jul 05 2025, Matthew Silva wrote:
>> I am in the process of attempting to add partclone
>> (https://github.com/Thomas-Tsai/partclone) to buildroot; however, I'm
>> running into some issues with its dependency on the nilfs-utils package.
>>
>> I add it as a dependency both in the Config.in and partclone.mk file but
>> when the autotools ./configure runs for partclone, it fails with an
>> error saying it is unable to find the "nilfs.h" header file.
>>
>> Looking at the target /usr/include folder, the nilfs.h header is
>> installed there. However, it is not present in the sysroot /usr/include
>> folder.
>>
>> Comparing this to the e2fsprogs dependency that partclone also has, the
>> required "ext2fs.h" header file gets installed in both the target AND
>> the sysroot /usr/include folders.
>>
>> My understanding is that autotools is failing because it expects the
>> nilfs.h file to be in the sysroot. And it needs to be in the sysroot
>> because that is where the cross-compiler (x86_64-buildroot-linux-gnu in
>> this case) looks for files when building for the target. (Please correct
>> me if I am wrong on either of these).
>>
>> I am unable to figure out why the nilfs-utils package will not install
>> its headers into the sysroot folder. I am not sure if it is a buildroot
>> setting or an autotools setting that would be the cause of this issue.
>
> Try adding 'NILFS_UTILS_INSTALL_STAGING = YES' to
> package/nilfs-utils/nilfs-utils.mk.
>
> baruch

That fixed the issue perfectly.

I appreciate the help, Baruch.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-07-06 16:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-06  3:37 [Buildroot] [Question] Difficulties with Autotools and nilfs-utils package Matthew Silva
2025-07-06  5:04 ` Baruch Siach via buildroot
2025-07-06 16:35   ` Matthew Silva

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox