Hi, when i tried to update gpm from 2.24 to 2.26 version this morning, compilation crashed with the following message: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -pthread -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DORBIT2=1 -pthread -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libwnck-1.0 -I/usr/include/startup-notification-1.0 -I/usr/include/gnome-keyring-1 -I/usr/include/panel-2.0 -I/usr/include/gconf/2 -I/usr/include/libbonoboui-2.0 -I/usr/include/orbit-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/libbonobo-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/gail-1.0 -I/usr/include/libart-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib64/gnome-vfs-2.0/include -I/usr/include/unique-1.0 -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -DBINDIR=\"/usr/bin\" -DGNOMELOCALEDIR=\""/usr/share/locale"\" -DDATADIR=\"/usr/share\" -DPREFIX=\""/usr"\" -DSYSCONFDIR=\""/etc"\" -DLIBDIR=\""/usr/lib64"\" -DVERSION="\"2.26.0\"" -DGPM_DATA=\"/usr/share/gnome-power-manager\" -DEGG_LOG_FILE=\""/tmp/gpm.log"\" -DEGG_VERBOSE="\"GPM_VERBOSE\"" -DEGG_LOGGING="\"GPM_LOGGING\"" -DEGG_CONSOLE="\"GPM_CONSOLE\"" -I.. -I../libdevkit-power -I../libhal-glib -DG_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -g -fexceptions -Wall -Werror -Wcast-align -Wno-uninitialized -Wmissing-declarations -Wredundant-decls -Wpointer-arith -Wcast-align -Wwrite-strings -Winit-self -Wreturn-type -Wformat-nonliteral -Wformat-security -Wmissing-include-dirs -Wmissing-format-attribute -Wclobbered -Wempty-body -Wignored-qualifiers -Wtype-limits -Wuninitialized -Waggregate-return -Wdeclaration-after-statement -Wshadow -Winline -Wmissing-parameter-type -Woverride-init -Wno-strict-aliasing -march=k8 -msse3 -O2 -pipe -MT gnome_power_manager-egg-dbus-monitor.o -MD -MP -MF .deps/gnome_power_manager-egg-dbus-monitor.Tpo -c -o gnome_power_manager-egg-dbus-monitor.o `test -f 'egg-dbus-monitor.c' || echo './'`egg-dbus-monitor.c cc1: erreur: option "-Wclobbered" de la ligne de commande non reconnue cc1: erreur: option "-Wempty-body" de la ligne de commande non reconnue cc1: erreur: option "-Wignored-qualifiers" de la ligne de commande non reconnue cc1: erreur: option "-Wtype-limits" de la ligne de commande non reconnue cc1: erreur: option "-Wmissing-parameter-type" de la ligne de commande non reconnue cc1: erreur: option "-Woverride-init" de la ligne de commande non reconnue make[3]: *** [gnome_power_manager-egg-debug.o] Error 1 make[3]: *** Waiting for unfinished jobs.... cc1: erreur: option "-Wclobbered" de la ligne de commande non reconnue cc1: erreur: option "-Wempty-body" de la ligne de commande non reconnue cc1: erreur: option "-Wignored-qualifiers" de la ligne de commande non reconnue cc1: erreur: option "-Wtype-limits" de la ligne de commande non reconnue cc1: erreur: option "-Wmissing-parameter-type" de la ligne de commande non reconnue cc1: erreur: option "-Woverride-init" de la ligne de commande non reconnue make[3]: *** [gnome_power_manager-egg-dbus-monitor.o] Error 1 make[3]: Leaving directory `/var/tmp/portage/gnome-extra/gnome-power-manager-2.26.0/work/gnome-power-manager-2.26.0/src' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/gnome-extra/gnome-power-manager-2.26.0/work/gnome-power-manager-2.26.0/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/gnome-extra/gnome-power-manager-2.26.0/work/gnome-power-manager-2.26.0' make: *** [all] Error 2 * * ERROR: gnome-extra/gnome-power-manager-2.26.0 failed. * Call stack: * ebuild.sh, line 48: Called src_compile * environment, line 2768: Called gnome2_src_compile * environment, line 2115: Called die * The specific snippet of code: * emake || die "compile failure" * The die message: * compile failure * The problem is mainly due to since the -Wextra CFLAGS is available (gcc 4) all the these listed CFLAGS are implicite including in it, and some of them are no longer recognized. Please find in attachment, a patch which normaly solves the problem, and finally new ebuild including the patch. Reproducible: Always
Created attachment 185577 [details, diff] the patch which solves the problem
Created attachment 185578 [details] the new ebuild including the patch
sorry the bug was incomplete, here the complete us translation of the messages: cc1: erreur: option "-Wclobbered" on the command line unrecognized cc1: erreur: option "-Wempty-body" on the command line unrecognized cc1: erreur: option "-Wignored-qualifiers" on the command line unrecognized cc1: erreur: option "-Wtype-limits" on the command line unrecognized cc1: erreur: option "-Wmissing-parameter-type" de la ligne de commande non reconnue cc1: erreur: option "-Woverride-init" on the command line unrecognized make[3]: *** [gnome_power_manager-egg-debug.o] Error 1 make[3]: *** Waiting for unfinished jobs.... cc1: erreur: option "-Wclobbered" on the command line unrecognized cc1: erreur: option "-Wempty-body" on the command line unrecognized cc1: erreur: option "-Wignored-qualifiers" on the command line unrecognized cc1: erreur: option "-Wtype-limits" on the command line unrecognized cc1: erreur: option "-Wmissing-parameter-type" de la ligne de commande non reconnue cc1: erreur: option "-Woverride-init" on the command line unrecognized mrpouet
Actually I'd rather see those disabled in non-devel mode, it would be much simpler. Same for the various "DISABLE_DEPRECATED". Will include with a few changes.
this patch worked for me
@eva: i can add an configure option to activate/disable these warningflags ? it will simple, and a dev could activate them by define the "debug" USE flag for this ebuild (which'll active the configure option to activate warningflags)
(In reply to comment #6) > @eva: i can add an configure option to activate/disable these warningflags ? > it will simple, and a dev could activate them by define the "debug" USE flag 1) don't add stuff to the "debug" USE flag, it's completely overloaded with thousands of different meanings across portage 2) those cflags are mostly useless in an ebuild (IMHO) even for devs, let's just disable them. It's upstream's responsibility to provide packages with few/no warnings. Cheers :)
In attachment the new patchs, which provides proper CPPFLAGS and removes extra warnings developpers ;). with the new ebuild.
Created attachment 185970 [details, diff] the new patch
Created attachment 185972 [details] the new ebuild
here the unstable sys-devel/libtool-2.2.4 was needed, libtool-1.5.26 didn't suffice
errors with libtool-1.5.26: /bin/sh ../libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DEGG_LOG_FILE=\""~/gnome-power-manager.log"\" -DEGG_VERBOSE="\"GPM_VERBOSE\"" -DEGG_LOGGING="\"GPM_LOGGING\"" -DEGG_CONSOLE="\"GPM_CONSOLE\"" -DPACKAGE_DATA_DIR=\""/usr/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/share/locale"\" -g -fexceptions -O2 -march=prescott -pipe -fomit-frame-pointer -MT hal-marshal.lo -MD -MP -MF .deps/hal-marshal.Tpo -c -o hal-marshal.lo hal-marshal.c /bin/sh ../libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DEGG_LOG_FILE=\""~/gnome-power-manager.log"\" -DEGG_VERBOSE="\"GPM_VERBOSE\"" -DEGG_LOGGING="\"GPM_LOGGING\"" -DEGG_CONSOLE="\"GPM_CONSOLE\"" -DPACKAGE_DATA_DIR=\""/usr/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/share/locale"\" -g -fexceptions -O2 -march=prescott -pipe -fomit-frame-pointer -MT hal-device.lo -MD -MP -MF .deps/hal-device.Tpo -c -o hal-device.lo hal-device.c ../libtool: line 841: X--tag=CC: command not found ../libtool: line 874: libtool: ignoring unknown tag : command not found ../libtool: line 841: X--mode=compile: command not found ../libtool: line 841: X--tag=CC: command not found ../libtool: line 841: X--tag=CC: command not found ../libtool: line 841: X--tag=CC: command not found ../libtool: line 874: libtool: ignoring unknown tag : command not found ../libtool: line 841: X--mode=compile: command not found ../libtool: line 874: libtool: ignoring unknown tag : command not found ../libtool: line 841: X--mode=compile: command not found ../libtool: line 874: libtool: ignoring unknown tag : command not found ../libtool: line 841: X--mode=compile: command not found ../libtool: line 1008: *** Warning: inferring the mode of operation is deprecated.: command not found ../libtool: line 841: X--tag=CC: command not found ../libtool: line 1009: *** Future versions of Libtool will require --mode=MODE be specified.: command not found ../libtool: line 1152: Xi686-pc-linux-gnu-gcc: command not found ../libtool: line 1008: *** Warning: inferring the mode of operation is deprecated.: command not found ../libtool: line 1009: *** Future versions of Libtool will require --mode=MODE be specified.: command not found ../libtool: line 1152: Xi686-pc-linux-gnu-gcc: command not found ../libtool: line 874: libtool: ignoring unknown tag : command not found ../libtool: line 841: X--mode=compile: command not found ../libtool: line 1152: X-DHAVE_CONFIG_H: command not found ../libtool: line 1008: *** Warning: inferring the mode of operation is deprecated.: command not found ../libtool: line 1152: X-DHAVE_CONFIG_H: command not found ../libtool: line 1152: X-I.: command not found ../libtool: line 1009: *** Future versions of Libtool will require --mode=MODE be specified.: command not found ../libtool: line 1152: X-I..: command not found ../libtool: line 1152: Xi686-pc-linux-gnu-gcc: command not found ../libtool: line 1152: X-DHAVE_CONFIG_H: command not found ../libtool: line 1152: X-I.: command not found ../libtool: line 1008: *** Warning: inferring the mode of operation is deprecated.: command not found ../libtool: line 1152: X-I..: command not found ../libtool: line 1009: *** Future versions of Libtool will require --mode=MODE be specified.: command not found ../libtool: line 1152: X-I/usr/include/glib-2.0: No such file or directory ../libtool: line 1152: X-I/usr/include/glib-2.0: No such file or directory ../libtool: line 1152: X-I.: command not found ../libtool: line 1152: X-I/usr/lib/glib-2.0/include: No such file or directory ../libtool: line 1152: X-I..: command not found ../libtool: line 1152: Xi686-pc-linux-gnu-gcc: command not found ../libtool: line 1152: X-pthread: command not found ../libtool: line 1152: X-I/usr/include/dbus-1.0: No such file or directory ../libtool: line 1152: X-I/usr/include/glib-2.0: No such file or directory ../libtool: line 1152: X-I/usr/lib/dbus-1.0/include: No such file or directory ../libtool: line 1152: X-I/usr/lib/glib-2.0/include: No such file or directory ../libtool: line 1152: X-I/usr/lib/glib-2.0/include: No such file or directory ../libtool: line 1152: X-DHAVE_CONFIG_H: command not found ../libtool: line 1152: X-I/usr/include/glib-2.0: No such file or directory ../libtool: line 1152: X-I.: command not found ../libtool: line 1008: *** Warning: inferring the mode of operation is deprecated.: command not found ../libtool: line 1009: *** Future versions of Libtool will require --mode=MODE be specified.: command not found ../libtool: line 1152: X-I/usr/lib/glib-2.0/include: No such file or directory ../libtool: line 1152: X-pthread: command not found ../libtool: line 1152: X-pthread: command not found ../libtool: line 1152: Xi686-pc-linux-gnu-gcc: command not found ../libtool: line 1152: X-I/usr/include/dbus-1.0: No such file or directory ../libtool: line 1152: X-I/usr/include/dbus-1.0: No such file or directory ../libtool: line 1152: X-I..: command not found ../libtool: line 1152: X-I/usr/lib/dbus-1.0/include: No such file or directory ../libtool: line 1152: X-I/usr/include/glib-2.0: No such file or directory ../libtool: line 1152: X-DHAVE_CONFIG_H: command not found ../libtool: line 1152: X-DEGG_LOG_FILE="~/gnome-power-manager.log": No such file or directory ../libtool: line 1152: X-I.: command not found ../libtool: line 1152: X-I/usr/lib/dbus-1.0/include: No such file or directory ../libtool: line 1152: X-I/usr/lib/glib-2.0/include: No such file or directory ../libtool: line 1152: X-I..: command not found ../libtool: line 1152: X-I/usr/include/glib-2.0: No such file or directory ../libtool: line 1152: X-I/usr/lib/glib-2.0/include: No such file or directory ../libtool: line 1152: X-I/usr/include/glib-2.0: No such file or directory ../libtool: line 1152: X-I/usr/include/glib-2.0: No such file or directory ../libtool: line 1152: X-DEGG_VERBOSE="GPM_VERBOSE": command not found ../libtool: line 1152: X-DEGG_LOGGING="GPM_LOGGING": command not found ../libtool: line 1152: X-I/usr/lib/glib-2.0/include: No such file or directory ../libtool: line 1152: X-pthread: command not found ../libtool: line 1152: X-DEGG_LOG_FILE="~/gnome-power-manager.log": No such file or directory ../libtool: line 1152: X-I/usr/lib/glib-2.0/include: No such file or directory ../libtool: line 1152: X-I/usr/include/dbus-1.0: No such file or directory ../libtool: line 1152: X-pthread: command not found ../libtool: line 1152: X-DEGG_VERBOSE="GPM_VERBOSE": command not found ../libtool: line 1152: X-DEGG_CONSOLE="GPM_CONSOLE": command not found ../libtool: line 1152: X-DEGG_LOG_FILE="~/gnome-power-manager.log": No such file or directory ../libtool: line 1152: X-I/usr/include/dbus-1.0: No such file or directory ../libtool: line 1152: X-DEGG_VERBOSE="GPM_VERBOSE": command not found ../libtool: line 1152: X-I/usr/lib/dbus-1.0/include: No such file or directory ../libtool: line 1152: X-DEGG_LOGGING="GPM_LOGGING": command not found ../libtool: line 1152: X-I/usr/lib/dbus-1.0/include: No such file or directory ../libtool: line 1152: X-DPACKAGE_DATA_DIR="/usr/share": No such file or directory ../libtool: line 1152: X-DEGG_LOGGING="GPM_LOGGING": command not found ../libtool: line 1152: X-I/usr/include/glib-2.0: No such file or directory ../libtool: line 1152: X-DEGG_CONSOLE="GPM_CONSOLE": command not found ../libtool: line 1152: X-I/usr/include/glib-2.0: No such file or directory ../libtool: line 1152: X-I/usr/lib/glib-2.0/include: No such file or directory ../libtool: line 1152: X-DPACKAGE_DATA_DIR="/usr/share": No such file or directory ../libtool: line 1152: X-DEGG_CONSOLE="GPM_CONSOLE": command not found ../libtool: line 1152: X-DPACKAGE_LOCALE_DIR="/usr/share/locale": No such file or directory ../libtool: line 1152: X-DPACKAGE_LOCALE_DIR="/usr/share/locale": No such file or directory ../libtool: line 1152: X-DEGG_LOG_FILE="~/gnome-power-manager.log": No such file or directory ../libtool: line 1152: X-I/usr/lib/glib-2.0/include: No such file or directory ../libtool: line 1152: X-DEGG_VERBOSE="GPM_VERBOSE": command not found ../libtool: line 1152: X-DPACKAGE_DATA_DIR="/usr/share": No such file or directory ../libtool: line 1152: X-DEGG_LOG_FILE="~/gnome-power-manager.log": No such file or directory ../libtool: line 1152: X-g: command not found ../libtool: line 1152: X-fexceptions: command not found ../libtool: line 1152: X-DEGG_LOGGING="GPM_LOGGING": command not found ../libtool: line 1152: X-g: command not found ../libtool: line 1152: X-DEGG_VERBOSE="GPM_VERBOSE": command not found ../libtool: line 1152: X-DPACKAGE_LOCALE_DIR="/usr/share/locale": No such file or directory ../libtool: line 1152: X-fexceptions: command not found ../libtool: line 1152: X-O2: command not found ../libtool: line 1152: X-DEGG_CONSOLE="GPM_CONSOLE": command not found ../libtool: line 1152: X-O2: command not found ../libtool: line 1152: X-march=prescott: command not found ../libtool: line 1152: X-DEGG_LOGGING="GPM_LOGGING": command not found ../libtool: line 1152: X-g: command not found ../libtool: line 1152: X-DPACKAGE_DATA_DIR="/usr/share": No such file or directory ../libtool: line 1152: X-pipe: command not found ../libtool: line 1152: X-DEGG_CONSOLE="GPM_CONSOLE": command not found ../libtool: line 1152: X-march=prescott: command not found ../libtool: line 1152: X-fexceptions: command not found ../libtool: line 1152: X-fomit-frame-pointer: command not found ../libtool: line 1152: X-DPACKAGE_LOCALE_DIR="/usr/share/locale": No such file or directory ../libtool: line 1152: X-pipe: command not found ../libtool: line 1152: X-DPACKAGE_DATA_DIR="/usr/share": No such file or directory ../libtool: line 1152: X-g: command not found ../libtool: line 1152: X-O2: command not found ../libtool: line 1152: X-fomit-frame-pointer: command not found ../libtool: line 1152: X-DPACKAGE_LOCALE_DIR="/usr/share/locale": No such file or directory ../libtool: line 1152: X-MT: command not found ../libtool: line 1152: X-MT: command not found ../libtool: line 1152: X-fexceptions: command not found ../libtool: line 1152: X-g: command not found ../libtool: line 1152: Xegg-dbus-proxy.lo: command not found ../libtool: line 1152: Xegg-dbus-monitor.lo: command not found ../libtool: line 1152: X-march=prescott: command not found ../libtool: line 1152: X-O2: command not found ../libtool: line 1152: X-pipe: command not found ../libtool: line 1152: X-fomit-frame-pointer: command not found ../libtool: line 1152: X-fexceptions: command not found ../libtool: line 1152: X-O2: command not found ../libtool: line 1152: X-MD: command not found ../libtool: line 1152: X-MT: command not found ../libtool: line 1152: X-MD: command not found ../libtool: line 1152: X-march=prescott: command not found ../libtool: line 1152: X-MP: command not found ../libtool: line 1152: X-march=prescott: command not found ../libtool: line 1152: X-MP: command not found ../libtool: line 1152: X-pipe: command not found ../libtool: line 1152: X-pipe: command not found ../libtool: line 1152: X-MF: command not found ../libtool: line 1152: Xhal-device.lo: command not found ../libtool: line 1152: X-MF: command not found ../libtool: line 1152: X.deps/egg-dbus-proxy.Tpo: No such file or directory ../libtool: line 1152: X-MD: command not found ../libtool: line 1152: X-c: command not found ../libtool: line 1152: X-fomit-frame-pointer: command not found ../libtool: line 1152: X.deps/egg-dbus-monitor.Tpo: No such file or directory ../libtool: line 1152: X-fomit-frame-pointer: command not found ../libtool: line 1152: X-MT: command not found ../libtool: line 1152: X-c: command not found ../libtool: line 1152: X-MT: command not found ../libtool: line 1152: X-MP: command not found ../libtool: line 1205: Xegg-dbus-proxy.lo: command not found ../libtool: line 1152: X-MF: command not found ../libtool: line 1210: libtool: compile: cannot determine name of library object from `': command not found make[3]: *** [egg-dbus-proxy.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... ../libtool: line 1152: Xegg-debug.lo: command not found ../libtool: line 1205: Xegg-dbus-monitor.lo: command not found ../libtool: line 1152: Xhal-marshal.lo: command not found ../libtool: line 1152: X.deps/hal-device.Tpo: No such file or directory ../libtool: line 1210: libtool: compile: cannot determine name of library object from `': command not found make[3]: *** [egg-dbus-monitor.lo] Error 1 ../libtool: line 1152: X-MD: command not found ../libtool: line 1152: X-MD: command not found ../libtool: line 1152: X-c: command not found ../libtool: line 1152: X-MP: command not found ../libtool: line 1152: X-MP: command not found ../libtool: line 1205: Xhal-device.lo: command not found ../libtool: line 1152: X-MF: command not found ../libtool: line 1152: X-MF: command not found ../libtool: line 1210: libtool: compile: cannot determine name of library object from `': command not found make[3]: *** [hal-device.lo] Error 1 ../libtool: line 1152: X.deps/egg-debug.Tpo: No such file or directory ../libtool: line 1152: X.deps/hal-marshal.Tpo: No such file or directory ../libtool: line 1152: X-c: command not found ../libtool: line 1152: X-c: command not found ../libtool: line 1205: Xhal-marshal.lo: command not found ../libtool: line 1205: Xegg-debug.lo: command not found ../libtool: line 1210: libtool: compile: cannot determine name of library object from `': command not found ../libtool: line 1210: libtool: compile: cannot determine name of library object from `': command not found
in overlay, slightly modified. Thanks for reporting and trying patches.