Unable to use clang static analyzer with qt Creator 4.0.2 qith qt 5.7
Unsolved
Mobile and Embedded
-
Hello,
Here is my Qt Sample Project .
I'm trying to use clang static analyzer with qt 5.7 for cross compile on arm like beaglebone.
Every time it finishes with warning: Clang Static Analyzer finished with exit code: 1
Here i've attached my outputsmain.cpp
#include "mainwindow.h" #include <QApplication> int main(int argc, char *argv[]) { QApplication a(argc, argv); MainWindow w; w.show(); return a.exec(); }
mainwindow.cpp
#include "mainwindow.h" #include "ui_mainwindow.h" MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); } MainWindow::~MainWindow() { delete ui; }
:-1: warning: Command line: "/home/jigar/Qt5.7.0/Tools/QtCreator/libexec/qtcreator/clang" "--analyze" "-o" "/tmp/qtc-clangstaticanalyzer-1fqdf5/report-main.cpp-xC5543.plist" "-m32" "-target" "arm-linux-gnueabihf" "-x" "c++" "-std=gnu++11" "-fcxx-exceptions" "-fexceptions" "-D_X86INTRIN_H_INCLUDED =" "-D__DBL_MIN_EXP__=(-1021)" "-D__HQ_FBIT__=15" "-D__cpp_attributes=200809" "-D__UINT_LEAST16_MAX__=0xffff" "-D__ARM_SIZEOF_WCHAR_T=4" "-D__ATOMIC_ACQUIRE=2" "-D__SFRACT_IBIT__=0" "-D__FLT_MIN__=1.1754943508222875e-38F" "-D__GCC_IEC_559_COMPLEX=2" "-D__cpp_aggregate_nsdmi=201304" "-D__UFRACT_MAX__=0XFFFFP-16UR" "-D__UINT_LEAST8_TYPE__=unsigned char" "-D__DQ_FBIT__=63" "-D__INTMAX_C(c)=c ## LL" "-D__ARM_FEATURE_SAT=1" "-D__ULFRACT_FBIT__=32" "-D__SACCUM_EPSILON__=0x1P-7HK" "-D__CHAR_BIT__=8" "-D__USQ_IBIT__=0" "-D__UINT8_MAX__=0xff" "-D__ACCUM_FBIT__=15" "-D__WINT_MAX__=0xffffffffU" "-D__cpp_static_assert=200410" "-D__USFRACT_FBIT__=8" "-D__ORDER_LITTLE_ENDIAN__=1234" "-D__SIZE_MAX__=0xffffffffU" "-D__ARM_ARCH_ISA_ARM=1" "-D__WCHAR_MAX__=0xffffffffU" "-D__LACCUM_IBIT__=32" "-D__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1=1" "-D__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2=1" "-D__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4=1" "-D__DBL_DENORM_MIN__=double(4.9406564584124654e-324L)" "-D__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8=1" "-D__GCC_ATOMIC_CHAR_LOCK_FREE=2" "-D__GCC_IEC_559=2" "-D__FLT_EVAL_METHOD__=0" "-D__unix__=1" "-D__cpp_binary_literals=201304" "-D__LLACCUM_MAX__=0X7FFFFFFFFFFFFFFFP-31LLK" "-D__GCC_ATOMIC_CHAR32_T_LOCK_FREE=2" "-D__FRACT_FBIT__=15" "-D__cpp_variadic_templates=200704" "-D__UINT_FAST64_MAX__=0xffffffffffffffffULL" "-D__SIG_ATOMIC_TYPE__=int" "-D__UACCUM_FBIT__=16" "-D__DBL_MIN_10_EXP__=(-307)" "-D__FINITE_MATH_ONLY__=0" "-D__ARMEL__=1" "-D__cpp_variable_templates=201304" "-D__ARM_FEATURE_UNALIGNED=1" "-D__LFRACT_IBIT__=0" "-D__GNUC_PATCHLEVEL__=1" "-D__LFRACT_MAX__=0X7FFFFFFFP-31LR" "-D__UINT_FAST8_MAX__=0xff" "-D__DEC64_MAX_EXP__=385" "-D__INT8_C(c)=c" "-D__UINT_LEAST64_MAX__=0xffffffffffffffffULL" "-D__SA_FBIT__=15" "-D__SHRT_MAX__=0x7fff" "-D__LDBL_MAX__=1.7976931348623157e+308L" "-D__FRACT_MAX__=0X7FFFP-15R" "-D__thumb2__=1" "-D__UFRACT_FBIT__=16" "-D__ARM_FP=12" "-D__UFRACT_MIN__=0.0UR" "-D__UINT_LEAST8_MAX__=0xff" "-D__GCC_ATOMIC_BOOL_LOCK_FREE=2" "-D__UINTMAX_TYPE__=long long unsigned int" "-D__LLFRACT_EPSILON__=0x1P-63LLR" "-D__linux=1" "-D__DEC32_EPSILON__=1E-6DF" "-D__CHAR_UNSIGNED__=1" "-D__UINT32_MAX__=0xffffffffU" "-D__GXX_EXPERIMENTAL_CXX0X__=1" "-D__ULFRACT_MAX__=0XFFFFFFFFP-32ULR" "-D__TA_IBIT__=64" "-D__LDBL_MAX_EXP__=1024" "-D__WINT_MIN__=0U" "-D__ARM_ASM_SYNTAX_UNIFIED__=1" "-D__linux__=1" "-D__ULLFRACT_MIN__=0.0ULLR" "-D__SCHAR_MAX__=0x7f" "-D__WCHAR_MIN__=0U" "-D__INT64_C(c)=c ## LL" "-D__DBL_DIG__=15" "-D__GCC_ATOMIC_POINTER_LOCK_FREE=2" "-D__LLACCUM_MIN__=(-0X1P31LLK-0X1P31LLK)" "-D__SIZEOF_INT__=4" "-D__SIZEOF_POINTER__=4" "-D__GCC_ATOMIC_CHAR16_T_LOCK_FREE=2" "-D__USACCUM_IBIT__=8" "-D__USER_LABEL_PREFIX__=" "-D__STDC_HOSTED__=1" "-D__LDBL_HAS_INFINITY__=1" "-D__LFRACT_MIN__=(-0.5LR-0.5LR)" "-D__HA_IBIT__=8" "-D__TQ_IBIT__=0" "-D__FLT_EPSILON__=1.1920928955078125e-7F" "-D__APCS_32__=1" "-D__GXX_WEAK__=1" "-D__USFRACT_IBIT__=0" "-D__LDBL_MIN__=2.2250738585072014e-308L" "-D__FRACT_MIN__=(-0.5R-0.5R)" "-D__DEC32_MAX__=9.999999E96DF" "-D__DA_IBIT__=32" "-D__ARM_SIZEOF_MINIMAL_ENUM=4" "-D__INT32_MAX__=0x7fffffff" "-D__UQQ_FBIT__=8" "-D__SIZEOF_LONG__=4" "-D__UACCUM_MAX__=0XFFFFFFFFP-16UK" "-D__STDC_IEC_559__=1" "-D__STDC_ISO_10646__=201505L" "-D__UINT16_C(c)=c" "-D__DECIMAL_DIG__=17" "-D__LFRACT_EPSILON__=0x1P-31LR" "-D__ULFRACT_MIN__=0.0ULR" "-D__gnu_linux__=1" "-D__ARM_PCS_VFP=1" "-D__LDBL_HAS_QUIET_NAN__=1" "-D__ULACCUM_IBIT__=32" "-D_REENTRANT=1" "-D__UACCUM_EPSILON__=0x1P-16UK" "-D__GNUC__=6" "-D__ULLACCUM_MAX__=0XFFFFFFFFFFFFFFFFP-32ULLK" "-D__GXX_RTTI=1" "-D__cpp_delegating_constructors=200604" "-D__HQ_IBIT__=0" "-D__FLT_HAS_DENORM__=1" "-D__SIZEOF_LONG_DOUBLE__=8" "-D__BIGGEST_ALIGNMENT__=8" "-D__STDC_UTF_16__=1" "-D__GNUC_STDC_INLINE__=1" "-D__DQ_IBIT__=0" "-D__DBL_MAX__=double(1.7976931348623157e+308L)" "-D__ULFRACT_IBIT__=0" "-D__cpp_raw_strings=200710" "-D__INT_FAST32_MAX__=0x7fffffff" "-D__DBL_HAS_INFINITY__=1" "-D__INT64_MAX__=0x7fffffffffffffffLL" "-D__ACCUM_IBIT__=16" "-D__DEC32_MIN_EXP__=(-94)" "-D__THUMB_INTERWORK__=1" "-D__LACCUM_MAX__=0X7FFFFFFFFFFFFFFFP-31LK" "-D__INT_FAST16_TYPE__=int" "-D__LDBL_HAS_DENORM__=1" "-D__ARM_FEATURE_LDREX=15" "-D__cpp_ref_qualifiers=200710" "-D__DEC128_MAX__=9.999999999999999999999999999999999E6144DL" "-D__INT_LEAST32_MAX__=0x7fffffff" "-D__DEC32_MIN__=1E-95DF" "-D__ACCUM_MAX__=0X7FFFFFFFP-15K" "-D__DEPRECATED=1" "-D__cpp_rvalue_references=200610" "-D__DBL_MAX_EXP__=1024" "-D__USACCUM_EPSILON__=0x1P-8UHK" "-D__DEC128_EPSILON__=1E-33DL" "-D__SFRACT_MAX__=0X7FP-7HR" "-D__FRACT_IBIT__=0" "-D__PTRDIFF_MAX__=0x7fffffff" "-D__UACCUM_MIN__=0.0UK" "-D__STDC_NO_THREADS__=1" "-D__UACCUM_IBIT__=16" "-D__GNUG__=6" "-D__LONG_LONG_MAX__=0x7fffffffffffffffLL" "-D__SIZEOF_SIZE_T__=4" "-D__ULACCUM_MAX__=0XFFFFFFFFFFFFFFFFP-32ULK" "-D__cpp_rvalue_reference=200610" "-D__cpp_nsdmi=200809" "-D__SIZEOF_WINT_T__=4" "-D__cpp_initializer_lists=200806" "-D__SA_IBIT__=16" "-D__ULLACCUM_MIN__=0.0ULLK" "-D__cpp_hex_float=201603" "-D__GXX_ABI_VERSION=1010" "-D__UTA_FBIT__=64" "-D__FLT_MIN_EXP__=(-125)" "-D__USFRACT_MAX__=0XFFP-8UHR" "-D__UFRACT_IBIT__=0" "-D__cpp_lambdas=200907" "-D__ARM_FEATURE_QBIT=1" "-D__INT_FAST64_TYPE__=long long int" "-D__DBL_MIN__=double(2.2250738585072014e-308L)" "-D__FLT_MIN_10_EXP__=(-37)" "-D__LACCUM_MIN__=(-0X1P31LK-0X1P31LK)" "-D__ULLACCUM_FBIT__=32" "-D__GXX_TYPEINFO_EQUALITY_INLINE=0" "-D__ULLFRACT_EPSILON__=0x1P-64ULLR" "-D__DEC128_MIN__=1E-6143DL" "-D__REGISTER_PREFIX__=" "-D__UINT16_MAX__=0xffff" "-D__DBL_HAS_DENORM__=1" "-D__ACCUM_MIN__=(-0X1P15K-0X1P15K)" "-D__SQ_IBIT__=0" "-D__UINT8_TYPE__=unsigned char" "-D__UHA_FBIT__=8" "-D__NO_INLINE__=1" "-D__SFRACT_MIN__=(-0.5HR-0.5HR)" "-D__UTQ_FBIT__=128" "-D__FLT_MANT_DIG__=24" "-D__VERSION__="6.2.1 20161016"" "-D__UINT64_C(c)=c ## ULL" "-D__ULLFRACT_FBIT__=64" "-D__cpp_unicode_characters=200704" "-D__FRACT_EPSILON__=0x1P-15R" "-D__ULACCUM_MIN__=0.0ULK" "-D_STDC_PREDEF_H=1" "-D__UDA_FBIT__=32" "-D__cpp_decltype_auto=201304" "-D__LLACCUM_EPSILON__=0x1P-31LLK" "-D__GCC_ATOMIC_INT_LOCK_FREE=2" "-D__FLOAT_WORD_ORDER__=__ORDER_LITTLE_ENDIAN__" "-D__USFRACT_MIN__=0.0UHR" "-D__ULLACCUM_IBIT__=32" "-D__UQQ_IBIT__=0" "-D__STDC_IEC_559_COMPLEX__=1" "-D__INT32_C(c)=c" "-D__DEC64_EPSILON__=1E-15DD" "-D__ORDER_PDP_ENDIAN__=3412" "-D__DEC128_MIN_EXP__=(-6142)" "-D__UHQ_FBIT__=16" "-D__LLACCUM_FBIT__=31" "-D__LINARO_SPIN__=0" "-D__INT_FAST32_TYPE__=int" "-D__UINT_LEAST16_TYPE__=short unsigned int" "-Dunix=1" "-D__INT16_MAX__=0x7fff" "-D__cpp_rtti=199711" "-D__SIZE_TYPE__=unsigned int" "-D__UINT64_MAX__=0xffffffffffffffffULL" "-D__UDQ_FBIT__=64" "-D__INT8_TYPE__=signed char" "-D__thumb__=1" "-D__cpp_digit_separators=201309" "-D__ELF__=1" "-D__ULFRACT_EPSILON__=0x1P-32ULR" "-D__LLFRACT_FBIT__=63" "-D__FLT_RADIX__=2" "-D__INT_LEAST16_TYPE__=short int" "-D__ARM_ARCH_PROFILE=65" "-D__LDBL_EPSILON__=2.2204460492503131e-16L" "-D__UINTMAX_C(c)=c ## ULL" "-D__SACCUM_MAX__=0X7FFFP-7HK" "-D__SIG_ATOMIC_MAX__=0x7fffffff" "-D__LINARO_RELEASE__=201611" "-D__GCC_ATOMIC_WCHAR_T_LOCK_FREE=2" "-D__cpp_sized_deallocation=201309" "-D__VFP_FP__=1" "-D__SIZEOF_PTRDIFF_T__=4" "-D__LACCUM_EPSILON__=0x1P-31LK" "-D__DEC32_SUBNORMAL_MIN__=0.000001E-95DF" "-D__INT_FAST16_MAX__=0x7fffffff" "-D__UINT_FAST32_MAX__=0xffffffffU" "-D__UINT_LEAST64_TYPE__=long long unsigned int" "-D__USACCUM_MAX__=0XFFFFP-8UHK" "-D__SFRACT_EPSILON__=0x1P-7HR" "-D__FLT_HAS_QUIET_NAN__=1" "-D__FLT_MAX_10_EXP__=38" "-D__LONG_MAX__=0x7fffffffL" "-D__DEC128_SUBNORMAL_MIN__=0.000000000000000000000000000000001E-6143DL" "-D__FLT_HAS_INFINITY__=1" "-D__unix=1" "-D__cpp_unicode_literals=200710" "-D__USA_FBIT__=16" "-D__UINT_FAST16_TYPE__=unsigned int" "-D__DEC64_MAX__=9.999999999999999E384DD" "-D__ARM_32BIT_STATE=1" "-D__CHAR16_TYPE__=short unsigned int" "-D__PRAGMA_REDEFINE_EXTNAME=1" "-D__INT_LEAST16_MAX__=0x7fff" "-D__DEC64_MANT_DIG__=16" "-D__UINT_LEAST32_MAX__=0xffffffffU" "-D__SACCUM_FBIT__=7" "-D__GCC_ATOMIC_LONG_LOCK_FREE=2" "-D__INT_LEAST64_TYPE__=long long int" "-D__ARM_FEATURE_CLZ=1" "-D__INT16_TYPE__=short int" "-D__INT_LEAST8_TYPE__=signed char" "-D__SQ_FBIT__=31" "-D__DEC32_MAX_EXP__=97" "-D__ARM_ARCH_ISA_THUMB=2" "-D__INT_FAST8_MAX__=0x7f" "-D__ARM_ARCH=7" "-D__INTPTR_MAX__=0x7fffffff" "-D__QQ_FBIT__=7" "-Dlinux=1" "-D__cpp_range_based_for=200907" "-D__UTA_IBIT__=64" "-D__EXCEPTIONS=1" "-D__LDBL_MANT_DIG__=53" "-D__SFRACT_FBIT__=7" "-D__SACCUM_MIN__=(-0X1P7HK-0X1P7HK)" "-D__DBL_HAS_QUIET_NAN__=1" "-D__SIG_ATOMIC_MIN__=(-__SIG_ATOMIC_MAX__ - 1)" "-D__cpp_return_type_deduction=201304" "-D__INTPTR_TYPE__=int" "-D__UINT16_TYPE__=short unsigned int" "-D__WCHAR_TYPE__=unsigned int" "-D__SIZEOF_FLOAT__=4" "-D__THUMBEL__=1" "-D__USQ_FBIT__=32" "-D__pic__=2" "-D__UINTPTR_MAX__=0xffffffffU" "-D__DEC64_MIN_EXP__=(-382)" "-D__cpp_decltype=200707" "-D__INT_FAST64_MAX__=0x7fffffffffffffffLL" "-D__GCC_ATOMIC_TEST_AND_SET_TRUEVAL=1" "-D__FLT_DIG__=6" "-D__UINT_FAST64_TYPE__=long long unsigned int" "-D__INT_MAX__=0x7fffffff" "-D__LACCUM_FBIT__=31" "-D__USACCUM_MIN__=0.0UHK" "-D__UHA_IBIT__=8" "-D__INT64_TYPE__=long long int" "-D__FLT_MAX_EXP__=128" "-D__UTQ_IBIT__=0" "-D__DBL_MANT_DIG__=53" "-D__cpp_inheriting_constructors=200802" "-D__INT_LEAST64_MAX__=0x7fffffffffffffffLL" "-D__DEC64_MIN__=1E-383DD" "-D__WINT_TYPE__=unsigned int" "-D__UINT_LEAST32_TYPE__=unsigned int" "-D__SIZEOF_SHORT__=2" "-D__ULLFRACT_IBIT__=0" "-D__LDBL_MIN_EXP__=(-1021)" "-D__arm__=1" "-D__UDA_IBIT__=32" "-D__INT_LEAST8_MAX__=0x7f" "-D__LFRACT_FBIT__=31" "-D__WCHAR_UNSIGNED__=1" "-D__ARM_ARCH_7A__=1" "-D__LDBL_MAX_10_EXP__=308" "-D__ATOMIC_RELAXED=0" "-D__DBL_EPSILON__=double(2.2204460492503131e-16L)" "-D__ARM_FEATURE_SIMD32=1" "-D__UINT8_C(c)=c" "-D__INT_LEAST32_TYPE__=int" "-D__SIZEOF_WCHAR_T__=4" "-D__UINT64_TYPE__=long long unsigned int" "-D__LLFRACT_MAX__=0X7FFFFFFFFFFFFFFFP-63LLR" "-D__TQ_FBIT__=127" "-D__INT_FAST8_TYPE__=signed char" "-D__ULLACCUM_EPSILON__=0x1P-32ULLK" "-D__UHQ_IBIT__=0" "-D__LLACCUM_IBIT__=32" "-D__DBL_DECIMAL_DIG__=17" "-D__STDC_UTF_32__=1" "-D__DEC_EVAL_METHOD__=2" "-D__TA_FBIT__=63" "-D__UDQ_IBIT__=0" "-D__ORDER_BIG_ENDIAN__=4321" "-D__cpp_runtime_arrays=198712" "-D__ACCUM_EPSILON__=0x1P-15K" "-D__UINT32_C(c)=c ## U" "-D__INTMAX_MAX__=0x7fffffffffffffffLL" "-D__cpp_alias_templates=200704" "-D__BYTE_ORDER__=__ORDER_LITTLE_ENDIAN__" "-D__FLT_DENORM_MIN__=1.4012984643248171e-45F" "-D__LLFRACT_IBIT__=0" "-D__INT8_MAX__=0x7f" "-D__PIC__=2" "-D__UINT_FAST32_TYPE__=unsigned int" "-D__CHAR32_TYPE__=unsigned int" "-D__FLT_MAX__=3.4028234663852886e+38F" "-D__cpp_constexpr=201304" "-D__USACCUM_FBIT__=8" "-D__INT32_TYPE__=int" "-D__SIZEOF_DOUBLE__=8" "-D__cpp_exceptions=199711" "-D__UFRACT_EPSILON__=0x1P-16UR" "-D__INTMAX_TYPE__=long long int" "-D__DEC128_MAX_EXP__=6145" "-D__ATOMIC_CONSUME=1" "-D__GNUC_MINOR__=2" "-D__UINTMAX_MAX__=0xffffffffffffffffULL" "-D__DEC32_MANT_DIG__=7" "-D__HA_FBIT__=7" "-D__DBL_MAX_10_EXP__=308" "-D__LDBL_DENORM_MIN__=4.9406564584124654e-324L" "-D__INT16_C(c)=c" "-D__cpp_generic_lambdas=201304" "-D__STDC__=1" "-D__PTRDIFF_TYPE__=int" "-D__LLFRACT_MIN__=(-0.5LLR-0.5LLR)" "-D__ATOMIC_SEQ_CST=5" "-D__DA_FBIT__=31" "-D__UINT32_TYPE__=unsigned int" "-D__UINTPTR_TYPE__=unsigned int" "-D__USA_IBIT__=16" "-D__DEC64_SUBNORMAL_MIN__=0.000000000000001E-383DD" "-D__ARM_EABI__=1" "-D__DEC128_MANT_DIG__=34" "-D__LDBL_MIN_10_EXP__=(-307)" "-D__SIZEOF_LONG_LONG__=8" "-D__ULACCUM_EPSILON__=0x1P-32ULK" "-D__cpp_user_defined_literals=200809" "-D__SACCUM_IBIT__=8" "-D__GCC_ATOMIC_LLONG_LOCK_FREE=2" "-D__LDBL_DIG__=15" "-D__FLT_DECIMAL_DIG__=9" "-D__UINT_FAST16_MAX__=0xffffffffU" "-D__GCC_ATOMIC_SHORT_LOCK_FREE=2" "-D__ULLFRACT_MAX__=0XFFFFFFFFFFFFFFFFP-64ULLR" "-D__UINT_FAST8_TYPE__=unsigned char" "-D_GNU_SOURCE=1" "-D__USFRACT_EPSILON__=0x1P-8UHR" "-D__ULACCUM_FBIT__=32" "-D__ARM_FEATURE_DSP=1" "-D__QQ_IBIT__=0" "-D__cpp_init_captures=201304" "-D__ATOMIC_ACQ_REL=4" "-D__ATOMIC_RELEASE=3" "-DQT_QML_DEBUG=1" "-DQT_WIDGETS_LIB=1" "-DQT_GUI_LIB=1" "-DQT_CORE_LIB=1" "-I/home/jigar/etc/QT_APPLICATIONS/clang-test/clang-test" "-I/home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5" "-I/home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtWidgets" "-I/home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtGui" "-I/home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore" "-I/home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/x86_64-arago-linux/mkspecs/linux-oe-g++" "-I/home/jigar/etc/QT_APPLICATIONS/clang-test/build-clang-test-AMX335X-Debug" "-I/home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include" "-I." "-I/home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/../lib/gcc/arm-linux-gnueabihf/6.2.1/../../../../arm-linux-gnueabihf/include/c++/6.2.1" "-I/home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/../lib/gcc/arm-linux-gnueabihf/6.2.1/../../../../arm-linux-gnueabihf/include/c++/6.2.1/arm-linux-gnueabihf/." "-I/home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/../lib/gcc/arm-linux-gnueabihf/6.2.1/../../../../arm-linux-gnueabihf/include/c++/6.2.1/backward" "-I/home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/../lib/gcc/arm-linux-gnueabihf/6.2.1/include" "-I/home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/../lib/gcc/arm-linux-gnueabihf/6.2.1/include-fixed" "-I/home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/../lib/gcc/arm-linux-gnueabihf/6.2.1/../../../../arm-linux-gnueabihf/include" "-I/home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/targetNFS/usr/include" "-fPIC" "/home/jigar/etc/QT_APPLICATIONS/clang-test/clang-test/main.cpp" Process Error: 5 Output: In file included from /home/jigar/etc/QT_APPLICATIONS/clang-test/clang-test/main.cpp:1: In file included from /home/jigar/etc/QT_APPLICATIONS/clang-test/clang-test/mainwindow.h:4: In file included from /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtWidgets/QMainWindow:1: In file included from /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtWidgets/qmainwindow.h:43: In file included from /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtWidgets/qwidget.h:44: In file included from /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qobject.h:47: In file included from /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qstring.h:48: /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qchar.h:427:45: error: functions that differ only in their return type cannot be overloaded Q_DECL_RELAXED_CONSTEXPR inline ushort &unicode() Q_DECL_NOTHROW { return ucs; } ~~~~~~~~^ /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qchar.h:426:36: note: previous declaration is here Q_DECL_CONSTEXPR inline ushort unicode() const Q_DECL_NOTHROW { return ucs; } ~~~~~~ ^ /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qchar.h:427:79: error: binding of reference to type 'ushort' (aka 'unsigned short') to a value of type 'const ushort' (aka 'const unsigned short') drops qualifiers Q_DECL_RELAXED_CONSTEXPR inline ushort &unicode() Q_DECL_NOTHROW { return ucs; } ^~~ /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qchar.h:457:84: error: read-only variable is not assignable Q_DECL_RELAXED_CONSTEXPR inline void setCell(uchar acell) Q_DECL_NOTHROW { ucs = ushort((ucs & 0xff00) + acell); } ~~~ ^ /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qchar.h:457:42: error: constexpr function's return type 'void' is not a literal type Q_DECL_RELAXED_CONSTEXPR inline void setCell(uchar acell) Q_DECL_NOTHROW { ucs = ushort((ucs & 0xff00) + acell); } ^ /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qchar.h:458:82: error: read-only variable is not assignable Q_DECL_RELAXED_CONSTEXPR inline void setRow(uchar arow) Q_DECL_NOTHROW { ucs = ushort((ushort(arow)<<8) + (ucs&0xff)); } ~~~ ^ /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qchar.h:458:42: error: constexpr function's return type 'void' is not a literal type Q_DECL_RELAXED_CONSTEXPR inline void setRow(uchar arow) Q_DECL_NOTHROW { ucs = ushort((ushort(arow)<<8) + (ucs&0xff)); } ^ In file included from /home/jigar/etc/QT_APPLICATIONS/clang-test/clang-test/main.cpp:1: In file included from /home/jigar/etc/QT_APPLICATIONS/clang-test/clang-test/mainwindow.h:4: In file included from /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtWidgets/QMainWindow:1: In file included from /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtWidgets/qmainwindow.h:43: In file included from /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtWidgets/qwidget.h:43: In file included from /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtGui/qwindowdefs.h:43: In file included from /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qglobal.h:1143: /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qflags.h:130:83: error: read-only variable is not assignable Q_DECL_RELAXED_CONSTEXPR inline QFlags &operator|=(Enum f) Q_DECL_NOTHROW { i |= Int(f); return *this; } ~ ^ /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qarraydata.h:103:20: note: in instantiation of member function 'QFlags<QArrayData::AllocationOption>::operator|=' requested here result |= CapacityReserved; ^ In file included from /home/jigar/etc/QT_APPLICATIONS/clang-test/clang-test/main.cpp:1: In file included from /home/jigar/etc/QT_APPLICATIONS/clang-test/clang-test/mainwindow.h:4: In file included from /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtWidgets/QMainWindow:1: In file included from /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtWidgets/qmainwindow.h:43: In file included from /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtWidgets/qwidget.h:43: In file included from /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtGui/qwindowdefs.h:43: In file included from /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qglobal.h:1143: /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qflags.h:130:101: error: binding of reference to type 'QFlags<[...]>' to a value of type 'const QFlags<[...]>' drops qualifiers Q_DECL_RELAXED_CONSTEXPR inline QFlags &operator|=(Enum f) Q_DECL_NOTHROW { i |= Int(f); return *this; } ^~~~~ In file included from /home/jigar/etc/QT_APPLICATIONS/clang-test/clang-test/main.cpp:1: In file included from /home/jigar/etc/QT_APPLICATIONS/clang-test/clang-test/mainwindow.h:4: In file included from /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtWidgets/QMainWindow:1: In file included from /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtWidgets/qmainwindow.h:43: In file included from /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtWidgets/qwidget.h:44: In file included from /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qobject.h:47: /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qstring.h:1068:32: error: non-const lvalue reference to type 'ushort' (aka 'unsigned short') cannot bind to a temporary of type 'ushort' ushort& unicode() { return s.data()[i].unicode(); } ^~~~~~~~~~~~~~~~~~~~~ In file included from /home/jigar/etc/QT_APPLICATIONS/clang-test/clang-test/main.cpp:1: In file included from /home/jigar/etc/QT_APPLICATIONS/clang-test/clang-test/mainwindow.h:4: In file included from /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtWidgets/QMainWindow:1: In file included from /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtWidgets/qmainwindow.h:43: In file included from /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtWidgets/qwidget.h:44: In file included from /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qobject.h:49: In file included from /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qlist.h:47: In file included from /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qhashfunctions.h:45: /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qpair.h:88:35: error: constexpr function's return type 'void' is not a literal type Q_DECL_RELAXED_CONSTEXPR void swap(QPair &other) ^ In file included from /home/jigar/etc/QT_APPLICATIONS/clang-test/clang-test/main.cpp:1: In file included from /home/jigar/etc/QT_APPLICATIONS/clang-test/clang-test/mainwindow.h:4: In file included from /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtWidgets/QMainWindow:1: In file included from /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtWidgets/qmainwindow.h:43: In file included from /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtWidgets/qwidget.h:43: In file included from /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtGui/qwindowdefs.h:43: In file included from /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qglobal.h:1143: /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qflags.h:130:83: error: read-only variable is not assignable Q_DECL_RELAXED_CONSTEXPR inline QFlags &operator|=(Enum f) Q_DECL_NOTHROW { i |= Int(f); return *this; } ~ ^ /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:1693:15: note: in instantiation of member function 'QFlags<QMetaType::TypeFlag>::operator|=' requested here flags |= QMetaType::WasDeclaredAsMetaType; ^ In file included from /home/jigar/etc/QT_APPLICATIONS/clang-test/clang-test/main.cpp:1: In file included from /home/jigar/etc/QT_APPLICATIONS/clang-test/clang-test/mainwindow.h:4: In file included from /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtWidgets/QMainWindow:1: In file included from /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtWidgets/qmainwindow.h:43: In file included from /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtWidgets/qwidget.h:43: In file included from /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtGui/qwindowdefs.h:43: In file included from /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qglobal.h:1143: /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qflags.h:130:101: error: binding of reference to type 'QFlags<[...]>' to a value of type 'const QFlags<[...]>' drops qualifiers Q_DECL_RELAXED_CONSTEXPR inline QFlags &operator|=(Enum f) Q_DECL_NOTHROW { i |= Int(f); return *this; } ^~~~~ In file included from /home/jigar/etc/QT_APPLICATIONS/clang-test/clang-test/main.cpp:1: In file included from /home/jigar/etc/QT_APPLICATIONS/clang-test/clang-test/mainwindow.h:4: In file included from /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtWidgets/QMainWindow:1: In file included from /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtWidgets/qmainwindow.h:43: In file included from /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtWidgets/qwidget.h:45: /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmargins.h:124:10: error: read-only variable is not assignable { m_left = aleft; } ~~~~~~ ^ /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmargins.h:123:48: error: constexpr function's return type 'void' is not a literal type Q_DECL_RELAXED_CONSTEXPR inline void QMargins::setLeft(int aleft) Q_DECL_NOTHROW ^ /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmargins.h:127:9: error: read-only variable is not assignable { m_top = atop; } ~~~~~ ^ /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmargins.h:126:48: error: constexpr function's return type 'void' is not a literal type Q_DECL_RELAXED_CONSTEXPR inline void QMargins::setTop(int atop) Q_DECL_NOTHROW ^ /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmargins.h:130:11: error: read-only variable is not assignable { m_right = aright; } ~~~~~~~ ^ /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmargins.h:129:48: error: constexpr function's return type 'void' is not a literal type Q_DECL_RELAXED_CONSTEXPR inline void QMargins::setRight(int aright) Q_DECL_NOTHROW ^ /home/jigar/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmargins.h:133:12: error: read-only variable is not assignable { m_bottom = abottom; } ~~~~~~~~ ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. [0_1523941135385_clang-test.tar.gz](Uploading 100%)