无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站投放广告、加入VIP会员,请联系 微信:wuyouceo
查看: 6276|回复: 21
打印 上一主题 下一主题

grub2编译环境搭建 ,求助

[复制链接]
跳转到指定楼层
1#
发表于 2021-6-8 17:39:21 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 liuzhaoyzz 于 2021-6-8 19:37 编辑

grub2编译环境搭建 ,求助@wintoflash,@2011yaya2007777...

我在ubuntu20.10 64位版本里面,用的是魔改的grub2_2.05,刚下载的,开始折腾了:
看了下install,依赖模块:

sudo apt-get install gcc gcc-multilib gcc-doc g++ make bison gettext flex pkg-config glibc-doc libdevmapper-dev libpciaccess-dev libusb-dev libfreetype-dev libfreetype6 libfreetype6-dev   qemu autoconf automake libtool autopoint cd-boot-images-amd64 gawk git
总体思路:

https://www.cnblogs.com/bugutian/p/5560548.html
autoscan(非必要?)
aclocal
libtoolize -f

autoconf

autoreconf -f -i
autoheader
automake -a
alias python=python3
./bootstrap


1、BIOS模式:./configuremake
make install


2、UEFI模式:./configure --with-platform=efi --target=x86_64
make
make install



root@ubuntu:/home/ubuntu# cd /media/ubuntu/yule/grub-latest2020-12-26source
root@ubuntu:/media/ubuntu/yule/grub-latest2020-12-26source# chmod -R 777 ./
root@ubuntu:/media/ubuntu/yule/grub-latest2020-12-26source# autoscan


root@ubuntu:/media/ubuntu/yule/grub-latest2020-12-26source# automake -a
configure.ac:395: installing 'build-aux/compile'
configure.ac:51: installing 'build-aux/missing'
automake: error: cannot open < Makefile.util.am: No such file or directory


ubuntu@ubuntu:/media/ubuntu/备份/bak/grub2/grub-latest-source2021-06-08$ autoreconf -f -i
Copying file ABOUT-NLS
Copying file build-aux/config.rpath
Copying file m4/codeset.m4
Copying file m4/extern-inline.m4
Copying file m4/fcntl-o.m4
Copying file m4/gettext.m4
Copying file m4/glibc2.m4
Copying file m4/glibc21.m4
Copying file m4/iconv.m4
Copying file m4/intdiv0.m4
Copying file m4/intl.m4
Copying file m4/intldir.m4
Copying file m4/intlmacosx.m4
Copying file m4/intmax.m4
Copying file m4/inttypes-pri.m4
Copying file m4/inttypes_h.m4
Copying file m4/lcmessage.m4
Copying file m4/lib-ld.m4
Copying file m4/lib-link.m4
Copying file m4/lib-prefix.m4
Copying file m4/lock.m4
Copying file m4/longlong.m4
Copying file m4/nls.m4
Copying file m4/po.m4
Copying file m4/printf-posix.m4
Copying file m4/progtest.m4
Copying file m4/size_max.m4
Copying file m4/stdint_h.m4
Copying file m4/threadlib.m4
Copying file m4/uintmax_t.m4
Copying file m4/visibility.m4
Copying file m4/wchar_t.m4
Copying file m4/wint_t.m4
Copying file m4/xsize.m4
Copying file po/Makefile.in.in
Copying file po/Makevars.template
Copying file po/Rules-quot
configure.ac:395: installing 'build-aux/compile'
configure.ac:45: installing 'build-aux/config.guess'
configure.ac:45: installing 'build-aux/config.sub'
configure.ac:51: installing 'build-aux/install-sh'
configure.ac:51: installing 'build-aux/missing'
automake: error: cannot open < Makefile.util.am: No such file or directory
autoreconf: automake failed with exit status: 1
autureconf失败了。



继续往下走看看:
ubuntu@ubuntu:/media/ubuntu/备份/bak/grub2/grub-latest-source2021-06-08$ ./bootstrap
./bootstrap: Bootstrapping from checked-out grub sources...
HEAD is now at d271f868a lock: Fix link error with --enable-threads=pth.
./bootstrap: autopoint --force
Copying file build-aux/config.rpath
Copying file m4/extern-inline.m4
Copying file po/Makefile.in.in
./bootstrap: no version control for ./po/Makefile.in.in~?
./bootstrap: gnulib/gnulib-tool    --no-changelog   --aux-dir=build-aux   --doc-base=doc   --lib=libgnu   --m4-base=m4/   --source-base=grub-core/lib/gnulib/   --tests-base=tests   --local-dir=gl     --no-conditional-dependencies   --no-vc-files    --import ...
Module list with included dependencies (indented):
    absolute-header
    alloca
    alloca-opt
  argp
    assure
    at-internal
  base64
    btowc
    builtin-expect
    chdir
    chdir-long
    cloexec
    close
    dirent
    dirfd
    dirname-lgpl
    dosname
    double-slash-root
    dup2
    errno
  error
    exitfail
    extensions
    extern-inline
    fchdir
    fcntl
    fcntl-h
    fd-hook
    fd-safer-flag
    filename
    filenamecat-lgpl
    flexmember
    float
  fnmatch
    fnmatch-h
    fstat
    getcwd-lgpl
  getdelim
    getdtablesize
  getline
    getopt-gnu
    getopt-posix
    getprogname
  gettext-h
  gitlog-to-changelog
    hard-locale
    havelib
    include_next
    intprops
    langinfo
    largefile
    libc-config
    limits-h
    localcharset
    locale
    localeconv
    lock
    malloc-gnu
    malloc-posix
    malloca
    mbrtowc
    mbsinit
    mbsrtowcs
  mbswidth
    mbtowc
    memchr
    mempcpy
    memrchr
    msvc-inval
    msvc-nothrow
    multiarch
    nl_langinfo
    nocrash
    open
    openat
    openat-die
    openat-h
    pathmax
  progname
    rawmemchr
  realloc-gnu
    realloc-posix
  regex
  save-cwd
    size_max
    sleep
    snippet/_Noreturn
    snippet/arg-nonnull
    snippet/c++defs
    snippet/warn-on-use
    ssize_t
    stat
    stat-time
    stdalign
    stdbool
    stddef
    stdint
    stdio
    stdlib
    strcase
    strchrnul
    strdup-posix
    streq
    strerror
    strerror-override
    string
    strings
    strndup
    strnlen
    strnlen1
    sys_stat
    sys_types
    sysexits
    threadlib
    time
    unistd
    unistd-safer
    unitypes
    uniwidth/base
    uniwidth/width
    vasnprintf
    verify
    vsnprintf
    wchar
    wcrtomb
    wctype-h
    wcwidth
    xalloc-oversized
    xsize
Notice from module argp:
  If you are using GNU gettext version 0.16.1 or older, add the following options
  to XGETTEXT_OPTIONS in your po/Makevars:
    --flag=argp_error:2:c-format --flag=argp_failure:4:c-format
Notice from module error:
  If you are using GNU gettext version 0.16.1 or older, add the following options
  to XGETTEXT_OPTIONS in your po/Makevars:
    --flag=error:3:c-format --flag=error_at_line:5:c-format
File list:
  build-aux/config.rpath
  build-aux/gitlog-to-changelog
  lib/_Noreturn.h
  lib/alloca.c
  lib/alloca.in.h
  lib/arg-nonnull.h
  lib/argp-ba.c
  lib/argp-eexst.c
  lib/argp-fmtstream.c
  lib/argp-fmtstream.h
  lib/argp-fs-xinl.c
  lib/argp-help.c
  lib/argp-namefrob.h
  lib/argp-parse.c
  lib/argp-pin.c
  lib/argp-pv.c
  lib/argp-pvh.c
  lib/argp-xinl.c
  lib/argp.h
  lib/asnprintf.c
  lib/assure.h
  lib/base64.c
  lib/base64.h
  lib/basename-lgpl.c
  lib/btowc.c
  lib/c++defs.h
  lib/cdefs.h
  lib/chdir-long.c
  lib/chdir-long.h
  lib/cloexec.c
  lib/cloexec.h
  lib/close.c
  lib/dirent.in.h
  lib/dirfd.c
  lib/dirname-lgpl.c
  lib/dirname.h
  lib/dosname.h
  lib/dup-safer-flag.c
  lib/dup-safer.c
  lib/dup2.c
  lib/errno.in.h
  lib/error.c
  lib/error.h
  lib/exitfail.c
  lib/exitfail.h
  lib/fchdir.c
  lib/fcntl.c
  lib/fcntl.in.h
  lib/fd-hook.c
  lib/fd-hook.h
  lib/fd-safer-flag.c
  lib/fd-safer.c
  lib/filename.h
  lib/filenamecat-lgpl.c
  lib/filenamecat.h
  lib/flexmember.h
  lib/float+.h
  lib/float.c
  lib/float.in.h
  lib/fnmatch.c
  lib/fnmatch.in.h
  lib/fnmatch_loop.c
  lib/fstat.c
  lib/getcwd-lgpl.c
  lib/getdelim.c
  lib/getdtablesize.c
  lib/getline.c
  lib/getopt-cdefs.in.h
  lib/getopt-core.h
  lib/getopt-ext.h
  lib/getopt-pfx-core.h
  lib/getopt-pfx-ext.h
  lib/getopt.c
  lib/getopt.in.h
  lib/getopt1.c
  lib/getopt_int.h
  lib/getprogname.c
  lib/getprogname.h
  lib/gettext.h
  lib/glthread/lock.c
  lib/glthread/lock.h
  lib/glthread/threadlib.c
  lib/hard-locale.c
  lib/hard-locale.h
  lib/intprops.h
  lib/itold.c
  lib/langinfo.in.h
  lib/libc-config.h
  lib/limits.in.h
  lib/localcharset.c
  lib/localcharset.h
  lib/locale.in.h
  lib/localeconv.c
  lib/malloc.c
  lib/malloca.c
  lib/malloca.h
  lib/mbrtowc.c
  lib/mbsinit.c
  lib/mbsrtowcs-impl.h
  lib/mbsrtowcs-state.c
  lib/mbsrtowcs.c
  lib/mbswidth.c
  lib/mbswidth.h
  lib/mbtowc-impl.h
  lib/mbtowc.c
  lib/memchr.c
  lib/memchr.valgrind
  lib/mempcpy.c
  lib/memrchr.c
  lib/msvc-inval.c
  lib/msvc-inval.h
  lib/msvc-nothrow.c
  lib/msvc-nothrow.h
  lib/nl_langinfo.c
  lib/open.c
  lib/openat-die.c
  lib/openat-priv.h
  lib/openat-proc.c
  lib/openat.c
  lib/openat.h
  lib/pathmax.h
  lib/pipe-safer.c
  lib/printf-args.c
  lib/printf-args.h
  lib/printf-parse.c
  lib/printf-parse.h
  lib/progname.c
  lib/progname.h
  lib/rawmemchr.c
  lib/rawmemchr.valgrind
  lib/realloc.c
  lib/regcomp.c
  lib/regex.c
  lib/regex.h
  lib/regex_internal.c
  lib/regex_internal.h
  lib/regexec.c
  lib/save-cwd.c
  lib/save-cwd.h
  lib/size_max.h
  lib/sleep.c
  lib/stat-time.c
  lib/stat-time.h
  lib/stat-w32.c
  lib/stat-w32.h
  lib/stat.c
  lib/stdalign.in.h
  lib/stdbool.in.h
  lib/stddef.in.h
  lib/stdint.in.h
  lib/stdio.in.h
  lib/stdlib.in.h
  lib/strcasecmp.c
  lib/strchrnul.c
  lib/strchrnul.valgrind
  lib/strdup.c
  lib/streq.h
  lib/strerror-override.c
  lib/strerror-override.h
  lib/strerror.c
  lib/string.in.h
  lib/strings.in.h
  lib/stripslash.c
  lib/strncasecmp.c
  lib/strndup.c
  lib/strnlen.c
  lib/strnlen1.c
  lib/strnlen1.h
  lib/sys_stat.in.h
  lib/sys_types.in.h
  lib/sysexits.in.h
  lib/time.in.h
  lib/unistd--.h
  lib/unistd-safer.h
  lib/unistd.c
  lib/unistd.in.h
  lib/unitypes.in.h
  lib/uniwidth.in.h
  lib/uniwidth/cjk.h
  lib/uniwidth/width.c
  lib/vasnprintf.c
  lib/vasnprintf.h
  lib/verify.h
  lib/vsnprintf.c
  lib/warn-on-use.h
  lib/wchar.in.h
  lib/wcrtomb.c
  lib/wctype-h.c
  lib/wctype.in.h
  lib/wcwidth.c
  lib/xalloc-oversized.h
  lib/xsize.c
  lib/xsize.h
  m4/00gnulib.m4
  m4/__inline.m4
  m4/absolute-header.m4
  m4/alloca.m4
  m4/argp.m4
  m4/base64.m4
  m4/btowc.m4
  m4/builtin-expect.m4
  m4/chdir-long.m4
  m4/close.m4
  m4/codeset.m4
  m4/dirent_h.m4
  m4/dirfd.m4
  m4/dirname.m4
  m4/double-slash-root.m4
  m4/dup2.m4
  m4/eealloc.m4
  m4/errno_h.m4
  m4/error.m4
  m4/exponentd.m4
  m4/extensions.m4
  m4/extern-inline.m4
  m4/fchdir.m4
  m4/fcntl-o.m4
  m4/fcntl.m4
  m4/fcntl_h.m4
  m4/filenamecat.m4
  m4/flexmember.m4
  m4/float_h.m4
  m4/fnmatch.m4
  m4/fnmatch_h.m4
  m4/fstat.m4
  m4/getcwd.m4
  m4/getdelim.m4
  m4/getdtablesize.m4
  m4/getline.m4
  m4/getopt.m4
  m4/getprogname.m4
  m4/glibc21.m4
  m4/gnulib-common.m4
  m4/host-cpu-c-abi.m4
  m4/include_next.m4
  m4/intmax_t.m4
  m4/inttypes_h.m4
  m4/langinfo_h.m4
  m4/largefile.m4
  m4/lib-ld.m4
  m4/lib-link.m4
  m4/lib-prefix.m4
  m4/libunistring-base.m4
  m4/limits-h.m4
  m4/localcharset.m4
  m4/locale-fr.m4
  m4/locale-ja.m4
  m4/locale-zh.m4
  m4/locale_h.m4
  m4/localeconv.m4
  m4/lock.m4
  m4/longlong.m4
  m4/lstat.m4
  m4/malloc.m4
  m4/malloca.m4
  m4/math_h.m4
  m4/mbrtowc.m4
  m4/mbsinit.m4
  m4/mbsrtowcs.m4
  m4/mbstate_t.m4
  m4/mbswidth.m4
  m4/mbtowc.m4
  m4/memchr.m4
  m4/mempcpy.m4
  m4/memrchr.m4
  m4/mmap-anon.m4
  m4/mode_t.m4
  m4/msvc-inval.m4
  m4/msvc-nothrow.m4
  m4/multiarch.m4
  m4/nl_langinfo.m4
  m4/nocrash.m4
  m4/off_t.m4
  m4/open-cloexec.m4
  m4/open.m4
  m4/openat.m4
  m4/pathmax.m4
  m4/printf.m4
  m4/pthread_rwlock_rdlock.m4
  m4/rawmemchr.m4
  m4/realloc.m4
  m4/regex.m4
  m4/save-cwd.m4
  m4/size_max.m4
  m4/sleep.m4
  m4/ssize_t.m4
  m4/stat-time.m4
  m4/stat.m4
  m4/stdalign.m4
  m4/stdbool.m4
  m4/stddef_h.m4
  m4/stdint.m4
  m4/stdint_h.m4
  m4/stdio_h.m4
  m4/stdlib_h.m4
  m4/strcase.m4
  m4/strchrnul.m4
  m4/strdup.m4
  m4/strerror.m4
  m4/string_h.m4
  m4/strings_h.m4
  m4/strndup.m4
  m4/strnlen.m4
  m4/sys_socket_h.m4
  m4/sys_stat_h.m4
  m4/sys_types_h.m4
  m4/sysexits.m4
  m4/threadlib.m4
  m4/time_h.m4
  m4/unistd-safer.m4
  m4/unistd_h.m4
  m4/vasnprintf.m4
  m4/vsnprintf.m4
  m4/warn-on-use.m4
  m4/wchar_h.m4
  m4/wchar_t.m4
  m4/wcrtomb.m4
  m4/wctype_h.m4
  m4/wcwidth.m4
  m4/wint_t.m4
  m4/xsize.m4
Updating file build-aux/config.rpath (backup in build-aux/config.rpath~)
Updating file grub-core/lib/gnulib/argp-fmtstream.c (backup in grub-core/lib/gnulib/argp-fmtstream.c~)
Updating file grub-core/lib/gnulib/argp-help.c (backup in grub-core/lib/gnulib/argp-help.c~)
Updating file grub-core/lib/gnulib/argp-parse.c (backup in grub-core/lib/gnulib/argp-parse.c~)
Updating file grub-core/lib/gnulib/base64.h (backup in grub-core/lib/gnulib/base64.h~)
Updating file grub-core/lib/gnulib/mbswidth.c (backup in grub-core/lib/gnulib/mbswidth.c~)
Updating file grub-core/lib/gnulib/mbswidth.h (backup in grub-core/lib/gnulib/mbswidth.h~)
Updating file grub-core/lib/gnulib/regcomp.c (backup in grub-core/lib/gnulib/regcomp.c~)
Updating file m4/extern-inline.m4 (backup in m4/extern-inline.m4~)
Finished.

You may need to add #include directives for the following .h files.
  #include <fnmatch.h>
  #include <regex.h>
  #include <stdio.h>
  #include <stdlib.h>
  #include "argp.h"
  #include "base64.h"
  #include "error.h"
  #include "gettext.h"
  #include "mbswidth.h"
  #include "progname.h"
  #include "save-cwd.h"

You may need to use the following Makefile variables when linking.
Use them in <program>_LDADD when linking a program, or
in <library>_a_LDFLAGS or <library>_la_LDFLAGS when linking a library.
  $(LTLIBINTL) when linking with libtool, $(LIBINTL) otherwise
  $(LTLIBTHREAD) when linking with libtool, $(LIBTHREAD) otherwise

Don't forget to
  - add "grub-core/lib/gnulib/Makefile" to AC_CONFIG_FILES in ./configure.ac,
  - mention "gnulib" in SUBDIRS in grub-core/lib/Makefile.am,
  - mention "-I m4" in ACLOCAL_AMFLAGS in Makefile.am,
  - mention "m4/gnulib-cache.m4" in EXTRA_DIST in Makefile.am,
  - invoke gl_EARLY in ./configure.ac, right after AC_PROG_CC,
  - invoke gl_INIT in ./configure.ac.
