Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during make flash monitor #50

Open
avinashvaka opened this issue Jan 17, 2019 · 2 comments
Open

Error during make flash monitor #50

avinashvaka opened this issue Jan 17, 2019 · 2 comments

Comments

@avinashvaka
Copy link

make flash monitor

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
LD build/bootloader/bootloader.elf
C:/msys32/home/Avi/lws-esp32-factory/build/bootloader/bootloader_support\libboot loader_support.a(esp_image_format.o):(.literal.image_load+0x34): undefined refer ence to _loader_text_start' C:/msys32/home/Avi/lws-esp32-factory/build/bootloader/bootloader_support\libboot loader_support.a(esp_image_format.o):(.literal.image_load+0x38): undefined refer ence to _loader_text_end'
C:/msys32/home/Avi/lws-esp32-factory/build/bootloader/bootloader_support\libboot loader_support.a(flash_partitions.o):(.literal.esp_partition_table_verify+0x24): undefined reference to MD5Init' C:/msys32/home/Avi/lws-esp32-factory/build/bootloader/bootloader_support\libboot loader_support.a(flash_partitions.o):(.literal.esp_partition_table_verify+0x28): undefined reference to MD5Update'
C:/msys32/home/Avi/lws-esp32-factory/build/bootloader/bootloader_support\libboot loader_support.a(flash_partitions.o):(.literal.esp_partition_table_verify+0x2c): undefined reference to MD5Final' C:/msys32/home/Avi/lws-esp32-factory/build/bootloader/bootloader_support\libboot loader_support.a(flash_partitions.o): In function esp_partition_table_verify':
C:/msys32/home/Avi/esp/esp-idf/components/bootloader_support/src/flash_partition s.c:52: undefined reference to MD5Init' C:/msys32/home/Avi/esp/esp-idf/components/bootloader_support/src/flash_partition s.c:53: undefined reference to MD5Update'
C:/msys32/home/Avi/esp/esp-idf/components/bootloader_support/src/flash_partition s.c:54: undefined reference to `MD5Final'
collect2.exe: error: ld returned 1 exit status
make[1]: *** [/home/Avi/esp/esp-idf/make/project.mk:458: /home/Avi/lws-esp32-fac tory/build/bootloader/bootloader.elf] Error 1
make: *** [/home/Avi/lws-esp32-factory/components/bootloader/Makefile.projbuild: 40: /home/Avi/lws-esp32-factory/build/bootloader/bootloader.bin] Error 2

@benjamintyler
Copy link

Im having this same issue! Using Windows 10 with WSL and "native" Ubuntu though, not using MSYS.

Anyone have any ideas? I'd really like to try out this program...looks incredible.

/mnt/c/Users/Ben/Dropbox/ESP-IDF/lws-esp32-factory/build/bootloader/bootloader_support/libbootloader_support.a(CC build/mbedtls/mbedtls/library/pk_wrap.o
esp_image_format.o):(.literal.image_load+0x34): undefined reference to _loader_text_start' /mnt/c/Users/Ben/Dropbox/ESP-IDF/lws-esp32-factory/build/bootloader/bootloader_support/libbootloader_support.a(esp_image_format.o):(.literal.image_load+0x38): undefined reference toCC build/mbedtls/mbedtls/library/ecp_curves.o _loader_text_end'
/mnt/c/Users/Ben/Dropbox/ESP-IDF/lws-esp32-factory/build/CC build/libsodium/port/randombytes_esp32.o
bootloader/bootloader_support/CC build/freertos/timers.o
libbootloader_support.a(flash_partitions.o):(.literal.esp_partition_table_verify+0x24): undefined reference to MD5Init' /mnt/c/CC build/libsodium/libsodium/src/libsodium/crypto_aead/chacha20poly1305/sodium/aead_chacha20poly1305.o Users/Ben/Dropbox/ESP-IDF/lwsCC build/freertos/FreeRTOS-openocd.o -esp32CC build/mbedtls/mbedtls/library/pkcs12.o -factory/build/bootloader/bootloader_support/libbootloader_support.a(flash_partitions.o):CC build/libsodium/libsodium/src/libsodium/crypto_aead/xchacha20poly1305/sodium/aead_xchacha20poly1305.o (CC build/freertos/xtensa_overlay_os_hook.o .literal.esp_partition_table_verify+0x28): undefined reference to MD5Update'
/mnt/c/Users/CC build/mbedtls/mbedtls/library/ccm.o
Ben/Dropbox/ESP-IDF/lws-esp32-CC build/libsodium/libsodium/src/libsodium/crypto_auth/crypto_auth.o
factory/AS build/freertos/xtensa_intr_asm.o
build/bootloader/bootloader_support/libbootloader_support.a(flash_partitions.o):(.literal.esp_partition_table_verify+AS build/freertos/xtensa_context.o
0x2c)CC build/libsodium/libsodium/src/libsodium/crypto_auth/hmacsha256/auth_hmacsha256.o
: undefined referenceCC build/mbedtls/mbedtls/library/pkcs5.o
to MD5Final' /mnt/c/Users/Ben/Dropbox/ESP-AS build/freertos/xtensa_vectors.o IDF/lws-esp32-factory/build/bootloader/bootloader_support/libbootloader_support.a(flash_partitions.oCC build/libsodium/libsodium/src/libsodium/crypto_auth/hmacsha512/auth_hmacsha512.o ): In function esp_partition_table_verify':AS build/freertos/xtensa_vector_defaults.o

/home/Ben/esp/esp-idfCC build/mbedtls/mbedtls/library/pkparse.o
/components/bootloader_support/src/flash_partitions.c:52:CC build/libsodium/libsodium/src/libsodium/crypto_auth/hmacsha512256/auth_hmacsha512256.o
undefinedAS build/freertos/portasm.o
reference to MD5Init' /home/Ben/esp/esp-idf/components/bootloader_support/src/flash_partitions.c:53:AR build/freertos/libfreertos.a undefined reference to MD5UpdateCC build/libsodium/libsodium/src/libsodium/crypto_box/crypto_box_seal.o
'
/home/Ben/esp/esp-idf/components/bootloader_support/src/flash_partitions.c:54: undefined reference to `MD5Final'
collect2: error: ld returned 1 exit status
/home/Ben/esp/esp-idf/make/project.mk:457: recipe for target '/mnt/c/Users/Ben/Dropbox/ESP-IDF/lws-esp32-factory/build/bootloader/bootloader.elf' failed
make[1]: *** [/mnt/c/Users/Ben/Dropbox/ESP-IDF/lws-esp32-factory/build/bootloader/bootloader.elf] Error 1
CC build/openssl/library/ssl_cert.o
/mnt/c/Users/Ben/Dropbox/ESP-IDF/lws-esp32-factory/components/bootloader/Makefile.projbuild:40: recipe for target '/mnt/c/Users/Ben/Dropbox/ESP-IDF/lws-esp32-factory/build/bootloader/bootloader.bin' failed
make: *** [/mnt/c/Users/Ben/Dropbox/ESP-IDF/lws-esp32-factory/build/bootloader/bootloader.bin] Error 2
make: *** Waiting for unfinished jobs....

@giroudon
Copy link

Hello.

I encountered the same issue... and solved it: this is due to a bad version of esp-idf.
As stated in the README file of lws-esp32-factory, you need to force the version in esp_idf directory:

$ git reset --hard 17ac4bad7381e579e5a7775755cc25480da47d97
$ git submodule update --recursive

(WARNING: the version hash may be updated in the future. please verify in the README file).
Then you can rebuild your lws-esp32-factory without errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants