← Back to team overview

touch-packages team mailing list archive

[Bug 1522581] Re: Mir threadsanitizer build fails with GCC

 

** Also affects: mir (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to mir in Ubuntu.
https://bugs.launchpad.net/bugs/1522581

Title:
  Mir threadsanitizer build fails with GCC

Status in Mir:
  Fix Committed
Status in mir package in Ubuntu:
  New

Bug description:
  A build configured with cmake -DCMAKE_BUILD_TYPE=threadsanitizer fails
  to compile with GCC 5.2.1

  CMake Error at /usr/share/cmake-3.2/Modules/CMakeTestCXXCompiler.cmake:54 (message):
    The C++ compiler "/usr/bin/c++" is not able to compile a simple test
    program.

    It fails with the following output:

     Change Dir: /home/alberto/source/mir/poll-
  test/test/gmock/libs/CMakeFiles/CMakeTmp


    Run Build Command:"/usr/bin/make" "cmTryCompileExec1435623562/fast"

    make[3]: Entering directory
    '/home/alberto/source/mir/poll-test/test/gmock/libs/CMakeFiles/CMakeTmp'

    /usr/bin/make -f CMakeFiles/cmTryCompileExec1435623562.dir/build.make
    CMakeFiles/cmTryCompileExec1435623562.dir/build

    make[4]: Entering directory
    '/home/alberto/source/mir/poll-test/test/gmock/libs/CMakeFiles/CMakeTmp'

    /usr/bin/cmake -E cmake_progress_report
    /home/alberto/source/mir/poll-test/test/gmock/libs/CMakeFiles/CMakeTmp/CMakeFiles
    1

    Building CXX object
    CMakeFiles/cmTryCompileExec1435623562.dir/testCXXCompiler.cxx.o

    /usr/bin/c++ -fPIC -fsanitize=thread -o
    CMakeFiles/cmTryCompileExec1435623562.dir/testCXXCompiler.cxx.o -c
    /home/alberto/source/mir/poll-test/test/gmock/libs/CMakeFiles/CMakeTmp/testCXXCompiler.cxx

  
    Linking CXX executable cmTryCompileExec1435623562

    /usr/bin/cmake -E cmake_link_script
    CMakeFiles/cmTryCompileExec1435623562.dir/link.txt --verbose=1

    /usr/bin/c++ -fPIC -fsanitize=thread
    CMakeFiles/cmTryCompileExec1435623562.dir/testCXXCompiler.cxx.o -o
    cmTryCompileExec1435623562 -rdynamic

    CMakeFiles/cmTryCompileExec1435623562.dir/testCXXCompiler.cxx.o: In
    function `_GLOBAL__sub_I_00099_0_testCXXCompiler.cxx':

    testCXXCompiler.cxx:(.text+0x10): undefined reference to
  `__tsan_init'

    collect2: error: ld returned 1 exit status

    CMakeFiles/cmTryCompileExec1435623562.dir/build.make:88: recipe for target
    'cmTryCompileExec1435623562' failed

    make[4]: *** [cmTryCompileExec1435623562] Error 1

    make[4]: Leaving directory
    '/home/alberto/source/mir/poll-test/test/gmock/libs/CMakeFiles/CMakeTmp'

    Makefile:117: recipe for target 'cmTryCompileExec1435623562/fast'
  failed

    make[3]: Leaving directory
    '/home/alberto/source/mir/poll-test/test/gmock/libs/CMakeFiles/CMakeTmp'

    make[3]: *** [cmTryCompileExec1435623562/fast] Error 2



    CMake will not be able to correctly generate this project.
  Call Stack (most recent call first):
    CMakeLists.txt:40 (project)

To manage notifications about this bug go to:
https://bugs.launchpad.net/mir/+bug/1522581/+subscriptions