Article ID: 000078392 Content Type: Install & Setup Last Reviewed: 01/01/2015

Why does building the SOC preloader produce the "Makefile:200 *** target pattern contains no '%'. Stop." error on Windows PCs?

Environment

  • Quartus® II Subscription Edition
  • BUILT IN - ARTICLE INTRO SECOND COMPONENT
    Description

    The default version of GNU Make that comes with the SoC Embedded Design Suite (EDS) 13.1 (and is in the path set in the SoC EDS 13.1 Command Shell) is 3.82.90.  This version will cause the following error message while building the preloader on a Windows PC:

     
    Makefile:200 *** target pattern contains no '%'. Stop.

    More information on Generating and Compiling the preloader can be found here: http://www.rocketboards.org/foswiki/Documentation/GSRD131Preloader

     

    To check which version of make that is installed and in the path on your system:

    • run or source the SoC EDS 13.1 Command Shell
    • run "make -v" at the command prompt

    If make reports the following version, then the installed version should be updated (see below for instructions on how to update):


    $ make -v
    GNU Make 3.82.90
    Built for i686-pc-cygwin
    Copyright (C) 2010  Free Software Foundation, Inc.
    License GPLv3 : GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.

     

     

     

    Resolution

    Updating the used verson of make to version 3.81 will allow the preloader to be built correctly.  There are several options to update the used version of make.  If the Nios II EDS 13.1 is installed, it installs version 3.81 of GNU make.  To point to this version from within the SoC EDS 13.1 Command Shell:

    • run or source the SoC EDS 13.1 Command Shell
    • At the command prompt, run "export PATH=/../nios2eds/bin/gnu/H-i686-mingw32/bin:/build2/install/mongodb/bin:/usr/lib64/qt-3.3/bin:/usr/NX/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/jchang/bin"

    Alternatively, if the environment variable is set:

    • At the SoC EDS 13.1 Command Shell prompt, run "export PATH=/bin/gnu/H-i686-mingw32/bin:/build2/install/mongodb/bin:/usr/lib64/qt-3.3/bin:/usr/NX/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/jchang/bin"

    Also, the NIOS II 13.1 Command Shell can also be sourced from within the SoC EDS Command Shell:

    • At the SoC EDS 13.1 Command Shell prompt, run "/nios2_command_shell.sh"

    The 14.0 version of DS-5 also installs GNU Make version 3.81, and this can be added to the PATH environment variable instead:

    • At the SoC EDS 13.1 Command Shell prompt, run "export PATH=<path to ds-5 install dir>/bin:/build2/install/mongodb/bin:/usr/lib64/qt-3.3/bin:/usr/NX/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/jchang/bin"

    The Cygwin GNU Make version 3.81 is also included here (attached as make.exe).  This can be downloaded to your PC and its path prepended to the PATH environment variable as well and used to make the preloader.

     

    To check the version of make is added to the system PATH, run "make -v" again.  If make reports the following version (3.81), the correct version of make is installed. 
     


    $ make -v
    GNU Make 3.81
    Copyright (C) 2006  Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.
    There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
    PARTICULAR PURPOSE.
    This program built for i686-w64-mingw32

    Related Products

    This article applies to 1 products

    Cyclone® V GX FPGA