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

./build.sh command ends in ERROR: Can't reliably evaluate relative path without context: ../rmaker_common #132

Open
AC-Mike opened this issue Jul 20, 2023 · 0 comments

Comments

@AC-Mike
Copy link

AC-Mike commented Jul 20, 2023

Maybe its because I'm using WSL on windows 11 rather than a real ubuntu install.

I deleted:

set(RMAKER_PATH ${CMAKE_SOURCE_DIR}/components/esp-rainmaker)
set(EXTRA_COMPONENT_DIRS ${RMAKER_PATH}/components/esp-insights/components ${RMAKER_PATH}/components ${CMAKE_SOURCE_DIR}/components/esp-insights/components)

from the CMakeLists.text file and it seems I have put the build in an infinite loop.

I'm trying to build the Arduino core so that mbedtls uses less heap. I have an active MQTT connection - also using mbedtls when I have to make a and https POST request.

Please no suggestions to use a different part with more memory. I have over 30K installed units that need an update.

The mbedtls documents say the memory profile is 48K heap. The mbedtls debug shows:

[ 7564][V][ssl_client.cpp:61] start_ssl_client(): Free internal heap before TLS 96496

The value returned from heap_caps_get_free_size(MALLOC_CAP_8BIT); just before the request is 50620 bytes.

Is the difference meaning the biggest block I can allocate of the 96496 available is only 50620?

I get this error from mbedtls:
[ 7697][V][ssl_client.cpp:316] start_ssl_client(): Performing the SSL/TLS handshake...
[ 8710][E][ssl_client.cpp:38] _handle_error(): [start_ssl_client():322]: (-16) BIGNUM - Memory allocation failed

build error:
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /root/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++
-- Check for working CXX compiler: /root/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
Skipping optional dependency: espressif/cbor
Skipping optional dependency: espressif/mdns
Solving dependencies requirements
....CMake Error at esp-idf/tools/cmake/build.cmake:463 (message):
ERROR: Can't reliably evaluate relative path without context:
../rmaker_common

Call Stack (most recent call first):
esp-idf/tools/cmake/project.cmake:476 (idf_build_process)
CMakeLists.txt:9 (project)

-- Configuring incomplete, errors occurred!
See also "/mnt/c/Users/kfrog/Temp-arduino-core/esp32-arduino-lib-builder/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1
root@sesamestreet:/mnt/c/Users/kfrog/Temp-arduino-core/esp32-arduino-lib-builder#

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

1 participant