swift-lang failed to build from source in Fedora rawhide/f39 https://koji.fedoraproject.org/koji/taskinfo?taskID=103733943 For details on the mass rebuild see: https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild Please fix swift-lang at your earliest convenience and set the bug's status to ASSIGNED when you start fixing it. If the bug remains in NEW state for 8 weeks, swift-lang will be orphaned. Before branching of Fedora 40, swift-lang will be retired, if it still fails to build. For more details on the FTBFS policy, please visit: https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/
Created attachment 1979761 [details] build.log file build.log too big, will only attach last 32768 bytes
Created attachment 1979762 [details] root.log file root.log too big, will only attach last 32768 bytes
Created attachment 1979763 [details] state.log
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle. Changing version to 39.
This package needs a rebuild with Python 3.12 not to depend on Python 3.11. Could you please fix this in time for Fedora 39? Thanks
I have “BuildRequires: python3” in the spec file, what needs to be done to make it work with 3.12?
A successful rebuild is all that is needed. Currently, a rebuild fails with: FAILED: CoreFoundation/CMakeFiles/CoreFoundation.dir/Locale.subproj/CFLocale.c.o /builddir/build/BUILD/swift-source/build/buildbot_linux/llvm-linux-x86_64/bin/clang -DCF_BUILDING_CF -DDEPLOYMENT_RUNTIME_SWIFT -DHAVE_SCHED_GETAFFINITY -DU_SHOW_DRAFT_API -D_GNU_SOURCE -I/builddir/build/BUILD/swift-source/swift-corelibs-foundation/CoreFoundation -Iuuid-headers -ICoreFoundation.framework/Headers -isystem /builddir/build/BUILD/swift-source/swift-corelibs-libdispatch/src/BlocksRuntime -isystem /builddir/build/BUILD/swift-source/build/buildbot_linux/libdispatch-linux-x86_64 -isystem /builddir/build/BUILD/swift-source/swift-corelibs-libdispatch -isystem /builddir/build/BUILD/swift-source/swift-corelibs-libdispatch/src -isystem /builddir/build/BUILD/swift-source/build/buildbot_linux/libdispatch-linux-x86_64/src -isystem /builddir/build/BUILD/swift-source/build/buildbot_linux/libicu-linux-x86_64/tmp_install/include -O3 -DNDEBUG -fPIC -include /builddir/build/BUILD/swift-source/swift-corelibs-foundation/CoreFoundation/Base.subproj/CoreFoundation_Prefix.h -fblocks -fexceptions -fconstant-cfstrings -fdollars-in-identifiers -fno-common -Werror=implicit-function-declaration -fcf-runtime-abi=swift -Wno-shorten-64-to-32 -Wno-deprecated-declarations -Wno-unreachable-code -Wno-conditional-uninitialized -Wno-unused-variable -Wno-int-conversion -Wno-unused-function -Wno-microsoft-enum-forward-reference -F /builddir/build/BUILD/swift-source/build/buildbot_linux/foundation-linux-x86_64 -I /builddir/build/BUILD/swift-source/build/buildbot_linux/foundation-linux-x86_64/CoreFoundation.framework/PrivateHeaders -std=gnu99 -MD -MT CoreFoundation/CMakeFiles/CoreFoundation.dir/Locale.subproj/CFLocale.c.o -MF CoreFoundation/CMakeFiles/CoreFoundation.dir/Locale.subproj/CFLocale.c.o.d -o CoreFoundation/CMakeFiles/CoreFoundation.dir/Locale.subproj/CFLocale.c.o -c /builddir/build/BUILD/swift-source/swift-corelibs-foundation/CoreFoundation/Locale.subproj/CFLocale.c In file included from <built-in>:1: /builddir/build/BUILD/swift-source/swift-corelibs-foundation/CoreFoundation/Base.subproj/CoreFoundation_Prefix.h:194:1: error: static declaration of 'strlcpy' follows non-static declaration strlcpy(char * dst, const char * src, size_t maxlen) { ^ /usr/include/string.h:506:15: note: previous declaration is here extern size_t strlcpy (char *__restrict __dest, ^ In file included from <built-in>:1: /builddir/build/BUILD/swift-source/swift-corelibs-foundation/CoreFoundation/Base.subproj/CoreFoundation_Prefix.h:206:1: error: static declaration of 'strlcat' follows non-static declaration strlcat(char * dst, const char * src, size_t maxlen) { ^ /usr/include/string.h:512:15: note: previous declaration is here extern size_t strlcat (char *__restrict __dest, ^ 2 errors generated.
That means, keep “BuildRequires: python3” -- but please do fix the compilation error and build it.
FEDORA-2023-25150d5757 has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2023-25150d5757
FEDORA-2023-25150d5757 has been pushed to the Fedora 40 stable repository. If problem still persists, please make note of it in this bug report.
Thanks! I see the Fedora 39 build is running, so I will reopen this bugzilla until it goes stable.
FEDORA-2023-22f3f6aed0 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-22f3f6aed0
FEDORA-2023-58b9da92fb has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-58b9da92fb
FEDORA-2023-58b9da92fb has been pushed to the Fedora 39 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-58b9da92fb` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-58b9da92fb See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
+4 in https://pagure.io/fedora-qa/blocker-review/issue/1207 , marking accepted.
FEDORA-2023-58b9da92fb has been pushed to the Fedora 39 stable repository. If problem still persists, please make note of it in this bug report.