Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 829158 - dev-libs/libdispatch-5.3.3-r1: error: unknown type name '__END_DECLS'
Summary: dev-libs/libdispatch-5.3.3-r1: error: unknown type name '__END_DECLS'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords: PullRequest
: 833306 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-12-14 11:18 UTC by Toralf Förster
Modified: 2022-02-18 03:06 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,15.48 KB, text/plain)
2021-12-14 11:18 UTC, Toralf Förster
Details
dev-libs:libdispatch-5.3.3-r1:20211214-111633.log (dev-libs:libdispatch-5.3.3-r1:20211214-111633.log,65.06 KB, text/plain)
2021-12-14 11:18 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,96.19 KB, text/plain)
2021-12-14 11:18 UTC, Toralf Förster
Details
environment (environment,91.26 KB, text/plain)
2021-12-14 11:18 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,16.09 KB, application/x-bzip)
2021-12-14 11:18 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,7.67 KB, application/x-bzip)
2021-12-14 11:18 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,28.25 KB, application/x-bzip)
2021-12-14 11:18 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-12-14 11:18:50 UTC
too long lines were shrinked:

                          dispatch_block_t
/var/tmp/portage/dev-libs/libdispatch-5.3.3-r1/work/swift-corelibs-libdispatch-swift-5.3.3-RELEASE/dispatch/object.h:176:16: note: 'dispatch_block_t' declared here
typedef void (^dispatch_block_t)(void);
               ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[2/79] /usr/lib/llvm/13/bin/x86_64-gentoo-linux-musl-clang -DDISPATCH_USE_DTRACE=0 -DHAVE_CONFIG_H -I/var/tmp/portage/dev-libs/libdispatch-5.3.3-r1/work/libdispatch-5.3.3_build/tests -I/var/tmp/portage/dev-libs/libdispatch-5.3.3-r1/work/swift-corelibs-libdispatch-swift-5.3.3-RELEASE -I/var/tmp/porta
FAILED: tests/CMakeFiles/dispatch_io_pipe.dir/dispatch_io_pipe.c.o 
/usr/lib/llvm/13/bin/x86_64-gentoo-linux-musl-clang -DDISPATCH_USE_DTRACE=0 -DHAVE_CONFIG_H -I/var/tmp/portage/dev-libs/libdispatch-5.3.3-r1/work/libdispatch-5.3.3_build/tests -I/var/tmp/portage/dev-libs/libdispatch-5.3.3-r1/work/swift-corelibs-libdispatch-swift-5.3.3-RELEASE -I/var/tmp/portage/dev-

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl_hardened-j4-20211213-184654

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-11.2.1 *
clang version 13.0.0
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/13/bin
/usr/lib/llvm/13
13.0.0
Python 3.9.9
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.57.0 *
php cli:

  HEAD of ::gentoo
commit 9f9f23f57b7899f52c3ec12f24a51a1082f9bd7e
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Dec 14 10:51:50 2021 +0000

    2021-12-14 10:51:49 UTC

emerge -qpvO dev-libs/libdispatch
[ebuild  N    ] dev-libs/libdispatch-5.3.3-r1
Comment 1 Toralf Förster gentoo-dev 2021-12-14 11:18:51 UTC
Created attachment 758914 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-12-14 11:18:52 UTC
Created attachment 758915 [details]
dev-libs:libdispatch-5.3.3-r1:20211214-111633.log
Comment 3 Toralf Förster gentoo-dev 2021-12-14 11:18:54 UTC
Created attachment 758916 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2021-12-14 11:18:55 UTC
Created attachment 758917 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2021-12-14 11:18:56 UTC
Created attachment 758918 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-12-14 11:18:57 UTC
Created attachment 758919 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2021-12-14 11:18:58 UTC
Created attachment 758920 [details]
temp.tar.bz2
Comment 8 Piotr Karbowski (RETIRED) gentoo-dev 2022-02-06 11:56:13 UTC
Cannot reproduce. Mind sharing with me how can I get such results outside tinderbox?
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-02-06 13:46:38 UTC
(In reply to Piotr Karbowski from comment #8)
> Cannot reproduce. Mind sharing with me how can I get such results outside
> tinderbox?

Did you try with musl? It looks like it might be only non glibc:

/var/tmp/portage/dev-libs/libdispatch-5.3.3-r1/work/swift-corelibs-libdispatch-swift-5.3.3-RELEASE/dispatch/object.h:546:1: error: unknown type name '__END_DECLS'
__END_DECLS
Comment 10 Piotr Karbowski (RETIRED) gentoo-dev 2022-02-06 13:48:29 UTC
I didn't. Whats the procedure for musl only bugs? I have no means to validate whatever it is code issue or wonky musl handling issue
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-02-06 13:50:52 UTC
(In reply to Piotr Karbowski from comment #10)
> I didn't. Whats the procedure for musl only bugs? I have no means to
> validate whatever it is code issue or wonky musl handling issue

I have a chroot for these but if you don't really have time to look into it/care for musl, it's fine to just leave it to musl people to poke at instead (no obligation for maintainers or anything)
Comment 12 Piotr Karbowski (RETIRED) gentoo-dev 2022-02-06 22:02:13 UTC
musl team, please assist on whatever it is musl bug and should be pushed to musl upstream, or libdispatch bug and should be pushed to Apple.
Comment 13 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-02-15 01:14:04 UTC
*** Bug 833306 has been marked as a duplicate of this bug. ***
Comment 14 Larry the Git Cow gentoo-dev 2022-02-18 03:06:55 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8deac5a404bdca06ad8ece68baee944325e46c35

commit 8deac5a404bdca06ad8ece68baee944325e46c35
Author:     Esteve Varela Colominas <esteve.varela@gmail.com>
AuthorDate: 2022-02-14 08:09:12 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-02-18 02:50:48 +0000

    dev-libs/libdispatch: Support musl
    
    No revbump; patches don't affect existing built versions.
    
    Closes: https://bugs.gentoo.org/829158
    Signed-off-by: Esteve Varela Colominas <esteve.varela@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/24187
    Signed-off-by: Sam James <sam@gentoo.org>

 .../libdispatch/files/libdispatch-5.3.3-musl.patch | 56 ++++++++++++++++++++++
 dev-libs/libdispatch/libdispatch-5.3.3-r1.ebuild   |  5 +-
 dev-libs/libdispatch/libdispatch-5.5.ebuild        |  5 +-
 3 files changed, 64 insertions(+), 2 deletions(-)