This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TDA2EVM5777: Building the Test Application Executable through GMAKE

Part Number: TDA2EVM5777

Tool/software: Code Composer Studio

Hi All,

I am following "TI Deep learning Library on TDAx User Guide" to build the Test Application Executable through GMAKE

in 

3.3.4 Building the Test Application Executable through GMAKE
The sample test application that accompanies TIDL module will run in TI’s Code Composer Studio development environment. To build and run the sample test application through gmake, follow these steps:
1) Verify that you have installed code generation tools as mentioned.
2) Verify that you have installed XDAIS as mentioned
3) Verify that appropriate environment variables have been set as discussed in this above sections.
a. Environment variables can be either directly set by updating the system environment variables or by editing the config.mk file in makerules folder
4) Build the sample test application project

a. For DSP
modules\ti_dl\test> gmake CORE=dsp all
b. For EVE
modules\ti_dl\test> gmake CORE=eve all

when I cmd: gmake CORE=dsp all

i got message as below:

H:\REL.TIDL.01.01.03.00\modules\ti_dl\test>C:\ti\ccsv6\utils\bin\gmake CORE=dsp all
/usr/bin/sh: C:\ti\ccsv5\utils\cygwinmkdir: No such file or directory
H:/REL.TIDL.01.01.03.00/makerules/rules.mk:375: recipe for target '.\out\\.gitignore' failed
gmake: *** [.\out\\.gitignore] Error 127

what can i do?

BR,

