NetBSD Problem Report #60241
From www@netbsd.org Fri May 8 13:36:01 2026
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
client-signature RSA-PSS (2048 bits) client-digest SHA256)
(Client CN "mail.netbsd.org", Issuer "R13" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 4DF341A9239
for <gnats-bugs@gnats.NetBSD.org>; Fri, 8 May 2026 13:36:01 +0000 (UTC)
Message-Id: <20260508133600.2E3821A923A@mollari.NetBSD.org>
Date: Fri, 8 May 2026 13:36:00 +0000 (UTC)
From: opensauce04@gmail.com
Reply-To: opensauce04@gmail.com
To: gnats-bugs@NetBSD.org
Subject: qt6-qtbase: Build fails on macOS with error "implicitly declaring library function '__yield' with type 'void ()'"
X-Send-Pr-Version: www-1.0
X-From4GNATS: "opensauce04@gmail.com via gnats" <gnats-admin@NetBSD.org>
>Number: 60241
>Category: pkg
>Synopsis: qt6-qtbase: Build fails on macOS with error "implicitly declaring library function '__yield' with type 'void ()'"
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri May 08 13:40:00 +0000 2026
>Last-Modified: Sat May 09 15:10:01 +0000 2026
>Originator: Daniel Bradbury
>Release: pkgsrc 2026Q1
>Organization:
>Environment:
Darwin danmbp 25.4.0 Darwin Kernel Version 25.4.0: Thu Mar 19 19:33:43 PDT 2026; root:xnu-12377.101.15~1/RELEASE_ARM64_T8142 arm64
>Description:
When attempting to build the qt6-qtbase package on macOS, the build process fails very shortly after it starts with several build failures like this, all with the same error message:
```
In file included from /opt/pkgsrc/x11/qt6-qtbase/work/qtbase-everywhere-src-6.10.2/src/corelib/global/qalloc.cpp:6:
In file included from /opt/pkgsrc/x11/qt6-qtbase/work/qtbase-everywhere-src-6.10.2/include/QtCore/qalgorithms.h:1:
In file included from /opt/pkgsrc/x11/qt6-qtbase/work/qtbase-everywhere-src-6.10.2/src/corelib/tools/qalgorithms.h:11:
In file included from /opt/pkgsrc/x11/qt6-qtbase/work/qtbase-everywhere-src-6.10.2/include/QtCore/qglobal.h:1:
In file included from /opt/pkgsrc/x11/qt6-qtbase/work/qtbase-everywhere-src-6.10.2/src/corelib/global/qglobal.h:51:
In file included from /opt/pkgsrc/x11/qt6-qtbase/work/qtbase-everywhere-src-6.10.2/include/QtCore/qatomic.h:1:
In file included from /opt/pkgsrc/x11/qt6-qtbase/work/qtbase-everywhere-src-6.10.2/src/corelib/thread/qatomic.h:9:
In file included from /opt/pkgsrc/x11/qt6-qtbase/work/qtbase-everywhere-src-6.10.2/include/QtCore/qbasicatomic.h:1:
In file included from /opt/pkgsrc/x11/qt6-qtbase/work/qtbase-everywhere-src-6.10.2/src/corelib/thread/qbasicatomic.h:9:
In file included from /opt/pkgsrc/x11/qt6-qtbase/work/qtbase-everywhere-src-6.10.2/include/QtCore/qatomic_cxx11.h:1:
In file included from /opt/pkgsrc/x11/qt6-qtbase/work/qtbase-everywhere-src-6.10.2/src/corelib/thread/qatomic_cxx11.h:10:
In file included from /opt/pkgsrc/x11/qt6-qtbase/work/qtbase-everywhere-src-6.10.2/include/QtCore/qyieldcpu.h:1:
/opt/pkgsrc/x11/qt6-qtbase/work/qtbase-everywhere-src-6.10.2/src/corelib/thread/qyieldcpu.h:37:5: error: implicitly declaring library function '__yield' with type 'void ()'
[-Werror,-Wimplicit-function-declaration]
37 | __yield(); // Generic
| ^
```
>How-To-Repeat:
Attempt to build the `qt6-qtbase` package on macOS on the pkgsrc 2026Q1 branch.
>Fix:
>Audit-Trail:
From: Tobias Nygren <tnn@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/60241: qt6-qtbase: Build fails on macOS with error
"implicitly declaring library function '__yield' with type 'void ()'"
Date: Fri, 8 May 2026 15:44:51 +0200
On Fri, 8 May 2026 13:40:00 +0000 (UTC)
"opensauce04@gmail.com via gnats" <gnats-admin@NetBSD.org> wrote:
> /opt/pkgsrc/x11/qt6-qtbase/work/qtbase-everywhere-src-6.10.2/src/corelib/thread/qyieldcpu.h:37:5: error: implicitly declaring library function '__yield' with type 'void ()'
> [-Werror,-Wimplicit-function-declaration]
> 37 | __yield(); // Generic
This is related to xcode 26.4 which I believe released after 2026Q1.
It should be fixed in pkgsrc-current with this commit:
https://mail-index.netbsd.org/pkgsrc-changes/2026/03/27/msg342910.html
From: opensauce04@gmail.com
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/60241: qt6-qtbase: Build fails on macOS with error
"implicitly declaring library function '__yield' with type 'void ()'"
Date: Sat, 9 May 2026 16:09:16 +0100
> > /opt/pkgsrc/x11/qt6-qtbase/work/qtbase-everywhere-src-6.10.2/src/corelib/thread/qyieldcpu.h:37:5: error: implicitly declaring library function '__yield' with type 'void ()'
> > [-Werror,-Wimplicit-function-declaration]
> > 37 | __yield(); // Generic
>
> This is related to xcode 26.4 which I believe released after 2026Q1.
> It should be fixed in pkgsrc-current with this commit:
>
> https://mail-index.netbsd.org/pkgsrc-changes/2026/03/27/msg342910.html
Kind of?
The specific build issue that I brought up in the PR description is now
gone, but it is replaced with a different issue. About 1/3 of the way
through the build, it fails with this error message:
```
dyld[56301]: Library not loaded: @rpath/libQt6Core.6.dylib
Referenced from: <36F71CBD-69D0-3839-862C-912FBED36F8F>
/opt/pkgsrc/x11/qt6-qtbase/work/qtbase-everywhere-src-6.10.2/libexec/rcc
Reason: tried: '/opt/pkg/lib/libQt6Core.6.dylib' (no such file),
'/System/Volumes/Preboot/Cryptexes/OS/opt/pkg/lib/libQt6Core.6.dylib'
(no such file), '/opt/pkg/lib/libQt6Core.6.dylib' (no such file),
'/System/Volumes/Preboot/Cryptexes/OS/opt/pkg/lib/libQt6Core.6.dylib'
(no such file)
/bin/sh: line 1: 56301 Abort trap: 6 ../../../libexec/rcc --output
/opt/pkgsrc/x11/qt6-qtbase/work/qtbase-everywhere-src-6.10.2/src/assets/icons/.qt/rcc/qrc_example_icons.cpp
--name example_icons
/opt/pkgsrc/x11/qt6-qtbase/work/qtbase-everywhere-src-6.10.2/src/assets/icons/.qt/rcc/example_icons.qrc
gmake[2]: ***
[src/assets/icons/CMakeFiles/ExampleIconsPrivate.dir/build.make:235:
src/assets/icons/.qt/rcc/qrc_example_icons.cpp] Error 134
gmake[1]: *** [CMakeFiles/Makefile2:10657:
src/assets/icons/CMakeFiles/ExampleIconsPrivate.dir/all] Error 2
```
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.