Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 920669 - 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
Summary: sys-boot/grub:2[grub_platforms_emu] on ppc64 fails to configure: config.statu...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC64 Linux
: Normal normal (vote)
Assignee: Mike Gilbert
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-24 21:20 UTC by matoro
Modified: 2024-04-11 16:10 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,26.25 KB, text/x-log)
2023-12-24 21:20 UTC, matoro
Details
config.log (config.log,913.22 KB, text/plain)
2023-12-24 21:21 UTC, matoro
Details
patch (0001-configure-fix-cpudir-for-powerpc64-emu-target.patch,1002 bytes, patch)
2024-04-04 21:07 UTC, Mike Gilbert
Details | Diff
build log (grub-build.log.gz,63.89 KB, application/x-gzip)
2024-04-11 16:09 UTC, Mike Gilbert
Details

Note You need to log in before you can comment on or make changes to this bug.
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.