Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error with -Wno-error: All warnings (maybe some?) regardless are all being treated with errors anyways. #16

Open
ItzSwirlz opened this issue Jul 27, 2020 · 1 comment

Comments

@ItzSwirlz
Copy link

ItzSwirlz commented Jul 27, 2020

Building on Fedora 32

Dependencies have been installed (via ./autogen.sh nitpicking)

With Verbose enabled-the build failed up to here so I cleared and ran it without clean. Here's how it went:

`
[jpeisach@localhost ukwm]$ make
make all-recursive
make[1]: Entering directory '/home/jpeisach/Desktop/UKUI/ukwm'
Making all in cogl
make[2]: Entering directory '/home/jpeisach/Desktop/UKUI/ukwm/cogl'
make all-recursive
make[3]: Entering directory '/home/jpeisach/Desktop/UKUI/ukwm/cogl'
Making all in test-fixtures
make[4]: Entering directory '/home/jpeisach/Desktop/UKUI/ukwm/cogl/test-fixtures'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/jpeisach/Desktop/UKUI/ukwm/cogl/test-fixtures'
Making all in cogl
make[4]: Entering directory '/home/jpeisach/Desktop/UKUI/ukwm/cogl/cogl'
make all-recursive
make[5]: Entering directory '/home/jpeisach/Desktop/UKUI/ukwm/cogl/cogl'
make[6]: Entering directory '/home/jpeisach/Desktop/UKUI/ukwm/cogl/cogl'
make[6]: Nothing to be done for 'all-am'.
make[6]: Leaving directory '/home/jpeisach/Desktop/UKUI/ukwm/cogl/cogl'
make[5]: Leaving directory '/home/jpeisach/Desktop/UKUI/ukwm/cogl/cogl'
make[4]: Leaving directory '/home/jpeisach/Desktop/UKUI/ukwm/cogl/cogl'
Making all in cogl-path
make[4]: Entering directory '/home/jpeisach/Desktop/UKUI/ukwm/cogl/cogl-path'
make all-am
make[5]: Entering directory '/home/jpeisach/Desktop/UKUI/ukwm/cogl/cogl-path'
make[5]: Leaving directory '/home/jpeisach/Desktop/UKUI/ukwm/cogl/cogl-path'
make[4]: Leaving directory '/home/jpeisach/Desktop/UKUI/ukwm/cogl/cogl-path'
Making all in cogl-pango
make[4]: Entering directory '/home/jpeisach/Desktop/UKUI/ukwm/cogl/cogl-pango'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/jpeisach/Desktop/UKUI/ukwm/cogl/cogl-pango'
Making all in tests
make[4]: Entering directory '/home/jpeisach/Desktop/UKUI/ukwm/cogl/tests'
Making all in conform
make[5]: Entering directory '/home/jpeisach/Desktop/UKUI/ukwm/cogl/tests/conform'
make all-am
make[6]: Entering directory '/home/jpeisach/Desktop/UKUI/ukwm/cogl/tests/conform'
make[6]: Nothing to be done for 'all-am'.
make[6]: Leaving directory '/home/jpeisach/Desktop/UKUI/ukwm/cogl/tests/conform'
make[5]: Leaving directory '/home/jpeisach/Desktop/UKUI/ukwm/cogl/tests/conform'
Making all in unit
make[5]: Entering directory '/home/jpeisach/Desktop/UKUI/ukwm/cogl/tests/unit'
make all-am
make[6]: Entering directory '/home/jpeisach/Desktop/UKUI/ukwm/cogl/tests/unit'
make[6]: Nothing to be done for 'all-am'.
make[6]: Leaving directory '/home/jpeisach/Desktop/UKUI/ukwm/cogl/tests/unit'
make[5]: Leaving directory '/home/jpeisach/Desktop/UKUI/ukwm/cogl/tests/unit'
Making all in micro-perf
make[5]: Entering directory '/home/jpeisach/Desktop/UKUI/ukwm/cogl/tests/micro-perf'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/home/jpeisach/Desktop/UKUI/ukwm/cogl/tests/micro-perf'
Making all in data
make[5]: Entering directory '/home/jpeisach/Desktop/UKUI/ukwm/cogl/tests/data'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/home/jpeisach/Desktop/UKUI/ukwm/cogl/tests/data'
make[5]: Entering directory '/home/jpeisach/Desktop/UKUI/ukwm/cogl/tests'
make[5]: Nothing to be done for 'all-am'.
make[5]: Leaving directory '/home/jpeisach/Desktop/UKUI/ukwm/cogl/tests'
make[4]: Leaving directory '/home/jpeisach/Desktop/UKUI/ukwm/cogl/tests'
make[4]: Entering directory '/home/jpeisach/Desktop/UKUI/ukwm/cogl'
make[4]: Leaving directory '/home/jpeisach/Desktop/UKUI/ukwm/cogl'
make[3]: Leaving directory '/home/jpeisach/Desktop/UKUI/ukwm/cogl'
make[2]: Leaving directory '/home/jpeisach/Desktop/UKUI/ukwm/cogl'
Making all in clutter
make[2]: Entering directory '/home/jpeisach/Desktop/UKUI/ukwm/clutter'
Making all in build
make[3]: Entering directory '/home/jpeisach/Desktop/UKUI/ukwm/clutter/build'
Making all in autotools
make[4]: Entering directory '/home/jpeisach/Desktop/UKUI/ukwm/clutter/build/autotools'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/jpeisach/Desktop/UKUI/ukwm/clutter/build/autotools'
make[4]: Entering directory '/home/jpeisach/Desktop/UKUI/ukwm/clutter/build'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/home/jpeisach/Desktop/UKUI/ukwm/clutter/build'
make[3]: Leaving directory '/home/jpeisach/Desktop/UKUI/ukwm/clutter/build'
Making all in clutter
make[3]: Entering directory '/home/jpeisach/Desktop/UKUI/ukwm/clutter/clutter'
make all-am
make[4]: Entering directory '/home/jpeisach/Desktop/UKUI/ukwm/clutter/clutter'
make[4]: Leaving directory '/home/jpeisach/Desktop/UKUI/ukwm/clutter/clutter'
make[3]: Leaving directory '/home/jpeisach/Desktop/UKUI/ukwm/clutter/clutter'
Making all in tests
make[3]: Entering directory '/home/jpeisach/Desktop/UKUI/ukwm/clutter/tests'
Making all in accessibility
make[4]: Entering directory '/home/jpeisach/Desktop/UKUI/ukwm/clutter/tests/accessibility'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/jpeisach/Desktop/UKUI/ukwm/clutter/tests/accessibility'
Making all in conform
make[4]: Entering directory '/home/jpeisach/Desktop/UKUI/ukwm/clutter/tests/conform'
make all-am
make[5]: Entering directory '/home/jpeisach/Desktop/UKUI/ukwm/clutter/tests/conform'
make[5]: Nothing to be done for 'all-am'.
make[5]: Leaving directory '/home/jpeisach/Desktop/UKUI/ukwm/clutter/tests/conform'
make[4]: Leaving directory '/home/jpeisach/Desktop/UKUI/ukwm/clutter/tests/conform'
Making all in interactive
make[4]: Entering directory '/home/jpeisach/Desktop/UKUI/ukwm/clutter/tests/interactive'
make all-am
make[5]: Entering directory '/home/jpeisach/Desktop/UKUI/ukwm/clutter/tests/interactive'
make[5]: Nothing to be done for 'all-am'.
make[5]: Leaving directory '/home/jpeisach/Desktop/UKUI/ukwm/clutter/tests/interactive'
make[4]: Leaving directory '/home/jpeisach/Desktop/UKUI/ukwm/clutter/tests/interactive'
Making all in micro-bench
make[4]: Entering directory '/home/jpeisach/Desktop/UKUI/ukwm/clutter/tests/micro-bench'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/jpeisach/Desktop/UKUI/ukwm/clutter/tests/micro-bench'
Making all in performance
make[4]: Entering directory '/home/jpeisach/Desktop/UKUI/ukwm/clutter/tests/performance'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/jpeisach/Desktop/UKUI/ukwm/clutter/tests/performance'
make[4]: Entering directory '/home/jpeisach/Desktop/UKUI/ukwm/clutter/tests'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/home/jpeisach/Desktop/UKUI/ukwm/clutter/tests'
make[3]: Leaving directory '/home/jpeisach/Desktop/UKUI/ukwm/clutter/tests'
make[3]: Entering directory '/home/jpeisach/Desktop/UKUI/ukwm/clutter'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/jpeisach/Desktop/UKUI/ukwm/clutter'
make[2]: Leaving directory '/home/jpeisach/Desktop/UKUI/ukwm/clutter'
Making all in data
make[2]: Entering directory '/home/jpeisach/Desktop/UKUI/ukwm/data'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/jpeisach/Desktop/UKUI/ukwm/data'
Making all in src
make[2]: Entering directory '/home/jpeisach/Desktop/UKUI/ukwm/src'
make all-recursive
make[3]: Entering directory '/home/jpeisach/Desktop/UKUI/ukwm/src'
Making all in compositor/plugins
make[4]: Entering directory '/home/jpeisach/Desktop/UKUI/ukwm/src/compositor/plugins'
CC default_la-default.lo
In file included from ../../../src/core/screen-private.h:35,
from ../../../src/core/window-private.h:40,
from default.c:38:
../../../src/core/display-private.h:225:3: warning: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
225 | GTimeVal grab_last_moveresize_time;
| ^~~~~~~~
In file included from /usr/include/glib-2.0/glib/galloca.h:32,
from /usr/include/glib-2.0/glib.h:30,
from ../../../src/meta/compositor.h:23,
from ../../../src/meta/meta-plugin.h:27,
from default.c:24:
/usr/include/glib-2.0/glib/gtypes.h:547:8: note: declared here
547 | struct _GTimeVal
| ^~~~~~~~~
default.c: In function ‘meta_default_plugin_class_init’:
default.c:248:3: warning: ‘g_type_class_add_private’ is deprecated [-Wdeprecated-declarations]
248 | g_type_class_add_private (gobject_class, sizeof (MetaDefaultPluginPrivate));
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
from /usr/include/glib-2.0/gobject/gbinding.h:29,
from /usr/include/glib-2.0/glib-object.h:22,
from ../../../src/meta/boxes.h:25,
from ../../../src/meta/compositor.h:27,
from ../../../src/meta/meta-plugin.h:27,
from default.c:24:
/usr/include/glib-2.0/gobject/gtype.h:1308:10: note: declared here
1308 | void g_type_class_add_private (gpointer g_class,
| ^~~~~~~~~~~~~~~~~~~~~~~~
default.c: In function ‘meta_default_plugin_init’:
default.c:256:13: error: Deprecated pre-processor symbol, replace with [-Werror]
256 | self->priv = priv = META_DEFAULT_PLUGIN_GET_PRIVATE (self);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
default.c: In function ‘ukwm_plugin_get_alt_tab_list’:
default.c:493:41: error: passing argument 1 of ‘ukwm_plugin_complete_get_alt_tab_list’ from incompatible pointer type [-Werror=incompatible-pointer-types]
493 | ukwm_plugin_complete_get_alt_tab_list(object, invocation, count, gva);
| ^~~~~~
| |
| MetaPlugin * {aka struct _MetaPlugin *}
In file included from default.c:58:
./ukui_plugin_generated.h:52:17: note: expected ‘UkwmPlugin *’ {aka ‘struct _UkwmPlugin *’} but argument is of type ‘MetaPlugin *’ {aka ‘struct _MetaPlugin *’}
52 | UkwmPlugin *object,
| ~~~~~~~~~~~~^~~~~~
default.c: In function ‘ukwm_plugin_activate_window_by_tab_list_index’:
default.c:512:62: error: passing argument 1 of ‘ukwm_plugin_complete_activate_window_by_tab_list_index’ from incompatible pointer type [-Werror=incompatible-pointer-types]
512 | ukwm_plugin_complete_activate_window_by_tab_list_index(object, invocation);
| ^~~~~~
| |
| MetaPlugin * {aka struct _MetaPlugin *}

In file included from default.c:58:
./ukui_plugin_generated.h:58:17: note: expected ‘UkwmPlugin *’ {aka ‘struct _UkwmPlugin *’} but argument is of type ‘MetaPlugin *’ {aka ‘struct _MetaPlugin *’}
58 | UkwmPlugin *object,
| ~~~~~~~~~~~~^~~~~~
default.c:522:62: error: passing argument 1 of ‘ukwm_plugin_complete_activate_window_by_tab_list_index’ from incompatible pointer type [-Werror=incompatible-pointer-types]
522 | ukwm_plugin_complete_activate_window_by_tab_list_index(object, invocation);
| ^~~~~~
| |
| MetaPlugin * {aka struct _MetaPlugin *}

In file included from default.c:58:
./ukui_plugin_generated.h:58:17: note: expected ‘UkwmPlugin *’ {aka ‘struct _UkwmPlugin *’} but argument is of type ‘MetaPlugin *’ {aka ‘struct _MetaPlugin *’}
58 | UkwmPlugin *object,
| ~~~~~~~~~~~~^~~~~~
default.c:548:58: error: passing argument 1 of ‘ukwm_plugin_complete_activate_window_by_tab_list_index’ from incompatible pointer type [-Werror=incompatible-pointer-types]
548 | ukwm_plugin_complete_activate_window_by_tab_list_index(object, invocation);
| ^~~~~~
| |
| MetaPlugin * {aka struct _MetaPlugin *}
In file included from default.c:58:
./ukui_plugin_generated.h:58:17: note: expected ‘UkwmPlugin *’ {aka ‘struct _UkwmPlugin *’} but argument is of type ‘MetaPlugin *’ {aka ‘struct _MetaPlugin ’}
58 | UkwmPlugin object,
| ~~~~~~~~~~~~^~~~~~
default.c:526:23: error: unused variable ‘tv2’ [-Werror=unused-variable]
526 | struct timeval tv1, tv2;
| ^~~
default.c:526:18: error: unused variable ‘tv1’ [-Werror=unused-variable]
526 | struct timeval tv1, tv2;
| ^~~
default.c: At top level:
default.c:601:6: error: no previous prototype for ‘InitUkwmPluginDBusCommServer’ [-Werror=missing-prototypes]
601 | bool InitUkwmPluginDBusCommServer(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
default.c:619:6: error: no previous prototype for ‘ukui_window_switch_monitor’ [-Werror=missing-prototypes]
619 | void ukui_window_switch_monitor(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
default.c: In function ‘ukui_window_switch_monitor’:
default.c:667:8: error: implicit declaration of function ‘waitpid’ [-Werror=implicit-function-declaration]
667 | waitpid(-1, NULL, WNOHANG);
| ^~~~~~~
default.c:667:8: error: nested extern declaration of ‘waitpid’ [-Werror=nested-externs]
default.c: In function ‘start’:
default.c:701:47: error: passing argument 3 of ‘pthread_create’ from incompatible pointer type [-Werror=incompatible-pointer-types]
701 | err = pthread_create(&monitor_thread, NULL, ukui_window_switch_monitor, NULL);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| void (
)(void)
In file included from /usr/include/glib-2.0/glib/deprecated/gthread.h:124,
from /usr/include/glib-2.0/glib.h:111,
from ../../../src/meta/compositor.h:23,
from ../../../src/meta/meta-plugin.h:27,
from default.c:24:
/usr/include/pthread.h:200:15: note: expected ‘void * (
)(void )’ but argument is of type ‘void ()(void)’
200 | void (__start_routine) (void *),
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
At top level:
default.c:1112:1: error: ‘kill_switch_workspace’ defined but not used [-Werror=unused-function]
1112 | kill_switch_workspace (MetaPlugin *plugin)
| ^~~~~~~~~~~~~~~~~~~~~
default.c:708:1: error: ‘switch_workspace’ defined but not used [-Werror=unused-function]
708 | switch_workspace (MetaPlugin *plugin,
| ^~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[4]: *** [Makefile:556: default_la-default.lo] Error 1
make[4]: Leaving directory '/home/jpeisach/Desktop/UKUI/ukwm/src/compositor/plugins'
make[3]: *** [Makefile:2764: all-recursive] Error 1
make[3]: Leaving directory '/home/jpeisach/Desktop/UKUI/ukwm/src'
make[2]: *** [Makefile:1678: all] Error 2
make[2]: Leaving directory '/home/jpeisach/Desktop/UKUI/ukwm/src'
make[1]: *** [Makefile:486: all-recursive] Error 1
make[1]: Leaving directory '/home/jpeisach/Desktop/UKUI/ukwm'
make: *** [Makefile:416: all] Error 2
[jpeisach@localhost ukwm]$
`

@ItzSwirlz
Copy link
Author

Building with latest version v1.2.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant