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.
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