taylordotfish / freeze

LV2 plugin that freezes track audio to reduce DSP load
GNU General Public License v3.0
11 stars 0 forks source link

build fail: GTypeDebugFlags/GTimeVal deprecated #2

Closed mxmilkiib closed 3 years ago

mxmilkiib commented 4 years ago
mkdir -p build
mkdir -p build/src/gui/lv2/
mkdir -p build/src/gui/models/app/
mkdir -p build/src/gui/pmods/app/
mkdir -p build/src/gui/pmods/db_path/
mkdir -p build/src/gui/pmods/record_buttons/
mkdir -p build/src/gui/views/app/
mkdir -p build/src/gui/views/db_path/
mkdir -p build/src/gui/views/record_buttons/
mkdir -p build/src/gui/views/widgets/icon_button/
mkdir -p build/src/plugin/lv2/
mkdir -p build/src/plugin/plugin/
mkdir -p build/src/plugin/recording/
mkdir -p build/src/shared/client/callbacks/
mkdir -p build/src/shared/client/client/
mkdir -p build/src/shared/logger/logger/
mkdir -p build/src/shared/logger/lv2/
mkdir -p build/src/shared/uris/
mkdir -p build/src/utils/array_list/
mkdir -p build/src/utils/callback/
mkdir -p build/src/utils/memory/
mkdir -p build/src/utils/string/
gcc -Wall -Wextra -Werror -pedantic -std=c11 -fpic -MMD -MP -Isrc -fvisibility=hidden -Ofast -flto -fwhole-program -DNDEBUG -c -o build/src/shared/client/callbacks/callbacks.o src/shared/client/callbacks/callbacks.c
gcc -Wall -Wextra -Werror -pedantic -std=c11 -fpic -MMD -MP -Isrc -fvisibility=hidden -Ofast -flto -fwhole-program -DNDEBUG -c -o build/src/shared/client/client/client.o src/shared/client/client/client.c
gcc -Wall -Wextra -Werror -pedantic -std=c11 -fpic -MMD -MP -Isrc -fvisibility=hidden -Ofast -flto -fwhole-program -DNDEBUG -c -o build/src/shared/uris/uris.o src/shared/uris/uris.c
gcc -Wall -Wextra -Werror -pedantic -std=c11 -fpic -MMD -MP -Isrc -fvisibility=hidden -Ofast -flto -fwhole-program -DNDEBUG -c -o build/src/shared/logger/lv2/lv2.o src/shared/logger/lv2/lv2.c
gcc -Wall -Wextra -Werror -pedantic -std=c11 -fpic -MMD -MP -Isrc -fvisibility=hidden -Ofast -flto -fwhole-program -DNDEBUG -c -o build/src/shared/logger/logger/logger.o src/shared/logger/logger/logger.c
gcc -Wall -Wextra -Werror -pedantic -std=c11 -fpic -MMD -MP -Isrc -fvisibility=hidden -Ofast -flto -fwhole-program -DNDEBUG -c -o build/src/utils/string/string.o src/utils/string/string.c
gcc -Wall -Wextra -Werror -pedantic -std=c11 -fpic -MMD -MP -Isrc -fvisibility=hidden -Ofast -flto -fwhole-program -DNDEBUG -c -o build/src/utils/callback/callback.o src/utils/callback/callback.c
gcc -Wall -Wextra -Werror -pedantic -std=c11 -fpic -MMD -MP -Isrc -fvisibility=hidden -Ofast -flto -fwhole-program -DNDEBUG -c -o build/src/utils/array_list/array_list.o src/utils/array_list/array_list.c
gcc -Wall -Wextra -Werror -pedantic -std=c11 -fpic -MMD -MP -Isrc -fvisibility=hidden -Ofast -flto -fwhole-program -DNDEBUG -c -o build/src/utils/memory/memory.o src/utils/memory/memory.c
gcc -Wall -Wextra -Werror -pedantic -std=c11 -fpic -MMD -MP -Isrc -fvisibility=hidden -Ofast -flto -fwhole-program -DNDEBUG -c -o build/src/plugin/plugin/plugin.o src/plugin/plugin/plugin.c
gcc -Wall -Wextra -Werror -pedantic -std=c11 -fpic -MMD -MP -Isrc -fvisibility=hidden -Ofast -flto -fwhole-program -DNDEBUG -c -o build/src/plugin/lv2/lv2.o src/plugin/lv2/lv2.c
gcc -Wall -Wextra -Werror -pedantic -std=c11 -fpic -MMD -MP -Isrc -fvisibility=hidden -Ofast -flto -fwhole-program -DNDEBUG -c -o build/src/plugin/recording/recording.o src/plugin/recording/recording.c
gcc -shared -Wl,--no-undefined,--no-allow-shlib-undefined -Ofast -flto -o build/freeze.so build/src/shared/client/callbacks/callbacks.o build/src/shared/client/client/client.o build/src/shared/uris/uris.o build/src/shared/logger/lv2/lv2.o build/src/shared/logger/logger/logger.o build/src/utils/string/string.o build/src/utils/callback/callback.o build/src/utils/array_list/array_list.o build/src/utils/memory/memory.o build/src/plugin/plugin/plugin.o build/src/plugin/lv2/lv2.o build/src/plugin/recording/recording.o 
gcc -Wall -Wextra -Werror -pedantic -std=c11 -fpic -MMD -MP -Isrc -fvisibility=hidden -Ofast -flto -fwhole-program -DNDEBUG -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/libffi-3.2.1/include -I/usr/include/harfbuzz -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/atk-1.0 -pthread  -c -o build/src/gui/views/app/app.o src/gui/views/app/app.c
In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37,
                 from /usr/include/gtk-2.0/gtk/gtkwidget.h:36,
                 from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35,
                 from /usr/include/gtk-2.0/gtk/gtkbin.h:35,
                 from /usr/include/gtk-2.0/gtk/gtkwindow.h:36,
                 from /usr/include/gtk-2.0/gtk/gtkdialog.h:35,
                 from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32,
                 from /usr/include/gtk-2.0/gtk/gtk.h:33,
                 from src/gui/pmods/app/../db_path/db_path.h:4,
                 from src/gui/pmods/app/app.h:6,
                 from src/gui/pmods/pmods.h:1,
                 from src/gui/views/app/../db_path/db_path.h:4,
                 from src/gui/views/app/app.h:4,
                 from src/gui/views/app/app.c:22:
/usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: error: ‘GTypeDebugFlags’ is deprecated [-Werror=deprecated-declarations]
  236 | void            gtk_type_init   (GTypeDebugFlags    debug_flags);
      | ^~~~
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 /usr/include/glib-2.0/gio/gioenums.h:28,
                 from /usr/include/glib-2.0/gio/giotypes.h:28,
                 from /usr/include/glib-2.0/gio/gio.h:26,
                 from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
                 from /usr/include/gtk-2.0/gdk/gdk.h:32,
                 from /usr/include/gtk-2.0/gtk/gtk.h:32,
                 from src/gui/pmods/app/../db_path/db_path.h:4,
                 from src/gui/pmods/app/app.h:6,
                 from src/gui/pmods/pmods.h:1,
                 from src/gui/views/app/../db_path/db_path.h:4,
                 from src/gui/views/app/app.h:4,
                 from src/gui/views/app/app.c:22:
/usr/include/glib-2.0/gobject/gtype.h:679:1: note: declared here
  679 | {
      | ^
In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31,
                 from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30,
                 from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30,
                 from /usr/include/gtk-2.0/gtk/gtk.h:126,
                 from src/gui/pmods/app/../db_path/db_path.h:4,
                 from src/gui/pmods/app/app.h:6,
                 from src/gui/pmods/pmods.h:1,
                 from src/gui/views/app/../db_path/db_path.h:4,
                 from src/gui/views/app/app.h:4,
                 from src/gui/views/app/app.c:22:
/usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: error: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead [-Werror=deprecated-declarations]
   73 |   GTimeVal last_popdown;
      |   ^~~~~~~~
In file included from /usr/include/glib-2.0/glib/galloca.h:32,
                 from /usr/include/glib-2.0/glib.h:30,
                 from /usr/include/glib-2.0/gobject/gbinding.h:28,
                 from /usr/include/glib-2.0/glib-object.h:22,
                 from /usr/include/glib-2.0/gio/gioenums.h:28,
                 from /usr/include/glib-2.0/gio/giotypes.h:28,
                 from /usr/include/glib-2.0/gio/gio.h:26,
                 from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
                 from /usr/include/gtk-2.0/gdk/gdk.h:32,
                 from /usr/include/gtk-2.0/gtk/gtk.h:32,
                 from src/gui/pmods/app/../db_path/db_path.h:4,
                 from src/gui/pmods/app/app.h:6,
                 from src/gui/pmods/pmods.h:1,
                 from src/gui/views/app/../db_path/db_path.h:4,
                 from src/gui/views/app/app.h:4,
                 from src/gui/views/app/app.c:22:
/usr/include/glib-2.0/glib/gtypes.h:547:8: note: declared here
  547 | struct _GTimeVal
      |        ^~~~~~~~~
cc1: all warnings being treated as errors
make: *** [GNUmakefile:91: build/src/gui/views/app/app.o] Error 1
taylordotfish commented 3 years ago

This appears to be due to an issue in GTK 2 itself, so I've turned those errors into warnings for now.