patching file base64.h
patching file argp-parse.c
patching file argp-fmtstream.c
patching file argp-help.c
patching file mbswidth.c
patching file mbswidth.h
patching file regcomp.c
patching file Makefile.in.in
patching file Makefile.in.in
patching file Makefile.in.in
patching file Makefile.in.in
Importing unicode...
./autogen.sh: 行 20: python:未找到命令
fatal: not a git repository (or any parent up to mount point /media/ubuntu)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
running: AUTOPOINT=true LIBTOOLIZE=true autoreconf --verbose --install --force -I m4  --no-recursive
autoreconf: Entering directory `.'
autoreconf: running: true --force
autoreconf: running: aclocal -I m4 --force -I m4
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --include=m4 --force
autoreconf: running: /usr/bin/autoheader --include=m4 --force
autoreconf: running: automake --add-missing --copy --force-missing
automake: error: cannot open < Makefile.util.am: No such file or directory
autoreconf: automake failed with exit status: 1
./bootstrap: autoreconf failed

上面的错误automake: error: cannot open < Makefile.util.am: No such file or directory应该怎么办?网上没有找到有效的答复。autoreconf生成configure失败了。


看了上面的错误,好像没有获取到{python}的值,搞个别名,我试了可以调用python:
alias python=python3
ubuntu@ubuntu:/media/ubuntu/备份/bak/grub2/grub-latest-source2021-06-08$ python
Python 3.8.6 (default, Sep 25 2020, 09:36:53)
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
Use quit() or Ctrl-D (i.e. EOF) to exit
>>> quit()




前面不是说configure生成失败吗?我也不知道这个configure是怎么来的,既然有,就运行试试看吧:
ubuntu@ubuntu:/media/ubuntu/备份/bak/grub2/grub-latest-source2021-06-08$ ./configure
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for git... git
fatal: not a git repository (or any parent up to mount point /media/ubuntu)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
configure: "2.05-20210608-"
checking for cmp... cmp
checking for bison... bison
checking for ranlib... ranlib
checking for gawk... (cached) gawk
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... none
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking for bison... (cached) bison
checking whether make sets $(MAKE)... (cached) yes
checking whether ln -s works... yes
checking for makeinfo... no
checking for true... /usr/bin/true
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) none
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether _XOPEN_SOURCE should be defined... no
checking for Minix Amsterdam compiler... no
checking for ar... ar
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... none
checking dependency style of gcc... none
checking for a Python interpreter with version >= 2.6... python3
checking for python3... /usr/bin/python3
checking for python3 version... 3.8
checking for python3 platform... linux
checking for python3 script directory... ${prefix}/lib/python3.8/site-packages
checking for python3 extension module directory... ${exec_prefix}/lib/python3.8/site-packages
checking for g++... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking 32-bit host C ABI... no
checking for the common suffixes of directories in the library search path... lib,lib
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for special C compiler options needed for large files... (cached) no
checking for _FILE_OFFSET_BITS value needed for large files... (cached) no
checking whether byte ordering is bigendian... no
checking size of void *... 8
checking size of long... 8
checking size of off_t... 8
checking for help2man... no
checking for posix_memalign... yes
checking for memalign... yes
checking for getextmntent... no
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/mount.h usability... yes
checking sys/mount.h presence... yes
checking for sys/mount.h... yes
checking sys/mnttab.h usability... no
checking sys/mnttab.h presence... no
checking for sys/mnttab.h... no
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for sys/types.h... (cached) yes
checking for features.h... yes
checking for linewrap.h... no
checking for unistd.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for sys/socket.h... yes
checking for dirent.h... yes
checking for fnmatch.h... yes
checking for wctype.h... yes
checking for sys/stat.h... (cached) yes
checking for getopt.h... yes
checking for sys/cdefs.h... yes
checking for langinfo.h... yes
checking for limits.h... (cached) yes
checking for xlocale.h... no
checking for wchar.h... yes
checking for sys/mman.h... yes
checking for malloc.h... yes
checking for sys/time.h... yes
checking for stdint.h... (cached) yes
checking for strings.h... (cached) yes
checking for sysexits.h... yes
checking for crtdefs.h... no
checking sys/mkdev.h usability... no
checking sys/mkdev.h presence... no
checking for sys/mkdev.h... no
checking sys/sysmacros.h usability... yes
checking sys/sysmacros.h presence... yes
checking for sys/sysmacros.h... yes
checking for struct statfs.f_fstypename... no
checking for struct statfs.f_mntfromname... no
checking util.h usability... no
checking util.h presence... no
checking for util.h... no
checking whether -Wtrampolines work... yes
checking for gcc... gcc
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for inline... inline
checking for C/C++ restrict keyword... __restrict
checking whether clearerr_unlocked is declared... yes
checking whether feof_unlocked is declared... yes
checking whether ferror_unlocked is declared... yes
checking whether fflush_unlocked is declared... yes
checking whether fgets_unlocked is declared... yes
checking whether fputc_unlocked is declared... yes
checking whether fputs_unlocked is declared... yes
checking whether fread_unlocked is declared... yes
checking whether fwrite_unlocked is declared... yes
checking whether getc_unlocked is declared... yes
checking whether getchar_unlocked is declared... yes
checking whether putc_unlocked is declared... yes
checking whether putchar_unlocked is declared... yes
checking for flockfile... yes
checking for funlockfile... yes
checking for btowc... yes
checking for _set_invalid_parameter_handler... no
checking for fchdir... yes
checking for fcntl... yes
checking for symlink... yes
checking for mempcpy... yes
checking for fnmatch... yes
checking for isblank... yes
checking for iswctype... yes
checking for mbsrtowcs... yes
checking for wmemchr... yes
checking for wmemcpy... yes
checking for wmempcpy... yes
checking for getdelim... yes
checking for getdtablesize... yes
checking for getprogname... no
checking for getexecname... no
checking for mbsinit... yes
checking for mbrtowc... yes
checking for isascii... yes
checking for mprotect... yes
checking for nl_langinfo... yes
checking for lstat... yes
checking for openat... yes
checking for sleep... yes
checking for strdup... yes
checking for strndup... yes
checking for pipe... yes
checking for vasnprintf... no
checking for snprintf... yes
checking for wcrtomb... yes
checking for iswcntrl... yes
checking for wcwidth... yes
checking whether strerror_r is declared... yes
checking for strerror_r... yes
checking whether strerror_r returns char *... yes
checking whether <wchar.h> uses 'inline' correctly... yes
checking for nl_langinfo and CODESET... yes
checking for a traditional french locale... none
checking whether the preprocessor supports include_next... yes
checking whether system header files limit the line length... no
checking whether // is distinct from /... no
checking for complete errno.h... yes
checking whether fchdir is declared... yes
checking for working fcntl.h... yes
checking for pid_t... yes
checking for mode_t... yes
checking for mbstate_t... yes
checking whether stat file-mode macros are broken... no
checking for nlink_t... yes
checking whether getcwd (NULL, 0) allocates memory for result... yes
checking for getcwd with POSIX signature... yes
checking whether getdelim is declared... yes
checking whether getdtablesize is declared... yes
checking whether getline is declared... yes
checking for getopt.h... (cached) yes
checking for getopt_long_only... yes
checking whether getopt is POSIX compatible... yes
checking for working GNU getopt function... yes
checking for working GNU getopt_long function... yes
checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc.... yes
checking for wchar_t... yes
checking for good max_align_t... yes
checking whether NULL can be used in arbitrary expressions... yes
checking whether imported symbols can be declared weak... yes
checking whether the linker supports --as-needed... yes
checking whether the linker supports --push-state... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for multithread API to use... posix
checking whether malloc, realloc, calloc are POSIX compliant... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for unsigned long long int... yes
checking for long long int... yes
checking for a traditional japanese locale... none
checking for a transitional chinese locale... none
checking for a french Unicode locale... fr_FR.UTF-8
checking for mmap... yes
checking for MAP_ANONYMOUS... yes
checking whether memchr works... yes
checking whether memrchr is declared... yes
checking for O_CLOEXEC... yes
checking for promoted mode_t type... mode_t
checking whether lstat correctly handles trailing slash... yes
checking whether alarm is declared... yes
checking whether we are using the GNU C Library >= 2.1 or uClibc... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for wint_t... yes
checking whether wint_t is too small... no
checking whether stdint.h conforms to C99... yes
checking whether stdint.h predates C++11... no
checking whether stdint.h has UINTMAX_WIDTH etc.... yes
checking whether strdup is declared... yes
checking whether strerror(0) succeeds... yes
checking whether strndup is declared... yes
checking whether strnlen is declared... yes
checking for struct timespec in <time.h>... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for intmax_t... yes
checking where to find the exponent in a 'double'... word 1 bit 20
checking whether snprintf returns a byte count as in C99... yes
checking for snprintf... (cached) yes
checking for strnlen... yes
checking for wcslen... yes
checking for wcsnlen... yes
checking for mbrtowc... (cached) yes
checking for wcrtomb... (cached) yes
checking whether _snprintf is declared... no
checking whether vsnprintf is declared... yes
checking for alloca as a compiler built-in... yes
checking whether program_invocation_name is declared... yes
checking whether program_invocation_short_name is declared... yes
checking whether program_invocation_name is defined... yes
checking whether program_invocation_short_name is defined... yes
checking whether btowc(0) is correct... yes
checking whether btowc(EOF) is correct... guessing yes
checking for __builtin_expect... yes
checking whether this system has an arbitrary file name length limit... yes
checking for dirfd... yes
checking whether dirfd is declared... yes
checking whether dirfd is a macro... no
checking whether // is distinct from /... (cached) no
checking whether dup2 works... yes
checking for error_at_line... yes
checking whether fcntl handles F_DUPFD correctly... yes
checking whether fcntl understands F_DUPFD_CLOEXEC... needs runtime check
checking for flexible array member... yes
checking whether conversion from 'int' to 'long double' works... yes
checking for working POSIX fnmatch... yes
checking for working getdelim function... yes
checking whether getdtablesize works... yes
checking for getline... yes
checking for working getline function... yes
checking whether program_invocation_name is declared... (cached) yes
checking whether program_invocation_short_name is declared... (cached) yes
checking whether __argv is declared... no
checking whether langinfo.h defines CODESET... yes
checking whether langinfo.h defines T_FMT_AMPM... yes
checking whether langinfo.h defines ALTMON_1... yes
checking whether langinfo.h defines ERA... yes
checking whether langinfo.h defines YESEXPR... yes
checking whether the compiler supports the __inline keyword... yes
checking whether locale.h conforms to POSIX:2001... yes
checking whether struct lconv is properly defined... yes
checking for pthread_rwlock_t... yes
checking whether pthread_rwlock_rdlock prefers a writer to a reader... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... (cached) yes
checking whether mbrtowc handles incomplete characters... guessing yes
checking whether mbrtowc works as well as mbtowc... guessing yes
checking whether mbrtowc handles a NULL pwc argument... yes
checking whether mbrtowc handles a NULL string argument... yes
checking whether mbrtowc has a correct return value... yes
checking whether mbrtowc returns 0 when parsing a NUL character... guessing yes
checking whether mbrtowc works on empty input... yes
checking whether the C locale is free of encoding errors... no
checking whether mbrtowc handles incomplete characters... (cached) guessing yes
checking whether mbrtowc works as well as mbtowc... (cached) guessing yes
checking whether mbrtowc handles incomplete characters... (cached) guessing yes
checking whether mbrtowc works as well as mbtowc... (cached) guessing yes
checking whether mbsrtowcs works... yes
checking whether mbswidth is declared in <wchar.h>... no
checking for mbstate_t... (cached) yes
checking for mempcpy... (cached) yes
checking for memrchr... yes
checking whether YESEXPR works... yes
checking whether open recognizes a trailing slash... yes
checking whether program_invocation_name is declared... (cached) yes
checking whether program_invocation_short_name is declared... (cached) yes
checking for rawmemchr... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for working re_compile_pattern... no
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking whether isblank is declared... yes
checking for stdint.h... (cached) yes
checking for SIZE_MAX... yes
checking whether sleep is declared... yes
checking for working sleep... yes
checking for ssize_t... yes
checking whether stat handles trailing slashes on files... yes
checking for struct stat.st_atim.tv_nsec... yes
checking whether struct stat.st_atim is of type struct timespec... yes
checking for struct stat.st_birthtimespec.tv_nsec... no
checking for struct stat.st_birthtimensec... no
checking for struct stat.st_birthtim.tv_nsec... no
checking for working stdalign.h... yes
checking for good max_align_t... (cached) yes
checking whether NULL can be used in arbitrary expressions... (cached) yes
checking which flavor of printf attribute matches inttypes macros... system
checking for strcasecmp... yes
checking for strncasecmp... yes
checking whether strncasecmp is declared... yes
checking for strchrnul... yes
checking whether strchrnul works... yes
checking for working strerror function... yes
checking for working strndup... yes
checking for working strnlen... yes
checking for nlink_t... (cached) yes
checking for ptrdiff_t... yes
checking for vsnprintf... yes
checking whether snprintf respects a size of 1... yes
checking whether printf supports POSIX/XSI format strings with positions... yes
checking whether mbrtowc handles incomplete characters... (cached) guessing yes
checking whether mbrtowc works as well as mbtowc... (cached) guessing yes
checking whether wcrtomb return value is correct... yes
checking whether iswcntrl works... yes
checking for towlower... yes
checking for wctype_t... yes
checking for wctrans_t... yes
checking whether wcwidth is declared... yes
checking whether wcwidth works reasonably in UTF-8 locales... yes
checking for stdint.h... (cached) yes
checking which extra warnings work...  -Wextra -Wattributes -Wendif-labels -Winit-self -Wint-to-pointer-cast -Winvalid-pch -Wmissing-field-initializers -Wnonnull -Woverflow -Wvla -Wpointer-to-int-cast -Wstrict-aliasing -Wvariadic-macros -Wvolatile-register-var -Wpointer-sign -Wmissing-include-dirs -Wmissing-prototypes -Wmissing-declarations -Wformat=2
checking for objcopy... objcopy
checking for strip... strip
checking for nm... nm
checking for ranlib... ranlib
checking which extra warnings work...  -Wextra -Wattributes -Wendif-labels -Winit-self -Wint-to-pointer-cast -Winvalid-pch -Wmissing-field-initializers -Wnonnull -Woverflow -Wvla -Wpointer-to-int-cast -Wstrict-aliasing -Wvariadic-macros -Wvolatile-register-var -Wpointer-sign -Wmissing-include-dirs -Wmissing-prototypes -Wmissing-declarations -Wformat=2
checking if compiling with clang... no
checking for options to compile assembly...
checking whether -falign-loops works... yes
checking whether -malign-loops works... yes
checking whether -freg-struct-return works... yes
checking for options to get soft-float... -msoft-float
checking whether -fno-dwarf2-cfi-asm works... yes
checking whether -mno-stack-arg-probe works... yes
checking whether -fno-asynchronous-unwind-tables works... yes
checking whether -fno-unwind-tables works... yes
checking whether -fno-ident works... yes
checking for target linking format... -melf_i386
checking whether options required for efiemu work... yes
checking for efiemu64 linking format... -melf_x86_64
checking for efiemu32 linking format... -melf_i386
checking whether option -Qn works... no
checking whether `gcc' has `-fPIE' as default... yes
checking whether linker accepts -no-pie... yes
checking whether linker accepts -nopie... no
checking whether linker needs disabling of PIE to work... no
checking whether `gcc' has `-fPIC' as default... no
checking whether `gcc' accepts `-fstack-protector'... yes
checking whether `gcc' accepts `-mstack-arg-probe'... no
checking if C symbols get an underscore after compilation... no
checking whether target compiler is working... yes
checking whether objcopy works for absolute addresses... yes
checking whether linker accepts --build-id=none... yes
checking if __bss_start is defined by the compiler... yes
checking if edata is defined by the compiler... yes
checking if _edata is defined by the compiler... yes
checking if end is defined by the compiler... yes
checking if _end is defined by the compiler... yes
checking whether nm works... yes
checking whether nm accepts -P... yes
checking whether nm accepts --defined-only... yes
checking whether -nostdinc -isystem works... yes
checking whether -Wtrampolines work... yes
checking for freetype2... yes
checking ft2build.h usability... yes
checking ft2build.h presence... yes
checking for ft2build.h... yes
checking whether byte ordering is bigendian... no
checking for freetype2... yes
checking ft2build.h usability... yes
checking ft2build.h presence... yes
checking for ft2build.h... yes
checking for fuse_main_real in -lfuse... no
checking libdevmapper.h usability... yes
checking libdevmapper.h presence... yes
checking for libdevmapper.h... yes
checking for dm_task_create in -ldevmapper... yes
checking for dm_log_with_errno_init in -ldevmapper... yes
checking for lzma_code in -llzma... no
checking libzfs.h usability... no
checking libzfs.h presence... no
checking for libzfs.h... no
checking libnvpair.h usability... no
checking libnvpair.h presence... no
checking for libnvpair.h... no
checking for libzfs_init in -lzfs... no
checking whether ln -s can handle directories properly... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: error: cannot find input file: `Makefile.in'


生成
Makefile.in失败了,makefile肯定不行了:
ubuntu@ubuntu:/media/ubuntu/备份/bak/grub2/grub-latest-source2021-06-08$ make
make: *** 没有指明目标并且找不到 makefile。 停止。

这是那里的问题?


我试了,源代码放在NTFS/EXT4分区都一样。似乎不是权限问题。
2#
 楼主| 发表于 2021-6-8 17:40:06 | 只看该作者
纯属瞎折腾,大神们勿怪。


g4e/grub2编译环境搭建,感觉从来都不容易。


回复

使用道具 举报

3#
 楼主| 发表于 2021-6-8 17:53:02 | 只看该作者
本帖最后由 liuzhaoyzz 于 2021-6-8 17:58 编辑

gcc版本:10.2的。
ubuntu@ubuntu:/media/ubuntu/备份/bak/grub2/grub-latest-source2021-06-08$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/10/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa:hsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 10.2.0-13ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-10/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-10 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-10-JvwpWM/gcc-10-10.2.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-10-JvwpWM/gcc-10-10.2.0/debian/tmp-gcn/usr,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.2.0 (Ubuntu 10.2.0-13ubuntu1)


g++版本10.2的:
ubuntu@ubuntu:/media/ubuntu/备份/bak/grub2/grub-latest-source2021-06-08$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/10/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa:hsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 10.2.0-13ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-10/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-10 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-10-JvwpWM/gcc-10-10.2.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-10-JvwpWM/gcc-10-10.2.0/debian/tmp-gcn/usr,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.2.0 (Ubuntu 10.2.0-13ubuntu1)

ubuntu版本:64位20.10LTS
ubuntu@ubuntu:/media/ubuntu/备份/bak/grub2/grub-latest-source2021-06-08$ lsb_release -a
No LSB modules are available.
Distributor ID:        Ubuntu
Description:        Ubuntu 20.10
Release:        20.10
Codename:        groovy


ubuntu@ubuntu:/media/ubuntu/备份/bak/grub2/grub-latest-source2021-06-08$ uname -a
Linux ubuntu 5.8.0-25-generic #26-Ubuntu SMP Thu Oct 15 10:30:38 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux


glibc版本:2.32,满足条件。

ubuntu@ubuntu:/media/ubuntu/备份/bak/grub2/grub-latest-source2021-06-08$ ldd --version
ldd (Ubuntu GLIBC 2.32-0ubuntu3) 2.32
Copyright (C) 2020 自由软件基金会。
这是一个自由软件;请见源代码的授权条款。本软件不含任何没有担保;甚至不保证适销性
或者适合某些特殊目的。
由 Roland McGrath 和 Ulrich Drepper 编写。

回复

使用道具 举报

4#
发表于 2021-6-8 18:18:40 | 只看该作者
看了你写的,血压都高了。
另外,不要先在windows/ntfs/fat下先解压再复制到ext等分区,也不要用7-zip/p7zip等解压。要用tar等命令直接解压。
p7zip/7-zip等软件在解压的时候不能正确处理权限和符号链接。
tar -xf xxx.tar.gz
复制代码

我建议用git直接同步代码。
git clone --depth=1 https://github.com/a1ive/grub
复制代码

结果你又用 chmod 瞎改权限了。
那我就明确告诉你,必须用 git 同步代码,禁止改权限,否则出问题自负。
INSTALL 文件里面已经把过程写得很清楚了,结果你非得参考国内那些不动脑子复制粘贴来的所谓"解决方法",瞎执行什么 autoconf。
就算你看不懂英文,ci的配置文件总可以看个大概吧。
https://github.com/a1ive/grub/bl ... workflows/build.yml
安装什么软件写得很清楚
  1. sudo -E apt-get -y install build-essential python iasl lzop unifont autopoint bison flex gettext gcc-aarch64-linux-gnu gcc-arm-linux-gnueabi gcc-mingw-w64
复制代码

如果你不需要 arm/arm64 版的,就不用装 gcc-aarch64-linux-gnu gcc-arm-linux-gnueabi。如果不需要 win32 版 grub-mkimage.exe 等程序,就不需要装 gcc-mingw-w64。
编译也总共就四步
  1. ./bootstrap
  2. ./configure --prefix=/ --target=i386 --with-platform=pc
  3. make
  4. make install DESTDIR=$PWD/PKG
复制代码

如果还想编译其他架构的,make clean 之后再 configure 就行了,不需要再执行 bootstrap。
  1. make clean
  2. ./configure --prefix=/ --target=x86_64 --with-platform=efi
  3. make
  4. make install DESTDIR=$PWD/PKG
复制代码

如果要编译 windows 下用的 grub-mkimage.exe,要安装 gcc-mingw-w64.
  1. make clean
  2. ./configure --prefix=/ --target=i686-w64-mingw32 --with-platform=none --host=i686-w64-mingw32
  3. make
  4. make install DESTDIR=$PWD/PKG
复制代码

点评

好吧,严格按照你说的git走一遍,放到ext4分区。 root@ubuntu:/home/ubuntu# cd /media/ubuntu/yule/grub2 root@ubuntu:/media/ubuntu/yule/grub2# git clone --depth=1 https://github.com/a1ive/grub 正克隆到  详情 回复 发表于 2021-6-8 19:32
解释的很详细,赞  详情 回复 发表于 2021-6-8 19:28
回复

使用道具 举报

5#
发表于 2021-6-8 18:33:43 | 只看该作者
没搞个docker编译容器?直接git clone代码build多好。

点评

不会搞啊,我只是瞎折腾两下子罢了。 docker技术看网上说的用在服务器听多的,不懂。  详情 回复 发表于 2021-6-8 20:41
回复

使用道具 举报

6#
发表于 2021-6-8 19:28:44 | 只看该作者
wintoflash 发表于 2021-6-8 18:18
看了你写的,血压都高了。

结果你又用 chmod 瞎改权限了。

解释的很详细,赞
回复

使用道具 举报

7#
 楼主| 发表于 2021-6-8 19:32:42 | 只看该作者
本帖最后由 liuzhaoyzz 于 2021-6-8 19:43 编辑
wintoflash 发表于 2021-6-8 18:18
看了你写的,血压都高了。

结果你又用 chmod 瞎改权限了。

好吧,严格按照你说的git走一遍,放到ext4分区。我是从liveCD启动的,一切从零开始搞,全新的,跟上次的设置,软件包什么的无关。
root@ubuntu:/home/ubuntu# cd /media/ubuntu/yule/grub2
root@ubuntu:/media/ubuntu/yule/grub2# git clone --depth=1 https://github.com/a1ive/grub
正克隆到 'grub'...
remote: Enumerating objects: 2388, done.
remote: Counting objects: 100% (2388/2388), done.
remote: Compressing objects: 100% (1993/1993), done.
remote: Total 2388 (delta 518), reused 1212 (delta 249), pack-reused 0
接收对象中: 100% (2388/2388), 9.02 MiB | 3.31 MiB/s, 完成.
处理 delta 中: 100% (518/518), 完成.
root@ubuntu:/media/ubuntu/yule/grub2# ls
grub
root@ubuntu:/media/ubuntu/yule/grub2# cd grub

看了下文件都在:git确实挺简单。
root@ubuntu:/media/ubuntu/yule/grub2/grub# ls
acinclude.m4    ChangeLog-2015  geninit.sh   Makefile.util.def  tests
asm-tests       conf            gentpl.py    makepkg            THANKS
AUTHORS         config.h.in     grub-core    makepkg.sh         themes
autogen.sh      configure.ac    include      NEWS               TODO
bootstrap       COPYING         INSTALL      po                 unicode
bootstrap.conf  coreboot.cfg    linguas.sh   README             util
BUGS            docs            Makefile.am  README.md


https://github.com/a1ive/grub/bl ... workflows/build.yml
你发的网址里面的依赖包,和install里面的依赖包似乎不同啊,上次我是对照着install里面尝试的。

按照你上面网址里面的依赖包:
root@ubuntu:/media/ubuntu/yule/grub2/grub# sudo -E apt-get -y install build-essential python iasl lzop unifont autopoint bison flex gettext gcc-aarch64-linux-gnu gcc-arm-linux-gnueabi gcc-mingw-w64
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
没有可用的软件包 python,但是它被其它的软件包引用了。
这可能意味着这个缺失的软件包可能已被废弃,
或者只能在其他发布源中找到
然而下列软件包会取代它:
  python-is-python3

E: 软件包 python 没有可安装候选
E: 无法定位软件包 iasl
E: 无法定位软件包 unifont
E: 无法定位软件包 gcc-arm-linux-gnueabi
E: 无法定位软件包 gcc-mingw-w64
上面的几个包官方源里面没有?python我看了ubuntu20.10里面已经有了python3.


单独补齐build-essential:
root@ubuntu:/media/ubuntu/yule/grub2/grub# sudo -E apt-get -y install build-essential
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
将会同时安装下列软件:
  dpkg-dev fakeroot libalgorithm-diff-perl libalgorithm-diff-xs-perl
  libalgorithm-merge-perl libfakeroot
建议安装:
  debian-keyring
下列【新】软件包将被安装:
  build-essential dpkg-dev fakeroot libalgorithm-diff-perl
  libalgorithm-diff-xs-perl libalgorithm-merge-perl libfakeroot
升级了 0 个软件包,新安装了 7 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
需要下载 0 B/922 kB 的归档。
解压缩后会消耗 2,874 kB 的额外空间。
获取:1 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 dpkg-dev all 1.20.5ubuntu2 [758 kB]
获取:2 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 build-essential amd64 12.8ubuntu3 [4,640 B]
获取:3 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 libfakeroot amd64 1.25.2-1 [26.6 kB]
获取:4 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 fakeroot amd64 1.25.2-1 [62.8 kB]
获取:5 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 libalgorithm-diff-perl all 1.19.03-2 [46.6 kB]
获取:6 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 libalgorithm-diff-xs-perl amd64 0.04-6 [11.3 kB]
获取:7 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 libalgorithm-merge-perl all 0.08-3 [12.0 kB]
正在选中未选择的软件包 dpkg-dev。  
(正在读取数据库 ... 系统当前共安装有 202337 个文件和目录。)
准备解压 .../0-dpkg-dev_1.20.5ubuntu2_all.deb  ...
正在解压 dpkg-dev (1.20.5ubuntu2) ...
正在选中未选择的软件包 build-essential。
准备解压 .../1-build-essential_12.8ubuntu3_amd64.deb  ...
正在解压 build-essential (12.8ubuntu3) ...
正在选中未选择的软件包 libfakeroot:amd64。
准备解压 .../2-libfakeroot_1.25.2-1_amd64.deb  ...
正在解压 libfakeroot:amd64 (1.25.2-1) ...
正在选中未选择的软件包 fakeroot。
准备解压 .../3-fakeroot_1.25.2-1_amd64.deb  ...
正在解压 fakeroot (1.25.2-1) ...
正在选中未选择的软件包 libalgorithm-diff-perl。
准备解压 .../4-libalgorithm-diff-perl_1.19.03-2_all.deb  ...
正在解压 libalgorithm-diff-perl (1.19.03-2) ...
正在选中未选择的软件包 libalgorithm-diff-xs-perl。
准备解压 .../5-libalgorithm-diff-xs-perl_0.04-6_amd64.deb  ...
正在解压 libalgorithm-diff-xs-perl (0.04-6) ...
正在选中未选择的软件包 libalgorithm-merge-perl。
准备解压 .../6-libalgorithm-merge-perl_0.08-3_all.deb  ...
正在解压 libalgorithm-merge-perl (0.08-3) ...
正在设置 libalgorithm-diff-perl (1.19.03-2) ...
正在设置 libfakeroot:amd64 (1.25.2-1) ...
正在设置 dpkg-dev (1.20.5ubuntu2) ...
正在设置 fakeroot (1.25.2-1) ...
update-alternatives: 使用 /usr/bin/fakeroot-sysv 来在自动模式中提供 /usr/bin/fakeroot (fakeroot)
正在设置 build-essential (12.8ubuntu3) ...
正在设置 libalgorithm-diff-xs-perl (0.04-6) ...
正在设置 libalgorithm-merge-perl (0.08-3) ...
正在处理用于 man-db (2.9.3-2) 的触发器 ...
正在处理用于 libc-bin (2.32-0ubuntu3) 的触发器 ...

补齐lzop:
root@ubuntu:/media/ubuntu/yule/grub2/grub# sudo -E apt-get -y install lzop
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
下列【新】软件包将被安装:
  lzop
升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
需要下载 83.4 kB 的归档。
解压缩后会消耗 167 kB 的额外空间。
获取:1 http://archive.ubuntu.com/ubuntu groovy/main amd64 lzop amd64 1.04-1build1 [83.4 kB]
已下载 83.4 kB,耗时 2秒 (53.7 kB/s)
正在选中未选择的软件包 lzop。
(正在读取数据库 ... 系统当前共安装有 202638 个文件和目录。)
准备解压 .../lzop_1.04-1build1_amd64.deb  ...
正在解压 lzop (1.04-1build1) ...
正在设置 lzop (1.04-1build1) ...
正在处理用于 man-db (2.9.3-2) 的触发器 ...

补齐gcc-aarch64-linux-gnu
root@ubuntu:/media/ubuntu/yule/grub2/grub# sudo -E apt-get -y install gcc-aarch64-linux-gnu
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
将会同时安装下列软件:
  binutils-aarch64-linux-gnu cpp-10-aarch64-linux-gnu cpp-aarch64-linux-gnu
  gcc-10-aarch64-linux-gnu gcc-10-aarch64-linux-gnu-base gcc-10-cross-base
  libasan6-arm64-cross libatomic1-arm64-cross libc6-arm64-cross
  libc6-dev-arm64-cross libgcc-10-dev-arm64-cross libgcc-s1-arm64-cross
  libgomp1-arm64-cross libitm1-arm64-cross liblsan0-arm64-cross
  libstdc++6-arm64-cross libtsan0-arm64-cross libubsan1-arm64-cross
  linux-libc-dev-arm64-cross
建议安装:
  binutils-doc gcc-10-locales cpp-doc gdb-aarch64-linux-gnu
下列软件包将被【卸载】:
  gcc-multilib
下列【新】软件包将被安装:
  binutils-aarch64-linux-gnu cpp-10-aarch64-linux-gnu cpp-aarch64-linux-gnu
  gcc-10-aarch64-linux-gnu gcc-10-aarch64-linux-gnu-base gcc-10-cross-base
  gcc-aarch64-linux-gnu libasan6-arm64-cross libatomic1-arm64-cross
  libc6-arm64-cross libc6-dev-arm64-cross libgcc-10-dev-arm64-cross
  libgcc-s1-arm64-cross libgomp1-arm64-cross libitm1-arm64-cross
  liblsan0-arm64-cross libstdc++6-arm64-cross libtsan0-arm64-cross
  libubsan1-arm64-cross linux-libc-dev-arm64-cross
升级了 0 个软件包,新安装了 20 个软件包,要卸载 1 个软件包,有 0 个软件包未被升级。
需要下载 33.1 MB 的归档。
解压缩后会消耗 121 MB 的额外空间。
获取:1 http://archive.ubuntu.com/ubuntu groovy/main amd64 gcc-10-aarch64-linux-gnu-base amd64 10.2.0-8ubuntu1cross1 [19.8 kB]
获取:2 http://archive.ubuntu.com/ubuntu groovy/main amd64 cpp-10-aarch64-linux-gnu amd64 10.2.0-8ubuntu1cross1 [7,947 kB]
获取:3 http://archive.ubuntu.com/ubuntu groovy/main amd64 cpp-aarch64-linux-gnu amd64 4:10.2.0-1ubuntu1 [3,520 B]
获取:4 http://archive.ubuntu.com/ubuntu groovy/main amd64 binutils-aarch64-linux-gnu amd64 2.35.1-1ubuntu1 [2,787 kB]
获取:5 http://archive.ubuntu.com/ubuntu groovy/main amd64 gcc-10-cross-base all 10.2.0-8ubuntu1cross1 [15.0 kB]
获取:6 http://archive.ubuntu.com/ubuntu groovy/main amd64 libc6-arm64-cross all 2.32-0ubuntu3cross2 [1,025 kB]
获取:7 http://archive.ubuntu.com/ubuntu groovy/main amd64 libgcc-s1-arm64-cross all 10.2.0-8ubuntu1cross1 [34.6 kB]
获取:8 http://archive.ubuntu.com/ubuntu groovy/main amd64 libgomp1-arm64-cross all 10.2.0-8ubuntu1cross1 [92.0 kB]
获取:9 http://archive.ubuntu.com/ubuntu groovy/main amd64 libitm1-arm64-cross all 10.2.0-8ubuntu1cross1 [23.8 kB]
获取:10 http://archive.ubuntu.com/ubuntu groovy/main amd64 libatomic1-arm64-cross all 10.2.0-8ubuntu1cross1 [9,604 B]
获取:11 http://archive.ubuntu.com/ubuntu groovy/main amd64 libasan6-arm64-cross all 10.2.0-8ubuntu1cross1 [312 kB]
获取:12 http://archive.ubuntu.com/ubuntu groovy/main amd64 liblsan0-arm64-cross all 10.2.0-8ubuntu1cross1 [129 kB]
获取:13 http://archive.ubuntu.com/ubuntu groovy/main amd64 libtsan0-arm64-cross all 10.2.0-8ubuntu1cross1 [295 kB]
获取:14 http://archive.ubuntu.com/ubuntu groovy/main amd64 libstdc++6-arm64-cross all 10.2.0-8ubuntu1cross1 [424 kB]
获取:15 http://archive.ubuntu.com/ubuntu groovy/main amd64 libubsan1-arm64-cross all 10.2.0-8ubuntu1cross1 [126 kB]
获取:16 http://archive.ubuntu.com/ubuntu groovy/main amd64 libgcc-10-dev-arm64-cross all 10.2.0-8ubuntu1cross1 [909 kB]
获取:17 http://archive.ubuntu.com/ubuntu groovy/main amd64 gcc-10-aarch64-linux-gnu amd64 10.2.0-8ubuntu1cross1 [16.1 MB]
获取:18 http://archive.ubuntu.com/ubuntu groovy/main amd64 gcc-aarch64-linux-gnu amd64 4:10.2.0-1ubuntu1 [1,416 B]
获取:19 http://archive.ubuntu.com/ubuntu groovy/main amd64 linux-libc-dev-arm64-cross all 5.8.0-19.20cross2 [1,095 kB]
获取:20 http://archive.ubuntu.com/ubuntu groovy/main amd64 libc6-dev-arm64-cross all 2.32-0ubuntu3cross2 [1,716 kB]
已下载 33.1 MB,耗时 1分 20秒 (413 kB/s)                                       
(正在读取数据库 ... 系统当前共安装有 202653 个文件和目录。)
正在卸载 gcc-multilib (4:10.2.0-1ubuntu1) ...
正在选中未选择的软件包 gcc-10-aarch64-linux-gnu-base:amd64。
(正在读取数据库 ... 系统当前共安装有 202651 个文件和目录。)
准备解压 .../00-gcc-10-aarch64-linux-gnu-base_10.2.0-8ubuntu1cross1_amd64.deb  ...
正在解压 gcc-10-aarch64-linux-gnu-base:amd64 (10.2.0-8ubuntu1cross1) ...
正在选中未选择的软件包 cpp-10-aarch64-linux-gnu。
准备解压 .../01-cpp-10-aarch64-linux-gnu_10.2.0-8ubuntu1cross1_amd64.deb  ...
正在解压 cpp-10-aarch64-linux-gnu (10.2.0-8ubuntu1cross1) ...
正在选中未选择的软件包 cpp-aarch64-linux-gnu。
准备解压 .../02-cpp-aarch64-linux-gnu_4%3a10.2.0-1ubuntu1_amd64.deb  ...
正在解压 cpp-aarch64-linux-gnu (4:10.2.0-1ubuntu1) ...
正在选中未选择的软件包 binutils-aarch64-linux-gnu。
准备解压 .../03-binutils-aarch64-linux-gnu_2.35.1-1ubuntu1_amd64.deb  ...
正在解压 binutils-aarch64-linux-gnu (2.35.1-1ubuntu1) ...
正在选中未选择的软件包 gcc-10-cross-base。
准备解压 .../04-gcc-10-cross-base_10.2.0-8ubuntu1cross1_all.deb  ...
正在解压 gcc-10-cross-base (10.2.0-8ubuntu1cross1) ...
正在选中未选择的软件包 libc6-arm64-cross。
准备解压 .../05-libc6-arm64-cross_2.32-0ubuntu3cross2_all.deb  ...
正在解压 libc6-arm64-cross (2.32-0ubuntu3cross2) ...
正在选中未选择的软件包 libgcc-s1-arm64-cross。
准备解压 .../06-libgcc-s1-arm64-cross_10.2.0-8ubuntu1cross1_all.deb  ...
正在解压 libgcc-s1-arm64-cross (10.2.0-8ubuntu1cross1) ...
正在选中未选择的软件包 libgomp1-arm64-cross。
准备解压 .../07-libgomp1-arm64-cross_10.2.0-8ubuntu1cross1_all.deb  ...
正在解压 libgomp1-arm64-cross (10.2.0-8ubuntu1cross1) ...
正在选中未选择的软件包 libitm1-arm64-cross。
准备解压 .../08-libitm1-arm64-cross_10.2.0-8ubuntu1cross1_all.deb  ...
正在解压 libitm1-arm64-cross (10.2.0-8ubuntu1cross1) ...
正在选中未选择的软件包 libatomic1-arm64-cross。
准备解压 .../09-libatomic1-arm64-cross_10.2.0-8ubuntu1cross1_all.deb  ...
正在解压 libatomic1-arm64-cross (10.2.0-8ubuntu1cross1) ...
正在选中未选择的软件包 libasan6-arm64-cross。
准备解压 .../10-libasan6-arm64-cross_10.2.0-8ubuntu1cross1_all.deb  ...
正在解压 libasan6-arm64-cross (10.2.0-8ubuntu1cross1) ...
正在选中未选择的软件包 liblsan0-arm64-cross。
准备解压 .../11-liblsan0-arm64-cross_10.2.0-8ubuntu1cross1_all.deb  ...
正在解压 liblsan0-arm64-cross (10.2.0-8ubuntu1cross1) ...
正在选中未选择的软件包 libtsan0-arm64-cross。
准备解压 .../12-libtsan0-arm64-cross_10.2.0-8ubuntu1cross1_all.deb  ...
正在解压 libtsan0-arm64-cross (10.2.0-8ubuntu1cross1) ...
正在选中未选择的软件包 libstdc++6-arm64-cross。
准备解压 .../13-libstdc++6-arm64-cross_10.2.0-8ubuntu1cross1_all.deb  ...
正在解压 libstdc++6-arm64-cross (10.2.0-8ubuntu1cross1) ...
正在选中未选择的软件包 libubsan1-arm64-cross。
准备解压 .../14-libubsan1-arm64-cross_10.2.0-8ubuntu1cross1_all.deb  ...
正在解压 libubsan1-arm64-cross (10.2.0-8ubuntu1cross1) ...
正在选中未选择的软件包 libgcc-10-dev-arm64-cross。
准备解压 .../15-libgcc-10-dev-arm64-cross_10.2.0-8ubuntu1cross1_all.deb  ...
正在解压 libgcc-10-dev-arm64-cross (10.2.0-8ubuntu1cross1) ...
正在选中未选择的软件包 gcc-10-aarch64-linux-gnu。
准备解压 .../16-gcc-10-aarch64-linux-gnu_10.2.0-8ubuntu1cross1_amd64.deb  ...
正在解压 gcc-10-aarch64-linux-gnu (10.2.0-8ubuntu1cross1) ...
正在选中未选择的软件包 gcc-aarch64-linux-gnu。
准备解压 .../17-gcc-aarch64-linux-gnu_4%3a10.2.0-1ubuntu1_amd64.deb  ...
正在解压 gcc-aarch64-linux-gnu (4:10.2.0-1ubuntu1) ...
正在选中未选择的软件包 linux-libc-dev-arm64-cross。
准备解压 .../18-linux-libc-dev-arm64-cross_5.8.0-19.20cross2_all.deb  ...
正在解压 linux-libc-dev-arm64-cross (5.8.0-19.20cross2) ...
正在选中未选择的软件包 libc6-dev-arm64-cross。
准备解压 .../19-libc6-dev-arm64-cross_2.32-0ubuntu3cross2_all.deb  ...
正在解压 libc6-dev-arm64-cross (2.32-0ubuntu3cross2) ...
正在设置 binutils-aarch64-linux-gnu (2.35.1-1ubuntu1) ...
正在设置 libc6-arm64-cross (2.32-0ubuntu3cross2) ...
正在设置 gcc-10-cross-base (10.2.0-8ubuntu1cross1) ...
正在设置 linux-libc-dev-arm64-cross (5.8.0-19.20cross2) ...
正在设置 libgcc-s1-arm64-cross (10.2.0-8ubuntu1cross1) ...
正在设置 gcc-10-aarch64-linux-gnu-base:amd64 (10.2.0-8ubuntu1cross1) ...
正在设置 libatomic1-arm64-cross (10.2.0-8ubuntu1cross1) ...
正在设置 liblsan0-arm64-cross (10.2.0-8ubuntu1cross1) ...
正在设置 libgomp1-arm64-cross (10.2.0-8ubuntu1cross1) ...
正在设置 libasan6-arm64-cross (10.2.0-8ubuntu1cross1) ...
正在设置 libtsan0-arm64-cross (10.2.0-8ubuntu1cross1) ...
正在设置 libc6-dev-arm64-cross (2.32-0ubuntu3cross2) ...
正在设置 libstdc++6-arm64-cross (10.2.0-8ubuntu1cross1) ...
正在设置 libitm1-arm64-cross (10.2.0-8ubuntu1cross1) ...
正在设置 cpp-10-aarch64-linux-gnu (10.2.0-8ubuntu1cross1) ...
正在设置 libubsan1-arm64-cross (10.2.0-8ubuntu1cross1) ...
正在设置 libgcc-10-dev-arm64-cross (10.2.0-8ubuntu1cross1) ...
正在设置 cpp-aarch64-linux-gnu (4:10.2.0-1ubuntu1) ...
正在设置 gcc-10-aarch64-linux-gnu (10.2.0-8ubuntu1cross1) ...
正在设置 gcc-aarch64-linux-gnu (4:10.2.0-1ubuntu1) ...
正在处理用于 man-db (2.9.3-2) 的触发器 ...
正在处理用于 libc-bin (2.32-0ubuntu3) 的触发器 ...
root@ubuntu:/media/ubuntu/yule/grub2/grub# sudo -E apt-get -y install gcc-arm-linux-gnueabi
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
E: 无法定位软件包 gcc-arm-linux-gnueabi

没有gcc-arm-linux-gnueabi:
root@ubuntu:/media/ubuntu/yule/grub2/grub# sudo -E apt-get -y install gcc-arm-linux-gnueabi
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
E: 无法定位软件包 gcc-arm-linux-gnueabi

没有gcc-mingw-w64:
root@ubuntu:/media/ubuntu/yule/grub2/grub# sudo -E apt-get -y install gcc-mingw-w64
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
E: 无法定位软件包 gcc-mingw-w64

没有gcc-mingw:
root@ubuntu:/media/ubuntu/yule/grub2/grub# apt-cache search gcc-mingw
root@ubuntu:/media/ubuntu/yule/grub2/grub# apt-cache search gcc-mingw

按照原来的依赖包试试吧:

root@ubuntu:/media/ubuntu/yule/grub2/grub# sudo apt-get install gcc gcc-multilib gcc-doc g++ make bison gettext flex pkg-config glibc-doc libdevmapper-dev libpciaccess-dev libusb-dev libfreetype-dev libfreetype6 libfreetype6-dev   qemu autoconf automake libtool autopoint cd-boot-images-amd64 gawk git
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
g++ 已经是最新版 (4:10.2.0-1ubuntu1)。
gcc 已经是最新版 (4:10.2.0-1ubuntu1)。
make 已经是最新版 (4.3-4ubuntu1)。
autoconf 已经是最新版 (2.69-11.1)。
automake 已经是最新版 (1:1.16.2-4ubuntu1)。
autopoint 已经是最新版 (0.19.8.1-10build1)。
bison 已经是最新版 (2:3.7+dfsg-1)。
cd-boot-images-amd64 已经是最新版 (9)。
flex 已经是最新版 (2.6.4-8)。
gawk 已经是最新版 (1:5.0.1+dfsg-1)。
gcc-doc 已经是最新版 (4:10.2.0-1ubuntu1)。
gettext 已经是最新版 (0.19.8.1-10build1)。
git 已经是最新版 (1:2.27.0-1ubuntu1)。
glibc-doc 已经是最新版 (2.32-0ubuntu3)。
libdevmapper-dev 已经是最新版 (2:1.02.167-1ubuntu3)。
libpciaccess-dev 已经是最新版 (0.16-1)。
libtool 已经是最新版 (2.4.6-14)。
libusb-dev 已经是最新版 (2:0.1.12-32)。
pkg-config 已经是最新版 (0.29.2-1ubuntu1)。
qemu 已经是最新版 (1:5.0-5ubuntu9)。
libfreetype-dev 已经是最新版 (2.10.2+dfsg-3ubuntu1)。
libfreetype6 已经是最新版 (2.10.2+dfsg-3ubuntu1)。
libfreetype6-dev 已经是最新版 (2.10.2+dfsg-3ubuntu1)。
下列软件包是自动安装的并且现在不需要了:
  binutils-aarch64-linux-gnu cpp-10-aarch64-linux-gnu cpp-aarch64-linux-gnu
  gcc-10-aarch64-linux-gnu-base gcc-10-cross-base libasan6-arm64-cross
  libatomic1-arm64-cross libc6-arm64-cross libc6-dev-arm64-cross
  libgcc-10-dev-arm64-cross libgcc-s1-arm64-cross libgomp1-arm64-cross
  libitm1-arm64-cross liblsan0-arm64-cross libstdc++6-arm64-cross
  libtsan0-arm64-cross libubsan1-arm64-cross linux-libc-dev-arm64-cross
使用'sudo apt autoremove'来卸载它(它们)。
下列软件包将被【卸载】:
  gcc-10-aarch64-linux-gnu gcc-aarch64-linux-gnu
下列【新】软件包将被安装:
  gcc-multilib
升级了 0 个软件包,新安装了 1 个软件包,要卸载 2 个软件包,有 0 个软件包未被升级。
需要下载 0 B/1,540 B 的归档。
解压缩后将会空出 54.9 MB 的空间。
您希望继续执行吗? [Y/n] y
(正在读取数据库 ... 系统当前共安装有 204667 个文件和目录。)
正在卸载 gcc-aarch64-linux-gnu (4:10.2.0-1ubuntu1) ...
正在卸载 gcc-10-aarch64-linux-gnu (10.2.0-8ubuntu1cross1) ...
正在选中未选择的软件包 gcc-multilib。
(正在读取数据库 ... 系统当前共安装有 204603 个文件和目录。)
准备解压 .../gcc-multilib_4%3a10.2.0-1ubuntu1_amd64.deb  ...
正在解压 gcc-multilib (4:10.2.0-1ubuntu1) ...
正在设置 gcc-multilib (4:10.2.0-1ubuntu1) ...
正在处理用于 man-db (2.9.3-2) 的触发器 ...





直接上./bootstrap吧:

root@ubuntu:/media/ubuntu/yule/grub2/grub# ./bootstrap
./bootstrap: Bootstrapping from checked-out grub sources...
./bootstrap: consider installing git-merge-changelog from gnulib
./bootstrap: getting gnulib files...
Cloning into 'gnulib'...
remote: Enumerating objects: 242474, done.
remote: Counting objects: 100% (4435/4435), done.
remote: Compressing objects: 100% (3253/3253), done.
remote: Total 242474 (delta 3026), reused 1536 (delta 1179), pack-reused 238039
Receiving objects: 100% (242474/242474), 124.18 MiB | 1.08 MiB/s, done.
Resolving deltas: 100% (211425/211425), done.
Note: switching to 'd271f868a8df9bbec29049d01e056481b7a1a263'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at d271f868a lock: Fix link error with --enable-threads=pth.
./bootstrap: autopoint --force
Copying file ABOUT-NLS
Copying file build-aux/config.rpath
Creating directory m4
Copying file m4/codeset.m4
Copying file m4/extern-inline.m4
Copying file m4/fcntl-o.m4
Copying file m4/gettext.m4
Copying file m4/glibc2.m4
Copying file m4/glibc21.m4
Copying file m4/iconv.m4
Copying file m4/intdiv0.m4
Copying file m4/intl.m4
Copying file m4/intldir.m4
Copying file m4/intlmacosx.m4
Copying file m4/intmax.m4
Copying file m4/inttypes-pri.m4
Copying file m4/inttypes_h.m4
Copying file m4/lcmessage.m4
Copying file m4/lib-ld.m4
Copying file m4/lib-link.m4
Copying file m4/lib-prefix.m4
Copying file m4/lock.m4
Copying file m4/longlong.m4
Copying file m4/nls.m4
Copying file m4/po.m4
Copying file m4/printf-posix.m4
Copying file m4/progtest.m4
Copying file m4/size_max.m4
Copying file m4/stdint_h.m4
Copying file m4/threadlib.m4
Copying file m4/uintmax_t.m4
Copying file m4/visibility.m4
Copying file m4/wchar_t.m4
Copying file m4/wint_t.m4
Copying file m4/xsize.m4
Copying file po/Makefile.in.in
Copying file po/Makevars.template
Copying file po/Rules-quot
./bootstrap: gnulib/gnulib-tool    --no-changelog   --aux-dir=build-aux   --doc-base=doc   --lib=libgnu   --m4-base=m4/   --source-base=grub-core/lib/gnulib/   --tests-base=tests   --local-dir=gl     --no-conditional-dependencies   --no-vc-files    --import ...
Module list with included dependencies (indented):
    absolute-header
    alloca
    alloca-opt
  argp
    assure
    at-internal
  base64
    btowc
    builtin-expect
    chdir
    chdir-long
    cloexec
    close
    dirent
    dirfd
    dirname-lgpl
    dosname
    double-slash-root
    dup2
    errno
  error
    exitfail
    extensions
    extern-inline
    fchdir
    fcntl
    fcntl-h
    fd-hook
    fd-safer-flag
    filename
    filenamecat-lgpl
    flexmember
    float
  fnmatch
    fnmatch-h
    fstat
    getcwd-lgpl
  getdelim
    getdtablesize
  getline
    getopt-gnu
    getopt-posix
    getprogname
  gettext-h
  gitlog-to-changelog
    hard-locale
    havelib
    include_next
    intprops
    langinfo
    largefile
    libc-config
    limits-h
    localcharset
    locale
    localeconv
    lock
    malloc-gnu
    malloc-posix
    malloca
    mbrtowc
    mbsinit
    mbsrtowcs
  mbswidth
    mbtowc
    memchr
    mempcpy
    memrchr
    msvc-inval
    msvc-nothrow
    multiarch
    nl_langinfo
    nocrash
    open
    openat
    openat-die
    openat-h
    pathmax
  progname
    rawmemchr
  realloc-gnu
    realloc-posix
  regex
  save-cwd
    size_max
    sleep
    snippet/_Noreturn
    snippet/arg-nonnull
    snippet/c++defs
    snippet/warn-on-use
    ssize_t
    stat
    stat-time
    stdalign
    stdbool
    stddef
    stdint
    stdio
    stdlib
    strcase
    strchrnul
    strdup-posix
    streq
    strerror
    strerror-override
    string
    strings
    strndup
    strnlen
    strnlen1
    sys_stat
    sys_types
    sysexits
    threadlib
    time
    unistd
    unistd-safer
    unitypes
    uniwidth/base
    uniwidth/width
    vasnprintf
    verify
    vsnprintf
    wchar
    wcrtomb
    wctype-h
    wcwidth
    xalloc-oversized
    xsize
Notice from module argp:
  If you are using GNU gettext version 0.16.1 or older, add the following options
  to XGETTEXT_OPTIONS in your po/Makevars:
    --flag=argp_error:2:c-format --flag=argp_failure:4:c-format
Notice from module error:
  If you are using GNU gettext version 0.16.1 or older, add the following options
  to XGETTEXT_OPTIONS in your po/Makevars:
    --flag=error:3:c-format --flag=error_at_line:5:c-format
File list:
  build-aux/config.rpath
  build-aux/gitlog-to-changelog
  lib/_Noreturn.h
  lib/alloca.c
  lib/alloca.in.h
  lib/arg-nonnull.h
  lib/argp-ba.c
  lib/argp-eexst.c
  lib/argp-fmtstream.c
  lib/argp-fmtstream.h
  lib/argp-fs-xinl.c
  lib/argp-help.c
  lib/argp-namefrob.h
  lib/argp-parse.c
  lib/argp-pin.c
  lib/argp-pv.c
  lib/argp-pvh.c
  lib/argp-xinl.c
  lib/argp.h
  lib/asnprintf.c
  lib/assure.h
  lib/base64.c
  lib/base64.h
  lib/basename-lgpl.c
  lib/btowc.c
  lib/c++defs.h
  lib/cdefs.h
  lib/chdir-long.c
  lib/chdir-long.h
  lib/cloexec.c
  lib/cloexec.h
  lib/close.c
  lib/dirent.in.h
  lib/dirfd.c
  lib/dirname-lgpl.c
  lib/dirname.h
  lib/dosname.h
  lib/dup-safer-flag.c
  lib/dup-safer.c
  lib/dup2.c
  lib/errno.in.h
  lib/error.c
  lib/error.h
  lib/exitfail.c
  lib/exitfail.h
  lib/fchdir.c
  lib/fcntl.c
  lib/fcntl.in.h
  lib/fd-hook.c
  lib/fd-hook.h
  lib/fd-safer-flag.c
  lib/fd-safer.c
  lib/filename.h
  lib/filenamecat-lgpl.c
  lib/filenamecat.h
  lib/flexmember.h
  lib/float+.h
  lib/float.c
  lib/float.in.h
  lib/fnmatch.c
  lib/fnmatch.in.h
  lib/fnmatch_loop.c
  lib/fstat.c
  lib/getcwd-lgpl.c
  lib/getdelim.c
  lib/getdtablesize.c
  lib/getline.c
  lib/getopt-cdefs.in.h
  lib/getopt-core.h
  lib/getopt-ext.h
  lib/getopt-pfx-core.h
  lib/getopt-pfx-ext.h
  lib/getopt.c
  lib/getopt.in.h
  lib/getopt1.c
  lib/getopt_int.h
  lib/getprogname.c
  lib/getprogname.h
  lib/gettext.h
  lib/glthread/lock.c
  lib/glthread/lock.h
  lib/glthread/threadlib.c
  lib/hard-locale.c
  lib/hard-locale.h
  lib/intprops.h
  lib/itold.c
  lib/langinfo.in.h
  lib/libc-config.h
  lib/limits.in.h
  lib/localcharset.c
  lib/localcharset.h
  lib/locale.in.h
  lib/localeconv.c
  lib/malloc.c
  lib/malloca.c
  lib/malloca.h
  lib/mbrtowc.c
  lib/mbsinit.c
  lib/mbsrtowcs-impl.h
  lib/mbsrtowcs-state.c
  lib/mbsrtowcs.c
  lib/mbswidth.c
  lib/mbswidth.h
  lib/mbtowc-impl.h
  lib/mbtowc.c
  lib/memchr.c
  lib/memchr.valgrind
  lib/mempcpy.c
  lib/memrchr.c
  lib/msvc-inval.c
  lib/msvc-inval.h
  lib/msvc-nothrow.c
  lib/msvc-nothrow.h
  lib/nl_langinfo.c
  lib/open.c
  lib/openat-die.c
  lib/openat-priv.h
  lib/openat-proc.c
  lib/openat.c
  lib/openat.h
  lib/pathmax.h
  lib/pipe-safer.c
  lib/printf-args.c
  lib/printf-args.h
  lib/printf-parse.c
  lib/printf-parse.h
  lib/progname.c
  lib/progname.h
  lib/rawmemchr.c
  lib/rawmemchr.valgrind
  lib/realloc.c
  lib/regcomp.c
  lib/regex.c
  lib/regex.h
  lib/regex_internal.c
  lib/regex_internal.h
  lib/regexec.c
  lib/save-cwd.c
  lib/save-cwd.h
  lib/size_max.h
  lib/sleep.c
  lib/stat-time.c
  lib/stat-time.h
  lib/stat-w32.c
  lib/stat-w32.h
  lib/stat.c
  lib/stdalign.in.h
  lib/stdbool.in.h
  lib/stddef.in.h
  lib/stdint.in.h
  lib/stdio.in.h
  lib/stdlib.in.h
  lib/strcasecmp.c
  lib/strchrnul.c
  lib/strchrnul.valgrind
  lib/strdup.c
  lib/streq.h
  lib/strerror-override.c
  lib/strerror-override.h
  lib/strerror.c
  lib/string.in.h
  lib/strings.in.h
  lib/stripslash.c
  lib/strncasecmp.c
  lib/strndup.c
  lib/strnlen.c
  lib/strnlen1.c
  lib/strnlen1.h
  lib/sys_stat.in.h
  lib/sys_types.in.h
  lib/sysexits.in.h
  lib/time.in.h
  lib/unistd--.h
  lib/unistd-safer.h
  lib/unistd.c
  lib/unistd.in.h
  lib/unitypes.in.h
  lib/uniwidth.in.h
  lib/uniwidth/cjk.h
  lib/uniwidth/width.c
  lib/vasnprintf.c
  lib/vasnprintf.h
  lib/verify.h
  lib/vsnprintf.c
  lib/warn-on-use.h
  lib/wchar.in.h
  lib/wcrtomb.c
  lib/wctype-h.c
  lib/wctype.in.h
  lib/wcwidth.c
  lib/xalloc-oversized.h
  lib/xsize.c
  lib/xsize.h
  m4/00gnulib.m4
  m4/__inline.m4
  m4/absolute-header.m4
  m4/alloca.m4
  m4/argp.m4
  m4/base64.m4
  m4/btowc.m4
  m4/builtin-expect.m4
  m4/chdir-long.m4
  m4/close.m4
  m4/codeset.m4
  m4/dirent_h.m4
  m4/dirfd.m4
  m4/dirname.m4
  m4/double-slash-root.m4
  m4/dup2.m4
  m4/eealloc.m4
  m4/errno_h.m4
  m4/error.m4
  m4/exponentd.m4
  m4/extensions.m4
  m4/extern-inline.m4
  m4/fchdir.m4
  m4/fcntl-o.m4
  m4/fcntl.m4
  m4/fcntl_h.m4
  m4/filenamecat.m4
  m4/flexmember.m4
  m4/float_h.m4
  m4/fnmatch.m4
  m4/fnmatch_h.m4
  m4/fstat.m4
  m4/getcwd.m4
  m4/getdelim.m4
  m4/getdtablesize.m4
  m4/getline.m4
  m4/getopt.m4
  m4/getprogname.m4
  m4/glibc21.m4
  m4/gnulib-common.m4
  m4/host-cpu-c-abi.m4
  m4/include_next.m4
  m4/intmax_t.m4
  m4/inttypes_h.m4
  m4/langinfo_h.m4
  m4/largefile.m4
  m4/lib-ld.m4
  m4/lib-link.m4
  m4/lib-prefix.m4
  m4/libunistring-base.m4
  m4/limits-h.m4
  m4/localcharset.m4
  m4/locale-fr.m4
  m4/locale-ja.m4
  m4/locale-zh.m4
  m4/locale_h.m4
  m4/localeconv.m4
  m4/lock.m4
  m4/longlong.m4
  m4/lstat.m4
  m4/malloc.m4
  m4/malloca.m4
  m4/math_h.m4
  m4/mbrtowc.m4
  m4/mbsinit.m4
  m4/mbsrtowcs.m4
  m4/mbstate_t.m4
  m4/mbswidth.m4
  m4/mbtowc.m4
  m4/memchr.m4
  m4/mempcpy.m4
  m4/memrchr.m4
  m4/mmap-anon.m4
  m4/mode_t.m4
  m4/msvc-inval.m4
  m4/msvc-nothrow.m4
  m4/multiarch.m4
  m4/nl_langinfo.m4
  m4/nocrash.m4
  m4/off_t.m4
  m4/open-cloexec.m4
  m4/open.m4
  m4/openat.m4
  m4/pathmax.m4
  m4/printf.m4
  m4/pthread_rwlock_rdlock.m4
  m4/rawmemchr.m4
  m4/realloc.m4
  m4/regex.m4
  m4/save-cwd.m4
  m4/size_max.m4
  m4/sleep.m4
  m4/ssize_t.m4
  m4/stat-time.m4
  m4/stat.m4
  m4/stdalign.m4
  m4/stdbool.m4
  m4/stddef_h.m4
  m4/stdint.m4
  m4/stdint_h.m4
  m4/stdio_h.m4
  m4/stdlib_h.m4
  m4/strcase.m4
  m4/strchrnul.m4
  m4/strdup.m4
  m4/strerror.m4
  m4/string_h.m4
  m4/strings_h.m4
  m4/strndup.m4
  m4/strnlen.m4
  m4/sys_socket_h.m4
  m4/sys_stat_h.m4
  m4/sys_types_h.m4
  m4/sysexits.m4
  m4/threadlib.m4
  m4/time_h.m4
  m4/unistd-safer.m4
  m4/unistd_h.m4
  m4/vasnprintf.m4
  m4/vsnprintf.m4
  m4/warn-on-use.m4
  m4/wchar_h.m4
  m4/wchar_t.m4
  m4/wcrtomb.m4
  m4/wctype_h.m4
  m4/wcwidth.m4
  m4/wint_t.m4
  m4/xsize.m4
Creating directory ./grub-core/lib/gnulib
Creating directory ./grub-core/lib/gnulib/glthread
Creating directory ./grub-core/lib/gnulib/uniwidth
Replacing file build-aux/config.rpath (non-gnulib code backed up in build-aux/config.rpath~) !!
Copying file build-aux/gitlog-to-changelog
Copying file grub-core/lib/gnulib/_Noreturn.h
Copying file grub-core/lib/gnulib/alloca.c
Copying file grub-core/lib/gnulib/alloca.in.h
Copying file grub-core/lib/gnulib/arg-nonnull.h
Copying file grub-core/lib/gnulib/argp-ba.c
Copying file grub-core/lib/gnulib/argp-eexst.c
Copying file grub-core/lib/gnulib/argp-fmtstream.c
Copying file grub-core/lib/gnulib/argp-fmtstream.h
Copying file grub-core/lib/gnulib/argp-fs-xinl.c
Copying file grub-core/lib/gnulib/argp-help.c
Copying file grub-core/lib/gnulib/argp-namefrob.h
Copying file grub-core/lib/gnulib/argp-parse.c
Copying file grub-core/lib/gnulib/argp-pin.c
Copying file grub-core/lib/gnulib/argp-pv.c
Copying file grub-core/lib/gnulib/argp-pvh.c
Copying file grub-core/lib/gnulib/argp-xinl.c
Copying file grub-core/lib/gnulib/argp.h
Copying file grub-core/lib/gnulib/asnprintf.c
Copying file grub-core/lib/gnulib/assure.h
Copying file grub-core/lib/gnulib/base64.c
Copying file grub-core/lib/gnulib/base64.h
Copying file grub-core/lib/gnulib/basename-lgpl.c
Copying file grub-core/lib/gnulib/btowc.c
Copying file grub-core/lib/gnulib/c++defs.h
Copying file grub-core/lib/gnulib/cdefs.h
Copying file grub-core/lib/gnulib/chdir-long.c
Copying file grub-core/lib/gnulib/chdir-long.h
Copying file grub-core/lib/gnulib/cloexec.c
Copying file grub-core/lib/gnulib/cloexec.h
Copying file grub-core/lib/gnulib/close.c
Copying file grub-core/lib/gnulib/dirent.in.h
Copying file grub-core/lib/gnulib/dirfd.c
Copying file grub-core/lib/gnulib/dirname-lgpl.c
Copying file grub-core/lib/gnulib/dirname.h
Copying file grub-core/lib/gnulib/dosname.h
Copying file grub-core/lib/gnulib/dup-safer-flag.c
Copying file grub-core/lib/gnulib/dup-safer.c
Copying file grub-core/lib/gnulib/dup2.c
Copying file grub-core/lib/gnulib/errno.in.h
Copying file grub-core/lib/gnulib/error.c
Copying file grub-core/lib/gnulib/error.h
Copying file grub-core/lib/gnulib/exitfail.c
Copying file grub-core/lib/gnulib/exitfail.h
Copying file grub-core/lib/gnulib/fchdir.c
Copying file grub-core/lib/gnulib/fcntl.c
Copying file grub-core/lib/gnulib/fcntl.in.h
Copying file grub-core/lib/gnulib/fd-hook.c
Copying file grub-core/lib/gnulib/fd-hook.h
Copying file grub-core/lib/gnulib/fd-safer-flag.c
Copying file grub-core/lib/gnulib/fd-safer.c
Copying file grub-core/lib/gnulib/filename.h
Copying file grub-core/lib/gnulib/filenamecat-lgpl.c
Copying file grub-core/lib/gnulib/filenamecat.h
Copying file grub-core/lib/gnulib/flexmember.h
Copying file grub-core/lib/gnulib/float+.h
Copying file grub-core/lib/gnulib/float.c
Copying file grub-core/lib/gnulib/float.in.h
Copying file grub-core/lib/gnulib/fnmatch.c
Copying file grub-core/lib/gnulib/fnmatch.in.h
Copying file grub-core/lib/gnulib/fnmatch_loop.c
Copying file grub-core/lib/gnulib/fstat.c
Copying file grub-core/lib/gnulib/getcwd-lgpl.c
Copying file grub-core/lib/gnulib/getdelim.c
Copying file grub-core/lib/gnulib/getdtablesize.c
Copying file grub-core/lib/gnulib/getline.c
Copying file grub-core/lib/gnulib/getopt-cdefs.in.h
Copying file grub-core/lib/gnulib/getopt-core.h
Copying file grub-core/lib/gnulib/getopt-ext.h
Copying file grub-core/lib/gnulib/getopt-pfx-core.h
Copying file grub-core/lib/gnulib/getopt-pfx-ext.h
Copying file grub-core/lib/gnulib/getopt.c
Copying file grub-core/lib/gnulib/getopt.in.h
Copying file grub-core/lib/gnulib/getopt1.c
Copying file grub-core/lib/gnulib/getopt_int.h
Copying file grub-core/lib/gnulib/getprogname.c
Copying file grub-core/lib/gnulib/getprogname.h
Copying file grub-core/lib/gnulib/gettext.h
Copying file grub-core/lib/gnulib/glthread/lock.c
Copying file grub-core/lib/gnulib/glthread/lock.h
Copying file grub-core/lib/gnulib/glthread/threadlib.c
Copying file grub-core/lib/gnulib/hard-locale.c
Copying file grub-core/lib/gnulib/hard-locale.h
Copying file grub-core/lib/gnulib/intprops.h
Copying file grub-core/lib/gnulib/itold.c
Copying file grub-core/lib/gnulib/langinfo.in.h
Copying file grub-core/lib/gnulib/libc-config.h
Copying file grub-core/lib/gnulib/limits.in.h
Copying file grub-core/lib/gnulib/localcharset.c
Copying file grub-core/lib/gnulib/localcharset.h
Copying file grub-core/lib/gnulib/locale.in.h
Copying file grub-core/lib/gnulib/localeconv.c
Copying file grub-core/lib/gnulib/malloc.c
Copying file grub-core/lib/gnulib/malloca.c
Copying file grub-core/lib/gnulib/malloca.h
Copying file grub-core/lib/gnulib/mbrtowc.c
Copying file grub-core/lib/gnulib/mbsinit.c
Copying file grub-core/lib/gnulib/mbsrtowcs-impl.h
Copying file grub-core/lib/gnulib/mbsrtowcs-state.c
Copying file grub-core/lib/gnulib/mbsrtowcs.c
Copying file grub-core/lib/gnulib/mbswidth.c
Copying file grub-core/lib/gnulib/mbswidth.h
Copying file grub-core/lib/gnulib/mbtowc-impl.h
Copying file grub-core/lib/gnulib/mbtowc.c
Copying file grub-core/lib/gnulib/memchr.c
Copying file grub-core/lib/gnulib/memchr.valgrind
Copying file grub-core/lib/gnulib/mempcpy.c
Copying file grub-core/lib/gnulib/memrchr.c
Copying file grub-core/lib/gnulib/msvc-inval.c
Copying file grub-core/lib/gnulib/msvc-inval.h
Copying file grub-core/lib/gnulib/msvc-nothrow.c
Copying file grub-core/lib/gnulib/msvc-nothrow.h
Copying file grub-core/lib/gnulib/nl_langinfo.c
Copying file grub-core/lib/gnulib/open.c
Copying file grub-core/lib/gnulib/openat-die.c
Copying file grub-core/lib/gnulib/openat-priv.h
Copying file grub-core/lib/gnulib/openat-proc.c
Copying file grub-core/lib/gnulib/openat.c
Copying file grub-core/lib/gnulib/openat.h
Copying file grub-core/lib/gnulib/pathmax.h
Copying file grub-core/lib/gnulib/pipe-safer.c
Copying file grub-core/lib/gnulib/printf-args.c
Copying file grub-core/lib/gnulib/printf-args.h
Copying file grub-core/lib/gnulib/printf-parse.c
Copying file grub-core/lib/gnulib/printf-parse.h
Copying file grub-core/lib/gnulib/progname.c
Copying file grub-core/lib/gnulib/progname.h
Copying file grub-core/lib/gnulib/rawmemchr.c
Copying file grub-core/lib/gnulib/rawmemchr.valgrind
Copying file grub-core/lib/gnulib/realloc.c
Copying file grub-core/lib/gnulib/regcomp.c
Copying file grub-core/lib/gnulib/regex.c
Copying file grub-core/lib/gnulib/regex.h
Copying file grub-core/lib/gnulib/regex_internal.c
Copying file grub-core/lib/gnulib/regex_internal.h
Copying file grub-core/lib/gnulib/regexec.c
Copying file grub-core/lib/gnulib/save-cwd.c
Copying file grub-core/lib/gnulib/save-cwd.h
Copying file grub-core/lib/gnulib/size_max.h
Copying file grub-core/lib/gnulib/sleep.c
Copying file grub-core/lib/gnulib/stat-time.c
Copying file grub-core/lib/gnulib/stat-time.h
Copying file grub-core/lib/gnulib/stat-w32.c
Copying file grub-core/lib/gnulib/stat-w32.h
Copying file grub-core/lib/gnulib/stat.c
Copying file grub-core/lib/gnulib/stdalign.in.h
Copying file grub-core/lib/gnulib/stdbool.in.h
Copying file grub-core/lib/gnulib/stddef.in.h
Copying file grub-core/lib/gnulib/stdint.in.h
Copying file grub-core/lib/gnulib/stdio.in.h
Copying file grub-core/lib/gnulib/stdlib.in.h
Copying file grub-core/lib/gnulib/strcasecmp.c
Copying file grub-core/lib/gnulib/strchrnul.c
Copying file grub-core/lib/gnulib/strchrnul.valgrind
Copying file grub-core/lib/gnulib/strdup.c
Copying file grub-core/lib/gnulib/streq.h
Copying file grub-core/lib/gnulib/strerror-override.c
Copying file grub-core/lib/gnulib/strerror-override.h
Copying file grub-core/lib/gnulib/strerror.c
Copying file grub-core/lib/gnulib/string.in.h
Copying file grub-core/lib/gnulib/strings.in.h
Copying file grub-core/lib/gnulib/stripslash.c
Copying file grub-core/lib/gnulib/strncasecmp.c
Copying file grub-core/lib/gnulib/strndup.c
Copying file grub-core/lib/gnulib/strnlen.c
Copying file grub-core/lib/gnulib/strnlen1.c
Copying file grub-core/lib/gnulib/strnlen1.h
Copying file grub-core/lib/gnulib/sys_stat.in.h
Copying file grub-core/lib/gnulib/sys_types.in.h
Copying file grub-core/lib/gnulib/sysexits.in.h
Copying file grub-core/lib/gnulib/time.in.h
Copying file grub-core/lib/gnulib/unistd--.h
Copying file grub-core/lib/gnulib/unistd-safer.h
Copying file grub-core/lib/gnulib/unistd.c
Copying file grub-core/lib/gnulib/unistd.in.h
Copying file grub-core/lib/gnulib/unitypes.in.h
Copying file grub-core/lib/gnulib/uniwidth.in.h
Copying file grub-core/lib/gnulib/uniwidth/cjk.h
Copying file grub-core/lib/gnulib/uniwidth/width.c
Copying file grub-core/lib/gnulib/vasnprintf.c
Copying file grub-core/lib/gnulib/vasnprintf.h
Copying file grub-core/lib/gnulib/verify.h
Copying file grub-core/lib/gnulib/vsnprintf.c
Copying file grub-core/lib/gnulib/warn-on-use.h
Copying file grub-core/lib/gnulib/wchar.in.h
Copying file grub-core/lib/gnulib/wcrtomb.c
Copying file grub-core/lib/gnulib/wctype-h.c
Copying file grub-core/lib/gnulib/wctype.in.h
Copying file grub-core/lib/gnulib/wcwidth.c
Copying file grub-core/lib/gnulib/xalloc-oversized.h
Copying file grub-core/lib/gnulib/xsize.c
Copying file grub-core/lib/gnulib/xsize.h
Copying file m4/00gnulib.m4
Copying file m4/__inline.m4
Copying file m4/absolute-header.m4
Copying file m4/alloca.m4
Copying file m4/argp.m4
Copying file m4/base64.m4
Copying file m4/btowc.m4
Copying file m4/builtin-expect.m4
Copying file m4/chdir-long.m4
Copying file m4/close.m4
Replacing file m4/codeset.m4 (non-gnulib code backed up in m4/codeset.m4~) !!
Copying file m4/dirent_h.m4
Copying file m4/dirfd.m4
Copying file m4/dirname.m4
Copying file m4/double-slash-root.m4
Copying file m4/dup2.m4
Copying file m4/eealloc.m4
Copying file m4/errno_h.m4
Copying file m4/error.m4
Copying file m4/exponentd.m4
Copying file m4/extensions.m4
Replacing file m4/extern-inline.m4 (non-gnulib code backed up in m4/extern-inline.m4~) !!
Copying file m4/fchdir.m4
Replacing file m4/fcntl-o.m4 (non-gnulib code backed up in m4/fcntl-o.m4~) !!
Copying file m4/fcntl.m4
Copying file m4/fcntl_h.m4
Copying file m4/filenamecat.m4
Copying file m4/flexmember.m4
Copying file m4/float_h.m4
Copying file m4/fnmatch.m4
Copying file m4/fnmatch_h.m4
Copying file m4/fstat.m4
Copying file m4/getcwd.m4
Copying file m4/getdelim.m4
Copying file m4/getdtablesize.m4
Copying file m4/getline.m4
Copying file m4/getopt.m4
Copying file m4/getprogname.m4
Replacing file m4/glibc21.m4 (non-gnulib code backed up in m4/glibc21.m4~) !!
Copying file m4/gnulib-common.m4
Copying file m4/gnulib-tool.m4
Copying file m4/host-cpu-c-abi.m4
Copying file m4/include_next.m4
Copying file m4/intmax_t.m4
Replacing file m4/inttypes_h.m4 (non-gnulib code backed up in m4/inttypes_h.m4~) !!
Copying file m4/langinfo_h.m4
Copying file m4/largefile.m4
Replacing file m4/lib-ld.m4 (non-gnulib code backed up in m4/lib-ld.m4~) !!
Replacing file m4/lib-link.m4 (non-gnulib code backed up in m4/lib-link.m4~) !!
Replacing file m4/lib-prefix.m4 (non-gnulib code backed up in m4/lib-prefix.m4~) !!
Copying file m4/libunistring-base.m4
Copying file m4/limits-h.m4
Copying file m4/localcharset.m4
Copying file m4/locale-fr.m4
Copying file m4/locale-ja.m4
Copying file m4/locale-zh.m4
Copying file m4/locale_h.m4
Copying file m4/localeconv.m4
Replacing file m4/lock.m4 (non-gnulib code backed up in m4/lock.m4~) !!
Replacing file m4/longlong.m4 (non-gnulib code backed up in m4/longlong.m4~) !!
Copying file m4/lstat.m4
Copying file m4/malloc.m4
Copying file m4/malloca.m4
Copying file m4/math_h.m4
Copying file m4/mbrtowc.m4
Copying file m4/mbsinit.m4
Copying file m4/mbsrtowcs.m4
Copying file m4/mbstate_t.m4
Copying file m4/mbswidth.m4
Copying file m4/mbtowc.m4
Copying file m4/memchr.m4
Copying file m4/mempcpy.m4
Copying file m4/memrchr.m4
Copying file m4/mmap-anon.m4
Copying file m4/mode_t.m4
Copying file m4/msvc-inval.m4
Copying file m4/msvc-nothrow.m4
Copying file m4/multiarch.m4
Copying file m4/nl_langinfo.m4
Copying file m4/nocrash.m4
Copying file m4/off_t.m4
Copying file m4/open-cloexec.m4
Copying file m4/open.m4
Copying file m4/openat.m4
Copying file m4/pathmax.m4
Copying file m4/printf.m4
Copying file m4/pthread_rwlock_rdlock.m4
Copying file m4/rawmemchr.m4
Copying file m4/realloc.m4
Copying file m4/regex.m4
Copying file m4/save-cwd.m4
Replacing file m4/size_max.m4 (non-gnulib code backed up in m4/size_max.m4~) !!
Copying file m4/sleep.m4
Copying file m4/ssize_t.m4
Copying file m4/stat-time.m4
Copying file m4/stat.m4
Copying file m4/stdalign.m4
Copying file m4/stdbool.m4
Copying file m4/stddef_h.m4
Copying file m4/stdint.m4
Replacing file m4/stdint_h.m4 (non-gnulib code backed up in m4/stdint_h.m4~) !!
Copying file m4/stdio_h.m4
Copying file m4/stdlib_h.m4
Copying file m4/strcase.m4
Copying file m4/strchrnul.m4
Copying file m4/strdup.m4
Copying file m4/strerror.m4
Copying file m4/string_h.m4
Copying file m4/strings_h.m4
Copying file m4/strndup.m4
Copying file m4/strnlen.m4
Copying file m4/sys_socket_h.m4
Copying file m4/sys_stat_h.m4
Copying file m4/sys_types_h.m4
Copying file m4/sysexits.m4
Replacing file m4/threadlib.m4 (non-gnulib code backed up in m4/threadlib.m4~) !!
Copying file m4/time_h.m4
Copying file m4/unistd-safer.m4
Copying file m4/unistd_h.m4
Copying file m4/vasnprintf.m4
Copying file m4/vsnprintf.m4
Copying file m4/warn-on-use.m4
Copying file m4/wchar_h.m4
Replacing file m4/wchar_t.m4 (non-gnulib code backed up in m4/wchar_t.m4~) !!
Copying file m4/wcrtomb.m4
Copying file m4/wctype_h.m4
Copying file m4/wcwidth.m4
Replacing file m4/wint_t.m4 (non-gnulib code backed up in m4/wint_t.m4~) !!
Replacing file m4/xsize.m4 (non-gnulib code backed up in m4/xsize.m4~) !!
Creating grub-core/lib/gnulib/Makefile.am
Creating m4/gnulib-cache.m4
Creating m4/gnulib-comp.m4
Finished.

You may need to add #include directives for the following .h files.
  #include <fnmatch.h>
  #include <regex.h>
  #include <stdio.h>
  #include <stdlib.h>
  #include "argp.h"
  #include "base64.h"
  #include "error.h"
  #include "gettext.h"
  #include "mbswidth.h"
  #include "progname.h"
  #include "save-cwd.h"

You may need to use the following Makefile variables when linking.
Use them in <program>_LDADD when linking a program, or
in <library>_a_LDFLAGS or <library>_la_LDFLAGS when linking a library.
  $(LTLIBINTL) when linking with libtool, $(LIBINTL) otherwise
  $(LTLIBTHREAD) when linking with libtool, $(LIBTHREAD) otherwise

Don't forget to
  - add "grub-core/lib/gnulib/Makefile" to AC_CONFIG_FILES in ./configure.ac,
  - mention "gnulib" in SUBDIRS in grub-core/lib/Makefile.am,
  - mention "-I m4" in ACLOCAL_AMFLAGS in Makefile.am,
  - mention "m4/gnulib-cache.m4" in EXTRA_DIST in Makefile.am,
  - invoke gl_EARLY in ./configure.ac, right after AC_PROG_CC,
  - invoke gl_INIT in ./configure.ac.
patching file base64.h
patching file argp-parse.c
patching file argp-fmtstream.c
patching file argp-help.c
patching file mbswidth.c
patching file mbswidth.h
patching file regcomp.c
patching file Makefile.in.in
patching file Makefile.in.in
patching file Makefile.in.in
patching file Makefile.in.in
Importing unicode...
./autogen.sh: 行 20: python:未找到命令
running: AUTOPOINT=true LIBTOOLIZE=true autoreconf --verbose --install --force -I m4  --no-recursive
autoreconf: Entering directory `.'
autoreconf: running: true --force
autoreconf: running: aclocal -I m4 --force -I m4
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --include=m4 --force
autoreconf: running: /usr/bin/autoheader --include=m4 --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:395: installing 'build-aux/compile'
configure.ac:45: installing 'build-aux/config.guess'
configure.ac:45: installing 'build-aux/config.sub'
configure.ac:51: installing 'build-aux/install-sh'
configure.ac:51: installing 'build-aux/missing'
automake: error: cannot open < Makefile.util.am: No such file or directory
autoreconf: automake failed with exit status: 1
./bootstrap: autoreconf failed

