Build errors recently on Xubuntu 12.10: "-Werror=deprecated-declarations" & al.

479 views
Skip to first unread message

Greyor

unread,
Nov 2, 2012, 10:46:06 AM11/2/12
to chromium...@chromium.org
Hi everyone,

    I've been building Chromium and packaging it for my own use for awhile now on amd64 Xubuntu. After updating to Quantal Quetzal (12.10), though, I'm running into a number of compilation errors. src/build/install-build-deps.sh does note that 12.10 is not supported yet, but I thought that if I used apt-get to get the build-deps for 'chromium-browser,' then everything would be fine.

In any case, these are the errors cropping up (as of r165603, checked out sometime last night). Note that this is after building ~5000 targets or so already, and I just tried to resume the build right now (build command: ninja -j4 -C out/Release chrome chrome_sandbox)

ninja: Entering directory `out/Release'
[1/5915] ACTION Generating resources from gen/remoting/resources/string_resources.grd
[2/5915] CXX obj/printing/backend/printing.cups_helper.o
[3/5915] AR obj/third_party/libjingle/libjingle.a
[4/5915] CXX obj/media/audio/media.audio_input_device.o
[5/5915] CXX obj/media/audio/media.audio_input_ipc.o
[6/5915] COPY gen/remoting/resources/en-US.pak remoting_locales/en-US.pak
[7/5915] STAMP obj/remoting/remoting_resources.actions_rules_copies.stamp
[8/5915] CXX obj/media/audio/media.audio_input_stream_impl.o
[9/5915] CXX obj/media/audio/media.audio_manager.o
FAILED: g++ -MMD -MF obj/printing/backend/printing.cups_helper.o.d -D_FILE_OFFSET_BITS=64 -DCHROMIUM_BUILD -DUSE_LIBJPEG_TURBO=1 -DUSE_NSS=1 -DENABLE_ONE_CLICK_SIGNIN -DGTK_DISABLE_SINGLE_INCLUDES=1 -DENABLE_REMOTING=1 -DENABLE_WEBRTC=1 -DENABLE_CONFIGURATION_POLICY -DENABLE_INPUT_SPEECH -DENABLE_NOTIFICATIONS -DENABLE_GPU=1 -DENABLE_EGLIMAGE=1 -DUSE_SKIA=1 -DENABLE_TASK_MANAGER=1 -DENABLE_WEB_INTENTS=1 -DENABLE_EXTENSIONS=1 -DENABLE_PLUGIN_INSTALLATION=1 -DENABLE_PROTECTOR_SERVICE=1 -DENABLE_SESSION_SERVICE=1 -DENABLE_THEMES=1 -DENABLE_BACKGROUND=1 -DENABLE_AUTOMATION=1 -DENABLE_PRINTING=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DPRINTING_IMPLEMENTATION -DPRINT_BACKEND_AVAILABLE -DSK_BUILD_NO_IMAGE_ENCODE -DSK_DEFERRED_CANVAS_USES_GPIPE=1 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' -DGR_AGGRESSIVE_SHADER_OPTS=1 -DSK_USE_POSIX_THREADS -DU_USING_ICU_NAMESPACE=0 -DU_STATIC_IMPLEMENTATION -DUSE_CUPS -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../../third_party/icu/public/common -I../../third_party/icu/public/i18n -I../.. -I../../skia/config -I../../third_party/skia/src/core -I../../third_party/skia/include/config -I../../third_party/skia/include/core -I../../third_party/skia/include/effects -I../../third_party/skia/include/pdf -I../../third_party/skia/include/gpu -I../../third_party/skia/include/gpu/gl -I../../third_party/skia/include/pipe -I../../third_party/skia/include/ports -I../../third_party/skia/include/utils -I../../skia/ext -Werror -pthread -fno-exceptions -fno-strict-aliasing -Wall -Wno-unused-parameter -Wno-missing-field-initializers -fvisibility=hidden -pipe -fPIC -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/freetype2 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -pthread -I/usr/include/gtk-unix-print-2.0 -I/usr/include/gtk-2.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -O2 -fno-ident -fdata-sections -ffunction-sections -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -Wsign-compare  -c ../../printing/backend/cups_helper.cc -o obj/printing/backend/printing.cups_helper.o
../../printing/backend/cups_helper.cc: In function ‘bool {anonymous}::GetColorModelSettings(ppd_file_t*, int*, int*, bool*)’:
../../printing/backend/cups_helper.cc:285:22: error: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407) [-Werror=deprecated-declarations]
../../printing/backend/cups_helper.cc:285:57: error: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407) [-Werror=deprecated-declarations]
cc1plus: all warnings being treated as errors
ninja: build stopped: subcommand failed.

I know enough about compilation (and a bit about C/C++) to see that this is a warning turned into an error by the "-W" flags, but what can be done about it to make Chromium build again?
I'm building on gcc/g++-4.7 on Xubuntu 12.10, as I said before, and all the build-deps should be satisfied, despite the 'install-build-deps.sh' script being unhappy. Hopefully a svn checkout in a few days will sort this out, but I thought I'd ask right now to see if anyone could help.

Thanks very much,
Grey

Nico Weber

unread,
Nov 2, 2012, 11:38:05 AM11/2/12
to gre...@gmail.com, chromium...@chromium.org
Hi Grey,
this is documented at
http://code.google.com/p/chromium/wiki/LinuxBuildInstructions :

"""gcc warnings. By default we fail to build if there are any compiler
warnings. If you're getting warnings, can't build because of that, but
just want to get things done, you can specify -Dwerror= to turn that
off. Run build/gyp_chromium -Dwerror= – or export GYP_DEFINES=werror=
before running gclient sync."""

Nico

Greyor

unread,
Nov 2, 2012, 11:46:47 AM11/2/12
to chromium...@chromium.org, gre...@gmail.com
Hi Nico,

    Ack, I had no idea! I haven't looked at the LinuxBuildInstructions for awhile now, since everything tends to build flawlessly for the most part. I'll add that into my GYP variables, then, and it should work like a charm, with any luck. Thanks very much for your help!

Grey
Reply all
Reply to author
Forward
0 new messages