Autolanding keeps failing: mock_egl.h:89:7: error: type 'struct MockEGL' violates one definition rule [-Werror=odr]
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mir |
Fix Released
|
High
|
Daniel van Vugt | ||
mir (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Autolandings are failing with this error:
03:37:16 ../../.
03:37:16 class MockEGL
03:37:16 ^
03:37:16 ../../.
03:37:16 class MockEGL
03:37:16 ^
03:37:16 ../../.
03:37:16 MOCK_METHOD1(
03:37:16 ^
03:37:16 ../../.
03:37:16 MOCK_METHOD1(
03:37:16 ^
03:37:16 /usr/include/
03:37:16 class FunctionMocker<
03:37:16 ^
03:37:16 /usr/include/
03:37:16 class FunctionMocker<
03:37:16 ^
03:37:16 /usr/include/
03:37:16 class NiceMock : public MockClass {
03:37:16 ^
03:37:16 /usr/include/
03:37:16 class NiceMock : public MockClass {
03:37:16 ^
03:37:16 lto1: all warnings being treated as errors
03:37:16 lto-wrapper: fatal error: /usr/bin/
03:37:16 compilation terminated.
03:37:16 /usr/bin/ld.gold: fatal error: lto-wrapper failed
https:/
https:/
Related branches
- Daniel van Vugt: Approve
- Mir CI Bot: Approve (continuous-integration)
-
Diff: 94 lines (+11/-10)3 files modifiedinclude/test/mir/test/doubles/mock_egl.h (+5/-4)
tests/mir_test_doubles/mock_egl.cpp (+5/-5)
tests/unit-tests/graphics/mesa/x11/test_display.cpp (+1/-1)
- Alan Griffiths: Approve
- Mir CI Bot: Approve (continuous-integration)
-
Diff: 12 lines (+1/-1)1 file modifiedtests/unit-tests/graphics/mesa/kms/test_display.cpp (+1/-1)
Changed in mir: | |
milestone: | none → 0.25.0 |
Changed in mir: | |
assignee: | nobody → Daniel van Vugt (vanvugt) |
status: | New → In Progress |
Changed in mir: | |
importance: | Critical → High |
summary: |
- mock_egl.h:89:7: error: type 'struct MockEGL' violates one definition - rule [-Werror=odr] + Autolanding keeps failing: mock_egl.h:89:7: error: type 'struct MockEGL' + violates one definition rule [-Werror=odr] |
Changed in mir: | |
milestone: | 0.25.0 → 0.24.0 |
no longer affects: | mir/0.24 |
Changed in mir: | |
status: | Fix Committed → Fix Released |
The problem is rather obvious in /usr/include/ EGL/eglplatform .h