Repository navigation
/opt/oe_lvi/cc is not found while building logging app #4085
|
I am trying a basic app Docker File: Executing: Listing from |
Replies: 1 comment 4 replies
|
Divneil Rai Wadhawan (@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. |
Divneil Rai Wadhawan (@divneil-intel) We expect CCF apps to be built with
clang, rather thangcc. Prefix yourcmakeinvocation 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 selectedgccas 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 fra…