Unity 5.12-0ubuntu2 fails to build in Quantal (gcc-4.7)

Bug #1008219 reported by Iain Lane on 2012-06-03
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Nux
Fix Released
High
Unassigned
Unity
Fix Released
High
Unassigned
nux (Ubuntu)
High
Unassigned
unity (Ubuntu)
High
Unassigned

Bug Description

Hi there,

Unity FTBFS due to gcc-4.7. I've cherry-picked the upstream patches.

We'll also need to switch nux to boost 1.49 for its consumers to be able to be compatible with gcc-4.7 too.

[ 10%] Building CXX object UnityCore/CMakeFiles/unity-core-5.0.dir/Categories.cpp.o
cd /build/buildd/unity-5.12/obj-x86_64-linux-gnu/UnityCore && /usr/bin/c++ -Dunity_core_5_0_EXPORTS -DGETTEXT_PACKAGE=\"unity\" -DLENSES_DIR=\"/usr/share/unity/lenses\" -DGNOME_DESKTOP_USE_UNSTABLE_API -std=c++0x -fno-permissive -O2 -g -fPIC -pthread -I/usr/include/dee-1.0 -I/usr/include/Nux-2.0 -I/usr/include/unity/unity -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/sigc++-2.0 -I/usr/lib/x86_64-linux-gnu/sigc++-2.0/include -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 -I/usr/include/gee-1.0 -I/usr/include/libdbusmenu-glib-0.4 -pthread -Werror -Wall -Wcast-align -Wno-uninitialized -Wempty-body -Wformat-security -Winit-self -Warray-bounds -I/build/buildd/unity-5.12/obj-x86_64-linux-gnu -o CMakeFiles/unity-core-5.0.dir/Categories.cpp.o -c /build/buildd/unity-5.12/UnityCore/Categories.cpp
In file included from /build/buildd/unity-5.12/UnityCore/GLibSignal.h:307:0,
                 from /build/buildd/unity-5.12/UnityCore/Model.h:29,
                 from /build/buildd/unity-5.12/UnityCore/Categories.h:25,
                 from /build/buildd/unity-5.12/UnityCore/Categories.cpp:20:
/build/buildd/unity-5.12/UnityCore/GLibSignal-inl.h: In instantiation of 'unity::glib::Signal<R, G, T1, T2, sigc::nil, sigc::nil, sigc::nil, sigc::nil>::Signal(G, const string&, unity::glib::Signal<R, G, T1, T2, sigc::nil, sigc::nil, sigc::nil, sigc::nil>::SignalCallback) [with R = void; G = _DeeModel*; T1 = long unsigned int; T2 = long unsigned int; std::string = std::basic_string<char>; unity::glib::Signal<R, G, T1, T2, sigc::nil, sigc::nil, sigc::nil, sigc::nil>::SignalCallback = sigc::slot<void, _DeeModel*, long unsigned int, long unsigned int, sigc::nil, sigc::nil, sigc::nil, sigc::nil>]':
/build/buildd/unity-5.12/UnityCore/Model-inl.h:80:7: required from 'void unity::dash::Model<RowAdaptor>::OnSwarmNameChanged(const string&) [with RowAdaptor = unity::dash::Category; std::string = std::basic_string<char>]'
/build/buildd/unity-5.12/UnityCore/Model-inl.h:55:3: required from 'void unity::dash::Model<RowAdaptor>::Init() [with RowAdaptor = unity::dash::Category]'
/build/buildd/unity-5.12/UnityCore/Model-inl.h:39:3: required from 'unity::dash::Model<RowAdaptor>::Model() [with RowAdaptor = unity::dash::Category]'
/build/buildd/unity-5.12/UnityCore/Categories.cpp:27:24: required from here
/build/buildd/unity-5.12/UnityCore/GLibSignal-inl.h:243:3: error: 'Connect' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
/build/buildd/unity-5.12/UnityCore/GLibSignal-inl.h:243:3: note: declarations in dependent base 'unity::glib::Signal2<void, _DeeModel*, long unsigned int, long unsigned int>' are not found by unqualified lookup
/build/buildd/unity-5.12/UnityCore/GLibSignal-inl.h:243:3: note: use 'this->Connect' instead
/build/buildd/unity-5.12/UnityCore/GLibSignal-inl.h: In instantiation of 'unity::glib::Signal<R, G, T1, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil>::Signal(G, const string&, unity::glib::Signal<R, G, T1, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil>::SignalCallback) [with R = void; G = _DeeModel*; T1 = _DeeModelIter*; std::string = std::basic_string<char>; unity::glib::Signal<R, G, T1, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil>::SignalCallback = sigc::slot<void, _DeeModel*, _DeeModelIter*, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil>]':
/build/buildd/unity-5.12/UnityCore/Model-inl.h:98:3: required from 'void unity::dash::Model<RowAdaptor>::OnSwarmNameChanged(const string&) [with RowAdaptor = unity::dash::Category; std::string = std::basic_string<char>]'
/build/buildd/unity-5.12/UnityCore/Model-inl.h:55:3: required from 'void unity::dash::Model<RowAdaptor>::Init() [with RowAdaptor = unity::dash::Category]'
/build/buildd/unity-5.12/UnityCore/Model-inl.h:39:3: required from 'unity::dash::Model<RowAdaptor>::Model() [with RowAdaptor = unity::dash::Category]'
/build/buildd/unity-5.12/UnityCore/Categories.cpp:27:24: required from here
/build/buildd/unity-5.12/UnityCore/GLibSignal-inl.h:231:3: error: 'Connect' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
/build/buildd/unity-5.12/UnityCore/GLibSignal-inl.h:231:3: note: declarations in dependent base 'unity::glib::Signal1<void, _DeeModel*, _DeeModelIter*>' are not found by unqualified lookup
/build/buildd/unity-5.12/UnityCore/GLibSignal-inl.h:231:3: note: use 'this->Connect' instead

