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

[OoB_5.8]: export to make files does not build. #159

Open
ashok-rao opened this issue Mar 20, 2018 · 7 comments
Open

[OoB_5.8]: export to make files does not build. #159

ashok-rao opened this issue Mar 20, 2018 · 7 comments

Comments

@ashok-rao
Copy link

Steps:

  1. mbed export -i make_gcc_arm -m K64F
  2. Navigate to root of example.
  3. make clean
  4. make

Expected result:
Makefile builds binary of example.

Actual result:
Compilation fail.

C:\Ashok\mbed_CLI\OoB_5_8\TLS\mbed-os-example-tls>make
C:/Ashok/mbed_CLI/OoB_5_8/TLS/mbed-os-example-tls/makefile:805: warning: overriding commands for target `.s.o'
C:/Ashok/mbed_CLI/OoB_5_8/TLS/mbed-os-example-tls/makefile:797: warning: ignoring old commands for target `.s.o'
"Compile: main.c"
../pk_verify/main.c:23:28: fatal error: mbedtls/config.h: No such file or directory
 #include "mbedtls/config.h"
                            ^
compilation terminated.
make[1]: *** [../pk_verify/main.o] Error 1
make: *** [all] Error 2

C:\Ashok\mbed_CLI\OoB_5_8\TLS\mbed-os-example-tls>

Makefile attached (remove txt extension - only used for uploading to GitHub).

Makefile.txt

@ashok-rao
Copy link
Author

@theotherjimmy ..FYI. Could you please have a look? Thanks.

@theotherjimmy
Copy link

@ashok-rao That makefile contains an extra level of ../ how did you export it? You should be running the export from the root of an example, so step 2 should not happen.

@ashok-rao
Copy link
Author

ashok-rao commented Mar 28, 2018

@theotherjimmy .. TLS repo contains a set of examples.. I was on the pk_sign example here: https://github.com/ARMmbed/mbed-os-example-tls/tree/feature-opaque-keys .. I ran export & didn't get the makefile in "that" example.. so I moved 1 level up to the root of TLS and found the Makefile there.. that's what I then "made" with make .. did I go wrong somewhere?

@theotherjimmy
Copy link

@ashok-rao Why is that in quotes?


It looks like Mbed CLI does not know where your example starts because there are no .mbed files in this repo. I'm really not sure what's supposed to happen here. try placing a .mbed file in the root of the project and then exporting again.

@ashok-rao
Copy link
Author

:-) .. "that" above referred to pk_sign example among the many others.. hence..
Ok.. will try placing a .mbed file in the example (not the root) and try again..

@simonbutcher
Copy link
Contributor

Looks like an issue for the documentation?

@ciarmcom
Copy link
Member

ARM Internal Ref: IOTSSL-2423

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