Error Probing Compiler (Clang)

Having some issues running cfamily with compilation database. Not sure it’s relevant but this happens on Mac Mini M1 ARM via Anka virtualization. I’m not having the issue when running locally on an M1.

Must-share information (formatted with Markdown):

  • Sonarqube 9.7.1
anka@Ankas-Virtual-Machine Desktop % sonar-scanner -v
INFO: Scanner configuration file: /opt/homebrew/Cellar/sonar-scanner/4.8.0.2856/libexec/conf/sonar-scanner.properties
INFO: Project root configuration file: NONE
INFO: SonarScanner 4.8.0.2856
INFO: Java 11.0.18 Homebrew (64-bit)
INFO: Mac OS X 13.2.1 aarch64

The following is where the scanner fails. Log capture with -X:

06:55:19.649 INFO: Loading cache from: server
06:55:19.779 DEBUG: Probing compiler: [/Users/anka/Desktop/Xcode-14.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang, -x, objective-c, -target, arm64-apple-ios15.0-simulator, -isysroot, /Users/anka/Desktop/Xcode-14.2.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.2.sdk, -v, -dM, -E, -]
06:55:29.903 INFO: ------------------------------------------------------------------------
06:55:29.903 INFO: EXECUTION FAILURE
06:55:29.903 INFO: ------------------------------------------------------------------------
06:55:29.904 INFO: Total time: 1:15.855s
06:55:30.014 INFO: Final Memory: 98M/337M
06:55:30.014 INFO: ------------------------------------------------------------------------
06:55:30.014 ERROR: Error during SonarScanner execution
java.lang.IllegalStateException:
The compiler execution timed out, make sure that:
* the analysis is running on appropriate hardware
* eventual compiler license check over network is not taking too much time
The executed process:
  [/private/var/tmp/ankafs.0/.scannerwork/.sonartmp/2138557866909348168/subprocess, -exec, /Users/anka/Desktop/Xcode-14.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang, /Users/anka/Desktop/Xcode-14.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang, -x, objective-c, -target, arm64-apple-ios15.0-simulator, -isysroot, /Users/anka/Desktop/Xcode-14.2.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.2.sdk, -v, -dM, -E, -]
 
	at com.sonar.cpp.driver.ProcessExecutor.execute(ProcessExecutor.java:60)
	at com.sonar.cpp.driver.ProcessExecutor.execute(ProcessExecutor.java:45)
	at com.sonar.cpp.analyzer.ClangDriver.lambda$probeCompiler$9(ClangDriver.java:613)
	at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1134)
	at com.sonar.cpp.analyzer.ClangDriver.probeCompiler(ClangDriver.java:603)

I have run the following which according to the logs is what sonar-scanner is using to probe:

/Users/anka/Desktop/Xcode-14.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -target arm64-apple-ios15.0-simulator -isysroot /Users/anka/Desktop/Xcode-14.2.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.2.sdk -v -dM -E - < /dev/null

