learningOS开源操作系统社区
  • 首页
  • 训练营
  • 明星学员
  • 共建单位
  • 项目实习
  • 问答论坛
登录
    Copyright © 2024 opencamp.ai All rights reserved.
    Lab2 Makefile是不是写错了?
    匿名2023/07/31 19:53:11提问
      练习纠错student
    622

    lab2 Makefile开头的一段

    ifndef GCCPREFIX
    GCCPREFIX := $(shell if i386-ucore-elf-objdump -i 2>&1 | grep '^elf32-i386$$' >/dev/null 2>&1; \
    	then echo 'i386-ucore-elf-'; \
    	elif objdump -i 2>&1 | grep 'elf32-i386' >/dev/null 2>&1; \
    	then echo ''; \
    	else echo "***" 1>&2; \
    	echo "*** Error: Couldn't find an i386-ucore-elf version of GCC/binutils." 1>&2; \
    	echo "*** Is the directory with i386-ucore-elf-gcc in your PATH?" 1>&2; \
    	echo "*** If your i386-ucore-elf toolchain is installed with a command" 1>&2; \
    	echo "*** prefix other than 'i386-ucore-elf-', set your GCCPREFIX" 1>&2; \
    	echo "*** environment variable to that prefix and run 'make' again." 1>&2; \
    	echo "*** To turn off this error, run 'gmake GCCPREFIX= ...'." 1>&2; \
    	echo "***" 1>&2; exit 1; fi)
    endif

    是不是笔误?难道有一个叫做

    i386-ucore-elf-objdump

    的软件包?反正我把这一段用lab1的替换就好了。

    希望contributor能够尽快修复这个bug。

    回答(1)
    即可发布评论
      推荐问答
        Simple Empty
        暂无数据