ARMmbed / mbed-os

Arm Mbed OS is a platform operating system designed for the internet of things
https://mbed.com
Other
4.67k stars 2.98k forks source link

mbed TLS examples compilation failing in online IDE #3636

Closed andresag01 closed 7 years ago

andresag01 commented 7 years ago

Description

Compiling the TLS client example (from https://github.com/ARMmbed/mbed-os-example-tls) using the Online IDE and K64F results in a failure. Note that this issue was originally raised in the mbed TLS examples repository (https://github.com/ARMmbed/mbed-os-example-tls/issues/32). However, the problem cannot be reproduced using the command line tools (mbed-cli) or the Makefiles (using mbed export).


Bug

Target K64F

Toolchain: Online IDE at https://developer.mbed.org/compiler/. I suspect it uses ARMC5

meed-os sha:

34c1facf42a174f47fdf9002cd8c6bf10ac41744 (The default for mbed TLS examples)

Expected behavior The application should compile without errors.

Actual behavior The compilation process results in the following error:

Error: Cannot open source input file "device.h": No such file or directory in "extras/tls-client/mbed-os.lib/platform/platform.h", Line: 27, Col: 21

Steps to reproduce

bridadan commented 7 years ago

The GitHub repository you posted contains multiple examples. This is not supported by the Online IDE. When you import a repository as a program, it is assumed that there is only one project present in the repo.

When compiling TLS examples in the Online IDE, users should use the examples mirrored to the developer site:

@andresag01 If you wish to continue having multiple examples in the GitHub repository you mentioned, it may be worth linking to the developer site mirrors for use with the Online IDE in your README. What do you think?

andresag01 commented 7 years ago

@bridadan: Thanks for the information. We will just add links to the mirrors to our documentation.

bridadan commented 7 years ago

Thanks, I'll go ahead and close this