Iain Lane (laney) on 2012-06-03
Changed in unity (Ubuntu):
status: New → Incomplete
status: Incomplete → In Progress
assignee: nobody → Iain Lane (laney)
Iain Lane (laney) wrote :
Changed in unity (Ubuntu):
status: In Progress → Triaged
importance: Undecided → High
assignee: Iain Lane (laney) → nobody
Changed in nux (Ubuntu):
status: New → Triaged
importance: Undecided → High
tags: added: boost1.49
Dimitri John Ledkov (xnox) wrote :

I've just tried a rebuild of nux from the branch, and it is all good.
Can this be uploaded? Nux is one of the couple remaining packages needed to remove boost << 1.49
Also nux/unity don't link against libboost so there shouldn't be unity rebuilds required.

Launchpad Janitor (janitor) wrote :

This bug was fixed in the package unity - 5.12-0ubuntu4

---------------
unity (5.12-0ubuntu4) quantal-proposed; urgency=low

  * debian/control:
    - build on unversionned version of boost (to transition to 1.49 in quantal)
      (LP: #1008219)
    - build-dep on latest compiz-dev version for ABI break
    - Vcs-Bzr: move to canonical branch
    - remove netbook-launcher transitional package and other unsupported
      transition cruft
  * debian/rules:
    - build in parallel
  * Cherry-pick some upstream fixes for the newer g-c-c making previous upload
    FTBFS in quantal
  * as armel/armhf is temporary build with opengl now, build-dep on nux
    2.12.0-0ubuntu2
 -- Didier Roche <email address hidden> Thu, 31 May 2012 10:21:46 +0200

Changed in unity (Ubuntu):
status: Triaged → Fix Released
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nux - 2.12.0-0ubuntu2

---------------
nux (2.12.0-0ubuntu2) quantal-proposed; urgency=low

  * debian/control:
    - build and dep on unversionned version of boost (transition to 1.49
      in quantal) (LP: #1008219)
    - build-dep and add dep for -dev on glew 1.7
    - build with gcc 4.6
    - Vcs-Bzr: move to canonical branch
    - remove old transitional cruft
  * debian/rules:
    - build in parallel
    - force 4.6 build for now
  * Note that right now, armhf/armel are building with opengl as opengles is
    not yet backed into upstream and opengles drivers are broken in quantal
    kernel
 -- Didier Roche <email address hidden> Thu, 31 May 2012 10:22:35 +0200

Changed in nux (Ubuntu):
status: Triaged → Fix Released
Changed in unity:
importance: Undecided → High
status: New → Fix Released
Changed in nux:
importance: Undecided → High
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