Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 920669

Summary: sys-boot/grub:2[grub_platforms_emu] on ppc64 fails to configure: config.status: error: /var/tmp/portage/sys-boot/grub-2.12/work/grub-2.12/include/grub/powerpc64: file not found
Product: Gentoo Linux Reporter: matoro <matoro_gentoo>
Component: Current packagesAssignee: Mike Gilbert <floppym>
Status: CONFIRMED ---    
Severity: normal CC: base-system, matoro_gentoo, ppc64
Priority: Normal    
Version: unspecified   
Hardware: PPC64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
config.log
patch
build log

Description matoro archtester 2023-12-24 21:20:52 UTC
Created attachment 880288 [details]
build.log

When trying to configure sys-boot/grub:2 with GRUB_PLATFORMS: emu on ppc64, configure fails with the following error:

config.status: linking /var/tmp/portage/sys-boot/grub-2.12/work/grub-2.12/include/grub/powerpc64 to include/grub/cpu
config.status: error: /var/tmp/portage/sys-boot/grub-2.12/work/grub-2.12/include/grub/powerpc64: file not found

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/sys-boot/grub-2.12/work/grub-2.12-emu/config.log
 * ERROR: sys-boot/grub-2.12::gentoo failed (configure phase):
 *   econf failed
 * 
 * Call stack:
 *               ebuild.sh, line  136:  Called src_configure
 *             environment, line 1992:  Called grub_do 'grub_configure'
 *             environment, line 1393:  Called multibuild_foreach_variant 'run_in_build_dir' 'grub_configure'
 *             environment, line 1486:  Called _multibuild_run 'run_in_build_dir' 'grub_configure'
 *             environment, line 1484:  Called run_in_build_dir 'grub_configure'
 *             environment, line 1934:  Called grub_configure
 *             environment, line 1389:  Called econf '--disable-werror' '--program-prefix=' '--libdir=/usr/lib' '--disable-device-mapper' '--disable-grub-mount' '--enable-nls' '--enable-grub-themes' '--disable-grub-mkfont' '--disable-libzfs' '--disable-grub-emu-sdl' '--with-platform=emu' '--disable-efiemu'
 *        phase-helpers.sh, line  732:  Called __helpers_die 'econf failed'
 *   isolated-functions.sh, line  112:  Called die
 * The specific snippet of code:
 *              die "$@"


Error seems to be because the directory in grub source code is called "powerpc", not "powerpc64"
Comment 1 matoro archtester 2023-12-24 21:21:53 UTC
Created attachment 880289 [details]
config.log
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-12-25 06:23:13 UTC
(Remember to CC all maintainers, see https://github.com/projg2/bug-assign-user-js)
Comment 3 Mike Gilbert gentoo-dev 2024-04-04 21:07:59 UTC
Created attachment 889461 [details, diff]
patch

Could you give this patch a spin?
Comment 4 matoro archtester 2024-04-10 05:08:11 UTC
(In reply to Mike Gilbert from comment #3)
> Created attachment 889461 [details, diff] [details, diff]
> patch
> 
> Could you give this patch a spin?

Doesn't seem to work unfortunately, same results.

config.status: creating Makefile
config.status: creating grub-core/Makefile
config.status: creating grub-core/lib/gnulib/Makefile
config.status: creating po/Makefile.in
config.status: creating docs/Makefile
config.status: creating util/bash-completion.d/Makefile
config.status: creating stamp-h
config.status: creating config.h
config.status: creating config-util.h
config.status: linking /var/tmp/portage/sys-boot/grub-2.12-r2/work/grub-2.12/include/grub/powerpc64 to include/grub/cpu
config.status: error: /var/tmp/portage/sys-boot/grub-2.12-r2/work/grub-2.12/include/grub/powerpc64: file not found
Comment 5 Mike Gilbert gentoo-dev 2024-04-11 16:09:07 UTC
Created attachment 890467 [details]
build log

In #gentoo-powerpc, we determined that eautoreconf wasn't being called. After correcting that, we get a build error in the compile phase.
Comment 6 Mike Gilbert gentoo-dev 2024-04-11 16:10:37 UTC
I'm afraid this will require upstream assistance to resolve. Please work with them directly if you would like to get this working.

Otherwise, please mask the "emu" USE flag in ppc64 profiles.