mirtest-dev is hard to use as the objects used are compiled with LTO
Bug #1583536 reported by
Alan Griffiths
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mir |
Fix Released
|
Medium
|
Alan Griffiths | ||
mir (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Linking against mirtest-dev in a downstream project fails as no symbols are not found in the archive.
nm -gC /usr/lib/
gives lots of "nm: FOO.cpp.o: plugin needed to handle lto object" errors
Replacing the archive with one built without LTO fixes the problems.
Adding LTO to the downstream project didn't.
Related branches
lp://qastaging/~alan-griffiths/mir/fix-1583536
- Mir CI Bot: Approve (continuous-integration)
- Cemil Azizoglu (community): Approve
- Kevin DuBois (community): Approve
-
Diff: 66 lines (+14/-2)4 files modifiedtests/mir_test/CMakeLists.txt (+4/-0)
tests/mir_test_doubles/CMakeLists.txt (+5/-1)
tests/mir_test_framework/CMakeLists.txt (+4/-0)
tests/mirtest.pc.in (+1/-1)
lp://qastaging/~alan-griffiths/mir/fix-1583536-for-0.23.1
- Mir development team: Pending requested
-
Diff: 587 lines (+232/-73) (has conflicts)15 files modifieddebian/changelog (+33/-7)
debian/control (+4/-4)
debian/libmircommon6.install (+1/-1)
debian/libmirserver40.install (+1/-1)
src/client/buffer_vault.cpp (+30/-19)
src/client/buffer_vault.h (+2/-0)
src/common/CMakeLists.txt (+1/-1)
src/server/CMakeLists.txt (+1/-1)
src/server/symbols.map (+1/-1)
tests/acceptance-tests/test_prompt_session_client_api.cpp (+2/-2)
tests/mir_test/CMakeLists.txt (+4/-0)
tests/mir_test_doubles/CMakeLists.txt (+5/-1)
tests/mir_test_framework/CMakeLists.txt (+4/-0)
tests/mirtest.pc.in (+1/-1)
tests/unit-tests/client/test_buffer_vault.cpp (+142/-34)
Changed in mir: | |
assignee: | nobody → Alan Griffiths (alan-griffiths) |
milestone: | none → 0.24.0 |
Changed in mir: | |
status: | New → In Progress |
Changed in mir: | |
milestone: | 0.24.0 → 0.23.1 |
milestone: | 0.23.1 → 0.24.0 |
no longer affects: | mir/0.23 |
Changed in mir: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fix committed into lp:mir at revision None, scheduled for release in mir, milestone 0.24.0