/opt/oe_lvi/cc is not found while building logging app #4085
-
I am trying a basic app Docker File:
Executing:
Listing from
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
@divneil-intel We expect CCF apps to be built with Sorry for the obscure error here. The LVI mitigation toolchain needs to shim CMake's compiler variables, which uses CMake's automatically detected preferred compiler, which is looked up extremely early in CMake configuration. I'll see if we can expose a way to set the default for apps, as we currently do for the framework code. |
Beta Was this translation helpful? Give feedback.
@divneil-intel We expect CCF apps to be built with
clang
, rather thangcc
. Prefix yourcmake
invocation withCC="/opt/oe_lvi/clang-10" CXX="/opt/oe_lvi/clang++-10"
(as in this sample app), and the build should proceed correctly. Note this will not work in an existing build directory where any cached CMake state has selectedgcc
as the preferred compiler.Sorry for the obscure error here. The LVI mitigation toolchain needs to shim CMake's compiler variables, which uses CMake's automatically detected preferred compiler, which is looked up extremely early in CMake configuration. I'll see if we can expose a way to set the default for apps, as we currently do for the framework code.