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

Bug 711512

Summary: sys-boot/grub-2.05_alpha20200228 with GRUB_PLATFORMS="emu" - fails while linking: date.c:49: undefined reference to `grub_get_weekday_name'
Product: Gentoo Linux Reporter: Attila Tóth <atoth>
Component: Current packagesAssignee: Mike Gilbert <floppym>
Status: RESOLVED FIXED    
Severity: normal CC: base-system, bkohler, Patrick.Fourniols, phobosk
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://lists.gnu.org/archive/html/grub-devel/2020-03/msg00056.html
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log.gz
emerge.info.gz

Description Attila Tóth 2020-03-04 14:15:36 UTC
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: date.module: in function `grub_cmd_date':
/var/tmp/portage/sys-boot/grub-2.05_alpha20200228/work/grub-2.05_alpha20200228/grub-core/commands/date.c:49: undefined reference to `grub_get_weekday_name'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ls.module: in function `print_files_long':
/var/tmp/portage/sys-boot/grub-2.05_alpha20200228/work/grub-2.05_alpha20200228/grub-core/commands/ls.c:155: undefined reference to `grub_unixtime2datetime'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sys-boot/grub-2.05_alpha20200228/work/grub-2.05_alpha20200228/grub-core/commands/ls.c:157: undefined reference to `grub_get_weekday_name'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: normal.module: in function `grub_normal_print_device_info':
/var/tmp/portage/sys-boot/grub-2.05_alpha20200228/work/grub-2.05_alpha20200228/grub-core/normal/misc.c:144: undefined reference to `grub_unixtime2datetime'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sys-boot/grub-2.05_alpha20200228/work/grub-2.05_alpha20200228/grub-core/normal/misc.c:148: undefined reference to `grub_get_weekday_name'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: datehook.module: in function `grub_read_hook_datetime':
/var/tmp/portage/sys-boot/grub-2.05_alpha20200228/work/grub-2.05_alpha20200228/grub-core/hook/datehook.c:78: undefined reference to `grub_get_weekday_name'
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:28813: grub-emu] Error 1
make[3]: *** Waiting for unfinished jobs....


Reproducible: Always
Comment 1 Attila Tóth 2020-03-04 14:16:09 UTC
Created attachment 617046 [details]
build.log.gz

build.log.gz
Comment 2 Attila Tóth 2020-03-04 14:16:30 UTC
Created attachment 617048 [details]
emerge.info.gz

emerge.info.gz
Comment 3 Ben Kohler gentoo-dev 2020-03-04 14:47:26 UTC
For those looking to reproduce this, you need GRUB_PLATFORMS=emu to see this failure
Comment 4 Attila Tóth 2020-03-08 19:11:05 UTC
URL: https://lists.gnu.org/archive/html/grub-devel/2020-03/msg00056.html

Works for me.
Comment 5 Mike Gilbert gentoo-dev 2021-06-20 18:02:00 UTC
Fixed in 2.06.