root@ubuntu:/media/ubuntu/yule/grub2/grub#

结果也不行啊?autoreconf失败。
root@ubuntu:/media/ubuntu/yule/grub2/grub# make
make: *** 没有指明目标并且找不到 makefile。 停止。

点评

你 python 都没装上。 你按照它的提示,装个 python-is-python3 就行了。  详情 回复 发表于 2021-6-8 19:45
回复

使用道具 举报

8#
发表于 2021-6-8 19:45:35 | 只看该作者
本帖最后由 wintoflash 于 2021-6-8 20:00 编辑
liuzhaoyzz 发表于 2021-6-8 19:32
好吧,严格按照你说的git走一遍,放到ext4分区。我是从liveCD启动的,一切从零开始搞,全新的,跟上次的 ...

你 python 都没装上。
./autogen.sh: 行 20: python:未找到命令
没有可用的软件包 python,但是它被其它的软件包引用了。
这可能意味着这个缺失的软件包可能已被废弃,
或者只能在其他发布源中找到
然而下列软件包会取代它:
  python-is-python3

E: 软件包 python 没有可安装候选

你按照它的提示,装个 python-is-python3 就行了。
E: 无法定位软件包 iasl

我这边和github上安装 iasl,都可以自动重定向到 acpica-tools。
E: 无法定位软件包 unifont

