Skip to content
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.
diridari edited this page Aug 18, 2020 · 6 revisions

FAQ

Compile Error

Reason

  • Submodules not present

Appearance

find: ‘../../lib/SimpleLogging/src’: No such file or directory
find: ‘../../lib/CPP-Argument-Parser/src’: No such file or directory

Solution

This error results by not initialized submodules. To update those sub modules call:

git submodule init
git submodule update

No global symbol "EUNIT_TARGET_MODE"

Reason

some elements habe been optimization out

Appearance

1:810   :  Error      : decodeSyncMessage        : got gdb Error message : ^error,msg="No global symbol \"EUNIT_TARGET_MODE\"                                                                                           ."
                              from :  ../../src/comChain/decoder/GdbDecoder.cpp:133
1:810   :CriticError  : evaluateExpression       : Failed to evaluate expression "EUNIT_TARGET_MODE"
                             from :  ../../src/comChain/ComGnuDebugger.cpp:91
The target has not defined "#EUNIT_TESTMODE" with "1"
is this not the case the "eUnit"-Framework is inactive.
Please set the define to <1> and recompile the framework and flash the target with <-f>
Alternative it is possible to use the "gdbMann::runMode" <--runMode runMode> to use the optional BIST-Mode or to display the                                                                                             "printOverGdb" messages.

Solution

Set the optimization to -Og

Mock/Stub nof found

Reason

Funktion has been optimization out

Appearance

decodeSyncMessage        : got gdb Error message : ^error,msg="-break-insert: Garbage following <location>"
                             from :  ../../src/comChain/decoder/GdbDecoder.cpp:133

Solution

  • Mark origin and Stub/Mock function with "volatile"
  • Disable dead code removal