mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] util-linux fail to compile with 2023.10.0
@ 2023-10-25 13:48 Mircea Ciocan
  2023-10-25 19:38 ` Christian Melki
  2023-10-27  6:16 ` Michael Olbrich
  0 siblings, 2 replies; 4+ messages in thread
From: Mircea Ciocan @ 2023-10-25 13:48 UTC (permalink / raw)
  To: ptxdist

Hello list,

while attempting to compile ptxdist with 2023.10.0 I've encountered a failure in cfdisk package, that is build regardless if it is selected or not in the ptxconfig :(, no one seems to use PTXCONF_UTIL_LINUX_CFDISK to select if the cfdisk utility is build or not, but unfortunately if also no other packages that use the ncurses library are also not selected, when cfdisk is compiled the following error occurs:

[479/612] Linking target cfdisk
FAILED: cfdisk 
/opt/OSELAS.Toolchain-2023.07.0/arm-v7a-linux-gnueabihf/gcc-13.2.0-clang-17.0.1-glibc-2.37-binutils-2.41-kernel-6.1-sanitized/lib/gcc/arm-v7a-linux-gnueabihf/13.2.0/../../../../arm-v7a-linux-gnueabihf/bin/ld: platform-dabija/build-target/util-linux-2.39.2-build/../util-linux-2.39.2/disk-utils/cfdisk.c:685:(.text+0x50): undefined reference to `wclrtoeol'
/opt/OSELAS.Toolchain-2023.07.0/arm-v7a-linux-gnueabihf/gcc-13.2.0-clang-17.0.1-glibc-2.37-binutils-2.41-kernel-6.1-sanitized/lib/gcc/arm-v7a-linux-gnueabihf/13.2.0/../../../../arm-v7a-linux-gnueabihf/bin/ld: platform-dabija/build-target/util-linux-2.39.2-build/../util-linux-2.39.2/disk-utils/cfdisk.c:697:(.text+0xae): undefined reference to `wattr_on'
[...snip many more similar messages...]

Maybe the maintainer of the package will have a look, because I think there may be some other packages that are not actually constrained with the ptxconf selection options.

Best regards,
Mircea



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

* Re: [ptxdist] util-linux fail to compile with 2023.10.0
  2023-10-25 13:48 [ptxdist] util-linux fail to compile with 2023.10.0 Mircea Ciocan
@ 2023-10-25 19:38 ` Christian Melki
  2023-10-25 19:53   ` Mircea Ciocan
  2023-10-27  6:16 ` Michael Olbrich
  1 sibling, 1 reply; 4+ messages in thread
From: Christian Melki @ 2023-10-25 19:38 UTC (permalink / raw)
  To: Mircea Ciocan; +Cc: ptxdist

On 10/25/23 15:48, Mircea Ciocan wrote:
> Hello list,
> 
> while attempting to compile ptxdist with 2023.10.0 I've encountered a failure in cfdisk package, that is build regardless if it is selected or not in the ptxconfig :(, no one seems to use PTXCONF_UTIL_LINUX_CFDISK to select if the cfdisk utility is build or not,

Hi!

This is is what I see:
CFDISK is a separate flag that sets FDISKS.
FDISKS is then used to build all fdisks.
But only the selected fdisks get installed.
I don't see an error here?

but unfortunately if also no other packages that use the ncurses library
are also not selected, when cfdisk is compiled the following error occurs:

Do I understand it correctly when you say that the only user of ncurses
in your entire build is cfdisk? Seems quite odd, hence my rather stupid
question. In that case, can you please check that NCURSES actually gets
built before util-linux?
And that your selected ptxconfig contains ncurses?

> 
> [479/612] Linking target cfdisk
> FAILED: cfdisk 
> /opt/OSELAS.Toolchain-2023.07.0/arm-v7a-linux-gnueabihf/gcc-13.2.0-clang-17.0.1-glibc-2.37-binutils-2.41-kernel-6.1-sanitized/lib/gcc/arm-v7a-linux-gnueabihf/13.2.0/../../../../arm-v7a-linux-gnueabihf/bin/ld: platform-dabija/build-target/util-linux-2.39.2-build/../util-linux-2.39.2/disk-utils/cfdisk.c:685:(.text+0x50): undefined reference to `wclrtoeol'
> /opt/OSELAS.Toolchain-2023.07.0/arm-v7a-linux-gnueabihf/gcc-13.2.0-clang-17.0.1-glibc-2.37-binutils-2.41-kernel-6.1-sanitized/lib/gcc/arm-v7a-linux-gnueabihf/13.2.0/../../../../arm-v7a-linux-gnueabihf/bin/ld: platform-dabija/build-target/util-linux-2.39.2-build/../util-linux-2.39.2/disk-utils/cfdisk.c:697:(.text+0xae): undefined reference to `wattr_on'
> [...snip many more similar messages...]
> 
> Maybe the maintainer of the package will have a look, because I think there may be some other packages that are not actually constrained with the ptxconf selection options.
> 

I couldn't reproduce this in 09 or 10. x86_64 or arm-v7a.
Now I don't have an ncurses cfdisk only build nor do I have OSELAS as
toolchain. I don't think the latter should make much of a difference
though. Our toolchain for arm-v7a looks rather similar in components.

Regards,
Christian

> Best regards,
> Mircea
> 




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

* Re: [ptxdist] util-linux fail to compile with 2023.10.0
  2023-10-25 19:38 ` Christian Melki
