-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Closed
Labels
area: X86x86 Architecture (32-bit)x86 Architecture (32-bit)bugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bugpriority: lowLow impact/importance bugLow impact/importance bug
Description
Describe the bug
It is not possible to build the GRUB2 boot loader image as described in the here on a Clear Linux (ver. 28230) system.
To Reproduce
Steps to reproduce the behavior:
- Make sure you have this patch (still being reviewed) in your tree
- Run:
$ ./boards/x86/common/scripts/build_grub.sh x86_64 - This results in the following error (snipped):
-e "/OUTPUT_TERMINAL_LIST_MARKER *( *\"/{s/.*( *\"\([^\"]*\)\".*/o\1: $b/;p;}" $pp; \
done) | sort -u > terminal.lst
In file included from ../include/grub/dl.h:29,
from loader/i386/bsd.c:26:
loader/i386/bsd.c: In function ‘grub_cmd_openbsd’:
../include/grub/misc.h:71:10: error: ‘ptr’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
return grub_memmove (dest, src, n);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
loader/i386/bsd.c:264:9: note: ‘ptr’ was declared here
void *ptr;
^~~
In file included from ../include/grub/dl.h:29,
Expected behavior
grub_x86_64.efi is correctly generated.
Impact
Clear Linux cannot be used as the development machine. The other environment that I have tested was Fedora 29 (with this patch), that works correctly.
Environment (please complete the following information):
- OS: Clear Linux 28230
- Toolchain: native tools
Metadata
Metadata
Assignees
Labels
area: X86x86 Architecture (32-bit)x86 Architecture (32-bit)bugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bugpriority: lowLow impact/importance bugLow impact/importance bug