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_5] Compile errors on IAR when using F411RE or any unsecure platform #91

Closed
AriParkkila opened this Issue Jun 12, 2017 · 17 comments

Comments

Projects
None yet
6 participants
@AriParkkila

AriParkkila commented Jun 12, 2017

IAR Systems\Embedded Workbench 8.0 used.

mbed compile, see log

IAR IDE build, see log

@0xc0170

This comment has been minimized.

Member

0xc0170 commented Jun 13, 2017

We support 7.8 IAR version at the moment.

@AriParkkila

This comment has been minimized.

AriParkkila commented Jun 14, 2017

Thanks. Where can I find officially supported mbed toolchains on the mbed website?

@SeppoTakalo

This comment has been minimized.

Collaborator

SeppoTakalo commented Jun 14, 2017

Uhm...
https://docs.mbed.com/docs/mbed-os-handbook/en/latest/dev_tools/options/

Specifies IAR 7.7, but for mbed OS 5.5 this is going to change.
I hope that OOB testers are informed.

@ashok-rao

This comment has been minimized.

ashok-rao commented Jun 14, 2017

The OoB spreadsheet's Introduction tab says to use IAR 7.8 ..

@AriParkkila

This comment has been minimized.

AriParkkila commented Jun 14, 2017

I probably should have read OoB instructions more carefully :)

@SeppoTakalo

This comment has been minimized.

Collaborator

SeppoTakalo commented Jun 14, 2017

Looks like the target is NUCLEO_F411RE and that does not have hardware random number generator.
Looks like it triggers some kind of weird build where part of mbed TLS is enabled and part of it is not.
CoAP service should be able to build without security, and it has been used that way. This needs more investigation why it only appears on this platform.

@AriParkkila

This comment has been minimized.

AriParkkila commented Jun 14, 2017

I get the same error with IAR 7.8 log.

@AriParkkila

This comment has been minimized.

AriParkkila commented Jun 14, 2017

As expected IAR IDE build gives the same error as mbed compile due to the same compiler. However IDE keeps compiling after the error so it reveals some additional warnings, see
log from IAR EW IDE 7.80.1.

@SeppoTakalo

This comment has been minimized.

Collaborator

SeppoTakalo commented Jun 14, 2017

Can you also provide the mbed_app.json used for the build.

@AriParkkila

This comment has been minimized.

AriParkkila commented Jun 14, 2017

Please see mbed_app.json.

@SeppoTakalo

This comment has been minimized.

Collaborator

SeppoTakalo commented Jun 14, 2017

I can see now that these are compiler warnings in GCC and ARM, and failures in IAR.

So, I'm assuming that now this application fails to compile without security enabled on board in IAR.

@SeppoTakalo

This comment has been minimized.

Collaborator

SeppoTakalo commented Jun 14, 2017

Verified that this example does not compile with NUCLEO_F401RE with IAR.

This is now reported in the known issues list.

@SeppoTakalo SeppoTakalo changed the title from [OoB_5_5] Compile errors to [OoB_5_5] Compile errors on IAR when using F411RE or any unsecure platform Jun 14, 2017

@ciarmcom

This comment has been minimized.

Member

ciarmcom commented Sep 11, 2017

ARM Internal Ref: ONME-3194

@adbridge

This comment has been minimized.

Contributor

adbridge commented Sep 18, 2017

@SeppoTakalo Is there any update on this? Has any further investigation been done at all or is the intention just to propagate this to the known issues for 5.6 too ?

@SeppoTakalo

This comment has been minimized.

Collaborator

SeppoTakalo commented Sep 18, 2017

No update yet, but I'm verifying this locally now.
I'll update whether the issue still exist.

@SeppoTakalo

This comment has been minimized.

Collaborator

SeppoTakalo commented Sep 18, 2017

Problem still exists. Reported to module causing the compilation error: ARMmbed/coap-service#75

Seems to be compilation warning on GCC and ARM, and failure on IAR.

Should be reported to known issue list. Can only be closed once the CoAP service is fixed into Mbed OS master.

@adbridge adbridge removed the Source: OOB label Sep 18, 2017

@SeppoTakalo SeppoTakalo referenced this issue Sep 19, 2017

Merged

Fix redefinition of mbed TLS error codes #5138

0 of 2 tasks complete
@SeppoTakalo

This comment has been minimized.

Collaborator

SeppoTakalo commented Sep 28, 2017

Fix merged to master, closing.

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