@ 2023-10-25 19:53   ` Mircea Ciocan
  0 siblings, 0 replies; 4+ messages in thread
From: Mircea Ciocan @ 2023-10-25 19:53 UTC (permalink / raw)
  To: christian melki; +Cc: ptxdist



----- Ursprüngliche Mail -----
Von: "Christian Melki" <christian.melki@t2data.com>
An: "Mircea Ciocan" <m.ciocan@ppc-ag.de>
CC: "ptxdist" <ptxdist@pengutronix.de>
Gesendet: Mittwoch, 25. Oktober 2023 21:38:18
Betreff: Re: [ptxdist] util-linux fail to compile with 2023.10.0

On 10/25/23 15:48, Mircea Ciocan wrote:
> Hello list,
> 
> while attempting to compile ptxdist with 2023.10.0 I've encountered a failure in cfdisk package, that is build regardless if it is selected or not in the ptxconfig :(, no one seems to use PTXCONF_UTIL_LINUX_CFDISK to select if the cfdisk utility is build or not,

Hi!

This is is what I see:
CFDISK is a separate flag that sets FDISKS.
FDISKS is then used to build all fdisks.
But only the selected fdisks get installed.
I don't see an error here?

but unfortunately if also no other packages that use the ncurses library
are also not selected, when cfdisk is compiled the following error occurs:

Do I understand it correctly when you say that the only user of ncurses
in your entire build is cfdisk? Seems quite odd, hence my rather stupid
question. In that case, can you please check that NCURSES actually gets
built before util-linux?
And that your selected ptxconfig contains ncurses?

> 
> [479/612] Linking target cfdisk
> FAILED: cfdisk 
> /opt/OSELAS.Toolchain-2023.07.0/arm-v7a-linux-gnueabihf/gcc-13.2.0-clang-17.0.1-glibc-2.37-binutils-2.41-kernel-6.1-sanitized/lib/gcc/arm-v7a-linux-gnueabihf/13.2.0/../../../../arm-v7a-linux-gnueabihf/bin/ld: platform-dabija/build-target/util-linux-2.39.2-build/../util-linux-2.39.2/disk-utils/cfdisk.c:685:(.text+0x50): undefined reference to `wclrtoeol'
> /opt/OSELAS.Toolchain-2023.07.0/arm-v7a-linux-gnueabihf/gcc-13.2.0-clang-17.0.1-glibc-2.37-binutils-2.41-kernel-6.1-sanitized/lib/gcc/arm-v7a-linux-gnueabihf/13.2.0/../../../../arm-v7a-linux-gnueabihf/bin/ld: platform-dabija/build-target/util-linux-2.39.2-build/../util-linux-2.39.2/disk-utils/cfdisk.c:697:(.text+0xae): undefined reference to `wattr_on'
> [...snip many more similar messages...]
> 
> Maybe the maintainer of the package will have a look, because I think there may be some other packages that are not actually constrained with the ptxconf selection options.
> 

I couldn't reproduce this in 09 or 10. x86_64 or arm-v7a.
Now I don't have an ncurses cfdisk only build nor do I have OSELAS as
toolchain. I don't think the latter should make much of a difference
though. Our toolchain for arm-v7a looks rather similar in components.

Regards,
Christian

> Best regards,
> Mircea
>

Thanks for the answer Christian, I'm at home now, but I remember that there were actually three sub-packages of util-linux that were selecting ncurses, in my configuration, by chance, none of them was selected and no other packages in the whole configuration are using ncurses, as my device is fully headless, there is no need for it.
The problem is that cfdisk can be individually de-selected in menuconfig, but still it is build, if is actually installed in the fw image even if deselected, this I don't know, I can test if you like.
Would be nice if cfdisk (and other parts of util-linux that can be individually deselected in the configuration menu) could be inhibited to be build at all when not selected, I don't know if is possible as an util-linux configuration parameter.
Right now, if I select cfdisk in the configuration menu, the build succeeds but I have yet another library that I don't need as well as anotother useless utility (for the specific use case).
I really don't know how to solve this, and I will be happy to learn from this, the whole Meson crazyness is still new to me.
BTW, the previous release set of rules are working, but I believe these are still autoconf based.


 Best regards,
 Mircea




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

* Re: [ptxdist] util-linux fail to compile with 2023.10.0
  2023-10-25 13:48 [ptxdist] util-linux fail to compile with 2023.10.0 Mircea Ciocan
  2023-10-25 19:38 ` Christian Melki
