Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 792285 - sys-boot/grub configure: error: platform "qemu" is not supported for target CPU "arm64"
Summary: sys-boot/grub configure: error: platform "qemu" is not supported for target C...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM64 Linux
: Normal normal (vote)
Assignee: Mike Gilbert
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-26 18:28 UTC by Einstok Fair
Modified: 2021-05-26 19:16 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
grub-2.06~rc1-qemu/config.log (config.log,28.04 KB, text/plain)
2021-05-26 18:28 UTC, Einstok Fair
Details
build.log (build.log,27.64 KB, text/plain)
2021-05-26 18:33 UTC, Einstok Fair
Details
emerge --info (emerge--info.txt,5.29 KB, text/plain)
2021-05-26 18:36 UTC, Einstok Fair
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Einstok Fair 2021-05-26 18:28:27 UTC
Created attachment 711405 [details]
grub-2.06~rc1-qemu/config.log

With stack smashing protector: No
*******************************************************
 * qemu: running run_in_build_dir grub_configure
 * econf: updating grub-2.06~rc1/build-aux/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating grub-2.06~rc1/build-aux/config.sub with /usr/share/gnuconfig/config.sub
/var/tmp/portage/sys-boot/grub-2.06_rc1/work/grub-2.06~rc1/configure --prefix=/usr --build=aarch64-unknown-linux-gnu --host=aarch64-unknown-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/grub-2.06_rc1 --htmldir=/usr/share/doc/grub-2.06_rc1/html --disable-werror --program-prefix= --libdir=/usr/lib --enable-device-mapper --disable-grub-mount --enable-nls --enable-grub-themes --enable-grub-mkfont --disable-libzfs --disable-grub-emu-sdl --with-platform=qemu --disable-efiemu
checking build system type... aarch64-unknown-linux-gnu
checking host system type... aarch64-unknown-linux-gnu
checking target system type... aarch64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/lib/portage/python3.8/ebuild-helpers/xattr/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for aarch64-unknown-linux-gnu-pkg-config... /usr/bin/aarch64-unknown-linux-gnu-pkg-config
checking pkg-config is at least version 0.9.0... yes
configure: error: platform "qemu" is not supported for target CPU "arm64"

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/sys-boot/grub-2.06_rc1/work/grub-2.06~rc1-qemu/config.log
Comment 1 Einstok Fair 2021-05-26 18:30:19 UTC
USE-flags was:

# emerge -va grub

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] sys-boot/grub-2.06_rc1:2/2.06_rc1::gentoo  USE="device-mapper fonts nls themes truetype -doc -efiemu -libzfs -mount -sdl (-test)" GRUB_PLATFORMS="efi-64 pc qemu -coreboot -efi-32 -emu -ieee1275 -loongson -multiboot -qemu-mips -uboot -xen (-xen-32) -xen-pvh" 0 KiB

Total: 1 package (1 new), Size of downloads: 0 KiB
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-05-26 18:30:23 UTC
Full build.log and emerge —-info please
Comment 3 Einstok Fair 2021-05-26 18:33:27 UTC
Created attachment 711408 [details]
build.log
Comment 4 Einstok Fair 2021-05-26 18:36:03 UTC
Created attachment 711411 [details]
emerge --info
Comment 5 Mike Gilbert gentoo-dev 2021-05-26 19:16:00 UTC
This is working properly -- that arch/platform combination is not supported.

In theory, I could add a REQUIRED_USE constraint to prevent you from attempting to specify invalid arch/platform combinations. However, the value in that seems very miniscule. It would also be problematic for cross-compiling.