Article ID: 000074285 Content Type: Error Messages Last Reviewed: 09/13/2011

Error Building Imported Project: 'No rule to make target'

Environment

  • Quartus® II Subscription Edition
  • All

    BUILT IN - ARTICLE INTRO SECOND COMPONENT

    Critical Issue

    Description

    If an application or library project is created with version 9.1 SP2 or earlier (using the GCC 3 toolchain), and you import it to the version 10.0 Nios II SBT for Eclipse using the GCC 4 toolchain, you might see the build error shown in .

    Build Error in 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

    This error can also happen if you import a GCC 3 project to the version 10.0 SBT for Eclipse using the GCC 3 toolchain, and later change the toolchain to MinGW Nios II GCC4.

    This issue only affects platforms running the Windows operating system.

    Resolution

    To avoid this error, follow these steps:

    • Edit the application project and library project makefiles and add the inserted code as shown in .
    • Right-click the BSP project, point to Nios II and click Generate BSP.
    • Clean and rebuild the application and library projects.
    Makefile Correction for GCC 4 Build Error
    #------------------------------------------------------------------------------ # 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

    Alternatively, install the Altera Complete Design Suite version 11.0 or later.

    Related Products

    This article applies to 1 products

    Intel® Programmable Devices