Mir

Android backend unit-tests FTBS on amd64

Bug #1276621 reported by Ricardo Salveti on 2014-02-05
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mir
Fix Released
Medium
Alexandros Frantzis
mir (Ubuntu)
Undecided
Unassigned

Bug Description

Just try to build mir with the android backend by default on amd64 (-DMIR_PLATFORM=android):

[ 88%] Building CXX object tests/unit-tests/CMakeFiles/mir_unit_tests.dir/graphics/android/test_android_fb.cpp.o
cd /«PKGBUILDDIR»/obj-x86_64-linux-gnu/tests/unit-tests && /usr/bin/x86_64-linux-gnu-g++ -DANDROID -DTEST_RECORDINGS_DIR=\"/«PKGBUILDDIR»/tests/unit-tests/input_recordings/\" -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -pthread -g -std=c++0x -Werror -Wall -fno-strict-aliasing -pedantic -Wnon-virtual-dtor -Wextra -fPIC -fpermissive -O2 -g -DNDEBUG -I/«PKGBUILDDIR»/include/shared -I/«PKGBUILDDIR»/obj-x86_64-linux-gnu/src/shared/protobuf -I/usr/src/gmock/gtest/include -I/«PKGBUILDDIR»/3rd_party/android-deps -I/«PKGBUILDDIR»/3rd_party/android-input/android/frameworks/base/services/input -I/«PKGBUILDDIR»/3rd_party/android-input/android/frameworks/base/include -I/«PKGBUILDDIR»/3rd_party/android-input/android/frameworks/native/include -I/«PKGBUILDDIR»/3rd_party/android-input/android/hardware/libhardware_legacy/include -I/«PKGBUILDDIR»/3rd_party/android-input/android/system/core/include -I/«PKGBUILDDIR»/3rd_party/android-input/android/system/extras/ext4_utils -I/«PKGBUILDDIR»/3rd_party/android-input/android/external/kernel-headers/original -isystem /usr/include/android -I/«PKGBUILDDIR»/include/platform -I/«PKGBUILDDIR»/include/server -I/«PKGBUILDDIR»/include/client -I/«PKGBUILDDIR»/include/test -I/«PKGBUILDDIR» -include /«PKGBUILDDIR»/3rd_party/android-input/android/system/core/include/arch/ubuntu-x86/AndroidConfig.h -DUSING_STD_CPP11 -o CMakeFiles/mir_unit_tests.dir/graphics/android/test_android_fb.cpp.o -c /«PKGBUILDDIR»/tests/unit-tests/graphics/android/test_android_fb.cpp
/«PKGBUILDDIR»/tests/unit-tests/graphics/android/test_buffer_tex_bind.cpp: In member function 'virtual void AndroidBufferBinding_buffer_makes_new_image_with_new_display_Test::TestBody()':
/«PKGBUILDDIR»/tests/unit-tests/graphics/android/test_buffer_tex_bind.cpp:104:66: error: cast from 'EGLDisplay {aka void*}' to 'int' loses precision [-Werror=permissive]
     EGLDisplay second_fake_display = (EGLDisplay) ((int)mock_egl.fake_egl_display +1);
                                                                  ^
/«PKGBUILDDIR»/tests/unit-tests/graphics/android/test_buffer_tex_bind.cpp:104:85: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
     EGLDisplay second_fake_display = (EGLDisplay) ((int)mock_egl.fake_egl_display +1);
                                                                                     ^
/usr/bin/cmake -E cmake_progress_report /«PKGBUILDDIR»/obj-x86_64-linux-gnu/CMakeFiles
/«PKGBUILDDIR»/tests/unit-tests/graphics/android/test_buffer_tex_bind.cpp: In member function 'virtual void AndroidBufferBinding_buffer_frees_images_it_makes_Test::TestBody()':
/«PKGBUILDDIR»/tests/unit-tests/graphics/android/test_buffer_tex_bind.cpp:124:66: error: cast from 'EGLDisplay {aka void*}' to 'int' loses precision [-Werror=permissive]
     EGLDisplay second_fake_display = (EGLDisplay) ((int)mock_egl.fake_egl_display +1);
                                                                  ^
/«PKGBUILDDIR»/tests/unit-tests/graphics/android/test_buffer_tex_bind.cpp:124:85: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
     EGLDisplay second_fake_display = (EGLDisplay) ((int)mock_egl.fake_egl_display +1);
                                                                                     ^
/«PKGBUILDDIR»/tests/unit-tests/graphics/android/test_buffer_tex_bind.cpp: In member function 'virtual void AndroidBufferBinding_buffer_frees_images_it_makes_with_proper_args_Test::TestBody()':
/«PKGBUILDDIR»/tests/unit-tests/graphics/android/test_buffer_tex_bind.cpp:145:66: error: cast from 'EGLDisplay {aka void*}' to 'int' loses precision [-Werror=permissive]
     EGLDisplay second_fake_display = (EGLDisplay) ((int)mock_egl.fake_egl_display +1);
                                                                  ^
