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.

EVE kernel building

Hi Guys,

I am building the EVE kernel... unfortunately stuck at point. my steps are are as follows; Good thing is i can build the apps but failing with kernels.

  1. gmake in EVE release folder to make all dependencies (this is suggested in user guid,for building any specific target or other module separately try gmake in EVE release folder)
  2. goto kernel folder and use specific kernel say "kernels\imgsiglib\vcop_sobel_xy\test"
  3. execute "gmake" command.

i have 2 problems here, need your help for the same please.

  1. when i do gmake in top (EVE release folder) folder. i see "kernel_priv_list.txt: No such file or directory" error. please refer highlighted line in below logs

=================================================================================

======== KERNELS =================
gmake -C ./kernels -f makefile
gmake[1]: Entering directory 'D:/eve_sw_01_18_00_00/kernels'
.
======== IP KERNELS KERNELC =================
gmake -f makefile_generatelib KERNEL_MODE=KERNELC FILE_LIST=kernel_priv_list.txt LIB_NAME=libeveprivkernels.eve.lib
gmake[2]: Entering directory 'D:/eve_sw_01_18_00_00/kernels'
/cygdrive/c/ti/ccsv7/utils/cygwin/cat: kernel_priv_list.txt: No such file or directory
gmake[2]: Nothing to be done for 'all'.
gmake[2]: Leaving directory 'D:/eve_sw_01_18_00_00/kernels'
.
======== IP KERNELS NATC =================
gmake -f makefile_generatelib KERNEL_MODE=NATC FILE_LIST=kernel_priv_list.txt LIB_NAME=libeveprivnatckernels.eve.lib
gmake[2]: Entering directory 'D:/eve_sw_01_18_00_00/kernels'
/cygdrive/c/ti/ccsv7/utils/cygwin/cat: kernel_priv_list.txt: No such file or directory
gmake[2]: Nothing to be done for 'all'.
gmake[2]: Leaving directory 'D:/eve_sw_01_18_00_00/kernels'
.
======== NON IP KERNELS KERNELC =================
gmake -f makefile_generatelib KERNEL_MODE=KERNELC FILE_LIST=kernel_list.txt LIB_NAME=libevekernels.eve.lib
gmake[2]: Entering directory 'D:/eve_sw_01_18_00_00/kernels'
  ==>  new archive 'lib\release\libevekernels.eve.lib'
  ==>  building archive 'lib\release\libevekernels.eve.lib'
gmake[2]: Leaving directory 'D:/eve_sw_01_18_00_00/kernels'
.
======== NON IP KERNELS NATC =================
gmake -f makefile_generatelib KERNEL_MODE=NATC FILE_LIST=kernel_list.txt LIB_NAME=libevenatckernels.eve.lib
gmake[2]: Entering directory 'D:/eve_sw_01_18_00_00/kernels'
gmake[2]: Nothing to be done for 'all'.
gmake[2]: Leaving directory 'D:/eve_sw_01_18_00_00/kernels'
.
======== MERGE =================
gmake -f makefile_mergelib
gmake[2]: Entering directory 'D:/eve_sw_01_18_00_00/kernels'
  ==>  building archive 'lib/release/libevekernels.eve.lib'
  ==>  building archive 'lib/release/libevenatckernels.eve.lib'
gmake[2]: Leaving directory 'D:/eve_sw_01_18_00_00/kernels'
gmake[1]: Leaving directory 'D:/eve_sw_01_18_00_00/kernels'

============================================================================================

2. when i execute gmake under specific kernel test code i see below error. FYI Makefile.wincommon:210 has

    209   a.out: $(OBJ_DIR) $(ALLCFILES) $(KFILES)
    210   $(HOSTCC) $(HOSTCC_FLAGS) -I$(TARGET_INC_K) $(ALLCFILES) $(EVE_PROFILE) $(CURVE_FITTING) $(CONFIG_PARSER) $(NATCFILES)

=============================================================================================

D:\eve_sw_01_18_00_00\kernels\imgsiglib\vcop_sobel_xy\test>gmake
C:\ti\ccsv7\utils\cygwin\mkdir -p  ".\elf_out" || cd ".\elf_out"
"g++" -g -fpermissive -I"C:\Program Files\Texas Instruments\ARP32_tools"\include\vcop -I"..\..\..\..\common" -I"..\..\..\common" -DVCOP_HOST_EMULATION -o ".\elf
_out"\a.exe -I"..\inc" vcop_sobel_xy_config.c vcop_sobel_xy_tb.c "..\..\..\..\common\eve_profile.c" "..\..\..\..\common\curve_fitting.c" "..\..\..\..\common\con
figparser.c"
process_begin: CreateProcess(NULL, g++ -g -fpermissive "-IC:\Program Files\Texas Instruments\ARP32_tools\include\vcop" -I..\..\..\..\common -I..\..\..\common -D
VCOP_HOST_EMULATION -o .\elf_out\a.exe -I..\inc vcop_sobel_xy_config.c vcop_sobel_xy_tb.c ..\..\..\..\common\eve_profile.c ..\..\..\..\common\curve_fitting.c ..
\..\..\..\common\configparser.c, ...) failed.
make (e=2): The system cannot find the file specified.
../../../common/Makefile.wincommon:210: recipe for target 'a.out' failed
gmake: *** [a.out] Error 2

