Bitbake:笨拙的分支战士失败binutils-native do_compile

时间:2019-06-20 02:44:14

标签: embedded-linux yocto bitbake

您好,我正在分支 warrior 上使用poky编译系统,以尝试为Altera Cyclone V设备(我相信是Cortex A-9体系结构)内核(也使用poky编译)为Linux构建文件系统

无论出于何种原因,构建系统都无法构建binutils。

我看到以下错误

ERROR: binutils-native-2.32.0-r0 do_compile: oe_runmake failed
ERROR: binutils-native-2.32.0-r0 do_compile: Function failed: do_compile (log file is located at /home/jfrye/Documents/Altera/cyclone_v_linux/poky/build/tmp/work/x86_64-linux/binutils-native/2.32.0-r0/temp/log.do_compile.12499)

日志的适用部分如下所示

...
| make[2]: Leaving directory '/home/jfrye/Documents/Altera/cyclone_v_linux/poky/build/tmp/work/x86_64-linux/binutils-native/2.32.0-r0/git/build.x86_64-linux.x86_64-linux/binutils'
| make[2]: Entering directory '/home/jfrye/Documents/Altera/cyclone_v_linux/poky/build/tmp/work/x86_64-linux/binutils-native/2.32.0-r0/git/build.x86_64-linux.x86_64-linux/ld'
| make  all-recursive
| make[3]: Entering directory '/home/jfrye/Documents/Altera/cyclone_v_linux/poky/build/tmp/work/x86_64-linux/binutils-native/2.32.0-r0/git/build.x86_64-linux.x86_64-linux/ld'
| Making all in po
| make[4]: Entering directory '/home/jfrye/Documents/Altera/cyclone_v_linux/poky/build/tmp/work/x86_64-linux/binutils-native/2.32.0-r0/git/build.x86_64-linux.x86_64-linux/ld/po'
| make[4]: *** No rule to make target 'all'.  Stop.
| make[4]: Leaving directory '/home/jfrye/Documents/Altera/cyclone_v_linux/poky/build/tmp/work/x86_64-linux/binutils-native/2.32.0-r0/git/build.x86_64-linux.x86_64-linux/ld/po'
| Makefile:1769: recipe for target 'all-recursive' failed
| make[3]: *** [all-recursive] Error 1
| make[3]: Leaving directory '/home/jfrye/Documents/Altera/cyclone_v_linux/poky/build/tmp/work/x86_64-linux/binutils-native/2.32.0-r0/git/build.x86_64-linux.x86_64-linux/ld'
| Makefile:1050: recipe for target 'all' failed
| make[2]: *** [all] Error 2
| make[2]: Leaving directory '/home/jfrye/Documents/Altera/cyclone_v_linux/poky/build/tmp/work/x86_64-linux/binutils-native/2.32.0-r0/git/build.x86_64-linux.x86_64-linux/ld'
| Makefile:7138: recipe for target 'all-ld' failed
| make[1]: *** [all-ld] Error 2
| make[1]: Leaving directory '/home/jfrye/Documents/Altera/cyclone_v_linux/poky/build/tmp/work/x86_64-linux/binutils-native/2.32.0-r0/git/build.x86_64-linux.x86_64-linux'
| Makefile:849: recipe for target 'all' failed
| make: *** [all] Error 2
| ERROR: oe_runmake failed

在ld / po中似乎找不到目标“全部”。我在该目录的Makefile.in中寻找了这样的目标,这是我能找到的最接近的东西。

all: all-no

all-yes: $(CATALOGS) # $(PACKAGE).pot
all-no:

$(srcdir)/$(PACKAGE).pot: $(SRC-POTFILES) $(BLD-POTFILES)
    $(XGETTEXT) --default-domain=$(PACKAGE) --directory=$(top_srcdir) \
      --add-comments --keyword=_ --keyword=N_ \
      --msgid-bugs-address=bug-binutils@gnu.org \
      --files-from=$(srcdir)/SRC-POTFILES.in
    $(XGETTEXT) --default-domain=$(PACKAGE) --directory=.. \
      --add-comments --keyword=_ --keyword=N_ \
      --join-existing \
      --msgid-bugs-address=bug-binutils@gnu.org \
      --files-from=$(srcdir)/BLD-POTFILES.in
    rm -f $(srcdir)/$(PACKAGE).pot
    mv $(PACKAGE).po $(srcdir)/$(PACKAGE).pot

$(srcdir)/cat-id-tbl.c: stamp-cat-id; @:
$(srcdir)/stamp-cat-id: $(PACKAGE).pot
    rm -f cat-id-tbl.tmp
    sed -f ../intl/po2tbl.sed $(srcdir)/$(PACKAGE).pot \
        | sed -e "s/@PACKAGE NAME@/$(PACKAGE)/" > cat-id-tbl.tmp
    if cmp -s cat-id-tbl.tmp $(srcdir)/cat-id-tbl.c; then \
      rm cat-id-tbl.tmp; \
    else \
      echo cat-id-tbl.c changed; \
      rm -f $(srcdir)/cat-id-tbl.c; \
      mv cat-id-tbl.tmp $(srcdir)/cat-id-tbl.c; \
    fi
    cd $(srcdir) && rm -f stamp-cat-id && echo timestamp > stamp-cat-id

几乎不可能解密。我知道这个工具正在尝试创建一个非常复杂的软件,但是我想知道是否有人在这里,如果他们不知道如何解决它,至少知道我可以在哪里提出这个问题。 >

0 个答案:

没有答案