Summary: | dev-embedded/arduino-ctags-20161123-r1: stabilisation (was: dev-embedded/arduino-ctags-20161123 - general.h: error: missing binary operator before token) | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> | ||||||||||||||||||
Component: | Stabilization | Assignee: | Embedded Gentoo Team <embedded> | ||||||||||||||||||
Status: | RESOLVED FIXED | ||||||||||||||||||||
Severity: | normal | CC: | gentoo, s.zharkoff, sam | ||||||||||||||||||
Priority: | Normal | Keywords: | CC-ARCHES, PATCH | ||||||||||||||||||
Version: | unspecified | Flags: | nattka:
sanity-check+
|
||||||||||||||||||
Hardware: | All | ||||||||||||||||||||
OS: | Linux | ||||||||||||||||||||
Whiteboard: | |||||||||||||||||||||
Package list: |
dev-embedded/arduino-ctags-20161123-r1
|
Runtime testing required: | --- | ||||||||||||||||||
Bug Depends on: | |||||||||||||||||||||
Bug Blocks: | 803482 | ||||||||||||||||||||
Attachments: |
|
Description
Toralf Förster
2021-12-08 08:21:36 UTC
Created attachment 757690 [details]
emerge-info.txt
Created attachment 757691 [details]
dev-embedded:arduino-ctags-20161123:20211208-023231.log
Created attachment 757692 [details]
emerge-history.txt
Created attachment 757693 [details]
environment
Created attachment 757694 [details]
etc.portage.tar.bz2
Created attachment 757695 [details]
logs.tar.bz2
Created attachment 757696 [details]
temp.tar.bz2
I have same problem. At the same time, installation of "dev-embedded/arduino-ctags-20161123" with ebuildtester passes without any issues. There must be something installed later, that breaks these "cdefs.h" file... It seems to be related to "glibc". sys-libs/glibc-2.34-r3 (/usr/include/sys/cdefs.h) - DO NOT compile sys-libs/glibc-2.33-r1 (/usr/include/sys/cdefs.h) - compiles well. hm, Debian still packages it, but no fix upstream: https://packages.debian.org/unstable/editors/arduino-ctags As I see the issue is with defining __unused__ macro in general.h header. This is a very common name so __unused__ got defined by libc headers and this conflicting define breaks the compile. Just replaced __unused__ with __arduino_unused__ everywhere in the code and it compiles well. Created attachment 760133 [details, diff]
the patch for arduino-ctags code
Maybe there is a better way to use sed command in the ebuild itsel - but I am not good in ebuilds , so just the idea.
just applied patch and it compiles well. I can try creating sed based patch and test if it compiles. Thanks a lot!! (In reply to s.zharkoff from comment #12) > Created attachment 760133 [details, diff] [details, diff] > the patch for arduino-ctags code > > Maybe there is a better way to use sed command in the ebuild itsel - but I > am not good in ebuilds , so just the idea. lgtm. it's a hack but it's the easiest way given upstream is dead. thanks a lot! The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=612c3d433d5cc3d78ca7f48fb9e134eaefa38b7b commit 612c3d433d5cc3d78ca7f48fb9e134eaefa38b7b Author: Sam James <sam@gentoo.org> AuthorDate: 2021-12-23 00:14:46 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-12-23 00:15:23 +0000 dev-embedded/arduino-ctags: update EAPI 6 -> 8, fix build Bug: https://bugs.gentoo.org/828550 Thanks-to: <s.zharkoff@gmail.com> Signed-off-by: Sam James <sam@gentoo.org> .../arduino-ctags/arduino-ctags-20161123-r1.ebuild | 32 +++ ...duino-ctags-20161123-gcc-unused-attribute.patch | 225 +++++++++++++++++++++ 2 files changed, 257 insertions(+) amd64 done x86 done all arches done |