=================================================================================================

my directory structure if you need is as below;

Thanks,

Mohammed

  • Hi Mohammed,

    I have forwarded your question to EVE experts.

    Regards,
    Yordan
  • Hi Mohammed,

       The first warning you can ignore. I see that your build went through. If you are trying to build specific kernel by building them from their test folder then build steps are slightly different. This is mentioned in gettingStarted guide.

        For specific kernel folllowing are the steps :

    gmake target  ( for building executable to run on target/simulator in release node)

    gmake debug ( for building executable to run on target/simulator in debug mode)

    gmake msvc ( for building executable to run on Visual Studio).


    Regards,

    Anshu

  • Hi Anshu,

    when i try to buld the specific kernel from their test folder. its failing. please see eroor log for "gmake target" and "gmake debug"
    appreciate the help
    ==========================================================================================
    D:\eve_sw_01_18_00_00\kernels\imgsiglib\vcop_sobel_xy\test>gmake target
    C:\ti\ccsv7\utils\cygwin\mkdir -p ".\elf_out" || cd ".\elf_out"
    "C:\Program Files\Texas Instruments\ARP32_tools"\bin\cl-arp32 -O3 --opt_for_speed=5 -kh --silicon_version=v210 -lu --display_error_number --diag_suppress=26066
    --diag_suppress=10063 -I"C:\Program Files\Texas Instruments\ARP32_tools"\include -I"C:\Program Files\Texas Instruments\ARP32_tools"\include\vcop -I"..\inc" -I"
    ..\..\..\inc" --temp_directory="..\..\..\inc" --obj_directory="..\src_kernelC" ..\src_kernelC\vcop_sobel_xy_kernel.k
    process_begin: CreateProcess(NULL, "C:\Program Files\Texas Instruments\ARP32_tools\bin\cl-arp32" -O3 --opt_for_speed=5 -kh --silicon_version=v210 -lu --display_
    error_number --diag_suppress=26066 --diag_suppress=10063 "-IC:\Program Files\Texas Instruments\ARP32_tools\include" "-IC:\Program Files\Texas Instruments\ARP32_
    tools\include\vcop" -I..\inc -I..\..\..\inc --temp_directory=..\..\..\inc --obj_directory=..\src_kernelC ..\src_kernelC\vcop_sobel_xy_kernel.k, ...) failed.
    make (e=2): The system cannot find the file specified.
    ../../../common/Makefile.wincommon:250: recipe for target '..\src_kernelC\vcop_sobel_xy_kernel.obj' failed
    gmake: *** [..\src_kernelC\vcop_sobel_xy_kernel.obj] Error 2
    ==========================================================================================

    D:\eve_sw_01_18_00_00\kernels\imgsiglib\vcop_sobel_xy\test>gmake debug
    C:\ti\ccsv7\utils\cygwin\mkdir -p ".\elf_out" || cd ".\elf_out"
    "C:\Program Files\Texas Instruments\ARP32_tools"\bin\cl-arp32 -g --opt_for_speed=5 -kh --silicon_version=v210 -lu --display_error_number --diag_suppress=26066
    --diag_suppress=10063 -I"C:\Program Files\Texas Instruments\ARP32_tools"\include -I"C:\Program Files\Texas Instruments\ARP32_tools"\include\vcop -I"..\inc" -I".
    .\..\..\inc" --temp_directory="..\..\..\inc" --obj_directory="..\src_kernelC" ..\src_kernelC\vcop_sobel_xy_kernel.k
    process_begin: CreateProcess(NULL, "C:\Program Files\Texas Instruments\ARP32_tools\bin\cl-arp32" -g --opt_for_speed=5 -kh --silicon_version=v210 -lu --display_e
    rror_number --diag_suppress=26066 --diag_suppress=10063 "-IC:\Program Files\Texas Instruments\ARP32_tools\include" "-IC:\Program Files\Texas Instruments\ARP32_t
    ools\include\vcop" -I..\inc -I..\..\..\inc --temp_directory=..\..\..\inc --obj_directory=..\src_kernelC ..\src_kernelC\vcop_sobel_xy_kernel.k, ...) failed.
    make (e=2): The system cannot find the file specified.
    ../../../common/Makefile.wincommon:250: recipe for target '..\src_kernelC\vcop_sobel_xy_kernel.obj' failed
    gmake: *** [..\src_kernelC\vcop_sobel_xy_kernel.obj] Error 2

    ==========================================================================================

    Thanks,
    Mohammed
  • Have you set the environment variables as mentioned in getting started guide? You should set an environment variable ARP32_TOOLS which should point to ARP32 compiler.
  • its been set, any more direction please
  • Hi Anshu,

    Any suggestion please?

    some with workaround i am able to build the code for debug but i think its not a good solution. if i get some hard solution that will help me for all the kernels it will be really good. i have to build for target and msvc too.

    Thanks,

    Mohammed

  • Mohammed,

       To me it still looks like your tools paths are not correct. Can you tell me where have you installed ARP32 compiler? Generally if you install it via CCS then its default location is within CCS. But in your case the path is looking different.


    Regards,

    Anshu

  • Hi Anshu,
    i believe every path is been set and getting the compiler, because with the same settings i am able to build the apps, i am having issue while i am building the kernel, my paths are withing the CCS and i have couple of paths in "D drive" for test.
    Any other suggestion please?
  • Individual kernel build and applet build uses different build system. Can you confirm if your arp32 compiler is installed at following location : C:\Program Files\Texas Instruments\ARP32_tools

    Regards,
    Anshu
  • Anshu,
    my apr32 tool is at "C:\ti\ccsv7\tools\compiler\arp32_1.0.9"
    For your information to build the kernel ,starterware/apps must be built,my apps and staterware is building.
  • The build log you shared is using a different compiler path (C:\Program Files\Texas Instruments\ARP32_tools) for compiler :

    C:\Program Files\Texas Instruments\ARP32_tools"\bin\cl-arp32 -O3 --opt_for_speed=5 -kh --silicon_version=v210 -lu --display_error_number --diag_suppress=26066


    Regards,
    Anshu
  • Anshu,
    path in log was hand written for easy understanding, at the time when i shared the log, i was not been in situation to share actual/real path.
    please see below logs with actual paths
    ======================================================================================================
    D:\eve_sw_01_18_00_00\kernels\imgsiglib\vcop_sobel_xy\test>gmake msvc
    C:\ti\ccsv7\utils\cygwin\mkdir -p ".\elf_out" || cd ".\elf_out"
    cl /EHsc /TP /W0 /DVCOP_HOST_EMULATION /Fo".\elf_out"\ /Fe".\elf_out"\a.exe /Od /MDd /Gm /Zi /RTC1 -I"C:\ti\ccsv7\tools\compiler\arp32_1.0.9"\include\vcop -I".
    .\..\..\..\common" -I"..\..\..\common" -I"..\inc" -I"..\..\..\inc" vcop_sobel_xy_config.c vcop_sobel_xy_tb.c "..\..\..\..\common\eve_profile.c" "..\..\..\..\co
    mmon\curve_fitting.c" "..\..\..\..\common\configparser.c" /link libevenatckernels.eve.lib_pc.lib /LIBPATH:..\..\..\lib\debug
    process_begin: CreateProcess(NULL, cl /EHsc /TP /W0 /DVCOP_HOST_EMULATION /Fo.\elf_out\ /Fe.\elf_out\a.exe /Od /MDd /Gm /Zi /RTC1 -IC:\ti\ccsv7\tools\compiler\a
    rp32_1.0.9\include\vcop -I..\..\..\..\common -I..\..\..\common -I..\inc -I..\..\..\inc vcop_sobel_xy_config.c vcop_sobel_xy_tb.c ..\..\..\..\common\eve_profile.
    c ..\..\..\..\common\curve_fitting.c ..\..\..\..\common\configparser.c /link libevenatckernels.eve.lib_pc.lib /LIBPATH:..\..\..\lib\debug, ...) failed.
    make (e=2): The system cannot find the file specified.
    ../../../common/Makefile.wincommon:219: recipe for target 'msvc' failed
    gmake: *** [msvc] Error 2
    =====================================================================================================
  • Please dont modify the logs before sharing as it has been misleading us. From the beginning based on the logs it was looking like path problem as I was assuming the log you shared is the actual log.
    Are you still getting the same error with ARP32 compiler instead of host emulation. Please share the log of gmake target also.

    Regards,
    Anshu
  • Hi Mohammed,

    We haven't heard back from you, I'm assuming you were able to resolve your issue.
    If not, just post a reply below (or create a new thread if the thread has locked due to time-out).

    Regards,
    Yordan
  • Hi Yordan,

    problem been solved, beow are two major steps to solve.
    1. used git bash instead command line to execute the gmake.
    2. new project new workspace for ccs