Frankle Yeh

  • Hi Frankle,

    can you open REL.TIDL.01.01.03.00/makerules/config.mk and modify the definition of:

    UTILS_PATH          ?="C:\ti\ccsv5\utils\cygwin"

    to match your CCS installation path (I think it should be "C:\ti\ccsv6\utils\cygwin").

    Regards,

    Yordan

  • Hi Yordan,

    Thanks for your reply,

    I have modified REL.TIDL.01.01.03.00/makerules/config.mk

    " UTILS_PATH          ?="C:\ti\ccsv6\utils\cygwin" 

    and command with error:

    c:\PROCESSOR_SDK_VISION_03_07_00_00\ti_components\algorithms\REL.TIDL.01.01.03.00\modules\ti_dl\test>C:\ti\ccsv6\utils\bin\gmake CORE=dsp all
    /usr/bin/sh: c:\ti\ccsv6\utils\cygwinmkdir: No such file or directory
    c:/PROCESSOR_SDK_VISION_03_07_00_00/ti_components/algorithms/REL.TIDL.01.01.03.00/makerules/rules.mk:375: recipe for target '.\out\\.gitignore' failed
    gmake: *** [.\out\\.gitignore] Error 127

     

    I have checked that c:\ti\ccsv6\utils\cygwin is exist.

    PS: I am working on windows 10, Is windows 10 friendly for TIDL sample building ?
    or ubuntu 16.04 will easier?

    BR,

    Frankle Yeh 

  • Hi Frankle,

    for some reasons the backslash in this variable assignment disappeared "MKDIR_CMD = $(UTILS_PATH)\mkdir -p $(1)". Can you try to set UTILS_PATH like this then:

    UTILS_PATH          ?="C:\ti\ccsv6\utils\cygwin\"

    You should be able to build on both Windows and Linux, although if you use cmd on Windows it could cause some problems, 'git bash' could be used under Windows to avoid those problems.

    Regards,

    Yordan

  • Hi Yordan,

    I have modified "UTILS_PATH?="C:\ti\ccsv6\utils\cygwin\", i got message as below,

    C:\PROCESSOR_SDK_VISION_03_07_00_00\ti_components\algorithms\REL.TIDL.01.01.03.00\modules\ti_dl\test>C:\ti\ccsv6\utils\bin\gmake CORE=dsp all

    /usr/bin/sh: -c: line 0: unexpected EOF while looking for matching `"'
    /usr/bin/sh: -c: line 1: syntax error: unexpected end of file
    C:/PROCESSOR_SDK_VISION_03_07_00_00/ti_components/algorithms/REL.TIDL.01.01.03.00/makerules/rules.mk:375: recipe for target '.\out\\.gitignore' failed
    gmake: *** [.\out\\.gitignore] Error 1

    In the other hand, i try on "git bash", first i got "nothing to be done for all" by use "/c/ti/ccsv6/utils/bin/gmake CORE=dsp all",
    and i try  gmake clean, and got message as below:

    Frankle_Yeh@frankle_yeh MINGW64 /c/PROCESSOR_SDK_VISION_03_07_00_00/ti_components/algorithms/REL.TIDL.01.01.03.00/modules/ti_dl/test
    $ /c/ti/ccsv6/utils/bin/gmake CORE=dsp all
    gmake: Nothing to be done for 'all'.

    Frankle_Yeh@frankle_yeh MINGW64 /c/PROCESSOR_SDK_VISION_03_07_00_00/ti_components/algorithms/REL.TIDL.01.01.03.00/modules/ti_dl/test
    $ /c/ti/ccsv6/utils/bin/gmake clean
    /usr/bin/sh: -c: line 0: unexpected EOF while looking for matching `"'
    /usr/bin/sh: -c: line 1: syntax error: unexpected end of file
    C:/PROCESSOR_SDK_VISION_03_07_00_00/ti_components/algorithms/REL.TIDL.01.01.03.00/makerules/rules.mk:486: recipe for target 'clean' failed
    gmake: [clean] Error 1 (ignored)

    BR,

    Frankle Yeh

  • Hi Frankle,

    can you try to use "gmake" binary which is part of XDC package (PROCESSOR_SDK_VISION_03_07_00_00/ti_components/os_tools/windows/xdctools_3_32_01_22_core/gmake.exe). You can check how to set the PATH variable in section "3.3 Building the application" in PROCESSOR_SDK_VISION_03_07_00_00/vision_sdk/docs/UserGuides/VisionSDK_UserGuide_TDA2xx.pdf.

    Regards,

    Yordan

  • Hi Yordan,

    Thanks for your reply,

    I set Path as below command in windows:

    C:\PROCESSOR_SDK_VISION_03_07_00_00\ti_components\algorithms\REL.TIDL.01.01.03.00\modules\ti_dl\test>set PATH=%PATH%;C:\PROCESSOR_SDK_VISION_03_07_00_00\ti_components\os_tools\windows\xdctools_3_32_01_22_core

    and conform PATH value:

    C:\PROCESSOR_SDK_VISION_03_07_00_00\ti_components\algorithms\REL.TIDL.01.01.03.00\modules\ti_dl\test>echo %PATH%
    C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Qualcomm\QDART\\bin;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\AMD\ATI.ACE\Core-Static;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Users\frankle_yeh\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Git\cmd;C:\Program Files\Git\usr\bin;C:\Program Files\JetBrains\PyCharm Community Edition 2019.1\bin;;C:\PROCESSOR_SDK_VISION_03_07_00_00\ti_components\os_tools\windows\xdctools_3_32_01_22_core

    then command:gmake CORE=dsp all get below message:

    C:\PROCESSOR_SDK_VISION_03_07_00_00\ti_components\algorithms\REL.TIDL.01.01.03.00\modules\ti_dl\test>gmake CORE=dsp all
    C:/Users/FRANKL~1/AppData/Local/Temp/make9176-1.sh: line 1: unexpected EOF while looking for matching `"'
    C:/Users/FRANKL~1/AppData/Local/Temp/make9176-1.sh: line 2: syntax error: unexpected end of file
    gmake: *** [.\out\\.gitignore] Error 2

     

    BR,

    Frankle Yeh

     

  • Hi Frankle,

    can you check the modifications you made to .mk files in PROCESSOR_SDK_VISION_03_07_00_00\ti_components\algorithms\REL.TIDL.01.01.03.00\makerules and see if there is a mismatch between opening and closing quotes (").

    Regards,

    Yordan

  • Hi Yordan,

    I check config.mk and rules.mk in \makerules folder, and have no found mismatch ("),
    and I attach those file in zip.

    I try to deliberately make mismatch (") in last in rules.mk, like below:

    ##############################################################


    define INCLUDE_DEPEND
    -include $(1).dep
    endef

    $(foreach obj,$(OFILES),$(eval $(call INCLUDE_DEPEND,$(basename $(obj)))))
    "

    C:\PROCESSOR_SDK_VISION_03_07_00_00\ti_components\algorithms\REL.TIDL.01.01.03.00\modules\ti_dl\test>gmake CORE=dsp all
    C:/PROCESSOR_SDK_VISION_03_07_00_00/ti_components/algorithms/REL.TIDL.01.01.03.00/makerules/rules.mk:614: *** missing separator. Stop.

    and I got error message:

    C:\PROCESSOR_SDK_VISION_03_07_00_00\ti_components\algorithms\REL.TIDL.01.01.03.00\modules\ti_dl\test>gmake CORE=dsp all
    C:/PROCESSOR_SDK_VISION_03_07_00_00/ti_components/algorithms/REL.TIDL.01.01.03.00/makerules/rules.mk:614: *** missing separator. Stop.

    it is difference from Previous Error Message:

    C:\PROCESSOR_SDK_VISION_03_07_00_00\ti_components\algorithms\REL.TIDL.01.01.03.00\modules\ti_dl\test>gmake CORE=dsp all
    "c:\ti\ccsv6\utils\cygwin\"\mkdir -p .\out\\
    C:/Users/FRANKL~1/AppData/Local/Temp/make15308-1.sh: line 1: unexpected EOF while looking for matching `"'
    C:/Users/FRANKL~1/AppData/Local/Temp/make15308-1.sh: line 2: syntax error: unexpected end of file

    So maybe there is no mismatch (") in config.mk and rules.mk

    BR,

    Frankle Yeh

    5415.makerules.zip

  • Hi Frankle,

    sorry for the delayed response. I checked your config.mk and could not find something suspicious. Can you just try to remove "-s from DMAUTILS_PATH and ALGFRAMEWORK_PATH definitions, like:

    DMAUTILS_PATH       ?=/datalocal1/ti_components/algorithms/REL.DMAUTILS.00.08.00.02/dmautils
    ALGFRAMEWORK_PATH   ?=a0393754@bangvideoapps01:/datalocal1/ti_components/algorithms/REL.ALGFRAMEWORK.02.08.00.00/algframework

    they are used as a part of CFLAGS variable which should be command line arguments of the compiler invocation and it might becomes a filepath with " in the middle causing this error.

    Regards,

    Yordan

  • Hi Yordan,

    Thanks for your reply,

    Unfortunately , when i removed "-s from DMAUTILS_PATH and ALGFRAMEWORK_PATH definitions, I still got error message  as :

    C:\PROCESSOR_SDK_VISION_03_07_00_00\ti_components\algorithms\REL.TIDL.01.01.03.00\modules\ti_dl\test>gmake CORE=eve all
    "c:\ti\ccsv6\utils\cygwin\"\mkdir -p .\out\\
    C:/Users/FRANKL~1/AppData/Local/Temp/make14180-1.sh: line 1: unexpected EOF while looking for matching `"'
    C:/Users/FRANKL~1/AppData/Local/Temp/make14180-1.sh: line 2: syntax error: unexpected end of file
    gmake: *** [.\out\\.gitignore] Error 2

     

    BR,

    Franke Yeh

  • Hi Frankle,

    can you try to remove "-s from all variables in config.mk (I think it should work without them too) and give a try?

    Regards,

    Yordan

  • Hi Yordan,

    I have built successfully by change to Linux host PC.

    thanks for your support.

  • Hi Yordan,

    I have built successfully by change to Linux host PC.

    thanks for your support.