@ 2023-10-27  6:16 ` Michael Olbrich
  1 sibling, 0 replies; 4+ messages in thread
From: Michael Olbrich @ 2023-10-27  6:16 UTC (permalink / raw)
  To: Mircea Ciocan; +Cc: ptxdist

On Wed, Oct 25, 2023 at 03:48:22PM +0200, Mircea Ciocan wrote:
> while attempting to compile ptxdist with 2023.10.0 I've encountered a failure in cfdisk package, that is build regardless if it is selected or not in the ptxconfig :(, no one seems to use PTXCONF_UTIL_LINUX_CFDISK to select if the cfdisk utility is build or not, but unfortunately if also no other packages that use the ncurses library are also not selected, when cfdisk is compiled the following error occurs:
> 
> [479/612] Linking target cfdisk
> FAILED: cfdisk 
> /opt/OSELAS.Toolchain-2023.07.0/arm-v7a-linux-gnueabihf/gcc-13.2.0-clang-17.0.1-glibc-2.37-binutils-2.41-kernel-6.1-sanitized/lib/gcc/arm-v7a-linux-gnueabihf/13.2.0/../../../../arm-v7a-linux-gnueabihf/bin/ld: platform-dabija/build-target/util-linux-2.39.2-build/../util-linux-2.39.2/disk-utils/cfdisk.c:685:(.text+0x50): undefined reference to `wclrtoeol'
> /opt/OSELAS.Toolchain-2023.07.0/arm-v7a-linux-gnueabihf/gcc-13.2.0-clang-17.0.1-glibc-2.37-binutils-2.41-kernel-6.1-sanitized/lib/gcc/arm-v7a-linux-gnueabihf/13.2.0/../../../../arm-v7a-linux-gnueabihf/bin/ld: platform-dabija/build-target/util-linux-2.39.2-build/../util-linux-2.39.2/disk-utils/cfdisk.c:697:(.text+0xae): undefined reference to `wattr_on'
> [...snip many more similar messages...]
> 
> Maybe the maintainer of the package will have a look, because I think there may be some other packages that are not actually constrained with the ptxconf selection options.

Can you try ptxdist master or copy rules/util-linux.in into your BSP? I
applied a patch that fixed some dependency issues related to ncurses in
util-linux.

Michael

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



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

end of thread, other threads:[~2023-10-27  6:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-25 13:48 [ptxdist] util-linux fail to compile with 2023.10.0 Mircea Ciocan
2023-10-25 19:38 ` Christian Melki
2023-10-25 19:53   ` Mircea Ciocan
2023-10-27  6:16 ` Michael Olbrich

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