这个包不重要,不过我查了,ubuntu 20.04 是有这个包的,为啥你那没有?

点评

root@ubuntu:/media/ubuntu/yule/grub2/grub# apt-cache search iasl 我用iasl作关键字查过了的,真心没有。 关于unifont,之前我都查过了,看着install里面的要求查的,就是字体吧,感觉不会影响编译。 ro  详情 回复 发表于 2021-6-8 20:52
安装了python-is-python3包果然好了! 这个包很奇怪,我单独运行python或者python3都可以啊。。。 root@ubuntu:/media/ubuntu/yule/grub2/grub# apt-get install python-is-python3 正在读取软件包列表... 完成  详情 回复 发表于 2021-6-8 20:01
回复

使用道具 举报

9#
 楼主| 发表于 2021-6-8 20:01:57 | 只看该作者
wintoflash 发表于 2021-6-8 19:45
你 python 都没装上。


安装了python-is-python3包果然好了!
这个包很奇怪,我单独运行python或者python3都可以啊。。。
root@ubuntu:/media/ubuntu/yule/grub2/grub# apt-get install python-is-python3
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
下列软件包是自动安装的并且现在不需要了:
  binutils-aarch64-linux-gnu cpp-10-aarch64-linux-gnu cpp-aarch64-linux-gnu
  gcc-10-aarch64-linux-gnu-base gcc-10-cross-base libasan6-arm64-cross
  libatomic1-arm64-cross libc6-arm64-cross libc6-dev-arm64-cross
  libgcc-10-dev-arm64-cross libgcc-s1-arm64-cross libgomp1-arm64-cross
  libitm1-arm64-cross liblsan0-arm64-cross libstdc++6-arm64-cross
  libtsan0-arm64-cross libubsan1-arm64-cross linux-libc-dev-arm64-cross
使用'apt autoremove'来卸载它(它们)。
下列【新】软件包将被安装:
  python-is-python3
升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
需要下载 2,364 B 的归档。
解压缩后会消耗 10.2 kB 的额外空间。
获取:1 http://archive.ubuntu.com/ubuntu groovy/main amd64 python-is-python3 all 3.8.2-4 [2,364 B]
已下载 2,364 B,耗时 1秒 (3,468 B/s)   
正在选中未选择的软件包 python-is-python3。
(正在读取数据库 ... 系统当前共安装有 204605 个文件和目录。)
准备解压 .../python-is-python3_3.8.2-4_all.deb  ...
正在解压 python-is-python3 (3.8.2-4) ...
正在设置 python-is-python3 (3.8.2-4) ...

开始bootstrap:
root@ubuntu:/media/ubuntu/yule/grub2/grub# ./bootstrap
./bootstrap: Bootstrapping from checked-out grub sources...
./bootstrap: consider installing git-merge-changelog from gnulib
HEAD is now at d271f868a lock: Fix link error with --enable-threads=pth.
./bootstrap: autopoint --force
Copying file build-aux/config.rpath
Copying file m4/extern-inline.m4
Copying file po/Makefile.in.in
./bootstrap: gnulib/gnulib-tool    --no-changelog   --aux-dir=build-aux   --doc-base=doc   --lib=libgnu   --m4-base=m4/   --source-base=grub-core/lib/gnulib/   --tests-base=tests   --local-dir=gl     --no-conditional-dependencies   --no-vc-files    --import ...
Module list with included dependencies (indented):
    absolute-header
    alloca
    alloca-opt
  argp
    assure
    at-internal
  base64
    btowc
    builtin-expect
    chdir
    chdir-long
    cloexec
    close
    dirent
    dirfd
    dirname-lgpl
    dosname
    double-slash-root
    dup2
    errno
  error
    exitfail
    extensions
    extern-inline
    fchdir
    fcntl
    fcntl-h
    fd-hook
    fd-safer-flag
    filename
    filenamecat-lgpl
    flexmember
    float
  fnmatch
    fnmatch-h
    fstat
    getcwd-lgpl
  getdelim
    getdtablesize
  getline
    getopt-gnu
    getopt-posix
    getprogname
  gettext-h
  gitlog-to-changelog
    hard-locale
    havelib
    include_next
    intprops
    langinfo
    largefile
    libc-config
    limits-h
    localcharset
    locale
    localeconv
    lock
    malloc-gnu
    malloc-posix
    malloca
    mbrtowc
    mbsinit
    mbsrtowcs
  mbswidth
    mbtowc
    memchr
    mempcpy
    memrchr
    msvc-inval
    msvc-nothrow
    multiarch
    nl_langinfo
    nocrash
    open
    openat
    openat-die
    openat-h
    pathmax
  progname
    rawmemchr
  realloc-gnu
    realloc-posix
  regex
  save-cwd
    size_max
    sleep
    snippet/_Noreturn
    snippet/arg-nonnull
    snippet/c++defs
    snippet/warn-on-use
    ssize_t
    stat
    stat-time
    stdalign
    stdbool
    stddef
    stdint
    stdio
    stdlib
    strcase
    strchrnul
    strdup-posix
    streq
    strerror
    strerror-override
    string
    strings
    strndup
    strnlen
    strnlen1
    sys_stat
    sys_types
    sysexits
    threadlib
    time
    unistd
    unistd-safer
    unitypes
    uniwidth/base
    uniwidth/width
    vasnprintf
    verify
    vsnprintf
    wchar
    wcrtomb
    wctype-h
    wcwidth
    xalloc-oversized
    xsize
Notice from module argp:
  If you are using GNU gettext version 0.16.1 or older, add the following options
  to XGETTEXT_OPTIONS in your po/Makevars:
    --flag=argp_error:2:c-format --flag=argp_failure:4:c-format
Notice from module error:
  If you are using GNU gettext version 0.16.1 or older, add the following options
  to XGETTEXT_OPTIONS in your po/Makevars:
    --flag=error:3:c-format --flag=error_at_line:5:c-format
