Package Details: elektroid-git 3.4.r7.gbf5a0f90-1

Git Clone URL: https://aur.archlinux.org/elektroid-git.git (read-only, click to copy)
Package Base: elektroid-git
Description: A sample and MIDI manager for Elektron devices and other synths and effects
Upstream URL: https://dagargo.github.io/elektroid/
Licenses: BSD-3-Clause, GPL-3.0-only
Conflicts: elektroid
Provides: elektroid
Submitter: deuill
Maintainer: SpotlightKid
Last Packager: SpotlightKid
Votes: 5
Popularity: 0.000002
First Submitted: 2021-12-01 22:19 (UTC)
Last Updated: 2026-09-01 21:07 (UTC)

Dependencies (35)

Required by (0)

Sources (1)

Latest Comments

SpotlightKid commented on 2026-08-18 04:21 (UTC)

Compilation fails when using -Werror=format-security flag, which is included by default in CFLAGS in /etc/makepkg.conf:

elektroid.c: In function 'elektroid_ask_user_to_continue_show':
elektroid.c:205:42: error: format not a string literal and no format arguments [-Werror=format-security]
  205 |                                          GTK_BUTTONS_NONE, data->msg);
      |                                          ^~~~~~~~~~~~~~~~

The error is caused by a call to gtk_message_dialog_new, in which the format string argument is not a string literal and no format arguments follow.

Here's a patch to fix this:

diff --git a/src/elektroid.c b/src/elektroid.c
index 58274caa..a5c6e82d 100644
--- a/src/elektroid.c
+++ b/src/elektroid.c
@@ -202,7 +202,7 @@ elektroid_ask_user_to_continue_show (gpointer user_data)

   data->dialog = gtk_message_dialog_new (main_window, GTK_DIALOG_MODAL,
                     GTK_MESSAGE_WARNING,
-                    GTK_BUTTONS_NONE, data->msg);
+                    GTK_BUTTONS_NONE, "%s", data->msg);
   gtk_dialog_add_buttons (GTK_DIALOG (data->dialog), _("_Cancel"),
              GTK_RESPONSE_CANCEL, _("_Continue"),
              GTK_RESPONSE_ACCEPT, NULL);

SpotlightKid commented on 2025-10-01 09:24 (UTC)

Fails to build with GCC 15:

gcc -DHAVE_CONFIG_H -I. -I..  -DDATADIR='"/usr/share/elektroid"' -DLOCALEDIR='"/usr/share/locale"'  -I../src `/usr/bin/pkg-config --cflags alsa glib-2.0 zlib json-glib-1.0 libzip  libpulse libpulse-mainloop-glib gtk+-3.0` -I/usr/include/opus  -D_GNU_SOURCE -Wall -O3 -march=native -mtune=native -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto=auto -MT connectors/elektroid-system.o -MD -MP -MF connectors/.deps/elektroid-system.Tpo -c -o connectors/elektroid-system.o `test -f 'connectors/system.c' || echo './'`connectors/system.c
mv -f connectors/.deps/elektroid-system.Tpo connectors/.deps/elektroid-system.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DDATADIR='"/usr/share/elektroid"' -DLOCALEDIR='"/usr/share/locale"'  -I../src `/usr/bin/pkg-config --cflags alsa glib-2.0 zlib json-glib-1.0 libzip  libpulse libpulse-mainloop-glib gtk+-3.0` -I/usr/include/opus  -D_GNU_SOURCE -Wall -O3 -march=native -mtune=native -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto=auto -MT connectors/elektroid-volca_sample.o -MD -MP -MF connectors/.deps/elektroid-volca_sample.Tpo -c -o connectors/elektroid-volca_sample.o `test -f 'connectors/volca_sample.c' || echo './'`connectors/volca_sample.c
In file included from connectors/volca_sample_sdk/korg_syro_volcasample.h:4,
                 from connectors/volca_sample.c:24:
connectors/volca_sample_sdk/korg_syro_type.h:35:13: error: 'bool' cannot be defined via 'typedef'
   35 | typedef int bool;
      |             ^~~~
connectors/volca_sample_sdk/korg_syro_type.h:35:13: note: 'bool' is a keyword with '-std=c23' onwards
connectors/volca_sample_sdk/korg_syro_type.h:35:1: warning: useless type name in empty declaration
   35 | typedef int bool;
      | ^~~~~~~
make[2]: *** [Makefile:1349: connectors/elektroid-volca_sample.o] Error 1
make[2]: Leaving directory '/home/chris/.cache/pikaur/build/elektroid-git/src/elektroid/src'
make[1]: *** [Makefile:450: all-recursive] Error 1
make[1]: Leaving directory '/home/chris/.cache/pikaur/build/elektroid-git/src/elektroid'
make: *** [Makefile:382: all] Error 2

Workaround: add export CFLAGS+=" -std=gnu17" before the ./configure [...] line in the PKGBUILD.

Explanation: GCC 15 changes the default language version for C compilation from -std=gnu17 to -std=gnu23.

C23 added various new keywords, including bool, which means that code that uses bool for identifiers will need changing.

Reference: https://gcc.gnu.org/gcc-15/porting_to.html#c23-new-keywords

jackxbritton commented on 2025-06-01 20:02 (UTC)

This fails to build for me due to an incompatible pointer types error. I fixed it by changing make in the PKGBUILD to instead be make CFLAGS='-Wno-incompatible-pointer-types'.

deuill commented on 2022-01-09 14:57 (UTC)

Hey Franco_64, seems that the issue here is related to how there's spaces in the path used for building the package (specifically, in the AUR packages folder), which trips up the Elektroid build system.

I'd file a ticket with upstream to get this fixed, but you can work around this by building in a different directory (or setting BUILDDIR, which may be good to set to something like /tmp/makepkg if you're on an SSD either way).

Franco_64 commented on 2022-01-08 18:25 (UTC) (edited on 2022-01-08 18:28 (UTC) by Franco_64)

Hi deuill,

I try to compile Elektroid, but makepkg exits with this error:

==> Starting package()...

Making install in src

make[1]: Entering directory '/home/franco/Downloads/AUR packages/elektroid-git/src/elektroid/src'

make[2]: Entering directory '/home/franco/Downloads/AUR packages/elektroid-git/src/elektroid/src'

/usr/bin/mkdir -p '/home/franco/Downloads/AUR packages/elektroid-git/pkg/elektroid-git/usr/bin'

/bin/sh ../libtool --mode=install /usr/bin/install -c elektroid elektroid-cli '/home/franco/Downloads/AUR packages/elektroid-git/pkg/elektroid-git/usr/bin'

libtool: install: /usr/bin/install -c elektroid /home/franco/Downloads/AUR packages/elektroid-git/pkg/elektroid-git/usr/bin/elektroid

/usr/bin/install: target 'packages/elektroid-git/pkg/elektroid-git/usr/bin/elektroid' is not a directory

make[2]: *** [Makefile:403: install-binPROGRAMS] Error 1

make[2]: Leaving directory '/home/franco/Downloads/AUR packages/elektroid-git/src/elektroid/src'

make[1]: *** [Makefile:821: install-am] Error 2

make[1]: Leaving directory '/home/franco/Downloads/AUR packages/elektroid-git/src/elektroid/src'

make: *** [Makefile:431: install-recursive] Error 1

==> ERROR: A failure occurred in package().

Aborting...