Skip to content
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.

Arch Linux build error #81

Open
rocketsixtynine opened this issue Jun 29, 2018 · 1 comment · May be fixed by #91
Open

Arch Linux build error #81

rocketsixtynine opened this issue Jun 29, 2018 · 1 comment · May be fixed by #91

Comments

@rocketsixtynine
Copy link

rocketsixtynine commented Jun 29, 2018

Getting this error at build stage
x86_64 Linux 4.14.52-1-lts

[ 67%] Built target libcef_dll_wrapper [ 67%] Building CXX object brick/CMakeFiles/brick.dir/client_handler_linux.cc.o In file included from /usr/include/gtk-2.0/gtk/gtk.h:89, from /home/user/tmp/brick/brick/client_handler_linux.cc:5: /usr/include/gtk-2.0/gtk/gtkfilechooserbutton.h:59:8: error: unnecessary parentheses in declaration of ‘__gtk_reserved1’ [-Werror=parentheses] void (*__gtk_reserved1); ^ /usr/include/gtk-2.0/gtk/gtkfilechooserbutton.h:60:8: error: unnecessary parentheses in declaration of ‘__gtk_reserved2’ [-Werror=parentheses] void (*__gtk_reserved2); ^ /usr/include/gtk-2.0/gtk/gtkfilechooserbutton.h:61:8: error: unnecessary parentheses in declaration of ‘__gtk_reserved3’ [-Werror=parentheses] void (*__gtk_reserved3); ^ /usr/include/gtk-2.0/gtk/gtkfilechooserbutton.h:62:8: error: unnecessary parentheses in declaration of ‘__gtk_reserved4’ [-Werror=parentheses] void (*__gtk_reserved4); ^ /usr/include/gtk-2.0/gtk/gtkfilechooserbutton.h:63:8: error: unnecessary parentheses in declaration of ‘__gtk_reserved5’ [-Werror=parentheses] void (*__gtk_reserved5); ^ /usr/include/gtk-2.0/gtk/gtkfilechooserbutton.h:64:8: error: unnecessary parentheses in declaration of ‘__gtk_reserved6’ [-Werror=parentheses] void (*__gtk_reserved6); ^ /usr/include/gtk-2.0/gtk/gtkfilechooserbutton.h:65:8: error: unnecessary parentheses in declaration of ‘__gtk_reserved7’ [-Werror=parentheses] void (*__gtk_reserved7); ^ In file included from /usr/include/gtk-2.0/gtk/gtk.h:173, from /home/user/tmp/brick/brick/client_handler_linux.cc:5: /usr/include/gtk-2.0/gtk/gtkstatusicon.h:76:8: error: unnecessary parentheses in declaration of ‘__gtk_reserved1’ [-Werror=parentheses] void (*__gtk_reserved1); ^ /usr/include/gtk-2.0/gtk/gtkstatusicon.h:77:8: error: unnecessary parentheses in declaration of ‘__gtk_reserved2’ [-Werror=parentheses] void (*__gtk_reserved2); ^ cc1plus: all warnings being treated as errors make[2]: *** [brick/CMakeFiles/brick.dir/build.make:209: brick/CMakeFiles/brick.dir/client_handler_linux.cc.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:141: brick/CMakeFiles/brick.dir/all] Error 2 make: *** [Makefile:130: all] Error 2

Artalus added a commit to Artalus/brick that referenced this issue Sep 10, 2018
replace -I with -isystem in pkg-config --cflags output,
so that 3rd-party libs won't be affected by -Werror
@Artalus Artalus linked a pull request Sep 12, 2018 that will close this issue
@Steveb-p
Copy link

For anyone that stumbles upon this: build works fine even without the attached PR if -wError flags are removed. They are "just" warnings after all.

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

Successfully merging a pull request may close this issue.

2 participants