Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grub build issues #2

Open
khushboo-dfn opened this issue Oct 15, 2021 · 1 comment
Open

Grub build issues #2

khushboo-dfn opened this issue Oct 15, 2021 · 1 comment

Comments

@khushboo-dfn
Copy link

Hi, I am trying to build the grub from this repository and seeing an error. I am on ubuntu. (A bit new to this so not sure what I am doing wrong). Any help/pointers would be appreciated.

khushboo@sf1-spm03:~/undeserved-trust/grub/ubuntu-grub-src$ DEB_BUILD_OPTIONS=nocheck debuild -b -uc -us
 dpkg-buildpackage -us -uc -ui -b
dpkg-buildpackage: info: source package grub2
dpkg-buildpackage: info: source version 2.04-1ubuntu26.7
dpkg-buildpackage: info: source distribution focal
dpkg-buildpackage: info: source changed by dann frazier <[email protected]>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
 debian/rules clean
dh clean --with=bash_completion,systemd
   debian/rules override_dh_auto_clean
make[1]: Entering directory '/home/khushboo/undeserved-trust/grub/ubuntu-grub-src'
rm -rf debian/grub-extras-enabled debian/stamps obj
rm -f contrib grub-core/contrib
rm: cannot remove 'contrib': Is a directory
rm: cannot remove 'grub-core/contrib': Is a directory
make[1]: [debian/rules:586: override_dh_auto_clean] Error 1 (ignored)
make[1]: Leaving directory '/home/khushboo/undeserved-trust/grub/ubuntu-grub-src'
   dh_autoreconf_clean
rm: cannot remove './grub-core/contrib': Is a directory
rm: cannot remove './contrib': Is a directory
dh_autoreconf_clean: error: rm -f -- ./grub-core/contrib ./contrib ./aclocal.m4 ./grub-core/Makefile.core.am ./grub-core/lib/libgcrypt-grub/cipher/ChangeLog ./grub-core/lib/libgcrypt-grub/mpi/mpih-mul3.c ./grub-core/lib/libgcrypt-grub/mpi/mpih-lshift.c ./grub-core/lib/libgcrypt-grub/mpi/mpih-mul1.c ./grub-core/lib/libgcrypt-grub/mpi/mpih-rshift.c ./grub-core/lib/libgcrypt-grub/mpi/ec.c ./grub-core/lib/libgcrypt-grub/mpi/mpih-mul2.c ./grub-core/lib/libgcrypt-grub/mpi/mpih-add1.c ./grub-core/lib/libgcrypt-grub/mpi/mpi-asm-defs.h ./grub-core/lib/libgcrypt-grub/mpi/mpih-sub1.c ./grub-core/lib/gnulib/Makefile.in ./grub-core/unidata.c ./grub-core/Makefile.in ./Makefile.util.am ./docs/Makefile.in ./m4/extern-inline.m4 ./po/Makevars.template ./po/Makefile.in.in ./po/POTFILES.in ./po/POTFILES-shell.in ./build-aux/texinfo.tex ./build-aux/missing ./build-aux/test-driver ./build-aux/config.rpath ./build-aux/compile ./config-util.h.in ./include/grub/gcrypt/g10lib.h ./util/bash-completion.d/Makefile.in ./autom4te.cache/requests ./autom4te.cache/output.0 ./autom4te.cache/output.1 ./autom4te.cache/traces.1 ./autom4te.cache/traces.0 ./Makefile.in ./configure returned exit code 1
make: *** [debian/rules:136: clean] Error 25
dpkg-buildpackage: error: debian/rules clean subprocess returned exit status 2
debuild: fatal error at line 1182:
dpkg-buildpackage -us -uc -ui -b failed

@its-luca
Copy link
Collaborator

This seems to be an artifact from my build. It should be fine to manually delete the contrib and grub-core/contrib folders. They apparently get regenerated upon building. While rebuilding on the same machine the error does no longer occur.

I also noticed that the ovmf subrepo link was broken. This should now be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants