pulp-platform / pulpino

An open-source microcontroller system based on RISC-V
http://www.pulp-platform.org
Other
899 stars 298 forks source link

Run a new application #393

Open aledolme opened 1 year ago

aledolme commented 1 year ago

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:

Am I miss something? Any idea on how to solve this?

Thanks you