Good morning!
I am having some trouble in compiling my own application. I am working with PQC-algorithms, and trying to compile Kyber768 from https://github.com/PQClean/PQClean/tree/master/crypto_kem/kyber768/clean
but it is not working. While another simpler c-program make by me works, this code reports the following error:
../../libs/Arduino_lib/core_libs/libArduino_core.a(main.cpp.o): In function initVariant': /home/Desktop/pulpino/sw/libs/Arduino_lib/core_libs/inc/main.cpp:36: undefined reference tosetup'
/home/Desktop/pulpino/sw/libs/Arduino_lib/core_libs/inc/main.cpp:37: undefined reference to loop' /home/Desktop/pulpino/sw/libs/Arduino_lib/core_libs/inc/main.cpp:40: undefined reference toloop'
collect2: error: ld returned 1 exit status
make[3]: [apps/kem/kem.elf] Error 1
make[2]: [apps/kem/CMakeFiles/kem.elf.dir/all] Error 2
make[1]: [apps/kem/CMakeFiles/kem.vsim.dir/rule] Error 2
make: [kem.vsim] Error 2
I've made the following steps for both the applications:
create in sw/apps a new_folder in which copying all the c- and h-files needed
adding add_application(kem kem.c) in the CMakeList.txt file
modyfing CMakeList.txt also in pulino/sw/app adding "add_subdirectory(kem)"
re-run everything, deleting the previously created folders
make vcompile
make kem.vsim
Am I miss something? Any idea on how to solve this?
Good morning! I am having some trouble in compiling my own application. I am working with PQC-algorithms, and trying to compile Kyber768 from https://github.com/PQClean/PQClean/tree/master/crypto_kem/kyber768/clean but it is not working. While another simpler c-program make by me works, this code reports the following error:
../../libs/Arduino_lib/core_libs/libArduino_core.a(main.cpp.o): In function
initVariant': /home/Desktop/pulpino/sw/libs/Arduino_lib/core_libs/inc/main.cpp:36: undefined reference to
setup' /home/Desktop/pulpino/sw/libs/Arduino_lib/core_libs/inc/main.cpp:37: undefined reference toloop' /home/Desktop/pulpino/sw/libs/Arduino_lib/core_libs/inc/main.cpp:40: undefined reference to
loop' collect2: error: ld returned 1 exit status make[3]: [apps/kem/kem.elf] Error 1 make[2]: [apps/kem/CMakeFiles/kem.elf.dir/all] Error 2 make[1]: [apps/kem/CMakeFiles/kem.vsim.dir/rule] Error 2 make: [kem.vsim] Error 2I've made the following steps for both the applications:
Am I miss something? Any idea on how to solve this?
Thanks you