-
Notifications
You must be signed in to change notification settings - Fork 106
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: api-tests: cmake falls back to default host compiler #265
Comments
we will revisit this topic after july 11th as planned release activity psa arch test v1.2 on going |
Currently working on unifying this requirement, the TS team also had a similar ask. We will communicate the final outcome. for time being let the commit be as it is.
https://review.trustedfirmware.org/c/TS/trusted-services/+/10561/1
Regards,
JK
From: Prasanth Pulla ***@***.***>
Sent: 14 July 2021 22:20
To: ARM-software/psa-arch-tests ***@***.***>
Cc: Jothikumar Mani ***@***.***>; Comment ***@***.***>
Subject: Re: [ARM-software/psa-arch-tests] build: api-tests: cmake falls back to default host compiler (#265)
Closed #265<#265> via #268<#268>.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#265 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ALBXKQU3B7DIRDXW2GWIPMLTXW53HANCNFSM44KEKKLQ>.
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When building
psa_arch_tests
in Zephyr with TF-M, cmake falls back to the default C compiler, rather than forwarding the correct ARM cross-compiler, resulting in build failure.The use of the host compiler is caused by this: https://github.com/ARM-software/psa-arch-tests/blob/master/api-tests/CMakeLists.txt#L415-L436
Where the compiler is not passed on, but a C compiler is being looked up here:
https://github.com/ARM-software/psa-arch-tests/blob/master/api-tests/tools/scripts/target_cfg/CMakeLists.txt#L29
To Reproduce
This will result in trying to run the system C compiler (
/Library/Developer/CommandLineTools/usr/bin/cc
here, on OS X) instead of the toolchain that should be passed in (arm-none-eabi-gcc
,arm-zephyr-eabi-gcc
, etc.):Expected behavior
The toolchain triplet (
CROSS_COMPILE
) should be passed in to the cmakeExternalProject
when running the PSA tests so that the right compiler is called.The text was updated successfully, but these errors were encountered: