Mir

[regression] FTBFS with -DMIR_LINK_TIME_OPTIMIZATION=on -Duse_debflags=on

Bug #1350343 reported by Alan Griffiths
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mir
Fix Released
Medium
Chris Halse Rogers
mir (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Recently (I think since -r 1800) I've seen a linker error when combining -DMIR_LINK_TIME_OPTIMIZATION=on -Duse_debflags=on. Vis:

Linking CXX executable ../../bin/mir_unit_tests
CMakeFiles/mir_unit_tests.dir/test_variable_length_array.cpp.o (symbol from plugin): warning: memset used with constant zero length parameter; this could be due to transposed parameters
`_ZThn8_N5boost16exception_detail19error_info_injectorISt9exceptionED1Ev' referenced in section `.data.rel.ro' of /tmp/cc8eKqFB.ltrans14.ltrans.o: defined in discarded section `.gnu.linkonce.t._ZN5boost16exception_detail19error_info_injectorISt9exceptionED5Ev' of CMakeFiles/mir_unit_tests.dir/frontend/test_session_mediator_mesa.cpp.o (symbol from plugin)
`_ZThn8_N5boost16exception_detail19error_info_injectorISt9exceptionED0Ev' referenced in section `.data.rel.ro' of /tmp/cc8eKqFB.ltrans14.ltrans.o: defined in discarded section `.gnu.linkonce.t._ZN5boost16exception_detail19error_info_injectorISt9exceptionED0Ev' of CMakeFiles/mir_unit_tests.dir/frontend/test_session_mediator_mesa.cpp.o (symbol from plugin)
/usr/bin/ld: ../../bin/mir_unit_tests: hidden symbol `.LTHUNK1.687447' isn't defined
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
tests/unit-tests/CMakeFiles/mir_unit_tests.dir/build.make:3886: recipe for target 'bin/mir_unit_tests' failed
make[2]: *** [bin/mir_unit_tests] Error 1

Tags: regression

Related branches

Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

This started with -r1800 "build: MIR_LINK_TIME_OPTIMIZATION option to use link time optimization".

I had definitely tried this configuration before proposing that MP, so this must be an interaction with something that landed around that time. :(

Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

Same behaviour on the original branch. Is my memory failing or has something else changed?

Revision history for this message
kevin gunn (kgunn72) wrote :
Changed in mir:
status: New → Opinion
Revision history for this message
kevin gunn (kgunn72) wrote :

please ignore post above, wrong tab!

Changed in mir:
status: Opinion → New
kevin gunn (kgunn72)
no longer affects: qtdeclarative-opensource-src (Ubuntu)
Revision history for this message
Cemil Azizoglu (cemil-azizoglu) wrote :

Since LTO is OFF by default, setting priority to medium.

Changed in mir:
importance: Undecided → Medium
Changed in mir:
assignee: nobody → Chris Halse Rogers (raof)
Changed in mir:
status: New → In Progress
Changed in mir:
milestone: none → 0.19.0
summary: - FTBFS with -DMIR_LINK_TIME_OPTIMIZATION=on -Duse_debflags=on
+ [regression] FTBFS with -DMIR_LINK_TIME_OPTIMIZATION=on
+ -Duse_debflags=on
tags: added: regression
Changed in mir:
milestone: 0.19.0 → 0.20.0
Changed in mir:
milestone: 0.20.0 → 0.21.0
Revision history for this message
Mir CI Bot (mir-ci-bot) wrote :

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

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

This bug was fixed in the package mir - 0.21.0+16.04.20160330-0ubuntu1

---------------
mir (0.21.0+16.04.20160330-0ubuntu1) xenial; urgency=medium

  [ Alberto Aguirre ]
  * New upstream release 0.21.0 (https://launchpad.net/mir/+milestone/0.21.0)
    - ABI summary:
      . mirclient ABI unchanged at 9
      . mirserver ABI unchanged at 38
      . mircommon ABI unchanged at 5
      . mirplatform ABI unchanged at 11
      . mirprotobuf ABI unchanged at 3
      . mirplatformgraphics ABI unchaged at 8
      . mirclientplatform ABI bumped to 5
      . mirinputplatform ABI unchanged at 5
    - Enhancements:
      . New display enumeration API
      . Added Android diagnostic tests to assist during porting to
        new devices
      . Added mir_demo_client_camera: a Video4Linux2 client
    - Bugs fixed:
      . Sometimes devices don't suspend - display turns back on
        immediately (LP: #1549701)
      . Mir crashed with exception 'failed to add sync point to command
        buffer' (LP: #1554635)
      . Mouse cursor is unusably slow in Unity 8 with a 1000Hz mouse
        (LP: #1539009)
      . Packaged mir_unit_tests binary is not suitable for general use
        (LP: #1547015)
      . [regression] Mir stops receiving input after a pause/resume
        cycle (LP: #1548989)
      . NBS (--nbuffers=0) causes software clients to crash with
        std::exception::what: Failed to mmap buffer 13, "Permission denied")
        (LP: #1550432)
      . Fullscreen clients freeze when using NBS with multiple monitors
        (LP: #1551536)
      . [ FAILED ] DisplayConfigurationTest.output_position_is_independent_of_
        orientation (LP: #1552065)
      . The server-side use of MIR_SOCKET is confusing (LP: #1290345)
      . [regression] FTBFS with -DMIR_LINK_TIME_OPTIMIZATION=on
        -Duse_debflags=on (LP: #1350343)
      . Mir On X (mesa-x11) keeps receiving mouse movement events even
        when not focused (LP: #1528110)
      . x11 platform: mouse cursor moves strange (LP: #1546324)
      . Cross compiling to wily/vivid doesn't work (LP: #1549152)
      . Rendering stutters when a new client establishes a connection
        (LP: #1549359)
      . 'mir_demo_server --test-client' crashes (SIGSEGV) when client
        dies (LP: #1555620)
      . [testfail] CI failure: TestClientInput.client_input_config_request_
        receives_all_attached_devices (LP: #1555708)
      . [regression] Mir FTBFS when MIR_ENABLE_TESTS=no (LP: #1556080)
      . Mir-on-X11 doesn't exit (until it gets an event) (LP: #1556210)
      . InputPlatformProbe.x11_platform_found_and_used_when_display_connection_
        works breaks with old input drivers present (LP: #1543049)
      . [regression] MIR_CLIENT_PERF_REPORT is missing window/surface
        names (LP: #1546933)
      . Installed binaries fail to run with mir_demo_server --test-client XXXX
        (LP: #1556160)
      . mir_demo_server --test-client [mir_demo_client_scroll|
        mir_demo_client_flicker] fails (LP: #1556205)
      . The contents of debian/mir-demos.examples are out of date and useless
        (LP: #1557446)

  [ CI Train Bot ]
  * No-change rebuild.

 -- Alberto Aguirre <alberto.aguirre@can...

Read more...

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.