all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#72976: LXC 4.0.12 does not build with latest glibc
@ 2024-09-02 14:03 kasper.andersson--- via Bug reports for GNU Guix
  2024-09-02 21:03 ` bug#72976: [PATCH] gnu: lxc: bump to 6.0.1 Jakob Kirsch via Bug reports for GNU Guix
                   ` (10 more replies)
  0 siblings, 11 replies; 14+ messages in thread
From: kasper.andersson--- via Bug reports for GNU Guix @ 2024-09-02 14:03 UTC (permalink / raw)
  To: 72976

[-- Attachment #1: Type: text/plain, Size: 4399 bytes --]

In the build log, it complains about mismatching pointer types.

In the upstream git repository, an issue was opened about a build error which looks very similar, pointing to an incompatibility with later glibc versions: https://github.com/lxc/lxc/issues/4183

I don't have the time to write and test a patch for it at this moment, but the solution looks to be updating the lxc package to a later supported version.

Here is what I believe to be the relevant part of the log:
mount_utils.c: In function ‘create_detached_idmapped_mount’:
mount_utils.c:297:29: error: passing argument 4 of ‘mount_setattr’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  297 |                             &attr, sizeof(attr));
      |                             ^~~~~
      |                             |
      |                             struct lxc_mount_attr *
In file included from mount_utils.c:9:
/gnu/store/zvlp3n8iwa1svxmwv4q22pv1pb1c9pjq-glibc-2.39/include/sys/mount.h:320:46: note: expected ‘struct mount_attr *’ but argument is of type ‘struct lxc_mount_attr *’
  320 |                           struct mount_attr *__uattr, size_t __usize)
      |                           ~~~~~~~~~~~~~~~~~~~^~~~~~~
mount_utils.c: In function ‘__fd_bind_mount’:
mount_utils.c:380:37: error: passing argument 4 of ‘mount_setattr’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  380 |                                     &attr, sizeof(attr));
      |                                     ^~~~~
      |                                     |
      |                                     struct lxc_mount_attr *
In file included from mount_utils.c:9:
/gnu/store/zvlp3n8iwa1svxmwv4q22pv1pb1c9pjq-glibc-2.39/include/sys/mount.h:320:46: note: expected ‘struct mount_attr *’ but argument is of type ‘struct lxc_mount_attr *’
  320 |                           struct mount_attr *__uattr, size_t __usize)
      |                           ~~~~~~~~~~~~~~~~~~~^~~~~~~
conf.c: In function ‘__lxc_idmapped_mounts_child’:
conf.c:2989:37: error: passing argument 4 of ‘mount_setattr’ from incompatible pointer type [-Werror=incompatible-pointer-types]
2989 |                                     &attr,
      |                                     ^~~~~
      |                                     |
      |                                     struct lxc_mount_attr *
In file included from conf.c:22:
/gnu/store/zvlp3n8iwa1svxmwv4q22pv1pb1c9pjq-glibc-2.39/include/sys/mount.h:320:46: note: expected ‘struct mount_attr *’ but argument is of type ‘struct lxc_mount_attr *’
  320 |                           struct mount_attr *__uattr, size_t __usize)
      |                           ~~~~~~~~~~~~~~~~~~~^~~~~~~
conf.c:3012:41: error: passing argument 4 of ‘mount_setattr’ from incompatible pointer type [-Werror=incompatible-pointer-types]
3012 |                                         &attr,
      |                                         ^~~~~
      |                                         |
      |                                         struct lxc_mount_attr *
In file included from conf.c:22:
/gnu/store/zvlp3n8iwa1svxmwv4q22pv1pb1c9pjq-glibc-2.39/include/sys/mount.h:320:46: note: expected ‘struct mount_attr *’ but argument is of type ‘struct lxc_mount_attr *’
  320 |                           struct mount_attr *__uattr, size_t __usize)
      |                           ~~~~~~~~~~~~~~~~~~~^~~~~~~

Best regards,
Kasper

[-- Attachment #2: Type: text/html, Size: 9234 bytes --]

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

end of thread, other threads:[~2024-09-19  9:56 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-02 14:03 bug#72976: LXC 4.0.12 does not build with latest glibc kasper.andersson--- via Bug reports for GNU Guix
2024-09-02 21:03 ` bug#72976: [PATCH] gnu: lxc: bump to 6.0.1 Jakob Kirsch via Bug reports for GNU Guix
2024-09-02 21:06 ` Jakob Kirsch via Bug reports for GNU Guix
2024-09-02 21:13   ` bug#72976: LXC 4.0.12 does not build with latest glibc Jakob Kirsch via Bug reports for GNU Guix
2024-09-07 16:33 ` bug#72976: [PATCH] gnu: lxc: Update to 6.0.1 Jakob Kirsch via Bug reports for GNU Guix
2024-09-07 16:57 ` Jakob Kirsch via Bug reports for GNU Guix
2024-09-07 17:12   ` Liliana Marie Prikler
2024-09-08 15:09 ` Jakob Kirsch via Bug reports for GNU Guix
2024-09-11 19:00 ` bug#72976: [PATCH v6] " Jakob Kirsch via Bug reports for GNU Guix
2024-09-12 22:29 ` bug#72976: [PATCH v7] " Jakob Kirsch via Bug reports for GNU Guix
2024-09-14  0:17 ` bug#72976: [PATCH v8] " Jakob Kirsch via Bug reports for GNU Guix
2024-09-18 19:15 ` bug#72976: [PATCH v9] " Jakob Kirsch via Bug reports for GNU Guix
2024-09-19  9:07 ` bug#72976: [PATCH v10] " Jakob Kirsch via Bug reports for GNU Guix
2024-09-19  9:54 ` bug#72976: [PATCH v11] " Jakob Kirsch via Bug reports for GNU Guix

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.