Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
failed to emerge grup
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
pe.rzgheib
n00b
n00b


Joined: 26 Dec 2022
Posts: 3

PostPosted: Mon Dec 26, 2022 8:58 am    Post subject: failed to emerge grup Reply with quote

I have this project for school , where I have to install Linux Gentoo on a VM ,
the tutor does it on VMware but i. have M1 mac so i have to install it on UTM
everything goes well until running emerge grub
i am getting the error below
Quote:

Code:
 !!! Please attach the following file when seeking support:
!!! /var/tmp/portage/sys-boot/grub-2.06-r4/work/grub-2.06-pc/config.log
ERROR: sys-boot/grub-2.06-r4: :gentoo failed (configure phase):
econf failed
Call stack:
ebuild. sh, line
136: Called src confiaure
environment line 2537:
Called grub do grub_configure'
environment, line 1951:
Called multibuild_foreach_variant 'run_in_build_dir' 'grub_configure'
environment, line 2076: Called _multibuild_run 'run_in_build_dir'
'grub_configure'
environment, line 2074:
Called run_in_build_dir 'grub_configure'
environment, line
2499:
environment,
Called grub_configure
line 1947:
Called econf
-disable-werror'"
ble-nls' "--enable-grub-themes'
-disable-grub-mkfont"
--program-prefix=''--libdir=/us/lib''--disable-device-mapper'
"--disable-grub-mount'
-disable-libzfs'
' _-disable-grub-emu-sdl'
'_-with-platform=pc'
"_-disable-efiemu'
phase-helpers. sh, line
730: Called helpers_die 'econf failed'
isolated-functions. sh, line
112: Called die
The specific snippet of code:
die lisa"
"--ena
* If you need support, post the output of emerge -- info '=sys-boot/grub-2.06-r4: :gentoo
* the complete build log and the output of emerge -pqv
'=sys-boot/grub-2.06-r4: :gentoo'
* The complete build log is located at
/var/tmp/portage/svs-boot/arub-2.06-r4/temp/build. loa'.
* The ebuild environment file is located at '/var/tmp/portage/sys-boot/grub-2.06-4/temp/environment'.
* Working directory:
/var/tmp/portage/sys-boot/grub-2.06-r4/work/grub-2.06-pc
* S: '/var/tmp/portage/sys-boot/grub-2.06-r4/work/grub-2.06'
>> Failed to emerge sys-boot/grub-2.06-r4, Log file:
"/var/tmp/portage/sys-boot/grub-2.06-r4/temp/build.log'
* Messages for package sys-boot/grub-2.06-4:
* ERROR: sys-boot/grub-2.06-4::gentoo failed (configure phase) :
econt failed
* Call stack:
ebuild.sh, line 136:
Called src_configure
environment, line 2537:
called grub_do
environment, line 1951: environment, line 2076:
Called multibuild foreach variant "run in build dir' 'grub configure'
environment, line 2074:
Called
'run_in_build_dir'
"grub_configure
Called run_in_build _dir "grub_configure'
environment, line 2499: Called grub.
environment, line
1947: Calted econ ConTaisas
--disable-werror'
--program-prefix=''--libdir=/us/lib'
'_-disable-device-mapper'
ble-nis'
--enable-grub-themes'
--disable-grub-mkfont'
'_-disable-libzts'
--disable-grub-emu-sd1'
'_-with-platform=pc'
'~-disable-etiemu
*
phase-helpers.sh, line 730:
Called helpers_die 'econt failed'
isolated-functions. sh,
Line
112: Called die
* The specific snippet of code:
die"
"'$@"
-disable-grub-mount
--ena
* the complete build
'emerge --info '=sys-boot/grub-2.06-r4: :gentoo'
the output of emerge -pqv
'=sys-boot/grub-2.06-r4: :gentoo'*
The complete build log is located at /var/tmp/portage/SyS-boot/grub-2.06-r4/temp/build.log"
The ebuild environment file is located at /var/tmp/portage/sys-boot/grub-2.06-r4/temp/environment
* Working directory: '/var/tmp/portage/sys-boot/grub-2.06-r4/work/grub-2.06-pc
* S:
'/var/tmp/portage/sys-boot/grub-2.06-r4/work/grub-2.06'
Quote:

_________________
student at EPITA Paris France
Back to top
View user's profile Send private message
rab0171610
Guru
Guru


Joined: 24 Dec 2022
Posts: 423

PostPosted: Mon Dec 26, 2022 9:19 am    Post subject: Reply with quote

Salut de Florida aux EU! Greetings from Florida, USA! Are you sure there was not an error preceding your posted ouput? (You have themes enabled but no font):
Quote:
configure: error: themes were explicitly requested but requirements are not satisfied (No build-time grub -mkfont)

