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

Link Error in SSL.c (WOLFSSL) undefined reference to `LowResTimer' link error #3

Open
tschesnok opened this issue Jun 21, 2023 · 3 comments

Comments

@tschesnok
Copy link

tschesnok commented Jun 21, 2023

Clean Git project. Latest FreeRTOS and WolfSSL in the /lib directory.

Everything builds nicely.. with one error:

make (2nd time to show error)
[ 0%] Performing build step for 'PioasmBuild'
[100%] Built target pioasm
[ 0%] No install step for 'PioasmBuild'
[ 0%] Completed 'PioasmBuild'
[ 1%] Built target PioasmBuild
[ 1%] Built target cyw43_driver_picow_cyw43_bus_pio_spi_pio_h
[ 2%] Built target bs2_default
[ 2%] Built target bs2_default_padded_checksummed_asm
[ 3%] Built target cyw43_firmware_package
[ 50%] Built target wolfssl
[ 50%] Performing build step for 'ELF2UF2Build'
[100%] Built target elf2uf2
[ 50%] No install step for 'ELF2UF2Build'
[ 50%] Completed 'ELF2UF2Build'
[ 51%] Built target ELF2UF2Build
[ 52%] Linking CXX executable HTTPSGet.elf
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: CMakeFiles/HTTPSGet.dir/home/andrew/Desktop/pico/Pico_ssl/lib/wolfssl/src/ssl.c.obj: in function SetupSession': ssl.c:(.text.SetupSession+0x6e): undefined reference to LowResTimer'
collect2: error: ld returned 1 exit status
make[2]: *** [src/CMakeFiles/HTTPSGet.dir/build.make:3599: src/HTTPSGet.elf] Error 1
make[1]: *** [CMakeFiles/Makefile2:1860: src/CMakeFiles/HTTPSGet.dir/all] Error 2
make: *** [Makefile:152: all] Error 2
(base) andrew@andrew-ROG-Zephyrus-G15-GA503RM-GA503RM:~/Desktop/pico/Pico_ssl/HTTPSGet/build$ ls
CMakeCache.txt cmake_install.cmake CPackSourceConfig.cmake FREERTOS_KERNEL libwolfssl.a pico-sdk src
CMakeFiles CPackConfig.cmake elf2uf2 generated Makefile pioasm

@tschesnok tschesnok changed the title Build Error in SSL.c (WOLFSSL) undefined reference to `LowResTimer' link error Link Error in SSL.c (WOLFSSL) undefined reference to `LowResTimer' link error Jun 21, 2023
@tschesnok
Copy link
Author

Oh man.. I'm never going to figure this out without help :(. This must relate to the PICO port... something not working right with the time function definition.

@jondurrant
Copy link
Owner

I'll take a look. It looks like something has changed in WolfSSL. The instant fix would be to wind back to the version of WolfSSL I used for the testing.

@tschesnok
Copy link
Author

tschesnok commented Jun 21, 2023

Yes, Use HEAD 12e285434 of wolfssl as a work-around for now. Thanks Jon for helping on this.

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

2 participants