C/C++ project undefined error

10.0 developer
SonarQube deployed: Docker

This is log from gitlab CI.
ce.log don’t shows this job

#12 257.6 09:03:37.330 DEBUG: [pool-2-thread-10] /builds/libs/p2p/messages/payloads.hpp:348 use of undeclared identifier 'BOOST_PP_VARIADIC_TO_SEQ'
#12 257.6 09:03:37.330 DEBUG: [pool-2-thread-10] /builds/libs/p2p/messages/payloads.hpp:364 use of undeclared identifier 'NUP_COMPARE_'
#12 257.6 09:03:37.330 DEBUG: [pool-2-thread-10] /builds/libs/p2p/messages/payloads.hpp:364 use of undeclared identifier 'BOOST_PP_VARIADIC_TO_SEQ'
#12 257.6 09:03:37.330 DEBUG: [pool-2-thread-10] /builds/libs/p2p/messages/payloads.hpp:382 use of undeclared identifier 'NUP_COMPARE_'
#12 257.6 09:03:37.330 DEBUG: [pool-2-thread-10] /builds/libs/p2p/messages/payloads.hpp:382 use of undeclared identifier 'BOOST_PP_VARIADIC_TO_SEQ'
#12 257.6 09:03:37.330 DEBUG: [pool-2-thread-10] /builds/libs/p2p/messages/payloads.hpp:397 use of undeclared identifier 'NUP_COMPARE_'
#12 257.6 09:03:37.330 DEBUG: [pool-2-thread-10] /builds/libs/p2p/messages/payloads.hpp:397 use of undeclared identifier 'BOOST_PP_VARIADIC_TO_SEQ'
#12 257.6 09:03:37.330 DEBUG: [pool-2-thread-10] /builds/libs/p2p/messages/payloads.hpp:410 use of undeclared identifier 'NUP_COMPARE_'
#12 257.6 09:03:37.330 DEBUG: [pool-2-thread-10] /builds/libs/p2p/messages/payloads.hpp:410 use of undeclared identifier 'BOOST_PP_VARIADIC_TO_SEQ'
#12 257.6 09:03:37.330 DEBUG: [pool-2-thread-10] /builds/libs/p2p/messages/payloads.hpp:421 use of undeclared identifier 'NUP_COMPARE_'
#12 257.6 09:03:37.330 DEBUG: [pool-2-thread-10] /builds/libs/p2p/messages/payloads.hpp:421 use of undeclared identifier 'BOOST_PP_VARIADIC_TO_SEQ'
#12 257.6 09:03:37.330 DEBUG: [pool-2-thread-10] /builds/include/nup/api_memtrack.hpp:54 use of undeclared identifier 'NUP_COMPARE_'
#12 257.6 09:03:37.330 DEBUG: [pool-2-thread-10] /builds/include/nup/api_memtrack.hpp:54 use of undeclared identifier 'BOOST_PP_VARIADIC_TO_SEQ'
#12 257.6 09:03:37.330 DEBUG: [pool-2-thread-10] /builds/include/nup/p2p/api_hub.hpp:20 use of undeclared identifier 'bs2'
#12 257.6 09:03:37.330 DEBUG: [pool-2-thread-10] /builds/include/nup/p2p/api_hub.hpp:23 unknown type name 'update_peer_ev_t'
#12 257.6 09:03:37.330 DEBUG: [pool-2-thread-10] /builds/include/nup/chain/api_forks.hpp:13 'boost/functional/hash.hpp' file not found
#12 257.6 09:03:37.330 DEBUG: [pool-2-thread-10] /builds/include/nup/chain/api_forks.hpp:45 use of undeclared identifier 'NUP_COMPARE_'
#12 257.6 09:03:37.330 DEBUG: [pool-2-thread-10] /builds/include/nup/chain/api_forks.hpp:45 use of undeclared identifier 'BOOST_PP_VARIADIC_TO_SEQ'
#12 257.6 09:03:37.331 DEBUG: [pool-2-thread-10] /builds/libs/p2p/kademlia/peers.hpp:27 use of undeclared identifier 'bs2'
#12 257.6 09:03:37.331 DEBUG: [pool-2-thread-10] /builds/libs/p2p/kademlia/peers.hpp:28 use of undeclared identifier 'bs2'
#12 257.6 09:03:37.331 DEBUG: [pool-2-thread-10] /builds/libs/p2p/kademlia/peers.hpp:31 unknown type name 'peer_ev_t'
#12 257.6 09:03:37.331 DEBUG: [pool-2-thread-10] /builds/libs/p2p/kademlia/peers.hpp:32 unknown type name 'peer_ev_t'
#12 257.6 09:03:37.331 DEBUG: [pool-2-thread-10] /builds/libs/p2p/kademlia/peers.hpp:33 unknown type name 'peer_ev_t'
#12 257.6 09:03:37.331 DEBUG: [pool-2-thread-10] /builds/libs/p2p/kademlia/peers.hpp:34 unknown type name 'discovery_ev_t'
#12 257.6 09:03:37.331 DEBUG: [pool-2-thread-10] /builds/libs/p2p/kademlia/peers.hpp:122 no type named 'endpoint_set_t' in namespace 'nup::api::tcp'
#12 257.6 09:03:37.331 DEBUG: [pool-2-thread-10] /builds/libs/p2p/kademlia/routing_table.cpp:60 no matching member function for call to 'shared_from_this'
#12 257.6 09:03:37.331 DEBUG: [pool-2-thread-10] /builds/libs/p2p/kademlia/routing_table.cpp:62 use of undeclared identifier 'self'
#12 257.6 09:03:37.331 DEBUG: [pool-2-thread-10] /builds/libs/p2p/kademlia/routing_table.cpp:65 no matching member function for call to 'shared_from_this'
#12 257.6 09:03:37.331 DEBUG: [pool-2-thread-10] /builds/libs/p2p/kademlia/routing_table.cpp:67 use of undeclared identifier 'self'
#12 257.6 09:03:37.331 DEBUG: [pool-2-thread-10] /builds/libs/p2p/kademlia/routing_table.cpp:70 no matching member function for call to 'shared_from_this'
#12 257.6 09:03:37.331 DEBUG: [pool-2-thread-10] /builds/libs/p2p/kademlia/routing_table.cpp:72 use of undeclared identifier 'self'
#12 257.6 09:03:37.331 DEBUG: [pool-2-thread-10] /builds/libs/p2p/kademlia/routing_table.cpp:349 cannot initialize object parameter of type 'nup::core::subscriber' with an expression of type 'nup::p2p::routing_table'
#12 257.6 09:03:37.331 DEBUG: [pool-2-thread-10] /builds/libs/p2p/kademlia/routing_table.cpp:355 cannot initialize object parameter of type 'nup::core::subscriber' with an expression of type 'nup::p2p::routing_table'
#12 257.6 09:03:37.331 DEBUG: [pool-2-thread-10] /builds/libs/p2p/kademlia/routing_table.cpp:465 no member named 'endpoint_t' in namespace 'nup::api::tcp'
#12 257.6 09:03:37.331 DEBUG: [pool-2-thread-10] /builds/libs/p2p/kademlia/routing_table.cpp:505 cannot initialize object parameter of type 'nup::core::subscriber' with an expression of type 'nup::p2p::routing_table'
#12 257.6 09:03:37.331 DEBUG: [pool-2-thread-10] /builds/libs/p2p/kademlia/routing_table.cpp:786 cannot initialize object parameter of type 'const nup::core::subscriber' with an expression of type 'const nup::p2p::routing_table'
#12 257.6 09:03:37.331 DEBUG: [pool-2-thread-10] /builds/libs/database/cursor.hpp:25 use of undeclared identifier 'native_to_big'
#12 257.6 09:03:37.331 DEBUG: [pool-2-thread-10] /builds/libs/database/cursor.hpp:25 use of undeclared identifier 'native_to_big'
#12 258.5 09:03:38.280 INFO: ------------------------------------------------------------------------
#12 258.5 09:03:38.280 INFO: EXECUTION FAILURE
#12 258.5 09:03:38.280 INFO: ------------------------------------------------------------------------
#12 258.5 09:03:38.284 INFO: Total time: 4:16.307s
#12 259.1 09:03:38.876 INFO: Final Memory: 36M/336M
#12 259.1 09:03:38.876 INFO: ------------------------------------------------------------------------
#12 259.1 09:03:38.876 ERROR: Error during SonarScanner execution
#12 259.1 java.lang.IllegalStateException: 
#12 259.1 The compiler execution timed out, make sure that:
#12 259.1 * the analysis is running on appropriate hardware
#12 259.1 * eventual compiler license check over network is not taking too much time
#12 259.1 The executed process: 
#12 259.1   [/builds/.scannerwork/.sonartmp/14279428984259286984/subprocess, -exec, /usr/lib/llvm-13/bin/clang, /usr/bin/clang-13, -x, c, -v, -dM, -E, -]
#12 259.1 
#12 259.1 	at com.sonar.cpp.driver.ProcessExecutor.execute(ProcessExecutor.java:59)
#12 259.1 	at com.sonar.cpp.driver.ProcessExecutor.execute(ProcessExecutor.java:44)
#12 259.1 	at com.sonar.cpp.analyzer.ClangDriver.runCompiler(ClangDriver.java:843)
#12 259.1 	at com.sonar.cpp.analyzer.ClangDriver.lambda$probeCompiler$12(ClangDriver.java:905)
#12 259.1 	at java.base/java.util.HashMap.computeIfAbsent(Unknown Source)
#12 259.1 	at com.sonar.cpp.analyzer.ClangDriver.probeCompiler(ClangDriver.java:905)
#12 259.1 	at com.sonar.cpp.analyzer.ClangDriver.onCapture(ClangDriver.java:585)
#12 259.1 	at com.sonar.cpp.analyzer.CompilerDrivers.onCapture(CompilerDrivers.java:36)
#12 259.1 	at com.sonar.cpp.plugin.CFamilySensor.lambda$process$25(CFamilySensor.java:1062)
#12 259.1 	at com.sonar.cpp.plugin.BuildWrapperJsonReader.readCaptures(BuildWrapperJsonReader.java:86)
#12 259.1 	at com.sonar.cpp.plugin.CFamilySensor.process(CFamilySensor.java:1060)
#12 259.1 	at com.sonar.cpp.plugin.CFamilySensor.process(CFamilySensor.java:467)
#12 259.1 	at com.sonar.cpp.plugin.CFamilySensor.execute(CFamilySensor.java:239)
#12 259.1 	at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:64)
#12 259.1 	at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:88)
#12 259.1 	at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:64)
#12 259.1 	at org.sonar.scanner.scan.SpringModuleScanContainer.doAfterStart(SpringModuleScanContainer.java:82)
#12 259.1 	at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:188)
#12 259.1 	at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:167)
#12 259.1 	at org.sonar.scanner.scan.SpringProjectScanContainer.scan(SpringProjectScanContainer.java:403)
#12 259.1 	at org.sonar.scanner.scan.SpringProjectScanContainer.scanRecursively(SpringProjectScanContainer.java:399)
#12 259.1 	at org.sonar.scanner.scan.SpringProjectScanContainer.doAfterStart(SpringProjectScanContainer.java:368)
#12 259.1 	at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:188)
#12 259.1 	at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:167)
#12 259.1 	at org.sonar.scanner.bootstrap.SpringGlobalContainer.doAfterStart(SpringGlobalContainer.java:137)
#12 259.1 	at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:188)
#12 259.1 	at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:167)
#12 259.1 	at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:72)
#12 259.1 	at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:66)
#12 259.1 	at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
#12 259.1 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
#12 259.1 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
#12 259.1 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
#12 259.1 	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
#12 259.1 	at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
#12 259.1 	at com.sun.proxy.$Proxy0.execute(Unknown Source)
#12 259.1 	at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
#12 259.1 	at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
#12 259.1 	at org.sonarsource.scanner.cli.Main.execute(Main.java:126)
#12 259.1 	at org.sonarsource.scanner.cli.Main.execute(Main.java:81)
#12 259.1 	at org.sonarsource.scanner.cli.Main.main(Main.java:62)
#12 ERROR: process "/bin/sh -c sonar-scanner ${SONAR_LOG_LEVEL}" did not complete successfully: exit code: 1
------
> [sonar-static 4/4] RUN --mount=type=cache,id=nup-linux/amd64--hunter,target=/opt/sonar-scanner/.sonar/cache     sonar-scanner -X:
#12 259.1 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
#12 259.1 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
#12 259.1 	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
#12 259.1 	at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
#12 259.1 	at com.sun.proxy.$Proxy0.execute(Unknown Source)
#12 259.1 	at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
#12 259.1 	at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
#12 259.1 	at org.sonarsource.scanner.cli.Main.execute(Main.java:126)
#12 259.1 	at org.sonarsource.scanner.cli.Main.execute(Main.java:81)
#12 259.1 	at org.sonarsource.scanner.cli.Main.main(Main.java:62)
------
Dockerfile:115

Hi @Denis_Matveev ,

this means that the invocation of such a process took more time than expected. In your SonarQube version, the timeout is set to 10 seconds. Is your machine busy or doing something else at the same time?

We recently bumped the timeout to 30 seconds and it is going to be available in SonarQube 10.1: [CPP-4295] - Jira.

One more thing, I can see that some files are not found:

Would you be able to share the entire log via private message?

yes, I can send a file to you, write me, please

Is your machine busy or doing something else at the same time?

No, and this is powerful machine with i9 core

 >lscpu
Architecture:                    x86_64
CPU op-mode(s):                  32-bit, 64-bit
Byte Order:                      Little Endian
Address sizes:                   46 bits physical, 48 bits virtual
CPU(s):                          36
On-line CPU(s) list:             0-35
Thread(s) per core:              2
Core(s) per socket:              18