--disable-grub-mkfont may need to be enabled?

You could try adding the use flag" truetype" USE=truetype or disable themes (USE=-themes).
Pay attention to the section regarding use flags for grub:
https://wiki.gentoo.org/wiki/GRUB
https://packages.gentoo.org/packages/sys-boot/grub
You could also post the output of :
Code:
emerge -pv sys-boot/grub
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31268
Location: here

PostPosted: Mon Dec 26, 2022 9:26 am    Post subject: Reply with quote

Wlecome to gentoo forum!

Can you post /var/tmp/portage/sys-boot/grub-2.06-r4/work/grub-2.06-pc/config.log, /var/tmp/portage/sys-boot/grub-2.06-r4/temp/build.log and emerge --info with wgetpaste?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
pe.rzgheib
n00b
n00b


Joined: 26 Dec 2022
Posts: 3

PostPosted: Tue Dec 27, 2022 10:45 am    Post subject: Reply with quote

fedeliallalinea wrote:
Wlecome to gentoo forum!

Can you post /var/tmp/portage/sys-boot/grub-2.06-r4/work/grub-2.06-pc/config.log, /var/tmp/portage/sys-boot/grub-2.06-r4/temp/build.log and emerge --info with wgetpaste?


thank you for the warm welcome
here are the wgetpase from config.log , build.log , emerge --info
i appreciate the help

/var/tmp/portage/sys-boot/grub-2.06-r4/work/grub-2.06-pc/config.log
http://dpaste.com/6FU7DQ5A9

/var/tmp/portage/sys-boot/grub-2.06-r4/temp/build.log
http://dpaste.com/6UCCJRD5J

Émerge —info
http://dpaste.com/8M5TKX2PR
_________________
student at EPITA Paris France
Back to top
View user's profile Send private message
pe.rzgheib
n00b
n00b


Joined: 26 Dec 2022
Posts: 3

PostPosted: Tue Dec 27, 2022 10:55 am    Post subject: Reply with quote

rab0171610 wrote:
Salut de Florida aux EU! Greetings from Florida, USA! Are you sure there was not an error preceding your posted ouput? (You have themes enabled but no font):
Quote:
configure: error: themes were explicitly requested but requirements are not satisfied (No build-time grub -mkfont)

--disable-grub-mkfont may need to be enabled?

You could try adding the use flag" truetype" USE=truetype or disable themes (USE=-themes).
Pay attention to the section regarding use flags for grub:
https://wiki.gentoo.org/wiki/GRUB
https://packages.gentoo.org/packages/sys-boot/grub
You could also post the output of :
Code:
emerge -pv sys-boot/grub


Salut de Paris,

I have tried, I doesn't seem to change anything

here is the output from
Code:
emerge -pv sys-boot/grub

http://dpaste.com/EHDYY6Q7T
_________________
student at EPITA Paris France
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31268
Location: here

PostPosted: Tue Dec 27, 2022 11:04 am    Post subject: Reply with quote

From config.log
Code:
configure:5401: error: platform "pc" is not supported for target CPU "arm64"

You can't compile grub with grub_platforms_pc use flag enabled in an arm.
I don't know what you should enable in your sytem, maybe grub_platforms_efi-64
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
flysideways
Guru
Guru


Joined: 29 Jan 2005
Posts: 491

PostPosted: Tue Dec 27, 2022 1:14 pm    Post subject: Reply with quote

Code:
GentooVM ~ # emerge -vp grub

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

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

Total: 1 package (1 reinstall), Size of downloads: 0 KiB


I am using the UTM version from the app store, 4.0.9 (68 ), running a Gentoo ~arm64 VM install on a Macbook Pro M1 Max. It has a few problems right now but grub is not one of them.

Best of luck.
Back to top
View user's profile Send private message
flysideways
Guru
Guru


Joined: 29 Jan 2005
Posts: 491

PostPosted: Tue Dec 27, 2022 1:28 pm    Post subject: Reply with quote

I also have
Code:
GRUB_PLATFORMS="efi-64"
in my make.conf.
Back to top
View user's profile Send private message
rab0171610
Guru
Guru


Joined: 24 Dec 2022
Posts: 423

PostPosted: Tue Dec 27, 2022 6:30 pm    Post subject: Reply with quote

I apologize for not seeing in your initial post that you are using UTM/Qemu. That makes more sense. It was a long day and I was tired. My understanding is that in UTM , you have an "advanced options" where you can select the CPU type. Out of curiosity, what type of CPU are you trying to emulate in UTM?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum