Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
9 years ago

Building the Host Program using "make"

Hi Guys,

I am working on Hello world program.

I am trying to compile make file. I got below error:

ravi@kt-warp16 ~/Desktop/Screensho/HelloWorld/hello_world

$ make

arm-linux-gnueabihf-g++ -Ihost/inc -I../common/inc

-IC:/altera/14.0/hld/host/include ../common/src/AOCL_Ut

ils.cpp host/src/main.cpp -LC:\altera\14.0\hld\board\arrow_c5sockit_bsp\arm32\li

b -LC:/altera/14.0/hld/host/arm32/lib -lalteracl -lalterahalmmd -lalterammdpcie

-lelf -lrt -lstdc++

-L../common/lib

-o bin/hello_world

process_begin: CreateProcess(NULL, arm-linux-gnueabihf-g++ -Ihost/inc -I../commo

n/inc -IC:/altera/14.0/hld/host/include ../common/src/AOCL_Utils.cpp host/src/ma

in.cpp -LC:\altera\14.0\hld\board\arrow_c5sockit_bsp\arm32\lib -LC:/altera/14.0/

hld/host/arm32/lib -lalteracl -lalterahalmmd -lalterammdpcie -lelf -lrt -lstdc++

-L../common/lib -o bin/hello_world, ...) failed.

make (e=2): The system can not find the file specified

make: *** [bin/hello_world] Error 2

Because of this erroe I am not able to generate /hello_world file under bin folder.

Could you please help me to solve this 2 error. I am quite new in OpenCL. any type of help would be appreciated. Thanks in advance.

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Hi Guys,

    I am working on Hello world program.

    I am trying to compile make file. I got below error:

    ravi@kt-warp16 ~/Desktop/Screensho/HelloWorld/hello_world

    $ make

    arm-linux-gnueabihf-g++ -Ihost/inc -I../common/inc

    -IC:/altera/14.0/hld/host/include ../common/src/AOCL_Ut

    ils.cpp host/src/main.cpp -LC:\altera\14.0\hld\board\arrow_c5sockit_bsp\arm32\li

    b -LC:/altera/14.0/hld/host/arm32/lib -lalteracl -lalterahalmmd -lalterammdpcie

    -lelf -lrt -lstdc++

    -L../common/lib

    -o bin/hello_world

    process_begin: CreateProcess(NULL, arm-linux-gnueabihf-g++ -Ihost/inc -I../commo

    n/inc -IC:/altera/14.0/hld/host/include ../common/src/AOCL_Utils.cpp host/src/ma

    in.cpp -LC:\altera\14.0\hld\board\arrow_c5sockit_bsp\arm32\lib -LC:/altera/14.0/

    hld/host/arm32/lib -lalteracl -lalterahalmmd -lalterammdpcie -lelf -lrt -lstdc++

    -L../common/lib -o bin/hello_world, ...) failed.

    make (e=2): The system can not find the file specified

    make: *** [bin/hello_world] Error 2

    Because of this erroe I am not able to generate /hello_world file under bin folder.

    Could you please help me to solve this 2 error. I am quite new in OpenCL. any type of help would be appreciated. Thanks in advance.

    --- Quote End ---

    It would be appreciatted, if someone can answer of my problem.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    Make says it all; it can't find some of the specified files in the command. Just verify Make sure the paths to all your source files and indicated libraries are correct.