Bug #241
openCoreboot build fails when GRUB2 is selected as payload
0%
Description
Steps to reproduce¶
- Select any chipset
- Select GRUB2 as payload from menuconfig
- make
Output (complete logs attached)¶
Running autoreconf...
autoreconf: Entering directory `.'
autoreconf: running: autopoint --force
Copying file build-aux/config.rpath
Copying file m4/extern-inline.m4
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
configure.ac:414: error: possibly undefined macro: AC_CHECK_HEADERS
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:505: error: possibly undefined macro: AC_LINK_IFELSE
configure.ac:1550: error: possibly undefined macro: AC_LANG_CALL
autoreconf: /usr/bin/autoconf failed with exit status: 1
Makefile:28: recipe for target 'grub2/build/config.h' failed
make[1]: *** [grub2/build/config.h] Error 1
payloads/external/Makefile.inc:171: recipe for target 'grub2' failed
make: *** [grub2] Error 2
Files
Updated by HCL technologies about 5 years ago
- File grub2_logs grub2_logs added
Firstly, make gives me an error while fetching gnulib as of today from grub2. So I tried replacing the link in bootstrap file of grub2 as:
default_gnulib_url=https://git.savannah.gnu.org/git/gnulib.git
And finally, after cloning the gnulib externally, we are good to go!
You are probably missing some dependency, this one(error in your logs) is probably because of automake dependency for gnulib as a payload or may be pkg-config dependency for grub2. You can check the "gnulib/DEPENDENCIES" file for gnulib pre-requisites and "grub2/INSTALL" file for grub2 requirements.
Please find attached the full logs for successful build of grub2 as a payload for qemu.
Provided below is the snippet of diff:
autoreconf: running: /usr/bin/autoheader --include=m4 --force
autoreconf: running: automake --add-missing --copy --force-missing
autoreconf: Leaving directory '.'
./bootstrap: cp -fp gnulib/build-aux/install-sh build-aux/install-sh
./bootstrap: cp -fp gnulib/build-aux/mdate-sh build-aux/mdate-sh
./bootstrap: cp -fp gnulib/build-aux/texinfo.tex build-aux/texinfo.tex
./bootstrap: cp -fp gnulib/build-aux/depcomp build-aux/depcomp
./bootstrap: cp -fp gnulib/build-aux/config.guess build-aux/config.guess
./bootstrap: cp -fp gnulib/build-aux/config.sub build-aux/config.sub
./bootstrap: Creating po/Makevars from po/Makevars.template ...
./bootstrap: done. Now you can run './configure'.`
Do check once at your end after verifying the dependencies and let us know.