If i run this command it shows the following:

 e[35mApple clang version 14.0.0 (clang-1400.0.29.202)e[0m

[21:13:23]: ▸ e[35mTarget: arm64-apple-ios15.0-simulatore[0m

[21:13:23]: ▸ e[35mThread model: posixe[0m

[21:13:23]: ▸ e[35mInstalledDir: /Users/anka/Desktop/Xcode-14.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bine[0m

[21:13:23]: ▸ e[35m"/Users/anka/Desktop/Xcode-14.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" -cc1 -triple arm64-apple-ios15.0.0-simulator -Wundef-prefix=TARGET_OS_ -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -Werror=implicit-function-declaration -E -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name - -mrelocation-model pic -pic-level 2 -mframe-pointer=non-leaf -fno-strict-return -fno-rounding-math -funwind-tables=2 -fobjc-msgsend-selector-stubs -target-sdk-version=16.2 -fvisibility-inlines-hidden-static-local-var -target-cpu apple-m1 -target-feature +v8.5a -target-feature +fp-armv8 -target-feature +neon -target-feature +crc -target-feature +crypto -target-feature +dotprod -target-feature +fp16fml -target-feature +ras -target-feature +lse -target-feature +rdm -target-feature +rcpc -target-feature +zcm -target-feature +zcz -target-feature +fullfp16 -target-feature +sm4 -target-feature +sha3 -target-feature +sha2 -target-feature +aes -target-abi darwinpcs -fallow-half-arguments-and-returns -debugger-tuning=lldb -target-linker-version 820.1 -v -resource-dir /Users/anka/Desktop/Xcode-14.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.0 -isysroot /Users/anka/Desktop/Xcode-14.2.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.2.sdk -internal-isystem /Users/anka/Desktop/Xcode-14.2.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.2.sdk/usr/local/include -internal-isystem /Users/anka/Desktop/Xcode-14.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.0/include -internal-externc-isystem /Users/anka/Desktop/Xcode-14.2.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.2.sdk/usr/include -internal-externc-isystem /Users/anka/Desktop/Xcode-14.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -Wno-reorder-init-list -Wno-implicit-int-float-conversion -Wno-c99-designator -Wno-final-dtor-non-final-class -Wno-extra-semi-stmt -Wno-misleading-indentation -Wno-quoted-include-in-framework-header -Wno-implicit-fallthrough -Wno-enum-enum-conversion -Wno-enum-float-conversion -Wno-elaborated-enum-base -Wno-reserved-identifier -Wno-gnu-folding-constant -Wno-cast-function-type -Wno-bitwise-instead-of-logical -fdebug-compilation-dir=/private/var/tmp/ankafs.0 -ferror-limit 19 -stack-protector 1 -mdarwin-stkchk-strong-link -fblocks -fencode-extended-block-signature -fregister-global-dtors-with-atexit -fgnuc-version=4.2.1 -fobjc-runtime=ios-15.0.0 -fobjc-exceptions -fexceptions -fmax-type-align=16 -fcommon -dM -clang-vendor-feature=+messageToSelfInClassMethodIdReturnType -clang-vendor-feature=+disableInferNewAvailabilityFromInit -clang-vendor-feature=+disableNonDependentMemberExprInCurrentInstantiation -fno-odr-hash-protocols -clang-vendor-feature=+enableAggressiveVLAFolding -clang-vendor-feature=+revert09abecef7bbf -clang-vendor-feature=+thisNoAlignAttr -clang-vendor-feature=+thisNoNullAttr -mllvm -disable-aligned-alloc-awareness=1 -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o - -x objective-c -e[0m

[21:13:23]: ▸ e[35mclang -cc1 version 14.0.0 (clang-1400.0.29.202) default target arm64-apple-darwin22.3.0e[0m

[21:13:23]: ▸ e[35mignoring nonexistent directory "/Users/anka/Desktop/Xcode-14.2.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.2.sdk/usr/local/include"e[0m

[21:13:23]: ▸ e[35mignoring nonexistent directory "/Users/anka/Desktop/Xcode-14.2.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.2.sdk/Library/Frameworks"e[0m

[21:13:23]: ▸ e[35m#include "..." search starts here:e[0m

[21:13:23]: ▸ e[35m#include <...> search starts here:e[0m

[21:13:23]: ▸ e[35m/Users/anka/Desktop/Xcode-14.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.0/includee[0m

[21:13:23]: ▸ e[35m/Users/anka/Desktop/Xcode-14.2.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.2.sdk/usr/includee[0m

[21:13:23]: ▸ e[35m/Users/anka/Desktop/Xcode-14.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/includee[0m

[21:13:23]: ▸ e[35m/Users/anka/Desktop/Xcode-14.2.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.2.sdk/System/Library/Frameworks (framework directory)e[0m

[21:13:23]: ▸ e[35mEnd of search list.e[0m

[21:13:23]: ▸ e[35m#define IBAction void)__attribute__((ibaction)e[0m

[21:13:23]: ▸ e[35m#define IBInspectablee[0m

[21:13:23]: ▸ e[35m#define IBOutlet __attribute__((iboutlet))e[0m

[21:13:23]: ▸ e[35m#define IBOutletCollection(ClassName) __attribute__((iboutletcollection(ClassName)))e[0m

[21:13:23]: ▸ e[35m#define IB_DESIGNABLEe[0m

[21:13:23]: ▸ e[35m#define OBJC_NEW_PROPERTIES 1e[0m

[21:13:23]: ▸ e[35m#define OBJC_ZEROCOST_EXCEPTIONS 1e[0m

[21:13:23]: ▸ e[35m#define _LP64 1e[0m

[21:13:23]: ▸ e[35m#define __AARCH64EL__ 1e[0m

[21:13:23]: ▸ e[35m#define __AARCH64_CMODEL_SMALL__ 1e[0m

[21:13:23]: ▸ e[35m#define __AARCH64_SIMD__ 1e[0m

[21:13:23]: ▸ e[35m#define __APPLE_CC__ 6000e[0m

[21:13:23]: ▸ e[35m#define __APPLE_EMBEDDED_SIMULATOR__ 1e[0m

[21:13:23]: ▸ e[35m#define __APPLE__ 1e[0m

[21:13:23]: ▸ e[35m#define __ARM64_ARCH_8__ 1e[0m

[21:13:23]: ▸ e[35m#define __ARM_64BIT_STATE 1e[0m

[21:13:23]: ▸ e[35m#define __ARM_ACLE 200e[0m

[21:13:23]: ▸ e[35m#define __ARM_ALIGN_MAX_STACK_PWR 4e[0m

[21:13:23]: ▸ e[35m#define __ARM_ARCH 8e[0m

[21:13:23]: ▸ e[35m#define __ARM_ARCH_8_3__ 1e[0m

[21:13:23]: ▸ e[35m#define __ARM_ARCH_8_4__ 1e[0m

[21:13:23]: ▸ e[35m#define __ARM_ARCH_8_5__ 1e[0m

[21:13:23]: ▸ e[35m#define __ARM_ARCH_ISA_A64 1e[0m

[21:13:23]: ▸ e[35m#define __ARM_ARCH_PROFILE 'A'e[0m

[21:13:23]: ▸ e[35m#define __ARM_FEATURE_AES 1e[0m

[21:13:23]: ▸ e[35m#define __ARM_FEATURE_ATOMICS 1e[0m

[21:13:23]: ▸ e[35m#define __ARM_FEATURE_CLZ 1e[0m

[21:13:23]: ▸ e[35m#define __ARM_FEATURE_COMPLEX 1e[0m

[21:13:23]: ▸ e[35m#define __ARM_FEATURE_CRC32 1e[0m

[21:13:23]: ▸ e[35m#define __ARM_FEATURE_CRYPTO 1e[0m

[21:13:23]: ▸ e[35m#define __ARM_FEATURE_DIRECTED_ROUNDING 1e[0m

[21:13:23]: ▸ e[35m#define __ARM_FEATURE_DIV 1e[0m

[21:13:23]: ▸ e[35m#define __ARM_FEATURE_DOTPROD 1e[0m

[21:13:23]: ▸ e[35m#define __ARM_FEATURE_FMA 1e[0m

[21:13:23]: ▸ e[35m#define __ARM_FEATURE_FP16_FML 1e[0m

[21:13:23]: ▸ e[35m#define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC 1e[0m

[21:13:23]: ▸ e[35m#define __ARM_FEATURE_FP16_VECTOR_ARITHMETIC 1e[0m

[21:13:23]: ▸ e[35m#define __ARM_FEATURE_FRINT 1e[0m

[21:13:23]: ▸ e[35m#define __ARM_FEATURE_IDIV 1e[0m

[21:13:23]: ▸ e[35m#define __ARM_FEATURE_JCVT 1e[0m

[21:13:23]: ▸ e[35m#define __ARM_FEATURE_LDREX 0xFe[0m

[21:13:23]: ▸ e[35m#define __ARM_FEATURE_NUMERIC_MAXMIN 1e[0m

[21:13:23]: ▸ e[35m#define __ARM_FEATURE_QRDMX 1e[0m

[21:13:23]: ▸ e[35m#define __ARM_FEATURE_SHA2 1e[0m

[21:13:23]: ▸ e[35m#define __ARM_FEATURE_SHA3 1e[0m

[21:13:23]: ▸ e[35m#define __ARM_FEATURE_SHA512 1e[0m

[21:13:23]: ▸ e[35m#define __ARM_FEATURE_SM3 1e[0m

[21:13:23]: ▸ e[35m#define __ARM_FEATURE_SM4 1e[0m

[21:13:23]: ▸ e[35m#define __ARM_FEATURE_UNALIGNED 1e[0m

[21:13:23]: ▸ e[35m#define __ARM_FP 0xEe[0m

[21:13:23]: ▸ e[35m#define __ARM_FP16_ARGS 1e[0m

[21:13:23]: ▸ e[35m#define __ARM_FP16_FORMAT_IEEE 1e[0m

[21:13:23]: ▸ e[35m#define __ARM_NEON 1e[0m

[21:13:23]: ▸ e[35m#define __ARM_NEON_FP 0xEe[0m

[21:13:23]: ▸ e[35m#define __ARM_NEON__ 1e[0m

[21:13:23]: ▸ e[35m#define __ARM_PCS_AAPCS64 1e[0m

[21:13:23]: ▸ e[35m#define __ARM_SIZEOF_MINIMAL_ENUM 4e[0m

[21:13:23]: ▸ e[35m#define __ARM_SIZEOF_WCHAR_T 4e[0m

[21:13:23]: ▸ e[35m#define __ATOMIC_ACQUIRE 2e[0m

[21:13:23]: ▸ e[35m#define __ATOMIC_ACQ_REL 4e[0m

[21:13:23]: ▸ e[35m#define __ATOMIC_CONSUME 1e[0m

[21:13:23]: ▸ e[35m#define __ATOMIC_RELAXED 0e[0m

[21:13:23]: ▸ e[35m#define __ATOMIC_RELEASE 3e[0m

[21:13:23]: ▸ e[35m#define __ATOMIC_SEQ_CST 5e[0m

[21:13:23]: ▸ e[35m#define __BIGGEST_ALIGNMENT__ 8e[0m

[21:13:23]: ▸ e[35m#define __BLOCKS__ 1e[0m

[21:13:23]: ▸ e[35m#define __BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__e[0m

[21:13:23]: ▸ e[35m#define __CHAR16_TYPE__ unsigned shorte[0m

[21:13:23]: ▸ e[35m#define __CHAR32_TYPE__ unsigned inte[0m

[21:13:23]: ▸ e[35m#define __CHAR_BIT__ 8e[0m

[21:13:23]: ▸ e[35m#define __CLANG_ATOMIC_BOOL_LOCK_FREE 2e[0m

[21:13:23]: ▸ e[35m#define __CLANG_ATOMIC_CHAR16_T_LOCK_FREE 2e[0m

[21:13:23]: ▸ e[35m#define __CLANG_ATOMIC_CHAR32_T_LOCK_FREE 2e[0m

[21:13:23]: ▸ e[35m#define __CLANG_ATOMIC_CHAR_LOCK_FREE 2e[0m

[21:13:23]: ▸ e[35m#define __CLANG_ATOMIC_INT_LOCK_FREE 2e[0m

[21:13:23]: ▸ e[35m#define __CLANG_ATOMIC_LLONG_LOCK_FREE 2e[0m

[21:13:23]: ▸ e[35m#define __CLANG_ATOMIC_LONG_LOCK_FREE 2e[0m

[21:13:23]: ▸ e[35m#define __CLANG_ATOMIC_POINTER_LOCK_FREE 2e[0m

[21:13:23]: ▸ e[35m#define __CLANG_ATOMIC_SHORT_LOCK_FREE 2e[0m

[21:13:23]: ▸ e[35m#define __CLANG_ATOMIC_WCHAR_T_LOCK_FREE 2e[0m

[21:13:23]: ▸ e[35m#define __CONSTANT_CFSTRINGS__ 1e[0m

[21:13:23]: ▸ e[35m#define __DBL_DECIMAL_DIG__ 17e[0m

[21:13:23]: ▸ e[35m#define __DBL_DENORM_MIN__ 4.9406564584124654e-324e[0m

[21:13:23]: ▸ e[35m#define __DBL_DIG__ 15e[0m

[21:13:23]: ▸ e[35m#define __DBL_EPSILON__ 2.2204460492503131e-16e[0m

[21:13:23]: ▸ e[35m#define __DBL_HAS_DENORM__ 1e[0m

[21:13:23]: ▸ e[35m#define __DBL_HAS_INFINITY__ 1e[0m

[21:13:23]: ▸ e[35m#define __DBL_HAS_QUIET_NAN__ 1e[0m

[21:13:23]: ▸ e[35m#define __DBL_MANT_DIG__ 53e[0m

[21:13:23]: ▸ e[35m#define __DBL_MAX_10_EXP__ 308e[0m

[21:13:23]: ▸ e[35m#define __DBL_MAX_EXP__ 1024e[0m

[21:13:23]: ▸ e[35m#define __DBL_MAX__ 1.7976931348623157e+308e[0m

[21:13:23]: ▸ e[35m#define __DBL_MIN_10_EXP__ (-307)e[0m

[21:13:23]: ▸ e[35m#define __DBL_MIN_EXP__ (-1021)e[0m

[21:13:23]: ▸ e[35m#define __DBL_MIN__ 2.2250738585072014e-308e[0m

[21:13:23]: ▸ e[35m#define __DECIMAL_DIG__ __LDBL_DECIMAL_DIG__e[0m

[21:13:23]: ▸ e[35m#define __DYNAMIC__ 1e[0m

[21:13:23]: ▸ e[35m#define __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ 150000e[0m

[21:13:23]: ▸ e[35m#define __ENVIRONMENT_OS_VERSION_MIN_REQUIRED__ 150000e[0m

[21:13:23]: ▸ e[35m#define __EXCEPTIONS 1e[0m

[21:13:23]: ▸ e[35m#define __FINITE_MATH_ONLY__ 0e[0m

[21:13:23]: ▸ e[35m#define __FLT16_DECIMAL_DIG__ 5e[0m

[21:13:23]: ▸ e[35m#define __FLT16_DENORM_MIN__ 5.9604644775390625e-8F16e[0m

[21:13:23]: ▸ e[35m#define __FLT16_DIG__ 3e[0m

[21:13:23]: ▸ e[35m#define __FLT16_EPSILON__ 9.765625e-4F16e[0m

[21:13:23]: ▸ e[35m#define __FLT16_HAS_DENORM__ 1e[0m

[21:13:23]: ▸ e[35m#define __FLT16_HAS_INFINITY__ 1e[0m

[21:13:23]: ▸ e[35m#define __FLT16_HAS_QUIET_NAN__ 1e[0m

[21:13:23]: ▸ e[35m#define __FLT16_MANT_DIG__ 11e[0m

[21:13:23]: ▸ e[35m#define __FLT16_MAX_10_EXP__ 4e[0m

[21:13:23]: ▸ e[35m#define __FLT16_MAX_EXP__ 16e[0m

[21:13:23]: ▸ e[35m#define __FLT16_MAX__ 6.5504e+4F16e[0m

[21:13:23]: ▸ e[35m#define __FLT16_MIN_10_EXP__ (-4)e[0m

[21:13:23]: ▸ e[35m#define __FLT16_MIN_EXP__ (-13)e[0m

[21:13:23]: ▸ e[35m#define __FLT16_MIN__ 6.103515625e-5F16e[0m

[21:13:23]: ▸ e[35m#define __FLT_DECIMAL_DIG__ 9e[0m

[21:13:23]: ▸ e[35m#define __FLT_DENORM_MIN__ 1.40129846e-45Fe[0m

[21:13:23]: ▸ e[35m#define __FLT_DIG__ 6e[0m

[21:13:23]: ▸ e[35m#define __FLT_EPSILON__ 1.19209290e-7Fe[0m

[21:13:23]: ▸ e[35m#define __FLT_EVAL_METHOD__ 0e[0m

[21:13:23]: ▸ e[35m#define __FLT_HAS_DENORM__ 1e[0m

[21:13:23]: ▸ e[35m#define __FLT_HAS_INFINITY__ 1e[0m

[21:13:23]: ▸ e[35m#define __FLT_HAS_QUIET_NAN__ 1e[0m

[21:13:23]: ▸ e[35m#define __FLT_MANT_DIG__ 24e[0m

[21:13:23]: ▸ e[35m#define __FLT_MAX_10_EXP__ 38e[0m

[21:13:23]: ▸ e[35m#define __FLT_MAX_EXP__ 128e[0m

[21:13:23]: ▸ e[35m#define __FLT_MAX__ 3.40282347e+38Fe[0m

[21:13:23]: ▸ e[35m#define __FLT_MIN_10_EXP__ (-37)e[0m

[21:13:23]: ▸ e[35m#define __FLT_MIN_EXP__ (-125)e[0m

[21:13:23]: ▸ e[35m#define __FLT_MIN__ 1.17549435e-38Fe[0m

[21:13:23]: ▸ e[35m#define __FLT_RADIX__ 2e[0m

[21:13:23]: ▸ e[35m#define __GCC_ATOMIC_BOOL_LOCK_FREE 2e[0m

[21:13:23]: ▸ e[35m#define __GCC_ATOMIC_CHAR16_T_LOCK_FREE 2e[0m

[21:13:23]: ▸ e[35m#define __GCC_ATOMIC_CHAR32_T_LOCK_FREE 2e[0m

[21:13:23]: ▸ e[35m#define __GCC_ATOMIC_CHAR_LOCK_FREE 2e[0m

[21:13:23]: ▸ e[35m#define __GCC_ATOMIC_INT_LOCK_FREE 2e[0m

[21:13:23]: ▸ e[35m#define __GCC_ATOMIC_LLONG_LOCK_FREE 2e[0m

[21:13:23]: ▸ e[35m#define __GCC_ATOMIC_LONG_LOCK_FREE 2e[0m

[21:13:23]: ▸ e[35m#define __GCC_ATOMIC_POINTER_LOCK_FREE 2e[0m

[21:13:23]: ▸ e[35m#define __GCC_ATOMIC_SHORT_LOCK_FREE 2e[0m

[21:13:23]: ▸ e[35m#define __GCC_ATOMIC_TEST_AND_SET_TRUEVAL 1e[0m

[21:13:23]: ▸ e[35m#define __GCC_ATOMIC_WCHAR_T_LOCK_FREE 2e[0m

[21:13:23]: ▸ e[35m#define __GCC_HAVE_DWARF2_CFI_ASM 1e[0m

[21:13:23]: ▸ e[35m#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 1e[0m

[21:13:23]: ▸ e[35m#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 1e[0m

[21:13:23]: ▸ e[35m#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 1e[0m

[21:13:23]: ▸ e[35m#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 1e[0m

[21:13:23]: ▸ e[35m#define __GNUC_MINOR__ 2e[0m

[21:13:23]: ▸ e[35m#define __GNUC_PATCHLEVEL__ 1e[0m

[21:13:23]: ▸ e[35m#define __GNUC_STDC_INLINE__ 1e[0m

[21:13:23]: ▸ e[35m#define __GNUC__ 4e[0m

[21:13:23]: ▸ e[35m#define __GXX_ABI_VERSION 1002e[0m

[21:13:23]: ▸ e[35m#define __INT16_C_SUFFIX__e[0m

[21:13:23]: ▸ e[35m#define __INT16_FMTd__ "hd"e[0m

[21:13:23]: ▸ e[35m#define __INT16_FMTi__ "hi"e[0m

[21:13:23]: ▸ e[35m#define __INT16_MAX__ 32767e[0m

[21:13:23]: ▸ e[35m#define __INT16_TYPE__ shorte[0m

[21:13:23]: ▸ e[35m#define __INT32_C_SUFFIX__e[0m

[21:13:23]: ▸ e[35m#define __INT32_FMTd__ "d"e[0m

[21:13:23]: ▸ e[35m#define __INT32_FMTi__ "i"e[0m

[21:13:23]: ▸ e[35m#define __INT32_MAX__ 2147483647e[0m

[21:13:23]: ▸ e[35m#define __INT32_TYPE__ inte[0m

[21:13:23]: ▸ e[35m#define __INT64_C_SUFFIX__ LLe[0m

[21:13:23]: ▸ e[35m#define __INT64_FMTd__ "lld"e[0m

[21:13:23]: ▸ e[35m#define __INT64_FMTi__ "lli"e[0m

[21:13:23]: ▸ e[35m#define __INT64_MAX__ 9223372036854775807LLe[0m

[21:13:23]: ▸ e[35m#define __INT64_TYPE__ long long inte[0m

[21:13:23]: ▸ e[35m#define __INT8_C_SUFFIX__e[0m

[21:13:23]: ▸ e[35m#define __INT8_FMTd__ "hhd"e[0m

[21:13:23]: ▸ e[35m#define __INT8_FMTi__ "hhi"e[0m

[21:13:23]: ▸ e[35m#define __INT8_MAX__ 127e[0m

[21:13:23]: ▸ e[35m#define __INT8_TYPE__ signed chare[0m

[21:13:23]: ▸ e[35m#define __INTMAX_C_SUFFIX__ Le[0m

[21:13:23]: ▸ e[35m#define __INTMAX_FMTd__ "ld"e[0m

[21:13:23]: ▸ e[35m#define __INTMAX_FMTi__ "li"e[0m

[21:13:23]: ▸ e[35m#define __INTMAX_MAX__ 9223372036854775807Le[0m

[21:13:23]: ▸ e[35m#define __INTMAX_TYPE__ long inte[0m

[21:13:23]: ▸ e[35m#define __INTMAX_WIDTH__ 64e[0m

[21:13:23]: ▸ e[35m#define __INTPTR_FMTd__ "ld"e[0m

[21:13:23]: ▸ e[35m#define __INTPTR_FMTi__ "li"e[0m

[21:13:23]: ▸ e[35m#define __INTPTR_MAX__ 9223372036854775807Le[0m

[21:13:23]: ▸ e[35m#define __INTPTR_TYPE__ long inte[0m

[21:13:23]: ▸ e[35m#define __INTPTR_WIDTH__ 64e[0m

[21:13:23]: ▸ e[35m#define __INT_FAST16_FMTd__ "hd"e[0m

[21:13:23]: ▸ e[35m#define __INT_FAST16_FMTi__ "hi"e[0m

[21:13:23]: ▸ e[35m#define __INT_FAST16_MAX__ 32767e[0m

[21:13:23]: ▸ e[35m#define __INT_FAST16_TYPE__ shorte[0m

[21:13:23]: ▸ e[35m#define __INT_FAST32_FMTd__ "d"e[0m

[21:13:23]: ▸ e[35m#define __INT_FAST32_FMTi__ "i"e[0m

[21:13:23]: ▸ e[35m#define __INT_FAST32_MAX__ 2147483647e[0m

[21:13:23]: ▸ e[35m#define __INT_FAST32_TYPE__ inte[0m

[21:13:23]: ▸ e[35m#define __INT_FAST64_FMTd__ "lld"e[0m

[21:13:23]: ▸ e[35m#define __INT_FAST64_FMTi__ "lli"e[0m

[21:13:23]: ▸ e[35m#define __INT_FAST64_MAX__ 9223372036854775807LLe[0m

[21:13:23]: ▸ e[35m#define __INT_FAST64_TYPE__ long long inte[0m

[21:13:23]: ▸ e[35m#define __INT_FAST8_FMTd__ "hhd"e[0m

[21:13:23]: ▸ e[35m#define __INT_FAST8_FMTi__ "hhi"e[0m

[21:13:23]: ▸ e[35m#define __INT_FAST8_MAX__ 127e[0m

[21:13:23]: ▸ e[35m#define __INT_FAST8_TYPE__ signed chare[0m

[21:13:23]: ▸ e[35m#define __INT_LEAST16_FMTd__ "hd"e[0m

[21:13:23]: ▸ e[35m#define __INT_LEAST16_FMTi__ "hi"e[0m

[21:13:23]: ▸ e[35m#define __INT_LEAST16_MAX__ 32767e[0m

[21:13:23]: ▸ e[35m#define __INT_LEAST16_TYPE__ shorte[0m

[21:13:23]: ▸ e[35m#define __INT_LEAST32_FMTd__ "d"e[0m

[21:13:23]: ▸ e[35m#define __INT_LEAST32_FMTi__ "i"e[0m

[21:13:23]: ▸ e[35m#define __INT_LEAST32_MAX__ 2147483647e[0m

[21:13:23]: ▸ e[35m#define __INT_LEAST32_TYPE__ inte[0m

[21:13:23]: ▸ e[35m#define __INT_LEAST64_FMTd__ "lld"e[0m

[21:13:23]: ▸ e[35m#define __INT_LEAST64_FMTi__ "lli"e[0m

[21:13:23]: ▸ e[35m#define __INT_LEAST64_MAX__ 9223372036854775807LLe[0m

[21:13:23]: ▸ e[35m#define __INT_LEAST64_TYPE__ long long inte[0m

[21:13:23]: ▸ e[35m#define __INT_LEAST8_FMTd__ "hhd"e[0m

[21:13:23]: ▸ e[35m#define __INT_LEAST8_FMTi__ "hhi"e[0m

[21:13:23]: ▸ e[35m#define __INT_LEAST8_MAX__ 127e[0m

[21:13:23]: ▸ e[35m#define __INT_LEAST8_TYPE__ signed chare[0m

[21:13:23]: ▸ e[35m#define __INT_MAX__ 2147483647e[0m

[21:13:23]: ▸ e[35m#define __LDBL_DECIMAL_DIG__ 17e[0m

[21:13:23]: ▸ e[35m#define __LDBL_DENORM_MIN__ 4.9406564584124654e-324Le[0m

[21:13:23]: ▸ e[35m#define __LDBL_DIG__ 15e[0m

[21:13:23]: ▸ e[35m#define __LDBL_EPSILON__ 2.2204460492503131e-16Le[0m

[21:13:23]: ▸ e[35m#define __LDBL_HAS_DENORM__ 1e[0m

[21:13:23]: ▸ e[35m#define __LDBL_HAS_INFINITY__ 1e[0m

[21:13:23]: ▸ e[35m#define __LDBL_HAS_QUIET_NAN__ 1e[0m

[21:13:23]: ▸ e[35m#define __LDBL_MANT_DIG__ 53e[0m

[21:13:23]: ▸ e[35m#define __LDBL_MAX_10_EXP__ 308e[0m

[21:13:23]: ▸ e[35m#define __LDBL_MAX_EXP__ 1024e[0m

[21:13:23]: ▸ e[35m#define __LDBL_MAX__ 1.7976931348623157e+308Le[0m

[21:13:23]: ▸ e[35m#define __LDBL_MIN_10_EXP__ (-307)e[0m

[21:13:23]: ▸ e[35m#define __LDBL_MIN_EXP__ (-1021)e[0m

[21:13:23]: ▸ e[35m#define __LDBL_MIN__ 2.2250738585072014e-308Le[0m

[21:13:23]: ▸ e[35m#define __LITTLE_ENDIAN__ 1e[0m

[21:13:23]: ▸ e[35m#define __LONG_LONG_MAX__ 9223372036854775807LLe[0m

[21:13:23]: ▸ e[35m#define __LONG_MAX__ 9223372036854775807Le[0m

[21:13:23]: ▸ e[35m#define __LP64__ 1e[0m

[21:13:23]: ▸ e[35m#define __MACH__ 1e[0m

[21:13:23]: ▸ e[35m#define __NEXT_RUNTIME__ 1e[0m

[21:13:23]: ▸ e[35m#define __NO_INLINE__ 1e[0m

[21:13:23]: ▸ e[35m#define __OBJC2__ 1e[0m

[21:13:23]: ▸ e[35m#define __OBJC_BOOL_IS_BOOL 1e[0m

[21:13:23]: ▸ e[35m#define __OBJC__ 1e[0m

[21:13:23]: ▸ e[35m#define __OPENCL_MEMORY_SCOPE_ALL_SVM_DEVICES 3e[0m

[21:13:23]: ▸ e[35m#define __OPENCL_MEMORY_SCOPE_DEVICE 2e[0m

[21:13:23]: ▸ e[35m#define __OPENCL_MEMORY_SCOPE_SUB_GROUP 4e[0m

[21:13:23]: ▸ e[35m#define __OPENCL_MEMORY_SCOPE_WORK_GROUP 1e[0m

[21:13:23]: ▸ e[35m#define __OPENCL_MEMORY_SCOPE_WORK_ITEM 0e[0m

[21:13:23]: ▸ e[35m#define __ORDER_BIG_ENDIAN__ 4321e[0m

[21:13:23]: ▸ e[35m#define __ORDER_LITTLE_ENDIAN__ 1234e[0m

[21:13:23]: ▸ e[35m#define __ORDER_PDP_ENDIAN__ 3412e[0m

[21:13:23]: ▸ e[35m#define __PIC__ 2e[0m

[21:13:23]: ▸ e[35m#define __POINTER_WIDTH__ 64e[0m

[21:13:23]: ▸ e[35m#define __PRAGMA_REDEFINE_EXTNAME 1e[0m

[21:13:23]: ▸ e[35m#define __PTRDIFF_FMTd__ "ld"e[0m

[21:13:23]: ▸ e[35m#define __PTRDIFF_FMTi__ "li"e[0m

[21:13:23]: ▸ e[35m#define __PTRDIFF_MAX__ 9223372036854775807Le[0m

[21:13:23]: ▸ e[35m#define __PTRDIFF_TYPE__ long inte[0m

[21:13:23]: ▸ e[35m#define __PTRDIFF_WIDTH__ 64e[0m

[21:13:23]: ▸ e[35m#define __REGISTER_PREFIX__e[0m

[21:13:23]: ▸ e[35m#define __SCHAR_MAX__ 127e[0m

[21:13:23]: ▸ e[35m#define __SHRT_MAX__ 32767e[0m

[21:13:23]: ▸ e[35m#define __SIG_ATOMIC_MAX__ 2147483647e[0m

[21:13:23]: ▸ e[35m#define __SIG_ATOMIC_WIDTH__ 32e[0m

[21:13:23]: ▸ e[35m#define __SIZEOF_DOUBLE__ 8e[0m

[21:13:23]: ▸ e[35m#define __SIZEOF_FLOAT__ 4e[0m

[21:13:23]: ▸ e[35m#define __SIZEOF_INT128__ 16e[0m

[21:13:23]: ▸ e[35m#define __SIZEOF_INT__ 4e[0m

[21:13:23]: ▸ e[35m#define __SIZEOF_LONG_DOUBLE__ 8e[0m

[21:13:23]: ▸ e[35m#define __SIZEOF_LONG_LONG__ 8e[0m

[21:13:23]: ▸ e[35m#define __SIZEOF_LONG__ 8e[0m

[21:13:23]: ▸ e[35m#define __SIZEOF_POINTER__ 8e[0m

[21:13:23]: ▸ e[35m#define __SIZEOF_PTRDIFF_T__ 8e[0m

[21:13:23]: ▸ e[35m#define __SIZEOF_SHORT__ 2e[0m

[21:13:23]: ▸ e[35m#define __SIZEOF_SIZE_T__ 8e[0m

[21:13:23]: ▸ e[35m#define __SIZEOF_WCHAR_T__ 4e[0m

[21:13:23]: ▸ e[35m#define __SIZEOF_WINT_T__ 4e[0m

[21:13:23]: ▸ e[35m#define __SIZE_FMTX__ "lX"e[0m

[21:13:23]: ▸ e[35m#define __SIZE_FMTo__ "lo"e[0m

[21:13:23]: ▸ e[35m#define __SIZE_FMTu__ "lu"e[0m

[21:13:23]: ▸ e[35m#define __SIZE_FMTx__ "lx"e[0m

[21:13:23]: ▸ e[35m#define __SIZE_MAX__ 18446744073709551615ULe[0m

[21:13:23]: ▸ e[35m#define __SIZE_TYPE__ long unsigned inte[0m

[21:13:23]: ▸ e[35m#define __SIZE_WIDTH__ 64e[0m

[21:13:23]: ▸ e[35m#define __SSP__ 1e[0m

[21:13:23]: ▸ e[35m#define __STDC_HOSTED__ 1e[0m

[21:13:23]: ▸ e[35m#define __STDC_NO_THREADS__ 1e[0m

[21:13:23]: ▸ e[35m#define __STDC_UTF_16__ 1e[0m

[21:13:23]: ▸ e[35m#define __STDC_UTF_32__ 1e[0m

[21:13:23]: ▸ e[35m#define __STDC_VERSION__ 201112Le[0m

[21:13:23]: ▸ e[35m#define __STDC__ 1e[0m

[21:13:23]: ▸ e[35m#define __UINT16_C_SUFFIX__e[0m

[21:13:23]: ▸ e[35m#define __UINT16_FMTX__ "hX"e[0m

[21:13:23]: ▸ e[35m#define __UINT16_FMTo__ "ho"e[0m

[21:13:23]: ▸ e[35m#define __UINT16_FMTu__ "hu"e[0m

[21:13:23]: ▸ e[35m#define __UINT16_FMTx__ "hx"e[0m

[21:13:23]: ▸ e[35m#define __UINT16_MAX__ 65535e[0m

[21:13:23]: ▸ e[35m#define __UINT16_TYPE__ unsigned shorte[0m

[21:13:23]: ▸ e[35m#define __UINT32_C_SUFFIX__ Ue[0m

[21:13:23]: ▸ e[35m#define __UINT32_FMTX__ "X"e[0m

[21:13:23]: ▸ e[35m#define __UINT32_FMTo__ "o"e[0m

[21:13:23]: ▸ e[35m#define __UINT32_FMTu__ "u"e[0m

[21:13:23]: ▸ e[35m#define __UINT32_FMTx__ "x"e[0m

[21:13:23]: ▸ e[35m#define __UINT32_MAX__ 4294967295Ue[0m

[21:13:23]: ▸ e[35m#define __UINT32_TYPE__ unsigned inte[0m

[21:13:23]: ▸ e[35m#define __UINT64_C_SUFFIX__ ULLe[0m

[21:13:23]: ▸ e[35m#define __UINT64_FMTX__ "llX"e[0m

[21:13:23]: ▸ e[35m#define __UINT64_FMTo__ "llo"e[0m

[21:13:23]: ▸ e[35m#define __UINT64_FMTu__ "llu"e[0m

[21:13:23]: ▸ e[35m#define __UINT64_FMTx__ "llx"e[0m

[21:13:23]: ▸ e[35m#define __UINT64_MAX__ 18446744073709551615ULLe[0m

[21:13:23]: ▸ e[35m#define __UINT64_TYPE__ long long unsigned inte[0m

[21:13:23]: ▸ e[35m#define __UINT8_C_SUFFIX__e[0m

[21:13:23]: ▸ e[35m#define __UINT8_FMTX__ "hhX"e[0m

[21:13:23]: ▸ e[35m#define __UINT8_FMTo__ "hho"e[0m

[21:13:23]: ▸ e[35m#define __UINT8_FMTu__ "hhu"e[0m

[21:13:23]: ▸ e[35m#define __UINT8_FMTx__ "hhx"e[0m

[21:13:23]: ▸ e[35m#define __UINT8_MAX__ 255e[0m

[21:13:23]: ▸ e[35m#define __UINT8_TYPE__ unsigned chare[0m

[21:13:23]: ▸ e[35m#define __UINTMAX_C_SUFFIX__ ULe[0m

[21:13:23]: ▸ e[35m#define __UINTMAX_FMTX__ "lX"e[0m

[21:13:23]: ▸ e[35m#define __UINTMAX_FMTo__ "lo"e[0m

[21:13:23]: ▸ e[35m#define __UINTMAX_FMTu__ "lu"e[0m

[21:13:23]: ▸ e[35m#define __UINTMAX_FMTx__ "lx"e[0m

[21:13:23]: ▸ e[35m#define __UINTMAX_MAX__ 18446744073709551615ULe[0m

[21:13:23]: ▸ e[35m#define __UINTMAX_TYPE__ long unsigned inte[0m

[21:13:23]: ▸ e[35m#define __UINTMAX_WIDTH__ 64e[0m

[21:13:23]: ▸ e[35m#define __UINTPTR_FMTX__ "lX"e[0m

[21:13:23]: ▸ e[35m#define __UINTPTR_FMTo__ "lo"e[0m

[21:13:23]: ▸ e[35m#define __UINTPTR_FMTu__ "lu"e[0m

[21:13:23]: ▸ e[35m#define __UINTPTR_FMTx__ "lx"e[0m

[21:13:23]: ▸ e[35m#define __UINTPTR_MAX__ 18446744073709551615ULe[0m

[21:13:23]: ▸ e[35m#define __UINTPTR_TYPE__ long unsigned inte[0m

[21:13:23]: ▸ e[35m#define __UINTPTR_WIDTH__ 64e[0m

[21:13:23]: ▸ e[35m#define __UINT_FAST16_FMTX__ "hX"e[0m

[21:13:23]: ▸ e[35m#define __UINT_FAST16_FMTo__ "ho"e[0m

[21:13:23]: ▸ e[35m#define __UINT_FAST16_FMTu__ "hu"e[0m

[21:13:23]: ▸ e[35m#define __UINT_FAST16_FMTx__ "hx"e[0m

[21:13:23]: ▸ e[35m#define __UINT_FAST16_MAX__ 65535e[0m

[21:13:23]: ▸ e[35m#define __UINT_FAST16_TYPE__ unsigned shorte[0m

[21:13:23]: ▸ e[35m#define __UINT_FAST32_FMTX__ "X"e[0m

[21:13:23]: ▸ e[35m#define __UINT_FAST32_FMTo__ "o"e[0m

[21:13:23]: ▸ e[35m#define __UINT_FAST32_FMTu__ "u"e[0m

[21:13:23]: ▸ e[35m#define __UINT_FAST32_FMTx__ "x"e[0m

[21:13:23]: ▸ e[35m#define __UINT_FAST32_MAX__ 4294967295Ue[0m

[21:13:23]: ▸ e[35m#define __UINT_FAST32_TYPE__ unsigned inte[0m

[21:13:23]: ▸ e[35m#define __UINT_FAST64_FMTX__ "llX"e[0m

[21:13:23]: ▸ e[35m#define __UINT_FAST64_FMTo__ "llo"e[0m

[21:13:23]: ▸ e[35m#define __UINT_FAST64_FMTu__ "llu"e[0m

[21:13:23]: ▸ e[35m#define __UINT_FAST64_FMTx__ "llx"e[0m

[21:13:23]: ▸ e[35m#define __UINT_FAST64_MAX__ 18446744073709551615ULLe[0m

[21:13:23]: ▸ e[35m#define __UINT_FAST64_TYPE__ long long unsigned inte[0m

[21:13:23]: ▸ e[35m#define __UINT_FAST8_FMTX__ "hhX"e[0m

[21:13:23]: ▸ e[35m#define __UINT_FAST8_FMTo__ "hho"e[0m

[21:13:23]: ▸ e[35m#define __UINT_FAST8_FMTu__ "hhu"e[0m

[21:13:23]: ▸ e[35m#define __UINT_FAST8_FMTx__ "hhx"e[0m

[21:13:23]: ▸ e[35m#define __UINT_FAST8_MAX__ 255e[0m

[21:13:23]: ▸ e[35m#define __UINT_FAST8_TYPE__ unsigned chare[0m

[21:13:23]: ▸ e[35m#define __UINT_LEAST16_FMTX__ "hX"e[0m

[21:13:23]: ▸ e[35m#define __UINT_LEAST16_FMTo__ "ho"e[0m

[21:13:23]: ▸ e[35m#define __UINT_LEAST16_FMTu__ "hu"e[0m

[21:13:23]: ▸ e[35m#define __UINT_LEAST16_FMTx__ "hx"e[0m

[21:13:23]: ▸ e[35m#define __UINT_LEAST16_MAX__ 65535e[0m

[21:13:23]: ▸ e[35m#define __UINT_LEAST16_TYPE__ unsigned shorte[0m

[21:13:23]: ▸ e[35m#define __UINT_LEAST32_FMTX__ "X"e[0m

[21:13:23]: ▸ e[35m#define __UINT_LEAST32_FMTo__ "o"e[0m

[21:13:23]: ▸ e[35m#define __UINT_LEAST32_FMTu__ "u"e[0m

[21:13:23]: ▸ e[35m#define __UINT_LEAST32_FMTx__ "x"e[0m

[21:13:23]: ▸ e[35m#define __UINT_LEAST32_MAX__ 4294967295Ue[0m

[21:13:23]: ▸ e[35m#define __UINT_LEAST32_TYPE__ unsigned inte[0m

[21:13:23]: ▸ e[35m#define __UINT_LEAST64_FMTX__ "llX"e[0m

[21:13:23]: ▸ e[35m#define __UINT_LEAST64_FMTo__ "llo"e[0m

[21:13:23]: ▸ e[35m#define __UINT_LEAST64_FMTu__ "llu"e[0m

[21:13:23]: ▸ e[35m#define __UINT_LEAST64_FMTx__ "llx"e[0m

[21:13:23]: ▸ e[35m#define __UINT_LEAST64_MAX__ 18446744073709551615ULLe[0m

[21:13:23]: ▸ e[35m#define __UINT_LEAST64_TYPE__ long long unsigned inte[0m

[21:13:23]: ▸ e[35m#define __UINT_LEAST8_FMTX__ "hhX"e[0m

[21:13:23]: ▸ e[35m#define __UINT_LEAST8_FMTo__ "hho"e[0m

[21:13:23]: ▸ e[35m#define __UINT_LEAST8_FMTu__ "hhu"e[0m

[21:13:23]: ▸ e[35m#define __UINT_LEAST8_FMTx__ "hhx"e[0m

[21:13:23]: ▸ e[35m#define __UINT_LEAST8_MAX__ 255e[0m

[21:13:23]: ▸ e[35m#define __UINT_LEAST8_TYPE__ unsigned chare[0m

[21:13:23]: ▸ e[35m#define __USER_LABEL_PREFIX__ _e[0m

[21:13:23]: ▸ e[35m#define __VERSION__ "Apple LLVM 14.0.0 (clang-1400.0.29.202)"e[0m

[21:13:23]: ▸ e[35m#define __WCHAR_MAX__ 2147483647e[0m

[21:13:23]: ▸ e[35m#define __WCHAR_TYPE__ inte[0m

[21:13:23]: ▸ e[35m#define __WCHAR_WIDTH__ 32e[0m

[21:13:23]: ▸ e[35m#define __WINT_MAX__ 2147483647e[0m

[21:13:23]: ▸ e[35m#define __WINT_TYPE__ inte[0m

[21:13:23]: ▸ e[35m#define __WINT_WIDTH__ 32e[0m

[21:13:23]: ▸ e[35m#define __aarch64__ 1e[0m

[21:13:23]: ▸ e[35m#define __apple_build_version__ 14000029e[0m

[21:13:23]: ▸ e[35m#define __arm64 1e[0m

[21:13:23]: ▸ e[35m#define __arm64__ 1e[0m

[21:13:23]: ▸ e[35m#define __autoreleasing __attribute__((objc_ownership(autoreleasing)))e[0m

[21:13:23]: ▸ e[35m#define __block __attribute__((__blocks__(byref)))e[0m

[21:13:23]: ▸ e[35m#define __clang__ 1e[0m

[21:13:23]: ▸ e[35m#define __clang_literal_encoding__ "UTF-8"e[0m

[21:13:23]: ▸ e[35m#define __clang_major__ 14e[0m

[21:13:23]: ▸ e[35m#define __clang_minor__ 0e[0m

[21:13:23]: ▸ e[35m#define __clang_patchlevel__ 0e[0m

[21:13:23]: ▸ e[35m#define __clang_version__ "14.0.0 (clang-1400.0.29.202)"e[0m

[21:13:23]: ▸ e[35m#define __clang_wide_literal_encoding__ "UTF-32"e[0m

[21:13:23]: ▸ e[35m#define __llvm__ 1e[0m

[21:13:23]: ▸ e[35m#define __nonnull _Nonnulle[0m

[21:13:23]: ▸ e[35m#define __null_unspecified _Null_unspecifiede[0m

[21:13:23]: ▸ e[35m#define __nullable _Nullablee[0m

[21:13:23]: ▸ e[35m#define __pic__ 2e[0m

[21:13:23]: ▸ e[35m#define __strong __attribute__((objc_ownership(strong)))e[0m

[21:13:23]: ▸ e[35m#define __unsafe_unretained __attribute__((objc_ownership(none)))e[0m

[21:13:23]: ▸ e[35m#define __weak __attribute__((objc_ownership(weak)))e[0m

So it appears perhaps there is something more that scanner is doing to “probe”? Just need some more info on what I can test to isolate why this is only failing in the CI environment.

Added some more log context above if that helps.

Hello @Michael_Carter ,

during the analysis, we are executing clang to get its configuration. As written in the logs, its invocation is timing out, the current time out is 10 seconds which is quite big. That means that the machine might be a bit overloaded while running the analysis. Are you running multiple things in parallel at the same time?
By default, the analyzer uses as many threads as available on the machine, if you have many things running in parallel and want to limit the number of threads used by the analysis you can set manually the number of threads. See the documentation.

Thank you for responding @mpaladin. We are not running multiple things in parallel. I set the thread count to 1 and retried and got the same timeout:

INFO: Sensor CFamily [cpp]
INFO: CFamily plugin version: 6.38.0.60268
INFO: Using compile commands: /private/var/tmp/ankafs.0/.xcpretty/compilation-db.json
INFO: Available processors: 6
INFO: Using 1 thread for analysis, according to value of "sonar.cfamily.threads" property.
INFO: Loading cache from: server
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 1:04.904s
INFO: Final Memory: 80M/280M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarScanner execution
java.lang.IllegalStateException:
The compiler execution timed out, make sure that:
* the analysis is running on appropriate hardware
* eventual compiler license check over network is not taking too much time
The executed process:
  [/private/var/tmp/ankafs.0/.scannerwork/.sonartmp/18158544308788142519/subprocess, -exec, /Users/anka/Desktop/Xcode-14.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang, /Users/anka/Desktop/Xcode-14.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang, -x, objective-c, -target, arm64-apple-ios15.0-simulator, -isysroot, /Users/anka/Desktop/Xcode-14.2.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.2.sdk, -v, -dM, -E, -]
 
	at com.sonar.cpp.driver.ProcessExecutor.execute(ProcessExecutor.java:60)
	at com.sonar.cpp.driver.ProcessExecutor.execute(ProcessExecutor.java:45)
	at com.sonar.cpp.analyzer.ClangDriver.lambda$probeCompiler$9(ClangDriver.java:613)

Also I monitored the machine realtime via Activity Monitor and there was not real big spike in CPU or Disk usage when this failure occurs. Are we sure there is not some other thing that could block it? The error message mentions a license check perhaps? Thanks again for your help.

Hi @Michael_Carter ,

quite strange then.

No, there is no license check for xcode clang.

Could you try to execute the following before calling sonar-scanner?

time /Users/anka/Desktop/Xcode-14.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -target arm64-apple-ios15.0-simulator -isysroot /Users/anka/Desktop/Xcode-14.2.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.2.sdk -v -dM -E - < /dev/null

Hi @mpaladin,

So I did what you suggested and the execution of the command prior to running sonar-scanner is very quick – like 300ms. So I dug some further and I noticed that during the 10 seconds that the sonar-scanner is running the clang probe command itself, there is a process with very high cpu usage called “oahd-helper” running. After doing some Googling I see this is part of the Rosetta translation process from x86 → arm. I think what may be happening is since my failure is in a CI environment that spins up an OS X Virtual Machine that is in a “freshly booted” state, whatever x86 app/tool/etc sonar-scanner is invoking on the output of the “Probing” clang command requires a costly translation operation the first time. I did an experiment where I run the sonar-scanner twice in row and sure enough the first time it timeout, and then the second run (on the same VM immediately after) passes just fine.

I’m wondering is there a way for us to extend that timeout value? Or alternatively if there is something we can run to “pre-warm” the rosetta stuff that sonar-scanner is using. Not sure what that thing is though that requires Rosetta…

  • Mike
1 Like

Hello @Michael_Carter ,

what happens is the following: we are probing Clang compiler using our analyzer binary. Currently, our analyzer binary is x86 64bit, which means that the first time it is executed in a new environment it goes through rosetta translation. Probably the machine is not super fast and rosetta translation leads to hitting the 10 seconds timeout limit.

We are going to improve the situation, probably by raising the timeout limit. With the current situation, I have no workaround for you to not hit the limit. The only way I could see is a custom build and not sure it is the best way to proceed. Would you have the possibility to execute the analysis on intel hardware not requiring rosetta translation?

Well unfortunately we are moving away from the x86 on-premise build nodes and into ARM nodes on AWS. I have the workaround for now which is to run sonar-scanner twice knowing it will fail the first time. Is there a ticket I can follow to know when the timeout limit will be raised?

@Michael_Carter ticket created: [CPP-4295] - Jira.

@mpaladin I see that CPP-4295 was fixed, could you point me to which SQ release would include this fix?

Hi @Michael_Carter ,

it is going to be part of SonarQube 10.1 which is going to be released around mid-June.