Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Building Qt 5.5.0 rc with sanitizers
Qt 6.11 is out! See what's new in the release blog

Building Qt 5.5.0 rc with sanitizers

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 2 Posters 1.8k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    ISanych
    wrote on last edited by
    #1

    I'm trying to build Qt 5.5.0 rc on ubuntu 14.04 with gcc 5.1 with enabled address and undefined sanitizers:

    ./configure --prefix=/opt/qt/5.5.0 -qt-zlib -qt-xcb -qt-libpng -qt-libjpeg -opensource -debug -confirm-license -sanitize address -sanitize undefined
    

    And getting error:

    make[3]: Entering directory `/opt/qt/qt-everywhere-opensource-src-5.5.0-rc/qtbase/src/corelib'
    g++ -pipe -g -fvisibility=hidden -fvisibility-inlines-hidden -std=c++0x -fsanitize=address -fsanitize=undefined -fno-omit-frame-pointer -Wall -W -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_USING_NAMESPACE -DQT_BUILD_CORE_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DELF_INTERPRETER=\"/lib64/ld-linux-x86-64.so.2\" -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I. -I../3rdparty/zlib -I../../include -I../../include/QtCore -I../../include/QtCore/5.5.0 -I../../include/QtCore/5.5.0/QtCore -Iglobal -I../3rdparty/pcre -I../3rdparty/harfbuzz/src -I../3rdparty/md5 -I../3rdparty/md4 -I../3rdparty/sha3 -I../3rdparty/forkfd -I.moc -I../../mkspecs/linux-g++ -x c++-header -c global/qt_pch.h -o .pch/Qt5Core.gch/c++
    g++ -c -pipe -g -fvisibility=hidden -fvisibility-inlines-hidden -std=c++0x -fsanitize=address -fsanitize=undefined -fno-omit-frame-pointer -Wall -W -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_USING_NAMESPACE -DQT_BUILD_CORE_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DELF_INTERPRETER=\"/lib64/ld-linux-x86-64.so.2\" -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I. -I../3rdparty/zlib -I../../include -I../../include/QtCore -I../../include/QtCore/5.5.0 -I../../include/QtCore/5.5.0/QtCore -Iglobal -I../3rdparty/pcre -I../3rdparty/harfbuzz/src -I../3rdparty/md5 -I../3rdparty/md4 -I../3rdparty/sha3 -I../3rdparty/forkfd -I.moc -I../../mkspecs/linux-g++ tools/qstring_compat.cpp -o .obj/qstring_compat.o
    /opt/qt/qt-everywhere-opensource-src-5.5.0-rc/qtbase/bin/moc -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_USING_NAMESPACE -DQT_BUILD_CORE_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DELF_INTERPRETER=\"/lib64/ld-linux-x86-64.so.2\" -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/opt/qt/qt-everywhere-opensource-src-5.5.0-rc/qtbase/mkspecs/linux-g++ -I/opt/qt/qt-everywhere-opensource-src-5.5.0-rc/qtbase/src/corelib -I/opt/qt/qt-everywhere-opensource-src-5.5.0-rc/qtbase/src/3rdparty/zlib -I/opt/qt/qt-everywhere-opensource-src-5.5.0-rc/qtbase/include -I/opt/qt/qt-everywhere-opensource-src-5.5.0-rc/qtbase/include/QtCore -I/opt/qt/qt-everywhere-opensource-src-5.5.0-rc/qtbase/include/QtCore/5.5.0 -I/opt/qt/qt-everywhere-opensource-src-5.5.0-rc/qtbase/include/QtCore/5.5.0/QtCore -I/opt/qt/qt-everywhere-opensource-src-5.5.0-rc/qtbase/src/corelib/global -I/opt/qt/qt-everywhere-opensource-src-5.5.0-rc/qtbase/src/3rdparty/pcre -I/opt/qt/qt-everywhere-opensource-src-5.5.0-rc/qtbase/src/3rdparty/harfbuzz/src -I/opt/qt/qt-everywhere-opensource-src-5.5.0-rc/qtbase/src/3rdparty/md5 -I/opt/qt/qt-everywhere-opensource-src-5.5.0-rc/qtbase/src/3rdparty/md4 -I/opt/qt/qt-everywhere-opensource-src-5.5.0-rc/qtbase/src/3rdparty/sha3 -I/opt/qt/qt-everywhere-opensource-src-5.5.0-rc/qtbase/src/3rdparty/forkfd -I/usr/include/c++/5 -I/usr/include/x86_64-linux-gnu/c++/5 -I/usr/include/c++/5/backward -I/usr/lib/gcc/x86_64-linux-gnu/5/include -I/usr/local/include -I/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed -I/usr/include/x86_64-linux-gnu -I/usr/include animation/qabstractanimation.h -o .moc/moc_qabstractanimation.cpp
    g++ -c -include .pch/Qt5Core -pipe -g -fvisibility=hidden -fvisibility-inlines-hidden -std=c++0x -fsanitize=address -fsanitize=undefined -fno-omit-frame-pointer -Wall -W -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_USING_NAMESPACE -DQT_BUILD_CORE_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DELF_INTERPRETER=\"/lib64/ld-linux-x86-64.so.2\" -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I. -I../3rdparty/zlib -I../../include -I../../include/QtCore -I../../include/QtCore/5.5.0 -I../../include/QtCore/5.5.0/QtCore -Iglobal -I../3rdparty/pcre -I../3rdparty/harfbuzz/src -I../3rdparty/md5 -I../3rdparty/md4 -I../3rdparty/sha3 -I../3rdparty/forkfd -I.moc -I../../mkspecs/linux-g++ -o .obj/qabstractanimation.o animation/qabstractanimation.cpp
    {standard input}: Assembler messages:
    {standard input}:129: Error: symbol `.Lubsan_type4' is already defined
    make[3]: *** [.obj/qabstractanimation.o] Error 1
    make[3]: Leaving directory `/opt/qt/qt-everywhere-opensource-src-5.5.0-rc/qtbase/src/corelib'
    make[2]: *** [sub-corelib-make_first] Error 2
    make[2]: Leaving directory `/opt/qt/qt-everywhere-opensource-src-5.5.0-rc/qtbase/src'
    make[1]: *** [sub-src-make_first] Error 2
    make[1]: Leaving directory `/opt/qt/qt-everywhere-opensource-src-5.5.0-rc/qtbase'
    make: *** [module-qtbase-make_first] Error 2
    

    Also I see such output which is not stopping the build:

    ../../corelib/io/qiodevice_p.h:105:33: runtime error: null pointer passed as argument 2, which is declared to never be null
    /usr/include/x86_64-linux-gnu/bits/string3.h:51:71: runtime error: null pointer passed as argument 2, which is declared to never be null
    ../../corelib/io/qiodevice_p.h:175:53: runtime error: null pointer passed as argument 2, which is declared to never be null
    /usr/include/x86_64-linux-gnu/bits/string3.h:57:72: runtime error: null pointer passed as argument 2, which is declared to never be null
    ../../corelib/io/qfiledevice.cpp:564:42: runtime error: null pointer passed as argument 1, which is declared to never be null
    /usr/include/x86_64-linux-gnu/bits/string3.h:51:71: runtime error: null pointer passed as argument 1, which is declared to never be null
    

    I couldn't find solution how to fix it. Does anybody know how to build Qt with sanitizers?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      I think this question should be posted to Qt interest mailing list. Qt developers may be very interested in this information

      (Z(:^

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved