Compiz 0.9.8 trunk FTBFS on ARM due to an unused variable

Bug #1098148 reported by Łukasz Zemczak on 2013-01-10
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Compiz
Undecided
Łukasz Zemczak
0.9.8
Undecided
Łukasz Zemczak
compiz (Ubuntu)
Undecided
Łukasz Zemczak
Quantal
Undecided
Unassigned

Bug Description

[Test Case]

Check if compiz builds from source on ARM.

[Regression Potential]

No regression potential.

Original description:

Compiz r3431 fails to build on ARM. A simple case of an unused variable.

[ 59%] Building CXX object plugins/scale/CMakeFiles/scale.dir/src/scale.cpp.o
cd /build/buildd/compiz-0.9.8.6+bzr3431/obj-arm-linux-gnueabi/plugins/scale && /usr/bin/c++ -Dscale_EXPORTS -DHAVE_SCANDIR_POSIX -DHAVE_SCANDIR_POSIX -DHAVE_SCANDIR_POSIX -DHAVE_SCANDIR_POSIX -DHAVE_CONFIG_H -DHAVE_SCANDIR_POSIX -DSCALE_DEFSADD -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -Wall -Wl,-zdefs -Wno-deprecated-declarations -Werror -fPIC -Wall -Wl,-zdefs -Wno-deprecated-declarations -Werror -fPIC -Wall -Wl,-zdefs -Wno-deprecated-declarations -Werror -fPIC -Wall -Wl,-zdefs -Wno-deprecated-declarations -Werror -fPIC -Wall -Wl,-zdefs -Wno-deprecated-declarations -Werror -O2 -g -fPIC -I/build/buildd/compiz-0.9.8.6+bzr3431/plugins/../include -I/build/buildd/compiz-0.9.8.6+bzr3431/plugins/../src -I/build/buildd/compiz-0.9.8.6+bzr3431/plugins/../src/timer/include -I/build/buildd/compiz-0.9.8.6+bzr3431/plugins/../src/string/include -I/build/buildd/compiz-0.9.8.6+bzr3431/plugins/../src/pluginclasshandler/include -I/build/buildd/compiz-0.9.8.6+bzr3431/plugins/../src/point/include -I/build/buildd/compiz-0.9.8.6+bzr3431/plugins/../src/rect/include -I/build/buildd/compiz-0.9.8.6+bzr3431/plugins/../src/servergrab/include -I/build/buildd/compiz-0.9.8.6+bzr3431/plugins/../src/region/include -I/build/buildd/compiz-0.9.8.6+bzr3431/plugins/../src/window/geometry/include -I/build/buildd/compiz-0.9.8.6+bzr3431/plugins/../src/window/geometry-saver/include -I/build/buildd/compiz-0.9.8.6+bzr3431/plugins/../src/window/extents/include -I/build/buildd/compiz-0.9.8.6+bzr3431/plugins/../src/window/constrainment/include -I/build/buildd/compiz-0.9.8.6+bzr3431/plugins/../logmessage/include -I/build/buildd/compiz-0.9.8.6+bzr3431/plugins/scale/src -I/build/buildd/compiz-0.9.8.6+bzr3431/plugins/scale/include -I/build/buildd/compiz-0.9.8.6+bzr3431/obj-arm-linux-gnueabi/generated -I/build/buildd/compiz-0.9.8.6+bzr3431/plugins/scale/../composite/include -I/build/buildd/compiz-0.9.8.6+bzr3431/plugins/scale/../opengl/include -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabi/glib-2.0/include -I/usr/include/glibmm-2.4 -I/usr/lib/arm-linux-gnueabi/glibmm-2.4/include -I/usr/include/sigc++-2.0 -I/usr/lib/arm-linux-gnueabi/sigc++-2.0/include -I/usr/include/startup-notification-1.0 -I/build/buildd/compiz-0.9.8.6+bzr3431/include -I/build/buildd/compiz-0.9.8.6+bzr3431/obj-arm-linux-gnueabi -DPREFIX='"/usr"' -DUSE_GLES -o CMakeFiles/scale.dir/src/scale.cpp.o -c /build/buildd/compiz-0.9.8.6+bzr3431/plugins/scale/src/scale.cpp
/build/buildd/compiz-0.9.8.6+bzr3431/plugins/text/src/text.cpp: In member function 'void CompText::draw(const GLMatrix&, float, float, float) const':
/build/buildd/compiz-0.9.8.6+bzr3431/plugins/text/src/text.cpp:495:16: error: unused variable 'wasBlend' [-Werror=unused-variable]
cc1plus: all warnings being treated as errors

Related branches

Daniel van Vugt (vanvugt) wrote :

This was already fixed upstream a while ago. It would be nice if there was a bug logged back then...
------------------------------------------------------------
revno: 3439 [merge]
author: Łukasz 'sil2100' Zemczak <email address hidden>
committer: Tarmac
branch nick: 0.9.9
timestamp: Fri 2012-10-19 11:18:25 +0000
message:
  Only declare wasBlend if we're not using GLES (fixes ARM build failures). Approved by Didier Roche.
------------------------------------------------------------

Changed in compiz:
status: In Progress → Fix Committed
milestone: 0.9.8.8 → 0.9.9.0
Changed in compiz (Ubuntu):
status: New → Fix Committed
assignee: nobody → Łukasz Zemczak (sil2100)
description: updated
Changed in compiz:
status: Fix Committed → Fix Released
Didier Roche (didrocks) wrote :

I remove this one from the changelog, as it didn't impact quantal.

Changed in compiz (Ubuntu Quantal):
status: New → Fix Released
Stephen M. Webb (bregma) wrote :

marking as closed (0.9.8 series is obsolete)

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

Other bug subscribers