File list:
  build-aux/config.rpath
  build-aux/gitlog-to-changelog
  lib/_Noreturn.h
  lib/alloca.c
  lib/alloca.in.h
  lib/arg-nonnull.h
  lib/argp-ba.c
  lib/argp-eexst.c
  lib/argp-fmtstream.c
  lib/argp-fmtstream.h
  lib/argp-fs-xinl.c
  lib/argp-help.c
  lib/argp-namefrob.h
  lib/argp-parse.c
  lib/argp-pin.c
  lib/argp-pv.c
  lib/argp-pvh.c
  lib/argp-xinl.c
  lib/argp.h
  lib/asnprintf.c
  lib/assure.h
  lib/base64.c
  lib/base64.h
  lib/basename-lgpl.c
  lib/btowc.c
  lib/c++defs.h
  lib/cdefs.h
  lib/chdir-long.c
  lib/chdir-long.h
  lib/cloexec.c
  lib/cloexec.h
  lib/close.c
  lib/dirent.in.h
  lib/dirfd.c
  lib/dirname-lgpl.c
  lib/dirname.h
  lib/dosname.h
  lib/dup-safer-flag.c
  lib/dup-safer.c
  lib/dup2.c
  lib/errno.in.h
  lib/error.c
  lib/error.h
  lib/exitfail.c
  lib/exitfail.h
  lib/fchdir.c
  lib/fcntl.c
  lib/fcntl.in.h
  lib/fd-hook.c
  lib/fd-hook.h
  lib/fd-safer-flag.c
  lib/fd-safer.c
  lib/filename.h
  lib/filenamecat-lgpl.c
  lib/filenamecat.h
  lib/flexmember.h
  lib/float+.h
  lib/float.c
  lib/float.in.h
  lib/fnmatch.c
  lib/fnmatch.in.h
  lib/fnmatch_loop.c
  lib/fstat.c
  lib/getcwd-lgpl.c
  lib/getdelim.c
  lib/getdtablesize.c
  lib/getline.c
  lib/getopt-cdefs.in.h
  lib/getopt-core.h
  lib/getopt-ext.h
  lib/getopt-pfx-core.h
  lib/getopt-pfx-ext.h
  lib/getopt.c
  lib/getopt.in.h
  lib/getopt1.c
  lib/getopt_int.h
  lib/getprogname.c
  lib/getprogname.h
  lib/gettext.h
  lib/glthread/lock.c
  lib/glthread/lock.h
  lib/glthread/threadlib.c
  lib/hard-locale.c
  lib/hard-locale.h
  lib/intprops.h
  lib/itold.c
  lib/langinfo.in.h
  lib/libc-config.h
  lib/limits.in.h
  lib/localcharset.c
  lib/localcharset.h
  lib/locale.in.h
  lib/localeconv.c
  lib/malloc.c
  lib/malloca.c
  lib/malloca.h
  lib/mbrtowc.c
  lib/mbsinit.c
  lib/mbsrtowcs-impl.h
  lib/mbsrtowcs-state.c
  lib/mbsrtowcs.c
  lib/mbswidth.c
  lib/mbswidth.h
  lib/mbtowc-impl.h
  lib/mbtowc.c
  lib/memchr.c
  lib/memchr.valgrind
  lib/mempcpy.c
  lib/memrchr.c
  lib/msvc-inval.c
  lib/msvc-inval.h
  lib/msvc-nothrow.c
  lib/msvc-nothrow.h
  lib/nl_langinfo.c
  lib/open.c
  lib/openat-die.c
  lib/openat-priv.h
  lib/openat-proc.c
  lib/openat.c
  lib/openat.h
  lib/pathmax.h
  lib/pipe-safer.c
  lib/printf-args.c
  lib/printf-args.h
  lib/printf-parse.c
  lib/printf-parse.h
  lib/progname.c
  lib/progname.h
  lib/rawmemchr.c
  lib/rawmemchr.valgrind
  lib/realloc.c
  lib/regcomp.c
  lib/regex.c
  lib/regex.h
  lib/regex_internal.c
  lib/regex_internal.h
  lib/regexec.c
  lib/save-cwd.c
  lib/save-cwd.h
  lib/size_max.h
  lib/sleep.c
  lib/stat-time.c
  lib/stat-time.h
  lib/stat-w32.c
  lib/stat-w32.h
  lib/stat.c
  lib/stdalign.in.h
  lib/stdbool.in.h
  lib/stddef.in.h
  lib/stdint.in.h
  lib/stdio.in.h
  lib/stdlib.in.h
  lib/strcasecmp.c
  lib/strchrnul.c
  lib/strchrnul.valgrind
  lib/strdup.c
  lib/streq.h
  lib/strerror-override.c
  lib/strerror-override.h
  lib/strerror.c
  lib/string.in.h
  lib/strings.in.h
  lib/stripslash.c
  lib/strncasecmp.c
  lib/strndup.c
  lib/strnlen.c
  lib/strnlen1.c
  lib/strnlen1.h
  lib/sys_stat.in.h
  lib/sys_types.in.h
  lib/sysexits.in.h
  lib/time.in.h
  lib/unistd--.h
  lib/unistd-safer.h
  lib/unistd.c
  lib/unistd.in.h
  lib/unitypes.in.h
  lib/uniwidth.in.h
  lib/uniwidth/cjk.h
  lib/uniwidth/width.c
  lib/vasnprintf.c
  lib/vasnprintf.h
  lib/verify.h
  lib/vsnprintf.c
  lib/warn-on-use.h
  lib/wchar.in.h
  lib/wcrtomb.c
  lib/wctype-h.c
  lib/wctype.in.h
  lib/wcwidth.c
  lib/xalloc-oversized.h
  lib/xsize.c
  lib/xsize.h
  m4/00gnulib.m4
  m4/__inline.m4
  m4/absolute-header.m4
  m4/alloca.m4
  m4/argp.m4
  m4/base64.m4
  m4/btowc.m4
  m4/builtin-expect.m4
  m4/chdir-long.m4
  m4/close.m4
  m4/codeset.m4
  m4/dirent_h.m4
  m4/dirfd.m4
  m4/dirname.m4
  m4/double-slash-root.m4
  m4/dup2.m4
  m4/eealloc.m4
  m4/errno_h.m4
  m4/error.m4
  m4/exponentd.m4
  m4/extensions.m4
  m4/extern-inline.m4
  m4/fchdir.m4
  m4/fcntl-o.m4
  m4/fcntl.m4
  m4/fcntl_h.m4
  m4/filenamecat.m4
  m4/flexmember.m4
  m4/float_h.m4
  m4/fnmatch.m4
  m4/fnmatch_h.m4
  m4/fstat.m4
  m4/getcwd.m4
  m4/getdelim.m4
  m4/getdtablesize.m4
  m4/getline.m4
  m4/getopt.m4
  m4/getprogname.m4
  m4/glibc21.m4
  m4/gnulib-common.m4
  m4/host-cpu-c-abi.m4
  m4/include_next.m4
  m4/intmax_t.m4
  m4/inttypes_h.m4
  m4/langinfo_h.m4
  m4/largefile.m4
  m4/lib-ld.m4
  m4/lib-link.m4
  m4/lib-prefix.m4
  m4/libunistring-base.m4
  m4/limits-h.m4
  m4/localcharset.m4
  m4/locale-fr.m4
  m4/locale-ja.m4
  m4/locale-zh.m4
  m4/locale_h.m4
  m4/localeconv.m4
  m4/lock.m4
  m4/longlong.m4
  m4/lstat.m4
  m4/malloc.m4
  m4/malloca.m4
  m4/math_h.m4
  m4/mbrtowc.m4
  m4/mbsinit.m4
  m4/mbsrtowcs.m4
  m4/mbstate_t.m4
  m4/mbswidth.m4
  m4/mbtowc.m4
  m4/memchr.m4
  m4/mempcpy.m4
  m4/memrchr.m4
  m4/mmap-anon.m4
  m4/mode_t.m4
  m4/msvc-inval.m4
  m4/msvc-nothrow.m4
  m4/multiarch.m4
  m4/nl_langinfo.m4
  m4/nocrash.m4
  m4/off_t.m4
  m4/open-cloexec.m4
  m4/open.m4
  m4/openat.m4
  m4/pathmax.m4
  m4/printf.m4
  m4/pthread_rwlock_rdlock.m4
  m4/rawmemchr.m4
  m4/realloc.m4
  m4/regex.m4
  m4/save-cwd.m4
  m4/size_max.m4
  m4/sleep.m4
  m4/ssize_t.m4
  m4/stat-time.m4
  m4/stat.m4
  m4/stdalign.m4
  m4/stdbool.m4
  m4/stddef_h.m4
  m4/stdint.m4
  m4/stdint_h.m4
  m4/stdio_h.m4
  m4/stdlib_h.m4
  m4/strcase.m4
  m4/strchrnul.m4
  m4/strdup.m4
  m4/strerror.m4
  m4/string_h.m4
  m4/strings_h.m4
  m4/strndup.m4
  m4/strnlen.m4
  m4/sys_socket_h.m4
  m4/sys_stat_h.m4
  m4/sys_types_h.m4
  m4/sysexits.m4
  m4/threadlib.m4
  m4/time_h.m4
  m4/unistd-safer.m4
  m4/unistd_h.m4
  m4/vasnprintf.m4
  m4/vsnprintf.m4
  m4/warn-on-use.m4
  m4/wchar_h.m4
  m4/wchar_t.m4
  m4/wcrtomb.m4
  m4/wctype_h.m4
  m4/wcwidth.m4
  m4/wint_t.m4
  m4/xsize.m4
Updating file build-aux/config.rpath (backup in build-aux/config.rpath~)
Updating file grub-core/lib/gnulib/argp-fmtstream.c (backup in grub-core/lib/gnulib/argp-fmtstream.c~)
Updating file grub-core/lib/gnulib/argp-help.c (backup in grub-core/lib/gnulib/argp-help.c~)
Updating file grub-core/lib/gnulib/argp-parse.c (backup in grub-core/lib/gnulib/argp-parse.c~)
Updating file grub-core/lib/gnulib/base64.h (backup in grub-core/lib/gnulib/base64.h~)
Updating file grub-core/lib/gnulib/mbswidth.c (backup in grub-core/lib/gnulib/mbswidth.c~)
Updating file grub-core/lib/gnulib/mbswidth.h (backup in grub-core/lib/gnulib/mbswidth.h~)
Updating file grub-core/lib/gnulib/regcomp.c (backup in grub-core/lib/gnulib/regcomp.c~)
Updating file m4/extern-inline.m4 (backup in m4/extern-inline.m4~)
Finished.

You may need to add #include directives for the following .h files.
  #include <fnmatch.h>
  #include <regex.h>
  #include <stdio.h>
  #include <stdlib.h>
  #include "argp.h"
  #include "base64.h"
  #include "error.h"
  #include "gettext.h"
  #include "mbswidth.h"
  #include "progname.h"
  #include "save-cwd.h"

You may need to use the following Makefile variables when linking.
Use them in <program>_LDADD when linking a program, or
in <library>_a_LDFLAGS or <library>_la_LDFLAGS when linking a library.
  $(LTLIBINTL) when linking with libtool, $(LIBINTL) otherwise
  $(LTLIBTHREAD) when linking with libtool, $(LIBTHREAD) otherwise

Don't forget to
  - add "grub-core/lib/gnulib/Makefile" to AC_CONFIG_FILES in ./configure.ac,
  - mention "gnulib" in SUBDIRS in grub-core/lib/Makefile.am,
  - mention "-I m4" in ACLOCAL_AMFLAGS in Makefile.am,
  - mention "m4/gnulib-cache.m4" in EXTRA_DIST in Makefile.am,
  - invoke gl_EARLY in ./configure.ac, right after AC_PROG_CC,
  - invoke gl_INIT in ./configure.ac.
patching file base64.h
patching file argp-parse.c
patching file argp-fmtstream.c
patching file argp-help.c
patching file mbswidth.c
patching file mbswidth.h
patching file regcomp.c
patching file Makefile.in.in
patching file Makefile.in.in
patching file Makefile.in.in
patching file Makefile.in.in
Importing unicode...
Importing libgcrypt...
Generating Automake input...
Saving timestamps...
running: AUTOPOINT=true LIBTOOLIZE=true autoreconf --verbose --install --force -I m4  --no-recursive
autoreconf: Entering directory `.'
autoreconf: running: true --force
autoreconf: running: aclocal -I m4 --force -I m4
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --include=m4 --force
autoreconf: running: /usr/bin/autoheader --include=m4 --force
autoreconf: running: automake --add-missing --copy --force-missing
Makefile.am: installing 'build-aux/depcomp'
parallel-tests: installing 'build-aux/test-driver'
docs/Makefile.am:4: installing 'build-aux/mdate-sh'
docs/Makefile.am:4: installing 'build-aux/texinfo.tex'
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'.

生成了configure了!



configure试试看:
root@ubuntu:/media/ubuntu/yule/grub2/grub# ./configure
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for git... git
configure: "2.05-20210608-259a9e8"
checking for cmp... cmp
checking for bison... bison
checking for ranlib... ranlib
checking for gawk... (cached) gawk
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking for bison... (cached) bison
checking whether make sets $(MAKE)... (cached) yes
checking whether ln -s works... yes
checking for makeinfo... no
checking for true... /usr/bin/true
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether _XOPEN_SOURCE should be defined... no
checking for Minix Amsterdam compiler... no
checking for ar... ar
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking dependency style of gcc... gcc3
checking for a Python interpreter with version >= 2.6... python
checking for python... /usr/bin/python
checking for python version... 3.8
checking for python platform... linux
checking for python script directory... ${prefix}/lib/python3.8/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python3.8/site-packages
checking for g++... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking 32-bit host C ABI... no
checking for the common suffixes of directories in the library search path... lib,lib
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for special C compiler options needed for large files... (cached) no
checking for _FILE_OFFSET_BITS value needed for large files... (cached) no
checking whether byte ordering is bigendian... no
checking size of void *... 8
checking size of long... 8
checking size of off_t... 8
checking for help2man... no
checking for posix_memalign... yes
checking for memalign... yes
checking for getextmntent... no
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/mount.h usability... yes
checking sys/mount.h presence... yes
checking for sys/mount.h... yes
checking sys/mnttab.h usability... no
checking sys/mnttab.h presence... no
checking for sys/mnttab.h... no
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for sys/types.h... (cached) yes
checking for features.h... yes
checking for linewrap.h... no
checking for unistd.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for sys/socket.h... yes
checking for dirent.h... yes
checking for fnmatch.h... yes
checking for wctype.h... yes
checking for sys/stat.h... (cached) yes
checking for getopt.h... yes
checking for sys/cdefs.h... yes
checking for langinfo.h... yes
checking for limits.h... (cached) yes
checking for xlocale.h... no
checking for wchar.h... yes
checking for sys/mman.h... yes
checking for malloc.h... yes
checking for sys/time.h... yes
checking for stdint.h... (cached) yes
checking for strings.h... (cached) yes
checking for sysexits.h... yes
checking for crtdefs.h... no
checking sys/mkdev.h usability... no
checking sys/mkdev.h presence... no
checking for sys/mkdev.h... no
checking sys/sysmacros.h usability... yes
checking sys/sysmacros.h presence... yes
checking for sys/sysmacros.h... yes
checking for struct statfs.f_fstypename... no
checking for struct statfs.f_mntfromname... no
checking util.h usability... no
checking util.h presence... no
checking for util.h... no
checking whether -Wtrampolines work... yes
checking for gcc... gcc
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for inline... inline
checking for C/C++ restrict keyword... __restrict
checking whether clearerr_unlocked is declared... yes
checking whether feof_unlocked is declared... yes
checking whether ferror_unlocked is declared... yes
checking whether fflush_unlocked is declared... yes
checking whether fgets_unlocked is declared... yes
checking whether fputc_unlocked is declared... yes
checking whether fputs_unlocked is declared... yes
checking whether fread_unlocked is declared... yes
checking whether fwrite_unlocked is declared... yes
checking whether getc_unlocked is declared... yes
checking whether getchar_unlocked is declared... yes
checking whether putc_unlocked is declared... yes
checking whether putchar_unlocked is declared... yes
checking for flockfile... yes
checking for funlockfile... yes
checking for btowc... yes
checking for _set_invalid_parameter_handler... no
checking for fchdir... yes
checking for fcntl... yes
checking for symlink... yes
checking for mempcpy... yes
checking for fnmatch... yes
checking for isblank... yes
checking for iswctype... yes
checking for mbsrtowcs... yes
checking for wmemchr... yes
checking for wmemcpy... yes
checking for wmempcpy... yes
checking for getdelim... yes
checking for getdtablesize... yes
checking for getprogname... no
checking for getexecname... no
checking for mbsinit... yes
checking for mbrtowc... yes
checking for isascii... yes
checking for mprotect... yes
checking for nl_langinfo... yes
checking for lstat... yes
checking for openat... yes
checking for sleep... yes
checking for strdup... yes
checking for strndup... yes
checking for pipe... yes
checking for vasnprintf... no
checking for snprintf... yes
checking for wcrtomb... yes
checking for iswcntrl... yes
checking for wcwidth... yes
checking whether strerror_r is declared... yes
checking for strerror_r... yes
checking whether strerror_r returns char *... yes
checking whether <wchar.h> uses 'inline' correctly... yes
checking for nl_langinfo and CODESET... yes
checking for a traditional french locale... none
checking whether the preprocessor supports include_next... yes
checking whether system header files limit the line length... no
checking whether // is distinct from /... no
checking for complete errno.h... yes
checking whether fchdir is declared... yes
checking for working fcntl.h... yes
checking for pid_t... yes
checking for mode_t... yes
checking for mbstate_t... yes
checking whether stat file-mode macros are broken... no
checking for nlink_t... yes
checking whether getcwd (NULL, 0) allocates memory for result... yes
checking for getcwd with POSIX signature... yes
checking whether getdelim is declared... yes
checking whether getdtablesize is declared... yes
checking whether getline is declared... yes
checking for getopt.h... (cached) yes
checking for getopt_long_only... yes
checking whether getopt is POSIX compatible... yes
checking for working GNU getopt function... yes
checking for working GNU getopt_long function... yes
checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc.... yes
checking for wchar_t... yes
checking for good max_align_t... yes
checking whether NULL can be used in arbitrary expressions... yes
checking whether imported symbols can be declared weak... yes
checking whether the linker supports --as-needed... yes
checking whether the linker supports --push-state... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for multithread API to use... posix
checking whether malloc, realloc, calloc are POSIX compliant... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for unsigned long long int... yes
checking for long long int... yes
checking for a traditional japanese locale... none
checking for a transitional chinese locale... none
checking for a french Unicode locale... fr_FR.UTF-8
checking for mmap... yes
checking for MAP_ANONYMOUS... yes
checking whether memchr works... yes
checking whether memrchr is declared... yes
checking for O_CLOEXEC... yes
checking for promoted mode_t type... mode_t
checking whether lstat correctly handles trailing slash... yes
checking whether alarm is declared... yes
checking whether we are using the GNU C Library >= 2.1 or uClibc... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for wint_t... yes
checking whether wint_t is too small... no
checking whether stdint.h conforms to C99... yes
checking whether stdint.h predates C++11... no
checking whether stdint.h has UINTMAX_WIDTH etc.... yes
checking whether strdup is declared... yes
checking whether strerror(0) succeeds... yes
checking whether strndup is declared... yes
checking whether strnlen is declared... yes
checking for struct timespec in <time.h>... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for intmax_t... yes
checking where to find the exponent in a 'double'... word 1 bit 20
checking whether snprintf returns a byte count as in C99... yes
checking for snprintf... (cached) yes
checking for strnlen... yes
checking for wcslen... yes
checking for wcsnlen... yes
checking for mbrtowc... (cached) yes
checking for wcrtomb... (cached) yes
checking whether _snprintf is declared... no
checking whether vsnprintf is declared... yes
checking for alloca as a compiler built-in... yes
checking whether program_invocation_name is declared... yes
checking whether program_invocation_short_name is declared... yes
checking whether program_invocation_name is defined... yes
checking whether program_invocation_short_name is defined... yes
checking whether btowc(0) is correct... yes
checking whether btowc(EOF) is correct... guessing yes
checking for __builtin_expect... yes
checking whether this system has an arbitrary file name length limit... yes
checking for dirfd... yes
checking whether dirfd is declared... yes
checking whether dirfd is a macro... no
checking whether // is distinct from /... (cached) no
checking whether dup2 works... yes
checking for error_at_line... yes
checking whether fcntl handles F_DUPFD correctly... yes
checking whether fcntl understands F_DUPFD_CLOEXEC... needs runtime check
checking for flexible array member... yes
checking whether conversion from 'int' to 'long double' works... yes
checking for working POSIX fnmatch... yes
checking for working getdelim function... yes
checking whether getdtablesize works... yes
checking for getline... yes
checking for working getline function... yes
checking whether program_invocation_name is declared... (cached) yes
checking whether program_invocation_short_name is declared... (cached) yes
checking whether __argv is declared... no
checking whether langinfo.h defines CODESET... yes
checking whether langinfo.h defines T_FMT_AMPM... yes
checking whether langinfo.h defines ALTMON_1... yes
checking whether langinfo.h defines ERA... yes
checking whether langinfo.h defines YESEXPR... yes
checking whether the compiler supports the __inline keyword... yes
checking whether locale.h conforms to POSIX:2001... yes
checking whether struct lconv is properly defined... yes
checking for pthread_rwlock_t... yes
checking whether pthread_rwlock_rdlock prefers a writer to a reader... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... (cached) yes
checking whether mbrtowc handles incomplete characters... guessing yes
checking whether mbrtowc works as well as mbtowc... guessing yes
checking whether mbrtowc handles a NULL pwc argument... yes
checking whether mbrtowc handles a NULL string argument... yes
checking whether mbrtowc has a correct return value... yes
checking whether mbrtowc returns 0 when parsing a NUL character... guessing yes
checking whether mbrtowc works on empty input... yes
checking whether the C locale is free of encoding errors... no
checking whether mbrtowc handles incomplete characters... (cached) guessing yes
checking whether mbrtowc works as well as mbtowc... (cached) guessing yes
checking whether mbrtowc handles incomplete characters... (cached) guessing yes
checking whether mbrtowc works as well as mbtowc... (cached) guessing yes
checking whether mbsrtowcs works... yes
checking whether mbswidth is declared in <wchar.h>... no
checking for mbstate_t... (cached) yes
checking for mempcpy... (cached) yes
checking for memrchr... yes
checking whether YESEXPR works... yes
checking whether open recognizes a trailing slash... yes
checking whether program_invocation_name is declared... (cached) yes
checking whether program_invocation_short_name is declared... (cached) yes
checking for rawmemchr... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for working re_compile_pattern... no
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking whether isblank is declared... yes
checking for stdint.h... (cached) yes
checking for SIZE_MAX... yes
checking whether sleep is declared... yes
checking for working sleep... yes
checking for ssize_t... yes
checking whether stat handles trailing slashes on files... yes
checking for struct stat.st_atim.tv_nsec... yes
checking whether struct stat.st_atim is of type struct timespec... yes
checking for struct stat.st_birthtimespec.tv_nsec... no
checking for struct stat.st_birthtimensec... no
checking for struct stat.st_birthtim.tv_nsec... no
checking for working stdalign.h... yes
checking for good max_align_t... (cached) yes
checking whether NULL can be used in arbitrary expressions... (cached) yes
checking which flavor of printf attribute matches inttypes macros... system
checking for strcasecmp... yes
checking for strncasecmp... yes
checking whether strncasecmp is declared... yes
checking for strchrnul... yes
checking whether strchrnul works... yes
checking for working strerror function... yes
checking for working strndup... yes
checking for working strnlen... yes
checking for nlink_t... (cached) yes
checking for ptrdiff_t... yes
checking for vsnprintf... yes
checking whether snprintf respects a size of 1... yes
checking whether printf supports POSIX/XSI format strings with positions... yes
checking whether mbrtowc handles incomplete characters... (cached) guessing yes
checking whether mbrtowc works as well as mbtowc... (cached) guessing yes
checking whether wcrtomb return value is correct... yes
checking whether iswcntrl works... yes
checking for towlower... yes
checking for wctype_t... yes
checking for wctrans_t... yes
checking whether wcwidth is declared... yes
checking whether wcwidth works reasonably in UTF-8 locales... yes
checking for stdint.h... (cached) yes
checking which extra warnings work...  -Wextra -Wattributes -Wendif-labels -Winit-self -Wint-to-pointer-cast -Winvalid-pch -Wmissing-field-initializers -Wnonnull -Woverflow -Wvla -Wpointer-to-int-cast -Wstrict-aliasing -Wvariadic-macros -Wvolatile-register-var -Wpointer-sign -Wmissing-include-dirs -Wmissing-prototypes -Wmissing-declarations -Wformat=2
checking for objcopy... objcopy
checking for strip... strip
checking for nm... nm
checking for ranlib... ranlib
checking which extra warnings work...  -Wextra -Wattributes -Wendif-labels -Winit-self -Wint-to-pointer-cast -Winvalid-pch -Wmissing-field-initializers -Wnonnull -Woverflow -Wvla -Wpointer-to-int-cast -Wstrict-aliasing -Wvariadic-macros -Wvolatile-register-var -Wpointer-sign -Wmissing-include-dirs -Wmissing-prototypes -Wmissing-declarations -Wformat=2
checking if compiling with clang... no
checking for options to compile assembly...
checking whether -falign-loops works... yes
checking whether -malign-loops works... yes
checking whether -freg-struct-return works... yes
checking for options to get soft-float... -msoft-float
checking whether -fno-dwarf2-cfi-asm works... yes
checking whether -mno-stack-arg-probe works... yes
checking whether -fno-asynchronous-unwind-tables works... yes
checking whether -fno-unwind-tables works... yes
checking whether -fno-ident works... yes
checking for target linking format... -melf_i386
checking whether options required for efiemu work... yes
checking for efiemu64 linking format... -melf_x86_64
checking for efiemu32 linking format... -melf_i386
checking whether option -Qn works... no
checking whether `gcc' has `-fPIE' as default... yes
checking whether linker accepts -no-pie... yes
checking whether linker accepts -nopie... no
checking whether linker needs disabling of PIE to work... no
checking whether `gcc' has `-fPIC' as default... no
checking whether `gcc' accepts `-fstack-protector'... yes
checking whether `gcc' accepts `-mstack-arg-probe'... no
checking if C symbols get an underscore after compilation... no
checking whether target compiler is working... yes
checking whether objcopy works for absolute addresses... yes
checking whether linker accepts --build-id=none... yes
checking if __bss_start is defined by the compiler... yes
checking if edata is defined by the compiler... yes
checking if _edata is defined by the compiler... yes
checking if end is defined by the compiler... yes
checking if _end is defined by the compiler... yes
checking whether nm works... yes
checking whether nm accepts -P... yes
checking whether nm accepts --defined-only... yes
checking whether -nostdinc -isystem works... yes
checking whether -Wtrampolines work... yes
checking for freetype2... yes
checking ft2build.h usability... yes
checking ft2build.h presence... yes
checking for ft2build.h... yes
checking whether byte ordering is bigendian... no
checking for freetype2... yes
checking ft2build.h usability... yes
checking ft2build.h presence... yes
checking for ft2build.h... yes
checking for fuse_main_real in -lfuse... no
checking libdevmapper.h usability... yes
checking libdevmapper.h presence... yes
checking for libdevmapper.h... yes
checking for dm_task_create in -ldevmapper... yes
checking for dm_log_with_errno_init in -ldevmapper... yes
checking for lzma_code in -llzma... no
checking libzfs.h usability... no
checking libzfs.h presence... no
checking for libzfs.h... no
checking libnvpair.h usability... no
checking libnvpair.h presence... no
checking for libnvpair.h... no
checking for libzfs_init in -lzfs... no
checking whether ln -s can handle directories properly... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating grub-core/Makefile
config.status: creating grub-core/lib/gnulib/Makefile
config.status: creating po/Makefile.in
config.status: creating docs/Makefile
config.status: creating util/bash-completion.d/Makefile
config.status: creating stamp-h
config.status: creating config.h
config.status: creating config-util.h
config.status: linking include/grub/i386 to include/grub/cpu
config.status: linking include/grub/i386/pc to include/grub/machine
config.status: executing depfiles commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
*******************************************************
GRUB2 will be compiled with following components:
Platform: i386-pc
With devmapper support: Yes
With memory debugging: No
With disk cache statistics: No
With boot time statistics: No
efiemu runtime: Yes
grub-mkfont: Yes
grub-mount: No (need FUSE library)
starfield theme: No (No DejaVu found)
With libzfs support: No (need zfs library)
Build-time grub-mkfont: No (no fonts)
Without unifont (no build-time grub-mkfont)
Without liblzma (no support for XZ-compressed mips images) (need lzma library)
*******************************************************


回复

使用道具 举报

10#
 楼主| 发表于 2021-6-8 20:04:08 | 只看该作者

make也成功了。输出的信息很多,选最后一屏:

