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

repository is not compiling at all. #21

Open
etanh opened this issue Jan 26, 2021 · 5 comments
Open

repository is not compiling at all. #21

etanh opened this issue Jan 26, 2021 · 5 comments

Comments

@etanh
Copy link

etanh commented Jan 26, 2021

Description of defect

My device is LPC1768

Toolchain ARMC6 OR GCC_ARM

Mbed-os is mbed-os-6.6.0

I tried mbed-cli, mbed-studio and the online complier.

I Get the [Warning] @0,0: L3912W: Option 'legacyalign' is deprecated.

[Error] @0,0: L6218E: Undefined symbol mbedtls_ctr_drbg_free (referred from BUILD/LPC1768/ARMC6/mbed-client-for-google-iot-cloud/iot-device-sdk-embedded-c/src/bsp/tls/mbedtls/iotc_bsp_tls_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ctr_drbg_init (referred from BUILD/LPC1768/ARMC6/mbed-client-for-google-iot-cloud/iot-device-sdk-embedded-c/src/bsp/tls/mbedtls/iotc_bsp_tls_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ctr_drbg_random (referred from BUILD/LPC1768/ARMC6/mbed-client-for-google-iot-cloud/iot-device-sdk-embedded-c/src/bsp/tls/mbedtls/iotc_bsp_tls_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ctr_drbg_seed (referred from BUILD/LPC1768/ARMC6/mbed-client-for-google-iot-cloud/iot-device-sdk-embedded-c/src/bsp/tls/mbedtls/iotc_bsp_tls_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_entropy_free (referred from BUILD/LPC1768/ARMC6/mbed-client-for-google-iot-cloud/iot-device-sdk-embedded-c/src/bsp/tls/mbedtls/iotc_bsp_tls_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_entropy_func (referred from BUILD/LPC1768/ARMC6/mbed-client-for-google-iot-cloud/iot-device-sdk-embedded-c/src/bsp/tls/mbedtls/iotc_bsp_tls_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_entropy_init (referred from BUILD/LPC1768/ARMC6/mbed-client-for-google-iot-cloud/iot-device-sdk-embedded-c/src/bsp/tls/mbedtls/iotc_bsp_tls_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_conf_authmode (referred from BUILD/LPC1768/ARMC6/mbed-client-for-google-iot-cloud/iot-device-sdk-embedded-c/src/bsp/tls/mbedtls/iotc_bsp_tls_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_conf_ca_chain (referred from BUILD/LPC1768/ARMC6/mbed-client-for-google-iot-cloud/iot-device-sdk-embedded-c/src/bsp/tls/mbedtls/iotc_bsp_tls_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_conf_rng (referred from BUILD/LPC1768/ARMC6/mbed-client-for-google-iot-cloud/iot-device-sdk-embedded-c/src/bsp/tls/mbedtls/iotc_bsp_tls_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_config_defaults (referred from BUILD/LPC1768/ARMC6/mbed-client-for-google-iot-cloud/iot-device-sdk-embedded-c/src/bsp/tls/mbedtls/iotc_bsp_tls_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_config_free (referred from BUILD/LPC1768/ARMC6/mbed-client-for-google-iot-cloud/iot-device-sdk-embedded-c/src/bsp/tls/mbedtls/iotc_bsp_tls_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_config_init (referred from BUILD/LPC1768/ARMC6/mbed-client-for-google-iot-cloud/iot-device-sdk-embedded-c/src/bsp/tls/mbedtls/iotc_bsp_tls_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_free (referred from BUILD/LPC1768/ARMC6/mbed-client-for-google-iot-cloud/iot-device-sdk-embedded-c/src/bsp/tls/mbedtls/iotc_bsp_tls_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_get_bytes_avail (referred from BUILD/LPC1768/ARMC6/mbed-client-for-google-iot-cloud/iot-device-sdk-embedded-c/src/bsp/tls/mbedtls/iotc_bsp_tls_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_handshake (referred from BUILD/LPC1768/ARMC6/mbed-client-for-google-iot-cloud/iot-device-sdk-embedded-c/src/bsp/tls/mbedtls/iotc_bsp_tls_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_init (referred from BUILD/LPC1768/ARMC6/mbed-client-for-google-iot-cloud/iot-device-sdk-embedded-c/src/bsp/tls/mbedtls/iotc_bsp_tls_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_read (referred from BUILD/LPC1768/ARMC6/mbed-client-for-google-iot-cloud/iot-device-sdk-embedded-c/src/bsp/tls/mbedtls/iotc_bsp_tls_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_set_bio (referred from BUILD/LPC1768/ARMC6/mbed-client-for-google-iot-cloud/iot-device-sdk-embedded-c/src/bsp/tls/mbedtls/iotc_bsp_tls_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_set_hostname (referred from BUILD/LPC1768/ARMC6/mbed-client-for-google-iot-cloud/iot-device-sdk-embedded-c/src/bsp/tls/mbedtls/iotc_bsp_tls_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_setup (referred from BUILD/LPC1768/ARMC6/mbed-client-for-google-iot-cloud/iot-device-sdk-embedded-c/src/bsp/tls/mbedtls/iotc_bsp_tls_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_write (referred from BUILD/LPC1768/ARMC6/mbed-client-for-google-iot-cloud/iot-device-sdk-embedded-c/src/bsp/tls/mbedtls/iotc_bsp_tls_mbedtls.o).

Any Ideas??

@ciarmcom
Copy link
Member

@etanh This issue has an incomplete or old issue template.For future reference please use an up to date clone of the repository before raising issues. Many thanks.

@ciarmcom
Copy link
Member

Thank you for raising this detailed GitHub issue. I am now notifying our internal issue triagers.
Internal Jira reference: https://jira.arm.com/browse/IOTOSM-3299

@rajkan01
Copy link
Collaborator

rajkan01 commented Jan 31, 2021

Hi Etan,

Thanks for raising this issue.

The google cloud example has been tested with K64F with Ethernet and DISCO_L475VG_IOT01A with WiFi, but any Mbed OS 6 targets with Internet access expected to work.

LPC1768 do not have the TRNG feature so it could not be possible to enable Entropy sources, either you have to try to build TLS without entropy sources refer Null entropy but it is not advisable due to the security reasons, and another problem is some of them already tried TLS in this target but end up out of memory issue. The google cloud is particularly used MQTT connectivity over TLS/wolfssl for encrypting data for security reasons. so it is less likely this example runs in LPC1768 target.

Reference: Someone already tried adding RNG for LPC1768 target: https://os.mbed.com/users/manitou/code/rng/.

@evedon
Copy link
Collaborator

evedon commented Feb 25, 2021

@rajkan01 Please add a Hardware requirements section to README

@rajkan01
Copy link
Collaborator

@rajkan01 Please add a Hardware requirements section to README

@evedon I will update the README with hardware requirements

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

No branches or pull requests

4 participants