FTBFS with gcc-4.7

Bug #975728 reported by micove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Compiz Core
New
Undecided
Unassigned

Bug Description

Using compiz core 0.9.6 (it happened with previous versions too) and gcc/g++ 4.7 I get the following.

[ 35%] Building CXX object src/timer/CMakeFiles/compiz_timer.dir/src/timeouthandler.cpp.o
cd /tmp/buildd/compiz-0.9.7.6/obj-x86_64-linux-gnu/src/timer && /usr/lib/ccache/g++-4.7 -DHAVE_SCANDIR_POSIX -DHAVE_SCANDIR_POSIX -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -Wall -Wno-deprecated-declarations -Werror -fPIC -Wall -Wno-deprecated-declarations -Werror -O2 -g -DQT_NO_DEBUG -I/tmp/buildd/compiz-0.9.7.6/src/timer/include -I/tmp/buildd/compiz-0.9.7.6/src/timer/src -I/tmp/buildd/compiz-0.9.7.6/include -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glibmm-2.4 -I/usr/lib/x86_64-linux-gnu/glibmm-2.4/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -o CMakeFiles/compiz_timer.dir/src/timeouthandler.cpp.o -c /tmp/buildd/compiz-0.9.7.6/src/timer/src/timeouthandler.cpp
/tmp/buildd/compiz-0.9.7.6/src/timer/src/timeouthandler.cpp: In member function 'void TimeoutHandler::addTimer(CompTimer*)':
/tmp/buildd/compiz-0.9.7.6/src/timer/src/timeouthandler.cpp:60:48: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
cc1plus: all warnings being treated as errors
make[3]: *** [src/timer/CMakeFiles/compiz_timer.dir/src/timeouthandler.cpp.o] Error 1

I did not check if there are any other failures after this one gets fixed.

Revision history for this message
triplesqaurednine (triplesquarednine) wrote :

This is a duplicate of a bug report that i filed a few days before you;

https://bugs.launchpad.net/compiz-core/+bug/972519

In my report, i also mention how to fix it ~ GCC-4.7 is stricter, and treats lots of warnings as errors (which means even a warning, will kill your compilation) so you need to tell it not to treat them as errors, and just as warnings...

cheerz

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug 972519, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find.

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.