Bug 2251909 - xen fails to build in Fedora Rawhide: ld: error: hvmloader has a LOAD segment with RWX permissions
Summary: xen fails to build in Fedora Rawhide: ld: error: hvmloader has a LOAD segment...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: xen
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Michael Young
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F40FTBFS PYTHON3.13
TreeView+ depends on / blocked
 
Reported: 2023-11-28 11:53 UTC by Karolina Surma
Modified: 2023-12-13 20:38 UTC (History)
4 users (show)

Fixed In Version: xen-4.18.0-2.fc40
Clone Of:
Environment:
Last Closed: 2023-12-13 20:38:54 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2023-11-28 11:53:59 UTC
xen fails to build in Fedora Rawhide (x86_64 build).
We discovered the build failure during the integration of Python 3.13.0a2 in Fedora.
See https://koschei.fedoraproject.org/package/xen for details

make[7]: Entering directory '/builddir/build/BUILD/xen-4.17.2/tools/firmware/hvmloader'
ld -melf_i386 -N -T hvmloader.lds -o hvmloader hvmloader.o mp_tables.o util.o smbios.o  smp.o cacheattr.o xenbus.o vnuma.o e820.o pci.o pir.o ctype.o hvm_param.o ovmf.o seabios.o dsdt_anycpu.o dsdt_15cpu.o dsdt_anycpu_qemu_xen.o build.o static_tables.o
ld: error: hvmloader has a LOAD segment with RWX permissions
make[7]: *** [Makefile:88: hvmloader] Error 1
make[7]: Leaving directory '/builddir/build/BUILD/xen-4.17.2/tools/firmware/hvmloader'
make[6]: *** [/builddir/build/BUILD/xen-4.17.2/tools/firmware/../../tools/Rules.mk:204: subdir-all-hvmloader] Error 2
make[5]: *** [/builddir/build/BUILD/xen-4.17.2/tools/firmware/../../tools/Rules.mk:199: subdirs-all] Error 2
make[4]: *** [Makefile:44: all] Error 2
make[3]: *** [/builddir/build/BUILD/xen-4.17.2/tools/../tools/Rules.mk:204: subdir-install-firmware] Error 2
make[2]: *** [/builddir/build/BUILD/xen-4.17.2/tools/../tools/Rules.mk:199: subdirs-install] Error 2
make[1]: *** [Makefile:65: install] Error 2
make: *** [Makefile:147: install-tools] Error 2


For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-rawhide-x86_64/06692292-xen/

For all our attempts to build xen with Python 3.13, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/xen/

Testing and mass rebuild of packages is happening in copr.
You can follow these instructions to test locally in mock if your package builds with Python 3.13:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/

Comment 1 Michael Young 2023-12-13 20:38:54 UTC
From https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/xen/ it looks like this is no longer a problem with xen-4.18.0-2 and I haven't seen the problem in xen-4.18.0 builds either


Note You need to log in before you can comment on or make changes to this bug.