/«PKGBUILDDIR»/tests/unit-tests/graphics/android/test_buffer_tex_bind.cpp:145:85: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
     EGLDisplay second_fake_display = (EGLDisplay) ((int)mock_egl.fake_egl_display +1);
                                                                                     ^
[ 88%] Building CXX object tests/unit-tests/CMakeFiles/mir_unit_tests.dir/graphics/android/test_android_alloc_adaptor.cpp.o
cd /«PKGBUILDDIR»/obj-x86_64-linux-gnu/tests/unit-tests && /usr/bin/x86_64-linux-gnu-g++ -DANDROID -DTEST_RECORDINGS_DIR=\"/«PKGBUILDDIR»/tests/unit-tests/input_recordings/\" -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -pthread -g -std=c++0x -Werror -Wall -fno-strict-aliasing -pedantic -Wnon-virtual-dtor -Wextra -fPIC -fpermissive -O2 -g -DNDEBUG -I/«PKGBUILDDIR»/include/shared -I/«PKGBUILDDIR»/obj-x86_64-linux-gnu/src/shared/protobuf -I/usr/src/gmock/gtest/include -I/«PKGBUILDDIR»/3rd_party/android-deps -I/«PKGBUILDDIR»/3rd_party/android-input/android/frameworks/base/services/input -I/«PKGBUILDDIR»/3rd_party/android-input/android/frameworks/base/include -I/«PKGBUILDDIR»/3rd_party/android-input/android/frameworks/native/include -I/«PKGBUILDDIR»/3rd_party/android-input/android/hardware/libhardware_legacy/include -I/«PKGBUILDDIR»/3rd_party/android-input/android/system/core/include -I/«PKGBUILDDIR»/3rd_party/android-input/android/system/extras/ext4_utils -I/«PKGBUILDDIR»/3rd_party/android-input/android/external/kernel-headers/original -isystem /usr/include/android -I/«PKGBUILDDIR»/include/platform -I/«PKGBUILDDIR»/include/server -I/«PKGBUILDDIR»/include/client -I/«PKGBUILDDIR»/include/test -I/«PKGBUILDDIR» -include /«PKGBUILDDIR»/3rd_party/android-input/android/system/core/include/arch/ubuntu-x86/AndroidConfig.h -DUSING_STD_CPP11 -o CMakeFiles/mir_unit_tests.dir/graphics/android/test_android_alloc_adaptor.cpp.o -c /«PKGBUILDDIR»/tests/unit-tests/graphics/android/test_android_alloc_adaptor.cpp
/«PKGBUILDDIR»/tests/unit-tests/graphics/android/test_buffer_tex_bind.cpp: In member function 'virtual void AndroidBufferBinding_buffer_binding_uses_right_image_after_display_swap_Test::TestBody()':
/«PKGBUILDDIR»/tests/unit-tests/graphics/android/test_buffer_tex_bind.cpp:324:66: error: cast from 'EGLDisplay {aka void*}' to 'int' loses precision [-Werror=permissive]
     EGLDisplay second_fake_display = (EGLDisplay) ((int)mock_egl.fake_egl_display +1);
                                                                  ^
/«PKGBUILDDIR»/tests/unit-tests/graphics/android/test_buffer_tex_bind.cpp:324:85: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
     EGLDisplay second_fake_display = (EGLDisplay) ((int)mock_egl.fake_egl_display +1);
                                                                                     ^
/usr/bin/cmake -E cmake_progress_report /«PKGBUILDDIR»/obj-x86_64-linux-gnu/CMakeFiles 47
[ 89%] Building CXX object tests/unit-tests/CMakeFiles/mir_unit_tests.dir/graphics/android/test_hwc_device.cpp.o
cd /«PKGBUILDDIR»/obj-x86_64-linux-gnu/tests/unit-tests && /usr/bin/x86_64-linux-gnu-g++ -DANDROID -DTEST_RECORDINGS_DIR=\"/«PKGBUILDDIR»/tests/unit-tests/input_recordings/\" -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -pthread -g -std=c++0x -Werror -Wall -fno-strict-aliasing -pedantic -Wnon-virtual-dtor -Wextra -fPIC -fpermissive -O2 -g -DNDEBUG -I/«PKGBUILDDIR»/include/shared -I/«PKGBUILDDIR»/obj-x86_64-linux-gnu/src/shared/protobuf -I/usr/src/gmock/gtest/include -I/«PKGBUILDDIR»/3rd_party/android-deps -I/«PKGBUILDDIR»/3rd_party/android-input/android/frameworks/base/services/input -I/«PKGBUILDDIR»/3rd_party/android-input/android/frameworks/base/include -I/«PKGBUILDDIR»/3rd_party/android-input/android/frameworks/native/include -I/«PKGBUILDDIR»/3rd_party/android-input/android/hardware/libhardware_legacy/include -I/«PKGBUILDDIR»/3rd_party/android-input/android/system/core/include -I/«PKGBUILDDIR»/3rd_party/android-input/android/system/extras/ext4_utils -I/«PKGBUILDDIR»/3rd_party/android-input/android/external/kernel-headers/original -isystem /usr/include/android -I/«PKGBUILDDIR»/include/platform -I/«PKGBUILDDIR»/include/server -I/«PKGBUILDDIR»/include/client -I/«PKGBUILDDIR»/include/test -I/«PKGBUILDDIR» -include /«PKGBUILDDIR»/3rd_party/android-input/android/system/core/include/arch/ubuntu-x86/AndroidConfig.h -DUSING_STD_CPP11 -o CMakeFiles/mir_unit_tests.dir/graphics/android/test_hwc_device.cpp.o -c /«PKGBUILDDIR»/tests/unit-tests/graphics/android/test_hwc_device.cpp
cc1plus: all warnings being treated as errors
make[3]: *** [tests/unit-tests/CMakeFiles/mir_unit_tests.dir/graphics/android/test_buffer_tex_bind.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/«PKGBUILDDIR»/obj-x86_64-linux-gnu'
make[2]: *** [tests/unit-tests/CMakeFiles/mir_unit_tests.dir/all] Error 2
make[2]: Leaving directory `/«PKGBUILDDIR»/obj-x86_64-linux-gnu'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/«PKGBUILDDIR»/obj-x86_64-linux-gnu'
dh_auto_build: make -j8 returned exit code 2

Related branches

Changed in mir:
assignee: nobody → Alexandros Frantzis (afrantzis)
status: New → In Progress
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:mir/devel at revision None, scheduled for release in mir, milestone Unknown

Changed in mir:
status: In Progress → Fix Committed
Changed in mir:
milestone: none → 0.1.5
importance: Undecided → Medium
Changed in mir:
status: Fix Committed → Fix Released
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mir - 0.1.5+14.04.20140212-0ubuntu1

---------------
mir (0.1.5+14.04.20140212-0ubuntu1) trusty; urgency=medium

  [ Kevin Gunn ]
  * Cherry-picked from future release 0.1.6:
    - frontend, shell: provide the client process ID in the shell::Session
      interface (LP: #1276704)
  * New upstream release 0.1.5 (https://launchpad.net/mir/+milestone/0.1.5)
    - mirclient ABI bumped to 7
    - mirserver ABI bumped to 15
    - Refactoring to support client-controled RPC.
    - Add an translucent server example (use sparingly, this will kill
      performance!)
    - Add workaround for Qualcomm Snapdragon 8960 driver bug.
    - android-input: Improve debug output
    - Screen rotation support half done (rotation of the screen works but input
      rotation not implemented yet).
    - Add groundwork for overlay support to take better advantage of mobile
      hardware features and optimize composition in future.
    - Add support for HWC 1.2 (Android 4.4)
    - Add groundwork for screencasting (screen recording).
    - Optimized surface resizing, significantly reducing event flooding for
      some input configurations like touch.
    - Bugs fixed:
      . Surfaces no longer visible at all on Nexus 10 (LP: #1271853)
      . mir nested server failure: what(): error binding buffer to texture
        (LP: #1272041)
      . Unity does not process events from evdev device created before unity is
        restarted (autopilot tests) (LP: #1238417)
      . mir_unit_tests can't run on touch images any more (missing
        libumockdev.so.0) (LP: #1271434)
      . chmod 777 /tmp/mir_socket is no longer sufficient for non-root clients
        to connect to a root server (LP: #1272143)
      . Nexus7(2013) flo framerate maxes out at 30fps (LP: #1274189)
      . libmirserver user is unable to #include
         <mir/frontend/template_protobuf_message_processor.h> (LP: #1276162)
      . libmirclient user cannot "#include <mir/client/private.h>"
        (LP: #1276565)
      . AndroidInternalClient.internal_client_creation_and_use hangs on Nexus
        10 (LP: #1270685)
      . Tests that use the InProcessServer bind the default socket file
        (LP: #1271604)
      . BasicConnector threads exit immediately (LP: #1271655)
      . Integration tests TestClientIPCRender.test_accelerated_render fails on
        Galaxy Nexus and Nexus4 (LP: #1272597)
      . Android backend unit-tests FTBS on amd64 (LP: #1276621)
      . Erroneous use of last_consumed in SwitchingBundle::compositor_acquire
        (LP: #1270964)
 -- Ubuntu daily release <email address hidden> Wed, 12 Feb 2014 18:29:29 +0000

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

Other bug subscribers