Mir

Mir threadsanitizer build fails with GCC

Bug #1522581 reported by Alberto Aguirre
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mir
Fix Released
Medium
Alberto Aguirre
mir (Ubuntu)
Fix Released
Undecided
Unassigned

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)

Related branches

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:mir at revision None, scheduled for release in mir, milestone 0.19.0

Changed in mir:
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mir - 0.19.0+16.04.20160128-0ubuntu1

---------------
mir (0.19.0+16.04.20160128-0ubuntu1) xenial; urgency=medium

  [ Brandon Schaefer ]
  * New upstream release 0.19.0
    - API summary:
      . mirclient abi unchanged at 9
      . mirserver abi bumped to 37
      . mircommon abi unchanged at 5
      . mirplatform abi unchanged at 11
      . mirprotobuf abi unchanged at 3
      . mirplatformgraphics abi bumped to 7
      . mirclientplatform abi bumped to 4
      . mirinputplatform abi bumped to 5
      . mircookie abi bumped to 2
    - Bug fix:
      . Mir servers crash on mouse input (LP: #1528438)
      . Pinch to zoom not working reliably (LP: #1531517)
      . Passing DisplayConfiguration scale property from
        nested server to host appears to not work (LP: #1535780)
      . Various TSan reports when running test suite
        on a mir tsan enabled build (LP: #1523647)
      . Buffer leak during repeated mirscreencasts
        causes server to be killed (LP: #1523900)
      . Cursor now displays correctly (LP: #1526779)
      .ProgramOption::parse_file() reports problems to cerr (LP: #1190165)
      . Nested servers can select wrong platform (LP: #1515558)
      . There seems to be missing RTTI information
         when linking with UBSan enabled (LP: #1521930)
      . Mir threadsanitizer build fails with GCC (LP: #1522581)
      . After "make install" mir_demo_server cannot
        find shared object file in /usr/local/lib (LP: #1522836)
      . Fixed a test in TestClientInput (LP: #1523965)
      . Mir servers choose graphics-dummy (or no driver at all)
        over mesa-kms on a desktop (LP: #1528082)
      . Function mir_event_get_close_surface_event is never used (LP: #1447690)
      . mir::input::Surface::consume(MirEvent const& event)
        should not take a reference to an opaque type (LP: #1450797)
      . lintian: E: mir-doc: privacy-breach-logo (LP: #1483471)

  [ CI Train Bot ]
  * No-change rebuild.

 -- Brandon Schaefer <email address hidden> Thu, 28 Jan 2016 12:19:47 +0000

Changed in mir (Ubuntu):
status: New → Fix Released
Changed in mir:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.