文章 ID: 000074285 内容类型: 错误讯息 上次审核日期: 2021 年 08 月 28 日

构建导入式项目时出现错误:"没有制定目标的规则"

环境

  • 英特尔® Quartus® II 订阅版
  • Windows

    BUILT IN - ARTICLE INTRO SECOND COMPONENT

    关键问题

    说明

    如果已使用版本创建应用程序或库项目 9.1 SP2 或更早(使用 GCC 3 工具链),您导入它 至版本 10.0 Nios II SBT,用于使用 GCC 4 工具链Eclipse, 您可能会看到显示的内部版本错误 。

    GCC 4 中的构建错误
    make all Info: Building ../hw_bsp make --no-print-directory -C ../hw_bsp make[1]: *** No rule to make target '/cygdrive/c/tmp/verilog_niosII_stratixII_2s60_standard/software/hw_bsp/alt_sys_init.c', needed by 'all'. Stop. make: *** [../hw_bsp-recurs-make-lib] Error 2

    如果将 GCC 3 项目导入到 面向使用 GCC 3 工具链Eclipse的版本 10.0 SBT,以及 稍后将工具链更改为 MinGW Nios II GCC4

    此问题仅影响运行 Windows 操作的平台 系统。

    解决方法

    要避免此错误,请按照以下步骤操作:

    • 编辑应用程序项目和库项目 makefiles 并添加插入的代码,如以下所示。
    • 右键单击 BSP 项目,指向Nios II,以及 单击Generate BSP。
    • 清理并重建应用程序和库项目。
    GCC 4 的 Makefile 校正 构建错误
    #------------------------------------------------------------------------------ # The adjust-path macro # # If COMSPEC is defined, Make is launched from Windows through # Cygwin. This adjust-path macro will call \'cygpath -u\' on all # paths to ensure they are readable by Make. # # If COMSPEC is not defined, Make is launched from *nix, and no adjustment # is necessary #------------------------------------------------------------------------------ # Beginning of inserted code ifndef COMSPEC ifdef ComSpec COMSPEC = endif # ComSpec endif # !COMSPEC #end of inserted code ifdef COMSPEC adjust-path = adjust-path-mixed = else adjust-path = adjust-path-mixed = endif

    或者,安装Altera完整设计套件版本 11.0 或更高版本。

    相关产品

    本文适用于 1 产品

    英特尔® 可编程设备

    本页面上的内容是原始英文内容的人工翻译与计算机翻译的组合。我们提供此内容是为了您的便利并且仅供参考,未必完整或准确。如果本页面的英文版与翻译版之间存在任何冲突,应以英文版为准。 查看此页面的英语版本。