Unable to build/compile zrythm [AUR]

im trying to install zrythm from the AUR and it keeps failing to build

here is the output where it fails

[198/407] Compiling C object ‘src/25a6634@@zrythm-lib@sta/actions_arranger_selections.c.o’
…/src/actions/arranger_selections.c: In function ‘do_or_undo_resize’:
…/src/actions/arranger_selections.c:1696:11: warning: ‘type’ may be used uninitialized in this function [-Wmaybe-uninitialized]
1696 | arranger_object_resize (
| ^~~~~~~~~~~~~~~~~~~~~~~~
1697 | objs[i], left, type, ticks);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
Aborting…

edit:
i noticed that it fails at different times while building its not always the same
this time it failed here

195/407] Compiling C object ‘src/25a6634@@zrythm-lib@sta/actions_actions.c.o’
FAILED: src/25a6634@@zrythm-lib@sta/actions_actions.c.o
cc -Isrc/25a6634@@zrythm-lib@sta -Isrc -I…/src -I. -I… -I…/inc -Iext -I…/ext -Iext/midilib -I…/ext/midilib -Iext/zix -I…/ext/zix -I…/inc/plugins/lv2 -I…/subprojects/libcyaml/include -Isubprojects/libaudec -I…/subprojects/libaudec -Isubprojects/libaudec/inc -I…/subprojects/libaudec/inc -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0 -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/at-spi-2.0 -I/usr/include/libgtop-2.0 -I/usr/include/guile/2.2 -I/usr/include/lilv-0 -I/usr/include/serd-0 -I/usr/include/sord-0 -I/usr/include/sratom-0 -I/usr/include/gtksourceview-3.0 -I/usr/include/libxml2 -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O3 -Wno-bad-function-cast -Wno-old-style-declaration -Werror=absolute-value -Wformat=2 -Wno-missing-field-initializers -Wno-unused-parameter -Wno-sequence-point -Wignored-qualifiers -Wno-cast-function-type -fno-common -ffast-math -fdata-sections -ffunction-sections -mtune=generic -msse -msse2 -mfpmath=sse -Wformat -Werror=format-security ‘-DGETTEXT_PACKAGE=“zrythm”’ -march=x86-64 -mtune=generic -O2 -fno-plt -D_FORTIFY_SOURCE=2 -fPIC -pthread -Wformat=2 -Wno-missing-field-initializers -Wno-unused-parameter -Wno-sequence-point -Wignored-qualifiers -Wno-cast-function-type -fno-common ‘-D__(x)=x’ -ffast-math -DPIC -fdata-sections -ffunction-sections -mtune=generic -msse -msse2 -mfpmath=sse -Wformat -Werror=format-security -MD -MQ ‘src/25a6634@@zrythm-lib@sta/actions_actions.c.o’ -MF ‘src/25a6634@@zrythm-lib@sta/actions_actions.c.o.d’ -o ‘src/25a6634@@zrythm-lib@sta/actions_actions.c.o’ -c …/src/actions/actions.c
In file included from /usr/include/gtksourceview-3.0/gtksourceview/gtksource.h:35,
from …/inc/gui/widgets/scripting_window.h:31,
from …/src/actions/actions.c:72:
/usr/include/gtksourceview-3.0/gtksourceview/gtksourcefile.h:180:10: warning: ‘GTimeVal’ is deprecated: Use ‘GDateTime’ instead [-Wdeprecated-declarations]
180 | GTimeVal *modification_time);
| ^~~~~~~~
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/gtk-3.0/gdk/gdkconfig.h:8,
from /usr/include/gtk-3.0/gdk/gdk.h:30,
from /usr/include/gtk-3.0/gtk/gtk.h:30,
from …/inc/actions/actions.h:29,
from …/src/actions/actions.c:28:
/usr/include/glib-2.0/glib/gtypes.h:547:8: note: declared here
547 | struct _GTimeVal
| ^~~~~~~~~
In file included from /usr/include/gtksourceview-3.0/gtksourceview/gtksource.h:35,
from …/inc/gui/widgets/scripting_window.h:31,
from …/src/actions/actions.c:72:
/usr/include/gtksourceview-3.0/gtksourceview/gtksourcefile.h:184:10: warning: ‘GTimeVal’ is deprecated: Use ‘GDateTime’ instead [-Wdeprecated-declarations]
184 | GTimeVal modification_time);
| ^~~~~~~~
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/gtk-3.0/gdk/gdkconfig.h:8,
from /usr/include/gtk-3.0/gdk/gdk.h:30,
from /usr/include/gtk-3.0/gtk/gtk.h:30,
from …/inc/actions/actions.h:29,
from …/src/actions/actions.c:28:
/usr/include/glib-2.0/glib/gtypes.h:547:8: note: declared here
547 | struct _GTimeVal
| ^~~~~~~~~
…/src/actions/actions.c: In function ‘activate_manual’:
…/src/actions/actions.c:174:7: error: ‘S_PREFERENCES’ undeclared (first use in this function); did you mean ‘MW_PREFERENCES’?
174 | S_PREFERENCES,
| ^~~~~~~~~~~~~
| MW_PREFERENCES
…/src/actions/actions.c:174:7: note: each undeclared identifier is reported only once for each function it appears in
…/src/actions/actions.c:177:5: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
177 | localization_get_string_code (lang);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
[200/407] Compiling C object ‘src/25a6634@@zrythm-lib@sta/actions_copy_plugins_action.c.o’
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
Aborting…
Error making: zrythm

it does not goes ahead of this 201 it fails before or on this

welcome!

note that the AUR package is not managed by us, but it looks like this is an old issue that was fixed in the latest release. upgrading to the latest version should fix it.

you can also download an installer here, which contains a pre-built Arch package that we support.

1 Like

if i download the installer from the website, do i need to update it manually every time? as the package manager helps in that situation

you would need to reinstall the package every time, yes. the installer basically does pacman -U. eventually we can create proper arch repos with ssh keys to automate updating, but the time/effort it takes to set that up would be better spent on actual development now

1 Like

hmm… i understand, thanks for the info

1 Like