Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#75383 - [libdispatch] dispatch.h incompatible with GCC

Attached to Project: Community Packages
Opened by Jean-Michaƫl Celerier (jcelerier) - Wednesday, 20 July 2022, 18:19 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Sunday, 12 March 2023, 07:41 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Versions:

gcc 12.1.0-2
libdispatch 5.5.0-1.1

Repro:

$ echo '#include <dispatch/dispatch.h>' > foo.cpp
$ g++ foo.cpp

gives the following error:

In file included from /usr/include/dispatch/dispatch.h:32,
from foo.cpp:1:
/usr/include/os/generic_unix_base.h:58:18: error: missing binary operator before token "("
58 | #if __has_feature(assume_nonnull)
| ^
/usr/include/os/generic_unix_base.h:72:18: error: missing binary operator before token "("
72 | #if __has_feature(attribute_availability_swift)
| ^
/usr/include/os/generic_unix_base.h:97:18: error: missing binary operator before token "("
97 | #if __has_feature(objc_fixed_enum) || __has_extension(cxx_strong_enums)
| ^

Additional info:
* package version(s)
* config and/or log files etc.
* link to upstream bug report, if any

Steps to reproduce:
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Sunday, 12 March 2023, 07:41 GMT
Reason for closing:  Upstream
Comment by Toolybird (Toolybird) - Monday, 25 July 2022, 08:05 GMT
I guess it only compiles with clang, so yeah, probably incompatible with GCC, e.g: [1]. Therefore this is likely an upstream bug which I see you've already reported [2]. This lib was only introduced because of telegram-desktop...so prolly not much Arch can do here.

[1] https://github.com/bangnoise/ofxHapPlayer/issues/66
[2] https://github.com/apple/swift-corelibs-libdispatch/issues/765
Comment by Sven-Hendrik Haase (Svenstaro) - Sunday, 12 March 2023, 07:41 GMT
I don't really see anything actionable we can do here. Upstream is aware of the problem and doesn't seem to care. There's no patch. Closing for the time being.

Loading...