TARGET_OBJ2ELF= sh genmod.sh moddep.lst mdraid1x.module build-grub-module-verifier mdraid1x.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst diskfilter.module build-grub-module-verifier diskfilter.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst raid5rec.module build-grub-module-verifier raid5rec.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst raid6rec.module build-grub-module-verifier raid6rec.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst scsi.module build-grub-module-verifier scsi.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst memdisk.module build-grub-module-verifier memdisk.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst ata.module build-grub-module-verifier ata.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst ahci.module build-grub-module-verifier ahci.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst pata.module build-grub-module-verifier pata.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst biosdisk.module build-grub-module-verifier biosdisk.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst usbms.module build-grub-module-verifier usbms.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst efiemu.module build-grub-module-verifier efiemu.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst font.module build-grub-module-verifier font.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst procfs.module build-grub-module-verifier procfs.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst affs.module build-grub-module-verifier affs.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst afs.module build-grub-module-verifier afs.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst bfs.module build-grub-module-verifier bfs.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst zstd.module build-grub-module-verifier zstd.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst btrfs.module build-grub-module-verifier btrfs.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst archelp.module build-grub-module-verifier archelp.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst cbfs.module build-grub-module-verifier cbfs.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst cpio.module build-grub-module-verifier cpio.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst cpio_be.module build-grub-module-verifier cpio_be.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst newc.module build-grub-module-verifier newc.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst odc.module build-grub-module-verifier odc.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst ext2.module build-grub-module-verifier ext2.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst lynxfs.module build-grub-module-verifier lynxfs.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst fat.module build-grub-module-verifier fat.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst fb.module build-grub-module-verifier fb.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst exfat.module build-grub-module-verifier exfat.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst f2fs.module build-grub-module-verifier f2fs.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst fshelp.module build-grub-module-verifier fshelp.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst hfs.module build-grub-module-verifier hfs.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst hfsplus.module build-grub-module-verifier hfsplus.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst hfspluscomp.module build-grub-module-verifier hfspluscomp.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst iso9660.module build-grub-module-verifier iso9660.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst jfs.module build-grub-module-verifier jfs.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst minix.module build-grub-module-verifier minix.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst minix2.module build-grub-module-verifier minix2.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst minix3.module build-grub-module-verifier minix3.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst minix_be.module build-grub-module-verifier minix_be.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst minix2_be.module build-grub-module-verifier minix2_be.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst minix3_be.module build-grub-module-verifier minix3_be.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst nilfs2.module build-grub-module-verifier nilfs2.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst ntfs.module build-grub-module-verifier ntfs.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst ntfscomp.module build-grub-module-verifier ntfscomp.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst qnx4.module build-grub-module-verifier qnx4.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst qnx6.module build-grub-module-verifier qnx6.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst reiserfs.module build-grub-module-verifier reiserfs.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst romfs.module build-grub-module-verifier romfs.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst sfs.module build-grub-module-verifier sfs.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst squash4.module build-grub-module-verifier squash4.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst tar.module build-grub-module-verifier tar.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst udf.module build-grub-module-verifier udf.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst ufs1.module build-grub-module-verifier ufs1.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst ufs1_be.module build-grub-module-verifier ufs1_be.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst ufs2.module build-grub-module-verifier ufs2.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst xfs.module build-grub-module-verifier xfs.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst zfs.module build-grub-module-verifier zfs.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst zfscrypt.module build-grub-module-verifier zfscrypt.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst zfsinfo.module build-grub-module-verifier zfsinfo.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst macbless.module build-grub-module-verifier macbless.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst pxe.module build-grub-module-verifier pxe.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst gettext.module build-grub-module-verifier gettext.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst gfxmenu.module build-grub-module-verifier gfxmenu.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst gzio.module build-grub-module-verifier gzio.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst offsetio.module build-grub-module-verifier offsetio.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst bufio.module build-grub-module-verifier bufio.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst elf.module build-grub-module-verifier elf.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst crypto.module build-grub-module-verifier crypto.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst pbkdf2.module build-grub-module-verifier pbkdf2.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst relocator.module build-grub-module-verifier relocator.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst datetime.module build-grub-module-verifier datetime.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst setjmp.module build-grub-module-verifier setjmp.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst aout.module build-grub-module-verifier aout.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst bsd.module build-grub-module-verifier bsd.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst plan9.module build-grub-module-verifier plan9.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst linux16.module build-grub-module-verifier linux16.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst ntldr.module build-grub-module-verifier ntldr.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst truecrypt.module build-grub-module-verifier truecrypt.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst freedos.module build-grub-module-verifier freedos.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst pxechain.module build-grub-module-verifier pxechain.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst multiboot2.module build-grub-module-verifier multiboot2.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst multiboot.module build-grub-module-verifier multiboot.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst linux.module build-grub-module-verifier linux.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst random.module build-grub-module-verifier random.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst macho.module build-grub-module-verifier macho.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst chain.module build-grub-module-verifier chain.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst mmap.module build-grub-module-verifier mmap.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst normal.module build-grub-module-verifier normal.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst part_acorn.module build-grub-module-verifier part_acorn.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst part_amiga.module build-grub-module-verifier part_amiga.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst part_apple.module build-grub-module-verifier part_apple.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst part_gpt.module build-grub-module-verifier part_gpt.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst part_msdos.module build-grub-module-verifier part_msdos.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst part_sun.module build-grub-module-verifier part_sun.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst part_plan.module build-grub-module-verifier part_plan.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst part_dvh.module build-grub-module-verifier part_dvh.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst part_bsd.module build-grub-module-verifier part_bsd.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst part_sunpc.module build-grub-module-verifier part_sunpc.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst part_dfly.module build-grub-module-verifier part_dfly.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst msdospart.module build-grub-module-verifier msdospart.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst at_keyboard.module build-grub-module-verifier at_keyboard.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst ps2mouse.module build-grub-module-verifier ps2mouse.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst gfxterm.module build-grub-module-verifier gfxterm.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst gfxterm_background.module build-grub-module-verifier gfxterm_background.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst serial.module build-grub-module-verifier serial.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst sendkey.module build-grub-module-verifier sendkey.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst terminfo.module build-grub-module-verifier terminfo.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst usb_keyboard.module build-grub-module-verifier usb_keyboard.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst vga.module build-grub-module-verifier vga.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst vga_text.module build-grub-module-verifier vga_text.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst mda_text.module build-grub-module-verifier mda_text.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst video_cirrus.module build-grub-module-verifier video_cirrus.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst video_bochs.module build-grub-module-verifier video_bochs.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst functional_test.module build-grub-module-verifier functional_test.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst exfctest.module build-grub-module-verifier exfctest.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst strtoull_test.module build-grub-module-verifier strtoull_test.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst setjmp_test.module build-grub-module-verifier setjmp_test.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst signature_test.module build-grub-module-verifier signature_test.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst sleep_test.module build-grub-module-verifier sleep_test.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst xnu_uuid_test.module build-grub-module-verifier xnu_uuid_test.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst pbkdf2_test.module build-grub-module-verifier pbkdf2_test.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst legacy_password_test.module build-grub-module-verifier legacy_password_test.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst div.module build-grub-module-verifier div.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst div_test.module build-grub-module-verifier div_test.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst mul_test.module build-grub-module-verifier mul_test.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst shift_test.module build-grub-module-verifier shift_test.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst cmp_test.module build-grub-module-verifier cmp_test.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst ctz_test.module build-grub-module-verifier ctz_test.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst bswap_test.module build-grub-module-verifier bswap_test.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst videotest_checksum.module build-grub-module-verifier videotest_checksum.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst gfxterm_menu.module build-grub-module-verifier gfxterm_menu.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst cmdline_cat_test.module build-grub-module-verifier cmdline_cat_test.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst bitmap.module build-grub-module-verifier bitmap.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst bitmap_scale.module build-grub-module-verifier bitmap_scale.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst jpeg.module build-grub-module-verifier jpeg.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst png.module build-grub-module-verifier png.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst tga.module build-grub-module-verifier tga.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst bmp.module build-grub-module-verifier bmp.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst vbe.module build-grub-module-verifier vbe.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst video_fb.module build-grub-module-verifier video_fb.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst video.module build-grub-module-verifier video.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst video_colors.module build-grub-module-verifier video_colors.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst datehook.module build-grub-module-verifier datehook.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst net.module build-grub-module-verifier net.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst tftp.module build-grub-module-verifier tftp.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst http.module build-grub-module-verifier http.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst legacycfg.module build-grub-module-verifier legacycfg.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst syslinuxcfg.module build-grub-module-verifier syslinuxcfg.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst test_blockarg.module build-grub-module-verifier test_blockarg.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst xzio.module build-grub-module-verifier xzio.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst lzopio.module build-grub-module-verifier lzopio.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst lzmaio.module build-grub-module-verifier lzmaio.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst testload.module build-grub-module-verifier testload.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst backtrace.module build-grub-module-verifier backtrace.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst lsapm.module build-grub-module-verifier lsapm.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst keylayouts.module build-grub-module-verifier keylayouts.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst priority_queue.module build-grub-module-verifier priority_queue.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst time.module build-grub-module-verifier time.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst adler32.module build-grub-module-verifier adler32.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst commandline.module build-grub-module-verifier commandline.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst crc.module build-grub-module-verifier crc.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst crc64.module build-grub-module-verifier crc64.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst mpi.module build-grub-module-verifier mpi.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst all_video.module build-grub-module-verifier all_video.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst gdb.module build-grub-module-verifier gdb.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst testspeed.module build-grub-module-verifier testspeed.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst tr.module build-grub-module-verifier tr.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst progress.module build-grub-module-verifier progress.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst file.module build-grub-module-verifier file.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst conv.module build-grub-module-verifier conv.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst vhd.module build-grub-module-verifier vhd.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst fixed_vdi.module build-grub-module-verifier fixed_vdi.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst vboot.module build-grub-module-verifier vboot.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst rdmsr.module build-grub-module-verifier rdmsr.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst wrmsr.module build-grub-module-verifier wrmsr.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst expr.module build-grub-module-verifier expr.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst map.module build-grub-module-verifier map.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst wimboot.module build-grub-module-verifier wimboot.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst ntboot.module build-grub-module-verifier ntboot.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst tetris.module build-grub-module-verifier tetris.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst uuid.module build-grub-module-verifier uuid.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst sortlib.module build-grub-module-verifier sortlib.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst stat.module build-grub-module-verifier stat.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst partnew.module build-grub-module-verifier partnew.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst grubfm.module build-grub-module-verifier grubfm.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst fatfs.module build-grub-module-verifier fatfs.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst nes.module build-grub-module-verifier nes.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst nttools.module build-grub-module-verifier nttools.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst setkey.module build-grub-module-verifier setkey.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst geometry.module build-grub-module-verifier geometry.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst gcry_arcfour.module build-grub-module-verifier gcry_arcfour.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst gcry_blowfish.module build-grub-module-verifier gcry_blowfish.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst gcry_camellia.module build-grub-module-verifier gcry_camellia.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst gcry_cast5.module build-grub-module-verifier gcry_cast5.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst gcry_crc.module build-grub-module-verifier gcry_crc.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst gcry_des.module build-grub-module-verifier gcry_des.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst gcry_dsa.module build-grub-module-verifier gcry_dsa.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst gcry_idea.module build-grub-module-verifier gcry_idea.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst gcry_md4.module build-grub-module-verifier gcry_md4.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst gcry_md5.module build-grub-module-verifier gcry_md5.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst gcry_rfc2268.module build-grub-module-verifier gcry_rfc2268.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst gcry_rijndael.module build-grub-module-verifier gcry_rijndael.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst gcry_rmd160.module build-grub-module-verifier gcry_rmd160.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst gcry_rsa.module build-grub-module-verifier gcry_rsa.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst gcry_seed.module build-grub-module-verifier gcry_seed.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst gcry_serpent.module build-grub-module-verifier gcry_serpent.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst gcry_sha1.module build-grub-module-verifier gcry_sha1.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst gcry_sha256.module build-grub-module-verifier gcry_sha256.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst gcry_sha512.module build-grub-module-verifier gcry_sha512.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst gcry_tiger.module build-grub-module-verifier gcry_tiger.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst gcry_twofish.module build-grub-module-verifier gcry_twofish.mod
TARGET_OBJ2ELF= sh genmod.sh moddep.lst gcry_whirlpool.module build-grub-module-verifier gcry_whirlpool.mod
gcc -DHAVE_CONFIG_H  -I../grub-core/efiemu/runtime -DGRUB_FILE=\"efiemu/runtime/efiemu.c\" -I. -I. -I.. -I.. -I../include -I../include -I../grub-core/lib/libgcrypt-grub/src/ -m32 -nostdlib -Wall -Werror -fno-pic -O0 -c -o efiemu32_c.o efiemu/runtime/efiemu.c
gcc -DHAVE_CONFIG_H  -I../grub-core/efiemu/runtime -DGRUB_FILE=\"efiemu/runtime/efiemu.S\" -I. -I. -I.. -I.. -I../include -I../include -I../grub-core/lib/libgcrypt-grub/src/ -m32 -Wall -Werror -nostdlib -fno-pic -O0 -c -o efiemu32_s.o efiemu/runtime/efiemu.S
rm -f efiemu32.o
rm -f efiemu32.o.bin
gcc -m32 -Wl,-melf_i386 -nostdlib -static -fno-pic -Wl,-r -o efiemu32.o.bin efiemu32_c.o efiemu32_s.o
if test "x-Wl,-melf_i386" = x-arch,i386; then \
   -felf32 -nu -nd efiemu32.o.bin efiemu32.o || exit 1; \
  rm -f efiemu32.o.bin; \
else \
  mv efiemu32.o.bin efiemu32.o ; \
fi
gcc -DHAVE_CONFIG_H  -I../grub-core/efiemu/runtime -DGRUB_FILE=\"efiemu/runtime/efiemu.c\" -I. -I. -I.. -I.. -I../include -I../include -I../grub-core/lib/libgcrypt-grub/src/ -m64 -nostdlib -Wall -Werror -fno-pic -O0 -mcmodel=large -mno-red-zone -c -o efiemu64_c.o efiemu/runtime/efiemu.c
gcc -DHAVE_CONFIG_H  -I../grub-core/efiemu/runtime -DGRUB_FILE=\"efiemu/runtime/efiemu.S\" -I. -I. -I.. -I.. -I../include -I../include -I../grub-core/lib/libgcrypt-grub/src/ -m64 -Wall -Werror -nostdlib -fno-pic -O0 -mcmodel=large -mno-red-zone -c -o efiemu64_s.o efiemu/runtime/efiemu.S
rm -f efiemu64.o
rm -f efiemu64.o.bin
gcc -m64 -Wl,-melf_x86_64 -nostdlib -static -fno-pic -Wl,-r -o efiemu64.o.bin efiemu64_c.o efiemu64_s.o
if test "x-Wl,-melf_x86_64" = x-arch,x86_64; then \
   -felf64 -nu -nd efiemu64.o.bin efiemu64.o || exit 1; \
  rm -f efiemu64.o.bin; \
else \
  mv efiemu64.o.bin efiemu64.o ; \
