Skip to content

/opt/oe_lvi/cc is not found while building logging app #4085

Answered by eddyashton
divneil-intel asked this question in Q&A
Discussion options

You must be logged in to vote

@divneil-intel We expect CCF apps to be built with clang, rather than gcc. Prefix your cmake invocation with CC="/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 selected gcc 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.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@divneil-intel
Comment options

@eddyashton
Comment options

@divneil-intel
Comment options

@eddyashton
Comment options

Answer selected by divneil-intel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants