Unity FTBFS with -O3

Bug #1286284 reported by Stephen M. Webb
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Unity
Fix Released
Critical
Stephen M. Webb
unity (Ubuntu)
Fix Released
Critical
Stephen M. Webb

Bug Description

Unity fails to build from source at the -O3 optimization level.

Builds end with the following error.

CMakeFiles/test-gtest.dir/__/services/panel-service.c.o -o test-gtest -L/usr/lib/powerpc64le-linux-gnu/libunity -rdynamic -pthread -Wl,--export-dynamic -L/usr/lib/powerpc64le-linux-gnu/libunity -lunity-protocol-private -latk-bridge-2.0 -lgmodule-2.0 -lindicator3 -ljson-glib-1.0 -lbamf3 -lnotify -lnux-4.0 -lnux-graphics-4.0 -lpcre -lpng12 -lnux-core-4.0 -lGLEW -lGLEWmx -lXxf86vm -lGLU -lGL -lunity-misc -lgtk-3 -lgdk-3 -latk-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo-gobject -lpango-1.0 -lcairo -lxpathselect -lzeitgeist-2.0 -lXext -lXdamage -lXcomposite -lX11-xcb -lXrandr -lXinerama -lICE -lSM -lxslt -lglibmm-2.4 -lstartup-notification-1 -lxcb -lxml2 -lsigc-2.0 -lgeis -lXfixes -lXi -lXrender -lX11 -lunity -ldee-1.0 -ldbusmenu-glib -lgthread-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lupstart -lnih -lnih-dbus -ldbus-1 ../UnityCore/libunity-core-6.0.so.9.0.0 -lcompiz_core -lm libtest-libs-c.a ../gmock/gtest/libgtest.a ../gmock/libgmock.a ../dash/libdash-lib.a ../decorations/libdecorations-lib.a ../hud/libhud-lib.a ../launcher/liblauncher-lib.a ../panel/libpanel-lib.a ../dash/previews/libpreviews-lib.a ../shortcuts/libshortcuts-lib.a ../shutdown/libshutdown-lib.a ../launcher/libswitcher-lib.a ../unity-shared/libunity-shared.a ../unity-shared/libunity-shared-bamf.a ../unity-shared/libunity-shared-standalone.a -lpthread /usr/lib/compiz/libcomposite.so ../unity-shared/libunity-shared-compiz.a -L/usr/lib/compiz -lcompiz_core /usr/lib/compiz/libopengl.so -lopengl -lcomposite -Wl,--export-dynamic -latk-bridge-2.0 -lgmodule-2.0 -lindicator3 -ljson-glib-1.0 -lbamf3 -lnotify -lnux-4.0 -lnux-graphics-4.0 -lpcre -lpng12 -lGLEW -lGLEWmx -lXxf86vm -lGLU -lGL -lunity-misc -lgtk-3 -lgdk-3 -latk-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo-gobject -lpango-1.0 -lcairo -lxpathselect -lzeitgeist-2.0 -lXext -lXdamage -lXcomposite -lX11-xcb -lXrandr -lXinerama -lICE -lSM -lxslt -lglibmm-2.4 -lstartup-notification-1 -lxcb -lxml2 -lgeis -lXfixes -lXi -lXrender -lX11 -ldbusmenu-glib ../UnityCore/libunity-core-6.0.so.9.0.0 -pthread -L/usr/lib/powerpc64le-linux-gnu/libunity -lunity-protocol-private -lnux-core-4.0 -lsigc-2.0 -ldee-1.0 -lgthread-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lm -lpthread -ldl -lGL -lGLU /usr/lib/powerpc64le-linux-gnu/libunity/libunity-protocol-private.so -Wl,-rpath,/usr/lib/powerpc64le-linux-gnu/libunity:/build/buildd/unity-7.1.2+14.04.20140225/obj-powerpc64le-linux-gnu/UnityCore:/usr/lib/compiz
CMakeFiles/test-gtest.dir/test_launcher_controller.cpp.o: In function `unity::TestLauncherController_GetLastIconPriorityUnSticky_Test::TestBody()':
/build/buildd/unity-7.1.2+14.04.20140225/tests/test_launcher_controller.cpp:1059: undefined reference to `int unity::launcher::Controller::Impl::GetLastIconPriority<unity::launcher::VolumeLauncherIcon>(std::string const&, bool)'
CMakeFiles/test-gtest.dir/test_launcher_controller.cpp.o: In function `unity::TestLauncherController_GetLastIconPriorityUnStickyWithAllStickyIcons_Test::TestBody()':
/build/buildd/unity-7.1.2+14.04.20140225/tests/test_launcher_controller.cpp:1079: undefined reference to `int unity::launcher::Controller::Impl::GetLastIconPriority<unity::launcher::VolumeLauncherIcon>(std::string const&, bool)'
CMakeFiles/test-gtest.dir/test_launcher_controller.cpp.o: In function `unity::TestLauncherController_GetLastIconPriorityUnStickyWithSomeStickyIcons_Test::TestBody()':
/build/buildd/unity-7.1.2+14.04.20140225/tests/test_launcher_controller.cpp:1099: undefined reference to `int unity::launcher::Controller::Impl::GetLastIconPriority<unity::launcher::VolumeLauncherIcon>(std::string const&, bool)'
CMakeFiles/test-gtest.dir/test_launcher_controller.cpp.o: In function `unity::TestLauncherController_GetLastIconPriorityUnStickyWithNoIcons_Test::TestBody()':
/build/buildd/unity-7.1.2+14.04.20140225/tests/test_launcher_controller.cpp:1110: undefined reference to `int unity::launcher::Controller::Impl::GetLastIconPriority<unity::launcher::VolumeLauncherIcon>(std::string const&, bool)'
CMakeFiles/test-gtest.dir/test_launcher_controller.cpp.o: In function `unity::TestLauncherController_GetLastIconPriorityUnStickyWithNoIconsAndUri_Test::TestBody()':
/build/buildd/unity-7.1.2+14.04.20140225/tests/test_launcher_controller.cpp:1126: undefined reference to `int unity::launcher::Controller::Impl::GetLastIconPriority<unity::launcher::VolumeLauncherIcon>(std::string const&, bool)'
CMakeFiles/test-gtest.dir/test_launcher_controller.cpp.o:/build/buildd/unity-7.1.2+14.04.20140225/tests/test_launcher_controller.cpp:1135: more undefined references to `int unity::launcher::Controller::Impl::GetLastIconPriority<unity::launcher::VolumeLauncherIcon>(std::string const&, bool)' follow
collect2: error: ld returned 1 exit status

Related branches

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package unity - 7.1.2+14.04.20140228-0ubuntu1

---------------
unity (7.1.2+14.04.20140228-0ubuntu1) trusty; urgency=low

  [ Chris Townsend ]
  * Use the current Launcher instead of the first launcher when
    determing when to highlight the Launcher tile during keynav. (LP:
    #1285361)
  * Fix Dash/Hud fullscreen Autopilot window test on multi-monitor where
    the tests would fail depending on which monitor has the fullscreen
    window. (LP: #1285367)
  * Fix a couple of Panel Autopilot test failures. (LP: #1285737)
  * Fix a few randomly failing Spread Autopilot tests. (LP: #1285758)
  * Fix corner case depending on where a test window opens, a Dash and
    Hud Autopilot test failure can occur. (LP: #1286143)

  [ Stephen M. Webb ]
  * remove -O3 and replace with -O3 for C++ compiles to prevent
    template-related FTBFS (LP: #1286284)
 -- Ubuntu daily release <email address hidden> Fri, 28 Feb 2014 19:53:26 +0000

Changed in unity (Ubuntu):
status: In Progress → Fix Released
Changed in unity:
assignee: nobody → Stephen M. Webb (bregma)
importance: Undecided → Critical
status: New → 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.