Forum Discussion

GTese's avatar
GTese
Icon for New Contributor rankNew Contributor
6 years ago

When I try to makefile the following error was generated. How can fixed this problem?

arm-linux-gnueabihf-g++ ./host/main.o ../common/ocl_util.o ../common/timer.o -o run.exe -L/home/guta/intelFPGA/18.1/hld/board/c5soc/arm32/lib -L/home/guta/intelFPGA/18.1/hld/host/arm32/lib -L/home/guta/intelFPGA/18.1/hld/host/linux64/lib -Wl,--no-as-needed -lalteracl -lintel_soc32_mmd -lstdc++ -lelf

../common/ocl_util.o: file not recognized: File format not recognized

collect2: error: ld returned 1 exit status

Makefile:151: recipe for target 'run.exe' failed

make: *** [run.exe] Error 1

2 Replies

  • FawazJ_Altera's avatar
    FawazJ_Altera
    Icon for Frequent Contributor rankFrequent Contributor

    Hello,

    Can you elaborate more what are you trying to generate?

    Which quartus version? OS ?

    Thank you

  • GTese's avatar
    GTese
    Icon for New Contributor rankNew Contributor

    Thank You!

    To compiling the host programming after compiling the kernel code. It means that after generating hardware configuration (.aoco and .aocx) to link the host code.

    I used the quartus standard version 18.1. The OS i used is desktop Ubuntu version 18.04.