efrei-paris-sud / lab-one

Through this lab, you will be able to setup a complete cross-compiling environment on your personal laptop
0 stars 0 forks source link

missing file : /box_curve25519xsalsa20poly1305.d: No such file or directory #3

Open Hyzao opened 5 years ago

Hyzao commented 5 years ago

Ian Ducrot@ROG MINGW32 /home/IanDucrot/esp/esp-idf/examples/get-started/blink $ make flash Toolchain path: /opt/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc Toolchain version: crosstool-ng-1.22.0-80-g6c4433a5 Compiler version: 5.2.0 Python requirements from D:/Documents/Travail/EFREI/M1/S8/IoT/esp32_win32_msys2_environment_and_toolchain-20181001/msys32/home/IanDucrot/esp/esp-idf/requirements.txt are satisfied. App "blink" version: v3.3-beta1-313-ga0416e935 CC build/libsodium/libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/box_curve25519xsalsa20poly1305.o D:/Documents/Travail/EFREI/M1/S8/IoT/esp32_win32_msys2_environment_and_toolchain-20181001/msys32/home/IanDucrot/esp/esp-idf/components/libsodium/libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/box_curve25519xsalsa20poly1305.c:150:1: fatal error: opening dependency file libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/box_curve25519xsalsa20poly1305.d: No such file or directory } ^ compilation terminated. make[1]: [/home/IanDucrot/esp/esp-idf/make/component_wrapper.mk:292: libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/box_curve25519xsalsa20poly1305.o] Error 1 make: [D:/Documents/Travail/EFREI/M1/S8/IoT/esp32_win32_msys2_environment_and_toolchain-20181001/msys32/home/IanDucrot/esp/esp-idf/make/project.mk:527: component-libsodium-build] Error 2

HamidiMassinissa commented 5 years ago

tl;dr: make clean, then re- make

Maybe it is a dependency file .d that was created during a previous attempt to compile the project and was still referenced after being removed. Try to clean the project you were trying to compile with the following command: make clean then, recompile the project with make

Hyzao commented 5 years ago

I get the same issue after trying your solution :

Toolchain path: /opt/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc Toolchain version: crosstool-ng-1.22.0-80-g6c4433a5 Compiler version: 5.2.0 Python requirements from D:/Documents/Travail/EFREI/M1/S8/IoT/esp32_win32_msys2_environment_and_toolchain-20181001/msys32/home/IanDucrot/esp/esp-idf/requirements.txt are satisfied. App "blink" version: v3.3-beta1-313-ga0416e935 CC build/libsodium/libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/box_curve25519xsalsa20poly1305.o D:/Documents/Travail/EFREI/M1/S8/IoT/esp32_win32_msys2_environment_and_toolchain-20181001/msys32/home/IanDucrot/esp/esp-idf/components/libsodium/libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/box_curve25519xsalsa20poly1305.c:150:1: fatal error: opening dependency file libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/box_curve25519xsalsa20poly1305.d: No such file or directory } ^ compilation terminated. make[1]: [/home/IanDucrot/esp/esp-idf/make/component_wrapper.mk:292: libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/box_curve25519xsalsa20poly1305.o] Error 1 make: [D:/Documents/Travail/EFREI/M1/S8/IoT/esp32_win32_msys2_environment_and_toolchain-20181001/msys32/home/IanDucrot/esp/esp-idf/make/project.mk:527: component-libsodium-build] Error 2

HamidiMassinissa commented 5 years ago

A brute force solution would be to replace the ESP-IDF framework in your home directory by cloning it again.

Hyzao commented 5 years ago

I did that and here is my new error :

Ian Ducrot@ROG MINGW32 /home/IanDucrot/esp-idf/examples/get-started/blink $ make flash Toolchain path: /opt/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc Toolchain version: crosstool-ng-1.22.0-80-g6c4433a5 Compiler version: 5.2.0 Python requirements from D:/Documents/Travail/EFREI/M1/S8/IoT/esp32_win32_msys2_environment_and_toolchain-20181001/msys32/home/IanDucrot/esp-idf/requirements.txt are satisfied. App "blink" version: v3.3-beta1-223-ga62cbfec9 CC build/libsodium/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/nosse/pwhash_scryptsalsa208sha256_nosse.o D:/Documents/Travail/EFREI/M1/S8/IoT/esp32_win32_msys2_environment_and_toolchain-20181001/msys32/home/IanDucrot/esp-idf/components/libsodium/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/nosse/pwhash_scryptsalsa208sha256_nosse.c:375:1: fatal error: opening dependency file libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/nosse/pwhash_scryptsalsa208sha256_nosse.d: No such file or directory } ^ compilation terminated. make[1]: [/home/IanDucrot/esp-idf/make/component_wrapper.mk:292: libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/nosse/pwhash_scryptsalsa208sha256_nosse.o] Error 1 make: [D:/Documents/Travail/EFREI/M1/S8/IoT/esp32_win32_msys2_environment_and_toolchain-20181001/msys32/home/IanDucrot/esp-idf/make/project.mk:527: component-libsodium-build] Error 2