Package Details: arduino-ctags 5.8_arduino11-5

Git Clone URL: https://aur.archlinux.org/arduino-ctags.git (read-only, click to copy)
Package Base: arduino-ctags
Description: A mix of ctags and anjuta-tags for the perfect C++ ctags
Upstream URL: https://github.com/arduino/ctags
Licenses: GPL
Submitter: arojas
Maintainer: andreas_baumann
Last Packager: andreas_baumann
Votes: 7
Popularity: 0.33
First Submitted: 2025-03-31 17:18 (UTC)
Last Updated: 2026-02-28 13:57 (UTC)

Latest Comments

andreas_baumann commented on 2025-12-13 11:42 (UTC) (edited on 2025-12-13 11:43 (UTC) by andreas_baumann)

Thanks for reporting. Fixed it in ctags-5.8-arduino11-unused.patch.

No project should redefine __unused__ because that symbol belongs to the gcc compiler, and glibc makes use of it. So I defined an UNUSED symbol with the old semantic of __unused__ as used in the ctags-arduino code..

filand commented on 2025-11-10 22:10 (UTC) (edited on 2025-11-10 22:11 (UTC) by filand)

This package is broken and doesn't build with the latest glibc. The symbol __unused__ is now defined in glibc and is redefined in general.h, which obviously ends up in a clash. Unfortunately I can't append patches here (btw is there a way to open a PR for an AUR package?)

To fix this you need to remove #define __unused__ lines from general.h and remove all mentions of __unused__ in the C source files of this project.

I can supply a patch file if there is a proper way to do this, I just don't know how to do that for AUR.

greyltc commented on 2025-08-24 17:33 (UTC)

fails to build for me with

gcc -I. -I. -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -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 -g -ffile-prefix-map=/build/arduino-ctags/src=/usr/src/debug/arduino-ctags -flto=auto -c args.c
In file included from /usr/include/features.h:524,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:28,
                 from args.c:17:
/usr/include/sys/cdefs.h:491:61: error: missing ‘)’ after ‘__has_attribute’
  491 | #if __GNUC_PREREQ (2,7) || __glibc_has_attribute (__unused__)
      |                                                             ^
general.h:60:36: error: missing binary operator before token ‘(’
   60 | # define __unused__  __attribute__((unused))
      |                                    ^
make: *** [Makefile:220: args.o] Error 1