[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Failed to compile on Ubuntu 26.04 (qemu vs. glibc)


  • To: "xen-users@xxxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxxx>
  • From: Jan Kellermann <jan.kellermann@xxxxxxxxx>
  • Date: Tue, 30 Jun 2026 10:16:46 +0200
  • Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=dkimwerk21 header.d=werk21.de header.i="@werk21.de" header.h="Date:To:From:Subject"
  • Authentication-results: mx.werk21system.de (amavisd-new); dkim=pass (1024-bit key) header.d=werk21.de
  • Autocrypt: addr=jan.kellermann@xxxxxxxxx; keydata= xsDiBEb1xVcRBACYk9W3MXo1Na9ghYrBd7dqayiGILhyowQXLd3N5+fMm8h25OSZ4kqfwHPA m8KL+Tk5YUQmQ5C1ozye2RUxi9THLvIQ4+4U7LBfI8bjmyBilZ/rw5R0oTJte6qEDhjpCpjl yKAQhfv4FA6E42JMS0PoxW5aJaZawo8e6cR4NoIStwCg22RWWqOYg4ijokbzl8xT0/RKUQUD /Rg60qgt49dvGkDMweS87XtyZc3Lt0UKimAmP+VDOqgHmvtKrz859yXNwN2jqU5tvQjtlihm ViSrQKOvsZl5k7AsCpp0dW3sFZ66JNZRATxGIFTIm8OC7dKB86pFiUsqPCyHDPKeW74htlSR pXvtHbQPpnxnv/NIpQEOQw/CCt5gA/9VsT2G1jPevwuV+g2Dvm8RsHGdzwd/GQi34KHLoeqQ V3eb0Kr9dH9akjOWaXkwISopI8FH4HESFT9xnIbfkAGXdAfC+IA93fUOjiSzHkc6QyAjWCkT t4r3mhpMW/MF/du568Oq36PwXHzqXIFRt/yzpnnIyPo/loMEcciNT8PRO80pSmFuIEtlbGxl cm1hbm4gPGphbi5rZWxsZXJtYW5uQHdlcmsyMS5kZT7CXwQTEQIAHwIbIwYLCQgHAwIEFQII AwMWAgECHgECF4AFAk2Zs9oACgkQ2wzRfLYwaZ2p2ACeNIvearGv7vsbcb5ZU4JKwtVX2AcA n2CCDi5DTIqz2mJ993ESkaGlNbKuzsBNBEb1xVcQBACK6hVh/KMgN2EGVU44JKia3jeYV16v zAL2wn8ZUlBjW/R+ACm4kvqjDMCLZcl7edXtLJDELSpYe7GWhnj6uQx6+5ebT2OVZOPvoahn zHhhs4XCQTHvj3OUW1JQwI5YJJiEywl8LUrLrgJzgVi2Zk1791BeVG2hI2III1jrGvlD8wAD BgQAgaHxn11LmF0Jt21/a+R8i+GPaeYBjnzZ6J80+1h8nlQgb0LPg0y4HWT3PXksoIt0CAoT b4iZ1XJncu7FPwjyC2akGqzD0SvHawuvXbZZE7Jtz+zgjUYT0bRNGSYgEuFUMY6fAbyF/tM1 TcXtBLSHHwhmWgBMU07yAAJPm/UWgwDCSQQYEQIACQUCRvXFVwIbDAAKCRDbDNF8tjBpnV40 AJ4tvhqBXoo7jr8h/lsxTFnYZdD85gCgi6limeJh6OULVDJKvWDNVeooZyc=
  • Delivery-date: Tue, 30 Jun 2026 08:17:47 +0000
  • List-id: Xen user discussion <xen-users.lists.xenproject.org>

Dear colleagues,

I would like to install Xen 3.22 (or 3.21) on Ubuntu. But the compilation of qemu fails with this error message:

initialisation discards ‘const’ qualifier from pointer target type


This affects the definition of variables for strstr(), because since glibc 2.42.9000 the return type of strstr() and other string functions changed to be 'const char *' when the input is a 'const char *'.

Ubuntu 26.04 uses a patched version based on QEMU 10.2.1 (https://packages.ubuntu.com/resolute/qemu-system-x86-xen)

I am in the process of replacing the missing ‘const’ declarations, but I wonder whether a backport might be simpler.

See e.g. this commit:
https://gitlab.com/qemu-project/qemu/-/commit/326e620fc0145686124f754194cdc6d0d9b3400d

These commits are only available since V10.2.0

See also here:
https://git.redxen.eu/RepoMirrors/qemu/commit/326e620fc0145686124f754194cdc6d0d9b3400d

These files are failing with this error so far, I am still in pathcing progress:

tools/qemu-xen-dir-remote/util/log.c
tools/qemu-xen-dir-remote/util/qemu-sockets.c
tools/qemu-xen-dir-remote/subprojects/dtc/libfdt/fdt_overlay.c
tools/qemu-xen-dir-remote/gdbstub/gdbstub.c
tools/qemu-xen-dir-remote/block/vmdk.c
tools/qemu-xen-dir-remote/block/vvfat.c:
tools/qemu-xen-dir-remote/ui/ui-hmp-cmds.c
tools/qemu-xen-dir-remote/backends/tpm/tpm_passthrough.c

Best regards,
Kelly.
--
Pronomen: er/ihm | pronoun: he/him

werk21 GmbH
Online-Lösungen für Zivilgesellschaft, Politik und Verwaltung

Oranienburger Straße 87/89, 10178 Berlin
Tel: (030) 28 48 48 30
https://www.werk21.de

Geschäftsführer*innen:
Jan Kellermann, Johannes Stahl, Susanne Fritsche
HRB 131204 - Berlin-Charlottenburg - Sitz: Berlin




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.