fi
make[3]: 离开目录“/media/ubuntu/yule/grub2/grub/grub-core”
make[2]: 离开目录“/media/ubuntu/yule/grub2/grub/grub-core”
Making all in po
make[2]: 进入目录“/media/ubuntu/yule/grub2/grub/po”
make grub.pot-update
make[3]: 进入目录“/media/ubuntu/yule/grub2/grub/po”
sed -e '/^#/d' remove-potcdate.sin > t-remove-potcdate.sed
mv t-remove-potcdate.sed remove-potcdate.sed
if { if (LC_ALL=C find --version) 2>/dev/null | grep GNU >/dev/null; then \
       LC_ALL=C find -L .. -maxdepth 1 -type f -size -10000000c -exec grep 'GNU grub' /dev/null '{}' ';' 2>/dev/null; \
     else \
       LC_ALL=C grep 'GNU grub' ../* 2>/dev/null; \
     fi; \
   } | grep -v 'libtool:' >/dev/null; then \
  package_gnu='GNU '; \
else \
  package_gnu=''; \
fi; \
if test -n 'bug-grub@gnu.org' || test 'bug-grub@gnu.org' = '@'PACKAGE_BUGREPORT'@'; then \
  msgid_bugs_address='bug-grub@gnu.org'; \
else \
  msgid_bugs_address='bug-grub@gnu.org'; \
fi; \
case `/usr/bin/xgettext --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
  '' | 0.[0-9] | 0.[0-9].* | 0.1[0-5] | 0.1[0-5].* | 0.16 | 0.16.[0-1]*) \
    /usr/bin/xgettext --default-domain=grub --directory=.. \
      --add-comments=TRANSLATORS: --keyword=_ --keyword=N_ --flag=_:1:pass-c-format --flag=N_:1:pass-c-format --flag=error:3:c-format --flag=error_at_line:5:c-format --from-code=UTF-8 ${end_of_xgettext_options+}  --flag=argp_error:2:c-format --flag=argp_failure:4:c-format --flag=error:3:c-format --flag=error_at_line:5:c-format \
      --files-from=./POTFILES.in \
      --copyright-holder='Free Software Foundation, Inc.' \
      --msgid-bugs-address="$msgid_bugs_address" \
    ;; \
  *) \
    /usr/bin/xgettext --default-domain=grub --directory=.. \
      --add-comments=TRANSLATORS: --keyword=_ --keyword=N_ --flag=_:1:pass-c-format --flag=N_:1:pass-c-format --flag=error:3:c-format --flag=error_at_line:5:c-format --from-code=UTF-8 ${end_of_xgettext_options+}  --flag=argp_error:2:c-format --flag=argp_failure:4:c-format --flag=error:3:c-format --flag=error_at_line:5:c-format \
      --files-from=./POTFILES.in \
      --copyright-holder='Free Software Foundation, Inc.' \
      --package-name="${package_gnu}grub" \
      --package-version='2.05' \
      --msgid-bugs-address="$msgid_bugs_address" \
    ;; \
esac; \
case `/usr/bin/xgettext --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
  '' | 0.[0-9] | 0.[0-9].* | 0.1[0-5] | 0.1[0-5].* | 0.16 | 0.16.[0-1]*) \
    /usr/bin/xgettext --default-domain=grub --directory=.. \
      --add-comments=TRANSLATORS:  --flag=argp_error:2:c-format --flag=argp_failure:4:c-format --flag=error:3:c-format --flag=error_at_line:5:c-format \
      --files-from=./POTFILES-shell.in \
      --copyright-holder='Free Software Foundation, Inc.' \
      --msgid-bugs-address="$msgid_bugs_address" \
      --join-existing --language=Shell \
      --keyword=gettext_quoted --keyword=gettext_printf \
    ;; \
  *) \
    /usr/bin/xgettext --default-domain=grub --directory=.. \
      --add-comments=TRANSLATORS:  --flag=argp_error:2:c-format --flag=argp_failure:4:c-format --flag=error:3:c-format --flag=error_at_line:5:c-format \
      --files-from=./POTFILES-shell.in \
      --copyright-holder='Free Software Foundation, Inc.' \
      --package-name="${package_gnu}grub" \
      --package-version='2.05' \
      --msgid-bugs-address="$msgid_bugs_address" \
      --join-existing --language=Shell \
      --keyword=gettext_quoted --keyword=gettext_printf \
    ;; \
esac; \
test ! -f grub.po || { \
  sed -f grub.d.sed < grub.po > grub.1po && \
  mv grub.1po grub.po; \
  if test -f ./grub.pot; then \
    sed -f remove-potcdate.sed < ./grub.pot > grub.1po && \
    sed -f remove-potcdate.sed < grub.po > grub.2po && \
    if cmp grub.1po grub.2po >/dev/null 2>&1; then \
      rm -f grub.1po grub.2po grub.po; \
    else \
      rm -f grub.1po grub.2po ./grub.pot && \
      mv grub.po ./grub.pot; \
    fi; \
  else \
    mv grub.po ./grub.pot; \
  fi; \
}
make[3]: 离开目录“/media/ubuntu/yule/grub2/grub/po”
test ! -f ./grub.pot || \
  test -z "" || make
touch stamp-po
make[2]: 离开目录“/media/ubuntu/yule/grub2/grub/po”
Making all in docs
make[2]: 进入目录“/media/ubuntu/yule/grub2/grub/docs”
Updating ./version.texi
restore=: && backupdir=".am$$" && \
am__cwd=`pwd` && CDPATH="${ZSH_VERSION+.}:" && cd . && \
rm -rf $backupdir && mkdir $backupdir && \
if (/usr/bin/true --version) >/dev/null 2>&1; then \
  for f in grub.info grub.info-[0-9] grub.info-[0-9][0-9] grub.i[0-9] grub.i[0-9][0-9]; do \
    if test -f $f; then mv $f $backupdir; restore=mv; else :; fi; \
  done; \
else :; fi && \
cd "$am__cwd"; \
if /usr/bin/true   -I . \
-o grub.info grub.texi; \
then \
  rc=0; \
  CDPATH="${ZSH_VERSION+.}:" && cd .; \
else \
  rc=$?; \
  CDPATH="${ZSH_VERSION+.}:" && cd . && \
  $restore $backupdir/* `echo "./grub.info" | sed 's|[^/]*$||'`; \
fi; \
rm -rf $backupdir; exit $rc
Updating ./version-dev.texi
restore=: && backupdir=".am$$" && \
am__cwd=`pwd` && CDPATH="${ZSH_VERSION+.}:" && cd . && \
rm -rf $backupdir && mkdir $backupdir && \
if (/usr/bin/true --version) >/dev/null 2>&1; then \
  for f in grub-dev.info grub-dev.info-[0-9] grub-dev.info-[0-9][0-9] grub-dev.i[0-9] grub-dev.i[0-9][0-9]; do \
    if test -f $f; then mv $f $backupdir; restore=mv; else :; fi; \
  done; \
else :; fi && \
cd "$am__cwd"; \
if /usr/bin/true   -I . \
-o grub-dev.info grub-dev.texi; \
then \
  rc=0; \
  CDPATH="${ZSH_VERSION+.}:" && cd .; \
else \
  rc=$?; \
  CDPATH="${ZSH_VERSION+.}:" && cd . && \
  $restore $backupdir/* `echo "./grub-dev.info" | sed 's|[^/]*$||'`; \
fi; \
rm -rf $backupdir; exit $rc
make[2]: 离开目录“/media/ubuntu/yule/grub2/grub/docs”
Making all in util/bash-completion.d
make[2]: 进入目录“/media/ubuntu/yule/grub2/grub/util/bash-completion.d”
../../config.status --file=grub:grub-completion.bash.in
config.status: creating grub
make[2]: 离开目录“/media/ubuntu/yule/grub2/grub/util/bash-completion.d”
make[1]: 离开目录“/media/ubuntu/yule/grub2/grub”
root@ubuntu:/media/ubuntu/yule/grub2/grub#

回复

使用道具 举报

11#
 楼主| 发表于 2021-6-8 20:07:47 | 只看该作者
make install:真是复杂!

root@ubuntu:/media/ubuntu/yule/grub2/grub# make install
make  install-recursive
make[1]: 进入目录“/media/ubuntu/yule/grub2/grub”
Making install in grub-core/lib/gnulib
make[2]: 进入目录“/media/ubuntu/yule/grub2/grub/grub-core/lib/gnulib”
make  install-recursive
make[3]: 进入目录“/media/ubuntu/yule/grub2/grub/grub-core/lib/gnulib”
make[4]: 进入目录“/media/ubuntu/yule/grub2/grub/grub-core/lib/gnulib”
make[5]: 进入目录“/media/ubuntu/yule/grub2/grub/grub-core/lib/gnulib”
make[5]: 对“install-exec-am”无需做任何事。
make[5]: 对“install-data-am”无需做任何事。
make[5]: 离开目录“/media/ubuntu/yule/grub2/grub/grub-core/lib/gnulib”
make[4]: 离开目录“/media/ubuntu/yule/grub2/grub/grub-core/lib/gnulib”
make[3]: 离开目录“/media/ubuntu/yule/grub2/grub/grub-core/lib/gnulib”
make[2]: 离开目录“/media/ubuntu/yule/grub2/grub/grub-core/lib/gnulib”
Making install in .
make[2]: 进入目录“/media/ubuntu/yule/grub2/grub”
make[3]: 进入目录“/media/ubuntu/yule/grub2/grub”
/usr/bin/mkdir -p '/usr/local/bin'
  /usr/bin/install -c grub-mkimage grub-mkrelpath grub-script-check grub-editenv grub-mkpasswd-pbkdf2 grub-fstest grub-mkfont grub-mklayout grub-mkrescue grub-mkstandalone grub-mknetdir grub-menulst2cfg grub-syslinux2cfg grub-glue-efi grub-render-label grub-file '/usr/local/bin'
/usr/bin/mkdir -p '/usr/local/bin'
/usr/bin/install -c grub-kbdcomp '/usr/local/bin'
/usr/bin/mkdir -p '/usr/local/sbin'
  /usr/bin/install -c grub-probe grub-bios-setup grub-sparc64-setup grub-ofpathname grub-macbless grub-install grub-set-bootflag '/usr/local/sbin'
/usr/bin/mkdir -p '/usr/local/sbin'
/usr/bin/install -c grub-mkconfig grub-get-kernel-settings grub-set-default grub-reboot grub-set-password grub-switch-to-blscfg '/usr/local/sbin'
/usr/bin/mkdir -p '/usr/local/etc/grub.d'
/usr/bin/install -c -m 644 util/grub.d/README '/usr/local/etc/grub.d'
/usr/bin/mkdir -p '/usr/local/etc/grub.d'
/usr/bin/install -c 00_header 01_menu_auto_hide 01_users 10_linux 10_linux_bls 20_linux_xen 20_ppc_terminfo 30_os-prober 30_uefi-firmware 40_custom 41_custom '/usr/local/etc/grub.d'
/usr/bin/mkdir -p '/usr/local/lib/grub/i386-pc'
/usr/bin/install -c -m 644 config.h '/usr/local/lib/grub/i386-pc'
/usr/bin/mkdir -p '/usr/local/share/grub'
/usr/bin/install -c -m 644 grub-mkconfig_lib '/usr/local/share/grub'
make[3]: 离开目录“/media/ubuntu/yule/grub2/grub”
make[2]: 离开目录“/media/ubuntu/yule/grub2/grub”
Making install in grub-core
make[2]: 进入目录“/media/ubuntu/yule/grub2/grub/grub-core”
make  install-am
make[3]: 进入目录“/media/ubuntu/yule/grub2/grub/grub-core”
make[4]: 进入目录“/media/ubuntu/yule/grub2/grub/grub-core”
/usr/bin/mkdir -p '/usr/local/lib/grub/i386-pc'
/usr/bin/install -c -m 644 kernel.img boot.img boot_hybrid.img cdboot.img pxeboot.img diskboot.img lnxboot.img lzma_decompress.img gmodule.pl gdb_grub fs.lst command.lst partmap.lst terminal.lst fdt.lst parttool.lst video.lst crypto.lst moddep.lst version.mod disk.mod trig.mod increment.mod cs5536.mod usb.mod usbserial_common.mod usbserial_pl2303.mod usbserial_ftdi.mod usbserial_usbdebug.mod uhci.mod ohci.mod ehci.mod xhci.mod pci.mod nativedisk.mod cmostest.mod cmosdump.mod iorw.mod cbtable.mod cbtime.mod '/usr/local/lib/grub/i386-pc'
/usr/bin/install -c -m 644 cbls.mod cbmemc.mod regexp.mod acpi.mod alias.mod blocklist.mod blscfg.mod boot.mod cat.mod cmp.mod configfile.mod cpuid.mod date.mod dd.mod echo.mod eval.mod extcmd.mod gptsync.mod gptrepair.mod gptprio.mod gpt.mod halt.mod reboot.mod hashsum.mod pgp.mod verifiers.mod hdparm.mod help.mod hexdump.mod getkey.mod keystatus.mod loadenv.mod ls.mod lsmmap.mod lspci.mod lua.mod ini.mod memrw.mod minicmd.mod parttool.mod '/usr/local/lib/grub/i386-pc'
/usr/bin/install -c -m 644 password.mod password_pbkdf2.mod play.mod spkmodem.mod morse.mod probe.mod read.mod search.mod search_fs_file.mod search_fs_uuid.mod search_label.mod search_part_uuid.mod search_part_label.mod search_disk_uuid.mod setpci.mod pcidump.mod sleep.mod smbios.mod terminal.mod test.mod true.mod usbtest.mod videoinfo.mod videotest.mod xnu_uuid.mod dm_nv.mod loopback.mod cryptodisk.mod json.mod afsplitter.mod luks.mod luks2.mod geli.mod lvm.mod ldm.mod mdraid09.mod mdraid09_be.mod mdraid1x.mod diskfilter.mod raid5rec.mod '/usr/local/lib/grub/i386-pc'
/usr/bin/install -c -m 644 raid6rec.mod scsi.mod memdisk.mod ata.mod ahci.mod pata.mod biosdisk.mod usbms.mod efiemu.mod font.mod procfs.mod affs.mod afs.mod bfs.mod zstd.mod btrfs.mod archelp.mod cbfs.mod cpio.mod cpio_be.mod newc.mod odc.mod ext2.mod lynxfs.mod fat.mod fb.mod exfat.mod f2fs.mod fshelp.mod hfs.mod hfsplus.mod hfspluscomp.mod iso9660.mod jfs.mod minix.mod minix2.mod minix3.mod minix_be.mod minix2_be.mod minix3_be.mod '/usr/local/lib/grub/i386-pc'
/usr/bin/install -c -m 644 nilfs2.mod ntfs.mod ntfscomp.mod qnx4.mod qnx6.mod reiserfs.mod romfs.mod sfs.mod squash4.mod tar.mod udf.mod ufs1.mod ufs1_be.mod ufs2.mod xfs.mod zfs.mod zfscrypt.mod zfsinfo.mod macbless.mod pxe.mod gettext.mod gfxmenu.mod gzio.mod offsetio.mod bufio.mod elf.mod crypto.mod pbkdf2.mod relocator.mod datetime.mod setjmp.mod aout.mod bsd.mod plan9.mod linux16.mod ntldr.mod truecrypt.mod freedos.mod pxechain.mod multiboot2.mod '/usr/local/lib/grub/i386-pc'
/usr/bin/install -c -m 644 multiboot.mod linux.mod random.mod macho.mod chain.mod mmap.mod normal.mod part_acorn.mod part_amiga.mod part_apple.mod part_gpt.mod part_msdos.mod part_sun.mod part_plan.mod part_dvh.mod part_bsd.mod part_sunpc.mod part_dfly.mod msdospart.mod at_keyboard.mod ps2mouse.mod gfxterm.mod gfxterm_background.mod serial.mod sendkey.mod terminfo.mod usb_keyboard.mod vga.mod vga_text.mod mda_text.mod video_cirrus.mod video_bochs.mod functional_test.mod exfctest.mod strtoull_test.mod setjmp_test.mod signature_test.mod sleep_test.mod xnu_uuid_test.mod pbkdf2_test.mod '/usr/local/lib/grub/i386-pc'
/usr/bin/install -c -m 644 legacy_password_test.mod div.mod div_test.mod mul_test.mod shift_test.mod cmp_test.mod ctz_test.mod bswap_test.mod videotest_checksum.mod gfxterm_menu.mod cmdline_cat_test.mod bitmap.mod bitmap_scale.mod jpeg.mod png.mod tga.mod bmp.mod vbe.mod video_fb.mod video.mod video_colors.mod datehook.mod net.mod tftp.mod http.mod legacycfg.mod syslinuxcfg.mod test_blockarg.mod xzio.mod lzopio.mod lzmaio.mod testload.mod backtrace.mod lsapm.mod keylayouts.mod priority_queue.mod time.mod adler32.mod commandline.mod crc.mod '/usr/local/lib/grub/i386-pc'
/usr/bin/install -c -m 644 crc64.mod mpi.mod all_video.mod gdb.mod testspeed.mod tr.mod progress.mod file.mod conv.mod vhd.mod fixed_vdi.mod vboot.mod rdmsr.mod wrmsr.mod expr.mod map.mod wimboot.mod ntboot.mod tetris.mod uuid.mod sortlib.mod stat.mod partnew.mod grubfm.mod fatfs.mod nes.mod nttools.mod setkey.mod geometry.mod gcry_arcfour.mod gcry_blowfish.mod gcry_camellia.mod gcry_cast5.mod gcry_crc.mod gcry_des.mod gcry_dsa.mod gcry_idea.mod gcry_md4.mod gcry_md5.mod gcry_rfc2268.mod '/usr/local/lib/grub/i386-pc'
/usr/bin/install -c -m 644 gcry_rijndael.mod gcry_rmd160.mod gcry_rsa.mod gcry_seed.mod gcry_serpent.mod gcry_sha1.mod gcry_sha256.mod gcry_sha512.mod gcry_tiger.mod gcry_twofish.mod gcry_whirlpool.mod modinfo.sh efiemu32.o efiemu64.o '/usr/local/lib/grub/i386-pc'
/usr/bin/mkdir -p '/usr/local/lib/grub/i386-pc'
  /usr/bin/install -c version.module disk.module trig.module increment.module cs5536.module usb.module usbserial_common.module usbserial_pl2303.module usbserial_ftdi.module usbserial_usbdebug.module uhci.module ohci.module ehci.module xhci.module pci.module nativedisk.module cmostest.module cmosdump.module iorw.module cbtable.module cbtime.module cbls.module cbmemc.module regexp.module acpi.module alias.module blocklist.module blscfg.module boot.module cat.module cmp.module configfile.module cpuid.module date.module dd.module echo.module eval.module extcmd.module gptsync.module gptrepair.module gptprio.module gpt.module halt.module reboot.module hashsum.module pgp.module verifiers.module hdparm.module help.module hexdump.module getkey.module keystatus.module loadenv.module ls.module lsmmap.module lspci.module lua.module ini.module memrw.module minicmd.module parttool.module password.module password_pbkdf2.module play.module spkmodem.module morse.module probe.module read.module search.module search_fs_file.module search_fs_uuid.module search_label.module search_part_uuid.module search_part_label.module search_disk_uuid.module setpci.module pcidump.module sleep.module smbios.module terminal.module test.module true.module usbtest.module videoinfo.module videotest.module xnu_uuid.module dm_nv.module loopback.module cryptodisk.module json.module afsplitter.module luks.module luks2.module geli.module lvm.module ldm.module mdraid09.module mdraid09_be.module mdraid1x.module diskfilter.module raid5rec.module raid6rec.module scsi.module memdisk.module ata.module ahci.module pata.module biosdisk.module usbms.module efiemu.module font.module procfs.module affs.module afs.module bfs.module zstd.module btrfs.module archelp.module cbfs.module cpio.module cpio_be.module newc.module odc.module ext2.module lynxfs.module fat.module fb.module exfat.module f2fs.module fshelp.module hfs.module hfsplus.module hfspluscomp.module iso9660.module jfs.module minix.module minix2.module minix3.module minix_be.module minix2_be.module minix3_be.module nilfs2.module ntfs.module ntfscomp.module qnx4.module qnx6.module reiserfs.module romfs.module sfs.module squash4.module tar.module udf.module ufs1.module ufs1_be.module ufs2.module xfs.module zfs.module zfscrypt.module zfsinfo.module macbless.module pxe.module gettext.module gfxmenu.module gzio.module offsetio.module bufio.module elf.module crypto.module pbkdf2.module relocator.module datetime.module setjmp.module aout.module bsd.module plan9.module linux16.module ntldr.module truecrypt.module freedos.module pxechain.module multiboot2.module multiboot.module linux.module random.module macho.module chain.module mmap.module normal.module part_acorn.module part_amiga.module part_apple.module part_gpt.module part_msdos.module part_sun.module part_plan.module part_dvh.module part_bsd.module part_sunpc.module part_dfly.module msdospart.module at_keyboard.module ps2mouse.module gfxterm.module gfxterm_background.module serial.module sendkey.module terminfo.module usb_keyboard.module vga.module vga_text.module mda_text.module video_cirrus.module video_bochs.module functional_test.module exfctest.module strtoull_test.module setjmp_test.module signature_test.module sleep_test.module xnu_uuid_test.module pbkdf2_test.module legacy_password_test.module div.module div_test.module mul_test.module shift_test.module cmp_test.module ctz_test.module bswap_test.module videotest_checksum.module gfxterm_menu.module cmdline_cat_test.module bitmap.module bitmap_scale.module jpeg.module png.module tga.module bmp.module vbe.module video_fb.module video.module video_colors.module datehook.module net.module tftp.module http.module legacycfg.module syslinuxcfg.module test_blockarg.module xzio.module lzopio.module lzmaio.module testload.module backtrace.module lsapm.module keylayouts.module priority_queue.module time.module adler32.module commandline.module crc.module crc64.module mpi.module all_video.module gdb.module testspeed.module tr.module progress.module file.module conv.module vhd.module fixed_vdi.module vboot.module rdmsr.module wrmsr.module expr.module map.module wimboot.module ntboot.module tetris.module uuid.module sortlib.module stat.module partnew.module grubfm.module fatfs.module nes.module nttools.module setkey.module geometry.module gcry_arcfour.module gcry_blowfish.module gcry_camellia.module gcry_cast5.module gcry_crc.module gcry_des.module gcry_dsa.module gcry_idea.module gcry_md4.module gcry_md5.module gcry_rfc2268.module gcry_rijndael.module gcry_rmd160.module gcry_rsa.module gcry_seed.module gcry_serpent.module gcry_sha1.module gcry_sha256.module gcry_sha512.module gcry_tiger.module gcry_twofish.module gcry_whirlpool.module kernel.exec boot.image boot_hybrid.image cdboot.image pxeboot.image diskboot.image lnxboot.image lzma_decompress.image '/usr/local/lib/grub/i386-pc'
make[4]: 离开目录“/media/ubuntu/yule/grub2/grub/grub-core”
make[3]: 离开目录“/media/ubuntu/yule/grub2/grub/grub-core”
make[2]: 离开目录“/media/ubuntu/yule/grub2/grub/grub-core”
Making install in po
make[2]: 进入目录“/media/ubuntu/yule/grub2/grub/po”
if test "grub" = "gettext-tools"; then \
  /usr/bin/mkdir -p /usr/local/share/gettext/po; \
  for file in Makefile.in.in remove-potcdate.sin quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot swiss.sed Rules-swiss piglatin.sed en@piglatin.header insert-header.sin Rules-piglatin Makevars.template; do \
    /usr/bin/install -c -m 644 ./$file \

点评

github actions里面的环境就是 ubuntu 20.04,装这些包是完全没有报错的,你是不是对系统做了什么? https://github.com/grub4dos/grub/runs/2773563931  详情 回复 发表于 2021-6-8 20:10
回复

使用道具 举报

12#
发表于 2021-6-8 20:10:53 | 只看该作者
本帖最后由 wintoflash 于 2021-6-8 20:13 编辑
liuzhaoyzz 发表于 2021-6-8 20:07
make install:真是复杂!

root@ubuntu:/media/ubuntu/yule/grub2/grub# make install

github actions里面的环境就是 ubuntu 20.04,装这些包是完全没有报错的,你是不是对系统做了什么?
https://github.com/grub4dos/grub/runs/2773563931
  1. Operating System
  2.   Ubuntu
  3.   20.04.2
  4.   LTS
  5. Virtual Environment
  6.   Environment: ubuntu-20.04
  7.   Version: 20210531.0
复制代码
  1. Run sudo -E apt-get -y install build-essential python iasl lzop unifont autopoint bison flex gettext gcc-aarch64-linux-gnu gcc-arm-linux-gnueabi gcc-mingw-w64
  2.   sudo -E apt-get -y install build-essential python iasl lzop unifont autopoint bison flex gettext gcc-aarch64-linux-gnu gcc-arm-linux-gnueabi gcc-mingw-w64
  3.   shell: /usr/bin/bash -e {0}
  4. Reading package lists...
  5. Building dependency tree...
  6. Reading state information...
  7. bison is already the newest version (2:3.5.1+dfsg-1).
  8. flex is already the newest version (2.6.4-6.2).
  9. build-essential is already the newest version (12.8ubuntu1.1).
  10. The following additional packages will be installed:
  11.   binutils-aarch64-linux-gnu binutils-arm-linux-gnueabi
  12.   binutils-mingw-w64-i686 binutils-mingw-w64-x86-64 cpp-9-aarch64-linux-gnu
  13.   cpp-9-arm-linux-gnueabi cpp-aarch64-linux-gnu cpp-arm-linux-gnueabi
  14.   gcc-10-cross-base gcc-9-aarch64-linux-gnu gcc-9-aarch64-linux-gnu-base
  15.   gcc-9-arm-linux-gnueabi gcc-9-arm-linux-gnueabi-base gcc-9-cross-base
  16.   gcc-mingw-w64-base gcc-mingw-w64-i686 gcc-mingw-w64-x86-64
  17.   libasan5-arm64-cross libasan5-armel-cross libatomic1-arm64-cross
  18.   libatomic1-armel-cross libc6-arm64-cross libc6-armel-cross
  19.   libc6-dev-arm64-cross libc6-dev-armel-cross libcroco3
  20.   libgcc-9-dev-arm64-cross libgcc-9-dev-armel-cross libgcc-s1-arm64-cross
  21.   libgcc-s1-armel-cross libgomp1-arm64-cross libgomp1-armel-cross
  22.   libitm1-arm64-cross liblsan0-arm64-cross libstdc++6-arm64-cross
  23.   libstdc++6-armel-cross libtsan0-arm64-cross libubsan1-arm64-cross
  24.   libubsan1-armel-cross linux-libc-dev-arm64-cross linux-libc-dev-armel-cross
  25.   mingw-w64-common mingw-w64-i686-dev mingw-w64-x86-64-dev psf-unifont
  26.   ttf-unifont xfonts-encodings xfonts-unifont xfonts-utils
  27. Suggested packages:
  28.   binutils-doc gcc-9-locales cpp-doc gcc-9-doc
  29.   gcc-9-multilib-arm-linux-gnueabi manpages-dev gdb-aarch64-linux-gnu gcc-doc
  30.   gdb-arm-linux-gnueabi gettext-doc libasprintf-dev libgettextpo-dev wine
  31.   wine64 unifont-bin
  32. The following packages will be REMOVED:
  33.   python-is-python3
  34. The following NEW packages will be installed:
  35.   acpica-tools autopoint binutils-aarch64-linux-gnu binutils-arm-linux-gnueabi
  36.   binutils-mingw-w64-i686 binutils-mingw-w64-x86-64 cpp-9-aarch64-linux-gnu
  37.   cpp-9-arm-linux-gnueabi cpp-aarch64-linux-gnu cpp-arm-linux-gnueabi
  38.   gcc-10-cross-base gcc-9-aarch64-linux-gnu gcc-9-aarch64-linux-gnu-base
  39.   gcc-9-arm-linux-gnueabi gcc-9-arm-linux-gnueabi-base gcc-9-cross-base
  40.   gcc-aarch64-linux-gnu gcc-arm-linux-gnueabi gcc-mingw-w64 gcc-mingw-w64-base
  41.   gcc-mingw-w64-i686 gcc-mingw-w64-x86-64 gettext libasan5-arm64-cross
  42.   libasan5-armel-cross libatomic1-arm64-cross libatomic1-armel-cross
  43.   libc6-arm64-cross libc6-armel-cross libc6-dev-arm64-cross
  44.   libc6-dev-armel-cross libcroco3 libgcc-9-dev-arm64-cross
  45.   libgcc-9-dev-armel-cross libgcc-s1-arm64-cross libgcc-s1-armel-cross
  46.   libgomp1-arm64-cross libgomp1-armel-cross libitm1-arm64-cross
  47.   liblsan0-arm64-cross libstdc++6-arm64-cross libstdc++6-armel-cross
  48.   libtsan0-arm64-cross libubsan1-arm64-cross libubsan1-armel-cross
  49.   linux-libc-dev-arm64-cross linux-libc-dev-armel-cross lzop mingw-w64-common
  50.   mingw-w64-i686-dev mingw-w64-x86-64-dev psf-unifont python-is-python2
  51.   ttf-unifont unifont xfonts-encodings xfonts-unifont xfonts-utils
  52. 0 upgraded, 58 newly installed, 1 to remove and 13 not upgraded.
  53. Need to get 147 MB of archives.
  54. After this operation, 773 MB of additional disk space will be used.
  55. Get:1 http://azure.archive.ubuntu.com/ubuntu focal/universe amd64 acpica-tools amd64 20190509-1 [868 kB]
  56. Get:2 http://azure.archive.ubuntu.com/ubuntu focal/main amd64 autopoint all 0.19.8.1-10build1 [412 kB]
  57. Get:3 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 gcc-9-aarch64-linux-gnu-base amd64 9.3.0-17ubuntu1~20.04cross2 [19.3 kB]
  58. Get:4 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 cpp-9-aarch64-linux-gnu amd64 9.3.0-17ubuntu1~20.04cross2 [6660 kB]
  59. Get:5 http://azure.archive.ubuntu.com/ubuntu focal-updates/universe amd64 gcc-9-arm-linux-gnueabi-base amd64 9.3.0-17ubuntu1~20.04cross2 [19.3 kB]
  60. Get:6 http://azure.archive.ubuntu.com/ubuntu focal-updates/universe amd64 cpp-9-arm-linux-gnueabi amd64 9.3.0-17ubuntu1~20.04cross2 [6929 kB]
  61. Get:7 http://azure.archive.ubuntu.com/ubuntu focal/main amd64 cpp-aarch64-linux-gnu amd64 4:9.3.0-1ubuntu2 [3432 B]
  62. Get:8 http://azure.archive.ubuntu.com/ubuntu focal/universe amd64 cpp-arm-linux-gnueabi amd64 4:9.3.0-1ubuntu2 [3424 B]
  63. Get:9 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 gcc-10-cross-base all 10.2.0-5ubuntu1~20.04cross1 [15.1 kB]
  64. Get:10 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 binutils-aarch64-linux-gnu amd64 2.34-6ubuntu1.1 [2775 kB]
  65. Get:11 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 gcc-9-cross-base all 9.3.0-17ubuntu1~20.04cross2 [14.6 kB]
  66. Get:12 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 libc6-arm64-cross all 2.31-0ubuntu9.2cross1 [1041 kB]
  67. Get:13 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 libgcc-s1-arm64-cross all 10.2.0-5ubuntu1~20.04cross1 [34.6 kB]
  68. Get:14 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 libgomp1-arm64-cross all 10.2.0-5ubuntu1~20.04cross1 [92.1 kB]
  69. Get:15 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 libitm1-arm64-cross all 10.2.0-5ubuntu1~20.04cross1 [23.8 kB]
  70. Get:16 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 libatomic1-arm64-cross all 10.2.0-5ubuntu1~20.04cross1 [9592 B]
  71. Get:17 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 libasan5-arm64-cross all 9.3.0-17ubuntu1~20.04cross2 [359 kB]
  72. Get:18 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 liblsan0-arm64-cross all 10.2.0-5ubuntu1~20.04cross1 [129 kB]
  73. Get:19 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 libtsan0-arm64-cross all 10.2.0-5ubuntu1~20.04cross1 [296 kB]
  74. Get:20 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 libstdc++6-arm64-cross all 10.2.0-5ubuntu1~20.04cross1 [424 kB]
  75. Get:21 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 libubsan1-arm64-cross all 10.2.0-5ubuntu1~20.04cross1 [126 kB]
  76. Get:22 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 libgcc-9-dev-arm64-cross all 9.3.0-17ubuntu1~20.04cross2 [912 kB]
  77. Get:23 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 gcc-9-aarch64-linux-gnu amd64 9.3.0-17ubuntu1~20.04cross2 [7392 kB]
  78. Get:24 http://azure.archive.ubuntu.com/ubuntu focal-updates/universe amd64 binutils-arm-linux-gnueabi amd64 2.34-6ubuntu1.1 [2735 kB]
  79. Get:25 http://azure.archive.ubuntu.com/ubuntu focal-updates/universe amd64 libc6-armel-cross all 2.31-0ubuntu9.2cross1 [925 kB]
  80. Get:26 http://azure.archive.ubuntu.com/ubuntu focal-updates/universe amd64 libgcc-s1-armel-cross all 10.2.0-5ubuntu1~20.04cross1 [38.5 kB]
  81. Get:27 http://azure.archive.ubuntu.com/ubuntu focal-updates/universe amd64 libgomp1-armel-cross all 10.2.0-5ubuntu1~20.04cross1 [89.2 kB]
  82. Get:28 http://azure.archive.ubuntu.com/ubuntu focal-updates/universe amd64 libatomic1-armel-cross all 10.2.0-5ubuntu1~20.04cross1 [9396 B]
  83. Get:29 http://azure.archive.ubuntu.com/ubuntu focal-updates/universe amd64 libasan5-armel-cross all 9.3.0-17ubuntu1~20.04cross2 [359 kB]
  84. Get:30 http://azure.archive.ubuntu.com/ubuntu focal-updates/universe amd64 libstdc++6-armel-cross all 10.2.0-5ubuntu1~20.04cross1 [388 kB]
  85. Get:31 http://azure.archive.ubuntu.com/ubuntu focal-updates/universe amd64 libubsan1-armel-cross all 10.2.0-5ubuntu1~20.04cross1 [119 kB]
  86. Get:32 http://azure.archive.ubuntu.com/ubuntu focal-updates/universe amd64 libgcc-9-dev-armel-cross all 9.3.0-17ubuntu1~20.04cross2 [665 kB]
  87. Get:33 http://azure.archive.ubuntu.com/ubuntu focal-updates/universe amd64 gcc-9-arm-linux-gnueabi amd64 9.3.0-17ubuntu1~20.04cross2 [7637 kB]
  88. Get:34 http://azure.archive.ubuntu.com/ubuntu focal/main amd64 gcc-aarch64-linux-gnu amd64 4:9.3.0-1ubuntu2 [1420 B]
  89. Get:35 http://azure.archive.ubuntu.com/ubuntu focal/universe amd64 gcc-arm-linux-gnueabi amd64 4:9.3.0-1ubuntu2 [1420 B]
  90. Get:36 http://azure.archive.ubuntu.com/ubuntu focal/main amd64 libcroco3 amd64 0.6.13-1 [82.5 kB]
  91. Get:37 http://azure.archive.ubuntu.com/ubuntu focal/main amd64 gettext amd64 0.19.8.1-10build1 [895 kB]
  92. Get:38 http://azure.archive.ubuntu.com/ubuntu focal/universe amd64 lzop amd64 1.04-1 [82.8 kB]
  93. Get:39 http://azure.archive.ubuntu.com/ubuntu focal/main amd64 psf-unifont all 1:12.0.01-2 [19.1 kB]
  94. Get:40 http://azure.archive.ubuntu.com/ubuntu focal/universe amd64 python-is-python2 all 2.7.17-4 [2496 B]
  95. Get:41 http://azure.archive.ubuntu.com/ubuntu focal/main amd64 ttf-unifont all 1:12.0.01-2 [3137 kB]
  96. Get:42 http://azure.archive.ubuntu.com/ubuntu focal/main amd64 xfonts-encodings all 1:1.0.5-0ubuntu1 [573 kB]
  97. Get:43 http://azure.archive.ubuntu.com/ubuntu focal/main amd64 xfonts-utils amd64 1:7.7+6 [91.5 kB]
  98. Get:44 http://azure.archive.ubuntu.com/ubuntu focal/main amd64 xfonts-unifont all 1:12.0.01-2 [2693 kB]
  99. Get:45 http://azure.archive.ubuntu.com/ubuntu focal/main amd64 unifont all 1:12.0.01-2 [1478 kB]
  100. Get:46 http://azure.archive.ubuntu.com/ubuntu focal/universe amd64 binutils-mingw-w64-i686 amd64 2.34-5ubuntu1+8.8 [2383 kB]
  101. Get:47 http://azure.archive.ubuntu.com/ubuntu focal/universe amd64 binutils-mingw-w64-x86-64 amd64 2.34-5ubuntu1+8.8 [2732 kB]
  102. Get:48 http://azure.archive.ubuntu.com/ubuntu focal/universe amd64 mingw-w64-common all 7.0.0-2 [4855 kB]
  103. Get:49 http://azure.archive.ubuntu.com/ubuntu focal/universe amd64 mingw-w64-i686-dev all 7.0.0-2 [2669 kB]
  104. Get:50 http://azure.archive.ubuntu.com/ubuntu focal/universe amd64 gcc-mingw-w64-base amd64 9.3.0-7ubuntu1+22~exp1ubuntu4 [179 kB]
  105. Get:51 http://azure.archive.ubuntu.com/ubuntu focal/universe amd64 gcc-mingw-w64-i686 amd64 9.3.0-7ubuntu1+22~exp1ubuntu4 [36.8 MB]
  106. Get:52 http://azure.archive.ubuntu.com/ubuntu focal/universe amd64 mingw-w64-x86-64-dev all 7.0.0-2 [3557 kB]
  107. Get:53 http://azure.archive.ubuntu.com/ubuntu focal/universe amd64 gcc-mingw-w64-x86-64 amd64 9.3.0-7ubuntu1+22~exp1ubuntu4 [37.0 MB]
  108. Get:54 http://azure.archive.ubuntu.com/ubuntu focal/universe amd64 gcc-mingw-w64 all 9.3.0-7ubuntu1+22~exp1ubuntu4 [178 kB]
  109. Get:55 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 linux-libc-dev-arm64-cross all 5.4.0-59.65cross1 [1052 kB]
  110. Get:56 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 libc6-dev-arm64-cross all 2.31-0ubuntu9.2cross1 [2041 kB]
  111. Get:57 http://azure.archive.ubuntu.com/ubuntu focal-updates/universe amd64 linux-libc-dev-armel-cross all 5.4.0-59.65cross1 [1054 kB]
  112. Get:58 http://azure.archive.ubuntu.com/ubuntu focal-updates/universe amd64 libc6-dev-armel-cross all 2.31-0ubuntu9.2cross1 [1933 kB]
  113. Fetched 147 MB in 3s (54.7 MB/s)
  114. (Reading database ... 100%
  115. (Reading database ... 230729 files and directories currently installed.)
  116. Removing python-is-python3 (3.8.2-4) ...
  117. Selecting previously unselected package acpica-tools.
  118. (Reading database ... 100%
  119. (Reading database ... 230725 files and directories currently installed.)
  120. Preparing to unpack .../00-acpica-tools_20190509-1_amd64.deb ...
  121. Unpacking acpica-tools (20190509-1) ...
  122. Selecting previously unselected package autopoint.
  123. Preparing to unpack .../01-autopoint_0.19.8.1-10build1_all.deb ...
  124. Unpacking autopoint (0.19.8.1-10build1) ...
  125. Selecting previously unselected package gcc-9-aarch64-linux-gnu-base:amd64.
  126. Preparing to unpack .../02-gcc-9-aarch64-linux-gnu-base_9.3.0-17ubuntu1~20.04cross2_amd64.deb ...
  127. Unpacking gcc-9-aarch64-linux-gnu-base:amd64 (9.3.0-17ubuntu1~20.04cross2) ...
  128. Selecting previously unselected package cpp-9-aarch64-linux-gnu.
  129. Preparing to unpack .../03-cpp-9-aarch64-linux-gnu_9.3.0-17ubuntu1~20.04cross2_amd64.deb ...
  130. Unpacking cpp-9-aarch64-linux-gnu (9.3.0-17ubuntu1~20.04cross2) ...
  131. Selecting previously unselected package gcc-9-arm-linux-gnueabi-base:amd64.
  132. Preparing to unpack .../04-gcc-9-arm-linux-gnueabi-base_9.3.0-17ubuntu1~20.04cross2_amd64.deb ...
  133. Unpacking gcc-9-arm-linux-gnueabi-base:amd64 (9.3.0-17ubuntu1~20.04cross2) ...
  134. Selecting previously unselected package cpp-9-arm-linux-gnueabi.
  135. Preparing to unpack .../05-cpp-9-arm-linux-gnueabi_9.3.0-17ubuntu1~20.04cross2_amd64.deb ...
  136. Unpacking cpp-9-arm-linux-gnueabi (9.3.0-17ubuntu1~20.04cross2) ...
  137. Selecting previously unselected package cpp-aarch64-linux-gnu.
  138. Preparing to unpack .../06-cpp-aarch64-linux-gnu_4%3a9.3.0-1ubuntu2_amd64.deb ...
  139. Unpacking cpp-aarch64-linux-gnu (4:9.3.0-1ubuntu2) ...
  140. Selecting previously unselected package cpp-arm-linux-gnueabi.
  141. Preparing to unpack .../07-cpp-arm-linux-gnueabi_4%3a9.3.0-1ubuntu2_amd64.deb ...
  142. Unpacking cpp-arm-linux-gnueabi (4:9.3.0-1ubuntu2) ...
  143. Selecting previously unselected package gcc-10-cross-base.
  144. Preparing to unpack .../08-gcc-10-cross-base_10.2.0-5ubuntu1~20.04cross1_all.deb ...
  145. Unpacking gcc-10-cross-base (10.2.0-5ubuntu1~20.04cross1) ...
  146. Selecting previously unselected package binutils-aarch64-linux-gnu.
  147. Preparing to unpack .../09-binutils-aarch64-linux-gnu_2.34-6ubuntu1.1_amd64.deb ...
  148. Unpacking binutils-aarch64-linux-gnu (2.34-6ubuntu1.1) ...
  149. Selecting previously unselected package gcc-9-cross-base.
  150. Preparing to unpack .../10-gcc-9-cross-base_9.3.0-17ubuntu1~20.04cross2_all.deb ...
  151. Unpacking gcc-9-cross-base (9.3.0-17ubuntu1~20.04cross2) ...
  152. Selecting previously unselected package libc6-arm64-cross.
  153. Preparing to unpack .../11-libc6-arm64-cross_2.31-0ubuntu9.2cross1_all.deb ...
  154. Unpacking libc6-arm64-cross (2.31-0ubuntu9.2cross1) ...
  155. Selecting previously unselected package libgcc-s1-arm64-cross.
  156. Preparing to unpack .../12-libgcc-s1-arm64-cross_10.2.0-5ubuntu1~20.04cross1_all.deb ...
  157. Unpacking libgcc-s1-arm64-cross (10.2.0-5ubuntu1~20.04cross1) ...
  158. Selecting previously unselected package libgomp1-arm64-cross.
  159. Preparing to unpack .../13-libgomp1-arm64-cross_10.2.0-5ubuntu1~20.04cross1_all.deb ...
  160. Unpacking libgomp1-arm64-cross (10.2.0-5ubuntu1~20.04cross1) ...
  161. Selecting previously unselected package libitm1-arm64-cross.
  162. Preparing to unpack .../14-libitm1-arm64-cross_10.2.0-5ubuntu1~20.04cross1_all.deb ...
  163. Unpacking libitm1-arm64-cross (10.2.0-5ubuntu1~20.04cross1) ...
  164. Selecting previously unselected package libatomic1-arm64-cross.
  165. Preparing to unpack .../15-libatomic1-arm64-cross_10.2.0-5ubuntu1~20.04cross1_all.deb ...
  166. Unpacking libatomic1-arm64-cross (10.2.0-5ubuntu1~20.04cross1) ...
  167. Selecting previously unselected package libasan5-arm64-cross.
  168. Preparing to unpack .../16-libasan5-arm64-cross_9.3.0-17ubuntu1~20.04cross2_all.deb ...
  169. Unpacking libasan5-arm64-cross (9.3.0-17ubuntu1~20.04cross2) ...
  170. Selecting previously unselected package liblsan0-arm64-cross.
  171. Preparing to unpack .../17-liblsan0-arm64-cross_10.2.0-5ubuntu1~20.04cross1_all.deb ...
  172. Unpacking liblsan0-arm64-cross (10.2.0-5ubuntu1~20.04cross1) ...
  173. Selecting previously unselected package libtsan0-arm64-cross.
  174. Preparing to unpack .../18-libtsan0-arm64-cross_10.2.0-5ubuntu1~20.04cross1_all.deb ...
  175. Unpacking libtsan0-arm64-cross (10.2.0-5ubuntu1~20.04cross1) ...
  176. Selecting previously unselected package libstdc++6-arm64-cross.
  177. Preparing to unpack .../19-libstdc++6-arm64-cross_10.2.0-5ubuntu1~20.04cross1_all.deb ...
  178. Unpacking libstdc++6-arm64-cross (10.2.0-5ubuntu1~20.04cross1) ...
  179. Selecting previously unselected package libubsan1-arm64-cross.
  180. Preparing to unpack .../20-libubsan1-arm64-cross_10.2.0-5ubuntu1~20.04cross1_all.deb ...
  181. Unpacking libubsan1-arm64-cross (10.2.0-5ubuntu1~20.04cross1) ...
  182. Selecting previously unselected package libgcc-9-dev-arm64-cross.
  183. Preparing to unpack .../21-libgcc-9-dev-arm64-cross_9.3.0-17ubuntu1~20.04cross2_all.deb ...
  184. Unpacking libgcc-9-dev-arm64-cross (9.3.0-17ubuntu1~20.04cross2) ...
  185. Selecting previously unselected package gcc-9-aarch64-linux-gnu.
  186. Preparing to unpack .../22-gcc-9-aarch64-linux-gnu_9.3.0-17ubuntu1~20.04cross2_amd64.deb ...
  187. Unpacking gcc-9-aarch64-linux-gnu (9.3.0-17ubuntu1~20.04cross2) ...
  188. Selecting previously unselected package binutils-arm-linux-gnueabi.
  189. Preparing to unpack .../23-binutils-arm-linux-gnueabi_2.34-6ubuntu1.1_amd64.deb ...
  190. Unpacking binutils-arm-linux-gnueabi (2.34-6ubuntu1.1) ...
  191. Selecting previously unselected package libc6-armel-cross.
  192. Preparing to unpack .../24-libc6-armel-cross_2.31-0ubuntu9.2cross1_all.deb ...
  193. Unpacking libc6-armel-cross (2.31-0ubuntu9.2cross1) ...
  194. Selecting previously unselected package libgcc-s1-armel-cross.
  195. Preparing to unpack .../25-libgcc-s1-armel-cross_10.2.0-5ubuntu1~20.04cross1_all.deb ...
  196. Unpacking libgcc-s1-armel-cross (10.2.0-5ubuntu1~20.04cross1) ...
  197. Selecting previously unselected package libgomp1-armel-cross.
  198. Preparing to unpack .../26-libgomp1-armel-cross_10.2.0-5ubuntu1~20.04cross1_all.deb ...
  199. Unpacking libgomp1-armel-cross (10.2.0-5ubuntu1~20.04cross1) ...
  200. Selecting previously unselected package libatomic1-armel-cross.
  201. Preparing to unpack .../27-libatomic1-armel-cross_10.2.0-5ubuntu1~20.04cross1_all.deb ...
  202. Unpacking libatomic1-armel-cross (10.2.0-5ubuntu1~20.04cross1) ...
  203. Selecting previously unselected package libasan5-armel-cross.
  204. Preparing to unpack .../28-libasan5-armel-cross_9.3.0-17ubuntu1~20.04cross2_all.deb ...
  205. Unpacking libasan5-armel-cross (9.3.0-17ubuntu1~20.04cross2) ...
  206. Selecting previously unselected package libstdc++6-armel-cross.
  207. Preparing to unpack .../29-libstdc++6-armel-cross_10.2.0-5ubuntu1~20.04cross1_all.deb ...
  208. Unpacking libstdc++6-armel-cross (10.2.0-5ubuntu1~20.04cross1) ...
  209. Selecting previously unselected package libubsan1-armel-cross.
  210. Preparing to unpack .../30-libubsan1-armel-cross_10.2.0-5ubuntu1~20.04cross1_all.deb ...
  211. Unpacking libubsan1-armel-cross (10.2.0-5ubuntu1~20.04cross1) ...
  212. Selecting previously unselected package libgcc-9-dev-armel-cross.
  213. Preparing to unpack .../31-libgcc-9-dev-armel-cross_9.3.0-17ubuntu1~20.04cross2_all.deb ...
  214. Unpacking libgcc-9-dev-armel-cross (9.3.0-17ubuntu1~20.04cross2) ...
  215. Selecting previously unselected package gcc-9-arm-linux-gnueabi.
  216. Preparing to unpack .../32-gcc-9-arm-linux-gnueabi_9.3.0-17ubuntu1~20.04cross2_amd64.deb ...
  217. Unpacking gcc-9-arm-linux-gnueabi (9.3.0-17ubuntu1~20.04cross2) ...
  218. Selecting previously unselected package gcc-aarch64-linux-gnu.
  219. Preparing to unpack .../33-gcc-aarch64-linux-gnu_4%3a9.3.0-1ubuntu2_amd64.deb ...
  220. Unpacking gcc-aarch64-linux-gnu (4:9.3.0-1ubuntu2) ...
  221. Selecting previously unselected package gcc-arm-linux-gnueabi.
  222. Preparing to unpack .../34-gcc-arm-linux-gnueabi_4%3a9.3.0-1ubuntu2_amd64.deb ...
  223. Unpacking gcc-arm-linux-gnueabi (4:9.3.0-1ubuntu2) ...
  224. Selecting previously unselected package libcroco3:amd64.
  225. Preparing to unpack .../35-libcroco3_0.6.13-1_amd64.deb ...
  226. Unpacking libcroco3:amd64 (0.6.13-1) ...
  227. Selecting previously unselected package gettext.
  228. Preparing to unpack .../36-gettext_0.19.8.1-10build1_amd64.deb ...
  229. Unpacking gettext (0.19.8.1-10build1) ...
  230. Selecting previously unselected package lzop.
  231. Preparing to unpack .../37-lzop_1.04-1_amd64.deb ...
  232. Unpacking lzop (1.04-1) ...
  233. Selecting previously unselected package psf-unifont.
  234. Preparing to unpack .../38-psf-unifont_1%3a12.0.01-2_all.deb ...
  235. Unpacking psf-unifont (1:12.0.01-2) ...
  236. Selecting previously unselected package python-is-python2.
  237. Preparing to unpack .../39-python-is-python2_2.7.17-4_all.deb ...
  238. Unpacking python-is-python2 (2.7.17-4) ...
  239. Selecting previously unselected package ttf-unifont.
  240. Preparing to unpack .../40-ttf-unifont_1%3a12.0.01-2_all.deb ...
  241. Unpacking ttf-unifont (1:12.0.01-2) ...
  242. Selecting previously unselected package xfonts-encodings.
  243. Preparing to unpack .../41-xfonts-encodings_1%3a1.0.5-0ubuntu1_all.deb ...
  244. Unpacking xfonts-encodings (1:1.0.5-0ubuntu1) ...
  245. Selecting previously unselected package xfonts-utils.
  246. Preparing to unpack .../42-xfonts-utils_1%3a7.7+6_amd64.deb ...
  247. Unpacking xfonts-utils (1:7.7+6) ...
  248. Selecting previously unselected package xfonts-unifont.
  249. Preparing to unpack .../43-xfonts-unifont_1%3a12.0.01-2_all.deb ...
  250. Unpacking xfonts-unifont (1:12.0.01-2) ...
  251. Selecting previously unselected package unifont.
  252. Preparing to unpack .../44-unifont_1%3a12.0.01-2_all.deb ...
  253. Unpacking unifont (1:12.0.01-2) ...
  254. Selecting previously unselected package binutils-mingw-w64-i686.
  255. Preparing to unpack .../45-binutils-mingw-w64-i686_2.34-5ubuntu1+8.8_amd64.deb ...
  256. Unpacking binutils-mingw-w64-i686 (2.34-5ubuntu1+8.8) ...
  257. Selecting previously unselected package binutils-mingw-w64-x86-64.
  258. Preparing to unpack .../46-binutils-mingw-w64-x86-64_2.34-5ubuntu1+8.8_amd64.deb ...
  259. Unpacking binutils-mingw-w64-x86-64 (2.34-5ubuntu1+8.8) ...
  260. Selecting previously unselected package mingw-w64-common.
  261. Preparing to unpack .../47-mingw-w64-common_7.0.0-2_all.deb ...
  262. Unpacking mingw-w64-common (7.0.0-2) ...
  263. Selecting previously unselected package mingw-w64-i686-dev.
  264. Preparing to unpack .../48-mingw-w64-i686-dev_7.0.0-2_all.deb ...
  265. Unpacking mingw-w64-i686-dev (7.0.0-2) ...
  266. Selecting previously unselected package gcc-mingw-w64-base.
  267. Preparing to unpack .../49-gcc-mingw-w64-base_9.3.0-7ubuntu1+22~exp1ubuntu4_amd64.deb ...
  268. Unpacking gcc-mingw-w64-base (9.3.0-7ubuntu1+22~exp1ubuntu4) ...
  269. Selecting previously unselected package gcc-mingw-w64-i686.
  270. Preparing to unpack .../50-gcc-mingw-w64-i686_9.3.0-7ubuntu1+22~exp1ubuntu4_amd64.deb ...
  271. Unpacking gcc-mingw-w64-i686 (9.3.0-7ubuntu1+22~exp1ubuntu4) ...
  272. Selecting previously unselected package mingw-w64-x86-64-dev.
  273. Preparing to unpack .../51-mingw-w64-x86-64-dev_7.0.0-2_all.deb ...
  274. Unpacking mingw-w64-x86-64-dev (7.0.0-2) ...
  275. Selecting previously unselected package gcc-mingw-w64-x86-64.
  276. Preparing to unpack .../52-gcc-mingw-w64-x86-64_9.3.0-7ubuntu1+22~exp1ubuntu4_amd64.deb ...
  277. Unpacking gcc-mingw-w64-x86-64 (9.3.0-7ubuntu1+22~exp1ubuntu4) ...
  278. Selecting previously unselected package gcc-mingw-w64.
  279. Preparing to unpack .../53-gcc-mingw-w64_9.3.0-7ubuntu1+22~exp1ubuntu4_all.deb ...
  280. Unpacking gcc-mingw-w64 (9.3.0-7ubuntu1+22~exp1ubuntu4) ...
  281. Selecting previously unselected package linux-libc-dev-arm64-cross.
  282. Preparing to unpack .../54-linux-libc-dev-arm64-cross_5.4.0-59.65cross1_all.deb ...
  283. Unpacking linux-libc-dev-arm64-cross (5.4.0-59.65cross1) ...
  284. Selecting previously unselected package libc6-dev-arm64-cross.
  285. Preparing to unpack .../55-libc6-dev-arm64-cross_2.31-0ubuntu9.2cross1_all.deb ...
  286. Unpacking libc6-dev-arm64-cross (2.31-0ubuntu9.2cross1) ...
  287. Selecting previously unselected package linux-libc-dev-armel-cross.
  288. Preparing to unpack .../56-linux-libc-dev-armel-cross_5.4.0-59.65cross1_all.deb ...
  289. Unpacking linux-libc-dev-armel-cross (5.4.0-59.65cross1) ...
  290. Selecting previously unselected package libc6-dev-armel-cross.
  291. Preparing to unpack .../57-libc6-dev-armel-cross_2.31-0ubuntu9.2cross1_all.deb ...
  292. Unpacking libc6-dev-armel-cross (2.31-0ubuntu9.2cross1) ...
  293. Setting up binutils-arm-linux-gnueabi (2.34-6ubuntu1.1) ...
  294. Setting up binutils-mingw-w64-x86-64 (2.34-5ubuntu1+8.8) ...
  295. Setting up acpica-tools (20190509-1) ...
  296. update-alternatives: using /usr/bin/acpixtract-acpica to provide /usr/bin/acpixtract (acpixtract) in auto mode
  297. update-alternatives: using /usr/bin/acpidump-acpica to provide /usr/bin/acpidump (acpidump) in auto mode
  298. Setting up ttf-unifont (1:12.0.01-2) ...
  299. Setting up gcc-9-aarch64-linux-gnu-base:amd64 (9.3.0-17ubuntu1~20.04cross2) ...
  300. Setting up binutils-aarch64-linux-gnu (2.34-6ubuntu1.1) ...
  301. Setting up cpp-9-aarch64-linux-gnu (9.3.0-17ubuntu1~20.04cross2) ...
  302. Setting up gcc-mingw-w64-base (9.3.0-7ubuntu1+22~exp1ubuntu4) ...
  303. Setting up linux-libc-dev-armel-cross (5.4.0-59.65cross1) ...
  304. Setting up gcc-9-arm-linux-gnueabi-base:amd64 (9.3.0-17ubuntu1~20.04cross2) ...
  305. Setting up cpp-aarch64-linux-gnu (4:9.3.0-1ubuntu2) ...
  306. Setting up xfonts-encodings (1:1.0.5-0ubuntu1) ...
  307. Setting up libc6-arm64-cross (2.31-0ubuntu9.2cross1) ...
  308. Setting up cpp-9-arm-linux-gnueabi (9.3.0-17ubuntu1~20.04cross2) ...
  309. Setting up autopoint (0.19.8.1-10build1) ...
  310. Setting up libcroco3:amd64 (0.6.13-1) ...
  311. Setting up gcc-9-cross-base (9.3.0-17ubuntu1~20.04cross2) ...
  312. Setting up binutils-mingw-w64-i686 (2.34-5ubuntu1+8.8) ...
  313. Setting up gcc-10-cross-base (10.2.0-5ubuntu1~20.04cross1) ...
  314. Setting up linux-libc-dev-arm64-cross (5.4.0-59.65cross1) ...
  315. Setting up libc6-armel-cross (2.31-0ubuntu9.2cross1) ...
  316. Setting up lzop (1.04-1) ...
  317. Setting up mingw-w64-common (7.0.0-2) ...
  318. Setting up libc6-dev-armel-cross (2.31-0ubuntu9.2cross1) ...
  319. Setting up psf-unifont (1:12.0.01-2) ...
  320. Setting up python-is-python2 (2.7.17-4) ...
  321. Setting up libgcc-s1-arm64-cross (10.2.0-5ubuntu1~20.04cross1) ...
  322. Setting up libatomic1-arm64-cross (10.2.0-5ubuntu1~20.04cross1) ...
  323. Setting up mingw-w64-x86-64-dev (7.0.0-2) ...
  324. Setting up liblsan0-arm64-cross (10.2.0-5ubuntu1~20.04cross1) ...
  325. Setting up libgomp1-arm64-cross (10.2.0-5ubuntu1~20.04cross1) ...
  326. Setting up gettext (0.19.8.1-10build1) ...
  327. Setting up libgomp1-armel-cross (10.2.0-5ubuntu1~20.04cross1) ...
  328. Setting up libgcc-s1-armel-cross (10.2.0-5ubuntu1~20.04cross1) ...
  329. Setting up libtsan0-arm64-cross (10.2.0-5ubuntu1~20.04cross1) ...
  330. Setting up libc6-dev-arm64-cross (2.31-0ubuntu9.2cross1) ...
  331. Setting up libstdc++6-armel-cross (10.2.0-5ubuntu1~20.04cross1) ...
  332. Setting up xfonts-utils (1:7.7+6) ...
  333. Setting up libatomic1-armel-cross (10.2.0-5ubuntu1~20.04cross1) ...
  334. Setting up libasan5-arm64-cross (9.3.0-17ubuntu1~20.04cross2) ...
  335. Setting up libstdc++6-arm64-cross (10.2.0-5ubuntu1~20.04cross1) ...
  336. Setting up libasan5-armel-cross (9.3.0-17ubuntu1~20.04cross2) ...
  337. Setting up cpp-arm-linux-gnueabi (4:9.3.0-1ubuntu2) ...
  338. Setting up gcc-mingw-w64-x86-64 (9.3.0-7ubuntu1+22~exp1ubuntu4) ...
  339. update-alternatives: using /usr/bin/x86_64-w64-mingw32-gcc-posix to provide /usr/bin/x86_64-w64-mingw32-gcc (x86_64-w64-mingw32-gcc) in auto mode
  340. update-alternatives: using /usr/bin/x86_64-w64-mingw32-gcc-win32 to provide /usr/bin/x86_64-w64-mingw32-gcc (x86_64-w64-mingw32-gcc) in auto mode
  341. Setting up libubsan1-armel-cross (10.2.0-5ubuntu1~20.04cross1) ...
  342. Setting up libitm1-arm64-cross (10.2.0-5ubuntu1~20.04cross1) ...
  343. Setting up xfonts-unifont (1:12.0.01-2) ...
  344. Setting up libgcc-9-dev-armel-cross (9.3.0-17ubuntu1~20.04cross2) ...
  345. Setting up mingw-w64-i686-dev (7.0.0-2) ...
  346. Setting up libubsan1-arm64-cross (10.2.0-5ubuntu1~20.04cross1) ...
  347. Setting up libgcc-9-dev-arm64-cross (9.3.0-17ubuntu1~20.04cross2) ...
  348. Setting up gcc-9-arm-linux-gnueabi (9.3.0-17ubuntu1~20.04cross2) ...
  349. Setting up gcc-mingw-w64-i686 (9.3.0-7ubuntu1+22~exp1ubuntu4) ...
  350. update-alternatives: using /usr/bin/i686-w64-mingw32-gcc-posix to provide /usr/bin/i686-w64-mingw32-gcc (i686-w64-mingw32-gcc) in auto mode
  351. update-alternatives: using /usr/bin/i686-w64-mingw32-gcc-win32 to provide /usr/bin/i686-w64-mingw32-gcc (i686-w64-mingw32-gcc) in auto mode
  352. Setting up unifont (1:12.0.01-2) ...
  353. Setting up gcc-9-aarch64-linux-gnu (9.3.0-17ubuntu1~20.04cross2) ...
  354. Setting up gcc-arm-linux-gnueabi (4:9.3.0-1ubuntu2) ...
  355. Setting up gcc-mingw-w64 (9.3.0-7ubuntu1+22~exp1ubuntu4) ...
  356. Setting up gcc-aarch64-linux-gnu (4:9.3.0-1ubuntu2) ...
  357. Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
  358. Processing triggers for man-db (2.9.1-1) ...
  359. Processing triggers for install-info (6.7.0.dfsg.2-5) ...
  360. Processing triggers for fontconfig (2.13.1-2ubuntu3) ...
复制代码


点评

我也担心把系统搞乱了,所以从清华大学开源镜像站下载的ubuntu20.10LTS版本,从零开始搞的,我没有动镜像里面的东西,整体启动的。 ubuntu版本:64位20.10LTS ubuntu@ubuntu:/media/ubuntu/备份/bak/grub2/grub-la  详情 回复 发表于 2021-6-8 20:23
回复

使用道具 举报

13#
 楼主| 发表于 2021-6-8 20:13:30 | 只看该作者
ubuntu20.10里面,大致需要这些包:
sudo apt-get install gcc gcc-multilib gcc-doc g++ make bison gettext flex pkg-config glibc-doc libdevmapper-dev libpciaccess-dev libusb-dev libfreetype-dev libfreetype6 libfreetype6-dev   qemu autoconf automake libtool autopoint cd-boot-images-amd64 gawk git build-essential lzop gcc-aarch64-linux-gnu python-is-python3
回复

使用道具 举报

14#
发表于 2021-6-8 20:15:18 | 只看该作者
这么长,看的我头都大了。。。。

点评

呵呵,100万行c语言,外加4万行汇编,可不是开玩笑的,编译输出能不长吗?  详情 回复 发表于 2021-6-8 20:24
回复

使用道具 举报

15#
 楼主| 发表于 2021-6-8 20:23:08 | 只看该作者
本帖最后由 liuzhaoyzz 于 2021-6-8 20:42 编辑
wintoflash 发表于 2021-6-8 20:10
github actions里面的环境就是 ubuntu 20.04,装这些包是完全没有报错的,你是不是对系统做了什么?
htt ...

我也担心是系统搞乱了的原因,所以从清华大学开源镜像站下载的ubuntu20.10LTS版本,直接以liveCD形式启动的
https://mirrors.tuna.tsinghua.edu.cn/ubuntu-releases/20.10/

https://mirrors.tuna.tsinghua.ed ... 0-desktop-amd64.iso
从零开始搞的,我没有动镜像里面的东西,整体启动的。
我只是在区域和语言设置里面,添加了中文输入法。

ubuntu版本:64位20.10LTS
ubuntu@ubuntu:/media/ubuntu/备份/bak/grub2/grub-latest-source2021-06-08$ lsb_release -a
No LSB modules are available.
Distributor ID:        Ubuntu
Description:        Ubuntu 20.10
Release:        20.10
Codename:        groovy

你的是20.04,版本号不同,是不是软件源适配的依赖包名字不同?比如你的里面,python依赖包就是python,我这边是python-is-python3,没有python这个包名字。

ubuntu@ubuntu:~$ su
密码:
root@ubuntu:/home/ubuntu# apt-get install python
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
没有可用的软件包 python,但是它被其它的软件包引用了。
这可能意味着这个缺失的软件包可能已被废弃,
或者只能在其他发布源中找到
然而下列软件包会取代它:
  python-is-python3

E: 软件包 python 没有可安装候选


回复

使用道具 举报

16#
 楼主| 发表于 2021-6-8 20:24:29 | 只看该作者
caocaofff 发表于 2021-6-8 20:15
这么长,看的我头都大了。。。。

呵呵,100万行c语言,外加4万行汇编,可不是开玩笑的,编译输出能不长吗?
回复

使用道具 举报

17#
 楼主| 发表于 2021-6-8 20:41:05 | 只看该作者
slore 发表于 2021-6-8 18:33
没搞个docker编译容器?直接git clone代码build多好。

不会搞啊,我只是瞎折腾两下子罢了。
docker技术看网上说的用在服务器挺多的,不懂。
回复

使用道具 举报

18#
 楼主| 发表于 2021-6-8 20:52:43 | 只看该作者
本帖最后由 liuzhaoyzz 于 2021-6-8 20:57 编辑
wintoflash 发表于 2021-6-8 19:45
你 python 都没装上。
我这边和github上安装 iasl,都可以自动重定向到 acpica-tools。

root@ubuntu:/media/ubuntu/yule/grub2/grub# apt-cache search iasl
我用iasl作关键字查过了的,真心没有。

unifont这个包不重要,ubuntu 20.04 是有这个包的,为啥你那没有?

关于unifont,之前我都查过了,看着install里面的要求查的,就是字体吧,感觉不会影响编译。没有叫做unifont的包,或者不在ubuntu官方源里面,是不是gnu的包?只有两个叫做fonts-arphic-ukai 和fonts-arphic-uming 的包,看拼音似乎是楷体和明体字体。
root@ubuntu:/media/ubuntu/yule/grub2/grub# apt-cache search unifont
fonts-arphic-ukai - "AR PL UKai" Chinese Unicode TrueType font collection Kaiti style
fonts-arphic-uming - "AR PL UMing" Chinese Unicode TrueType font collection Mingti style
root@ubuntu:/media/ubuntu/yule/grub2/grub#

apt-get update之后也没有。

点评

[attachimg]481381[/attachimg] 在live cd里面确实没有,安装到硬盘上之后就有了。 unifont 和 iasl 也是这样。 [attachimg]481382[/attachimg]  详情 回复 发表于 2021-6-8 21:10
回复

使用道具 举报

19#
发表于 2021-6-8 21:10:09 | 只看该作者
liuzhaoyzz 发表于 2021-6-8 20:52
root@ubuntu:/media/ubuntu/yule/grub2/grub# apt-cache search iasl
我用iasl作关键字查过了的,真心 ...



在live cd里面确实没有,安装到硬盘上之后就有了。
unifont 和 iasl 也是这样。

点评

没想到还有这个区别,liveCD和安装后的系统,源还不一样? 我刚才又试了下,在windows里面下载的grub2源代码,编译也通过了,不是权限的问题,就是python-is-python3包缺乏的原因。  详情 回复 发表于 2021-6-8 21:16
回复

使用道具 举报

20#
 楼主| 发表于 2021-6-8 21:16:39 | 只看该作者
wintoflash 发表于 2021-6-8 21:10
在live cd里面确实没有,安装到硬盘上之后就有了。
unifont 和 iasl 也是这样。

没想到还有这个区别,liveCD和安装后的系统,源还不一样?

我刚才又试了下,在windows里面下载的grub2源代码,编译也通过了,不是权限的问题,就是python-is-python3包缺乏的原因。
回复

使用道具 举报

21#
发表于 2021-6-9 22:21:28 | 只看该作者
我记得grub2在wsl上都编译成功的啊

点评

WSL被我干掉了,看了大家的用法,似乎在WSL下面编译也挺好用。  详情 回复 发表于 2021-6-11 06:30
回复

使用道具 举报

22#
 楼主| 发表于 2021-6-11 06:30:09 来自手机 | 只看该作者
江南一根葱 发表于 2021-6-9 22:21
我记得grub2在wsl上都编译成功的啊

WSL被我干掉了,看了大家的用法,似乎在WSL下面编译也挺好用。        
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2024-11-24 15:07

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表