Skip to content

Conversation

marcprux
Copy link

@marcprux marcprux commented Sep 16, 2025

Fix build script arguments to use "false" instead of "False" due to the build-script-impl true_false function not handling the capitalized form.

marcprux and others added 30 commits March 31, 2025 14:28
* Build Android image

* Checkout without ssh

* Retry build if it fails

* Swift 6.1 Release Dockerfiles (swiftlang#456)

* Change binutils-gold package dependency on Debian 12 to binutils (swiftlang#457)

* Update installed packages after nightly platform expansion (swiftlang#458)

* update nightly-6.1 dependencies

* update nightly-main dependencies

* fix ubuntu images

* Android SDK build

* Android SDK build

* Android SDK build

* Android SDK build

* Android SDK build

* Android SDK build

* Fedora 41 Dockerfile (swiftlang#464)

* Build Android image

* Build Android image

* Swift 6.1 Release Dockerfiles (swiftlang#456)

* Change binutils-gold package dependency on Debian 12 to binutils (swiftlang#457)

* Build Android image

* Build Android image

* Build Android image

* Android SDK build

* Android SDK build

* Android SDK build

* Android SDK build

* Android SDK build

* Android SDK build

* Android SDK build

* Android SDK build

* Android SDK build

* Android SDK build

* Android SDK build

* Android SDK build

* Android SDK build

* Android SDK build

* Android SDK build

* Android SDK build

* Android SDK build

* Android SDK build

* Android SDK build

* Android SDK build

* Android SDK build

* Android SDK build

* Android SDK build

* Android SDK build

* Android SDK build

* Android SDK build

* Android SDK build

* Android SDK build

* Android SDK build

* Android SDK build

* Android SDK build

* Android SDK build

* Android SDK build

* Android SDK build

* Android SDK build

* Android SDK build

* Swift Androd build

* Swift Androd build

* Swift Androd build

* Swift Androd build

* Swift Androd build

* Swift Androd build

* Swift Androd build

* Swift Androd build

* Swift Androd build

* Swift Androd build

* Swift Androd build

* Swift Androd build

* Swift Androd build

* Swift Androd build

* Swift Androd build

* Swift Androd build

* Swift Androd build

* Swift Android build

* Swift Android build

* Swift Android build

* Swift Android build

---------

Co-authored-by: Mishal Shah <[email protected]>
Co-authored-by: Chris McGee <[email protected]>
Co-authored-by: Justice Adams <[email protected]>
Co-authored-by: Andrew Sukach <[email protected]>
* Swift Android build 6.2

* Swift Android build 6.2

* Swift Android build 6.2

* Start splitting NDK out from the rest of the SDK

* Start splitting NDK out from the rest of the SDK

* Swift Android build 6.2

* Swift Android build 6.2

* Swift Android build 6.2

* Swift Android build 6.2

* Swift Android build 6.2

* Swift Android build 6.2

* Swift Android build 6.2

* Swift Android build 6.2

* Swift Android build 6.2

* Swift Android build 6.2

* Swift Android build 6.2

* Swift Android build 6.2

* Swift Android build 6.2

* Swift Android build 6.2

* Swift Android build 6.2
* Swift Android build 6.2

* Swift Android build 6.2

* Add post-install script to SDK bundle

* Add post-install script to SDK bundle

* Add post-install script to SDK bundle

* Add post-install script to SDK bundle
* Add static libraries to post-install script

* Add post-install script to SDK bundle

* Add post-install script to SDK bundle

* Update submodules
marcprux and others added 13 commits August 21, 2025 22:52
* Address nits

* Eliminate unnecessaryt pushds and use run cmake install instead of ninja

* Generate SBOM with SDK dependencies

* Add example of command for building locally
…ocker/local

Also, force the full Swift compiler to be built from source when building from a
branch, since there are no existing toolchain builds of arbitrary commits that
we can download.
@marcprux
Copy link
Author

This appears to be causing the failure of building the swift-6.2-RELEASE tag (see https://github.com/swift-android-sdk/swift-android-sdk-build/actions/runs/17751207896):

2025-09-16T01:33:51.2325586Z true_false: unknown value: False
2025-09-16T01:33:51.2359749Z ERROR: command `['/source/swift-project/swift/utils/build-script-impl', '--workspace', '/source/swift-project', '--build-dir', '/home/build-user/build/swift-project/Ninja-Release', '--install-prefix', '/usr', '--host-target', 'linux-x86_64', '--stdlib-deployment-targets=linux-x86_64 android-aarch64', '--host-cc', '/usr/lib/llvm-19/bin/clang', '--host-cxx', '/usr/lib/llvm-19/bin/clang++', '--darwin-xcrun-toolchain', 'default', '--darwin-deployment-version-osx=13.0', '--darwin-deployment-version-ios=16.0', '--darwin-deployment-version-tvos=16.0', '--darwin-deployment-version-watchos=6.0', '--darwin-deployment-version-xros=1.0', '--cmake', '/home/build-user/build/swift-project/cmake-linux-x86_64/bin/cmake', '--llvm-build-type', 'Release', '--swift-build-type', 'Release', '--swift-stdlib-build-type', 'Release', '--lldb-build-type', 'Release', '--foundation-build-type', 'Release', '--libdispatch-build-type', 'Release', '--xctest-build-type', 'Release', '--llbuild-build-type', 'Release', '--swift-enable-assertions', 'false', '--swift-stdlib-enable-assertions', 'false', '--swift-stdlib-enable-strict-availability', 'false', '--swift-analyze-code-coverage', 'false', '--llbuild-enable-assertions', 'false', '--lldb-assertions', 'false', '--cmake-generator', 'Ninja', '--cross-compile-append-host-target-to-destdir', 'false', '--build-jobs', '4', '--lit-jobs', '4', '--common-cmake-options=-G Ninja -DCMAKE_C_COMPILER:PATH=/usr/lib/llvm-19/bin/clang -DCMAKE_CXX_COMPILER:PATH=/usr/lib/llvm-19/bin/clang++ -DCMAKE_Swift_COMPILER:PATH=/usr/local/swift/bin/swiftc -DCMAKE_LIBTOOL:PATH= -DCMAKE_AR:PATH=/usr/bin/ar -DCMAKE_RANLIB:PATH=/usr/bin/ranlib -DLLVM_VERSION_MAJOR:STRING=17 -DLLVM_VERSION_MINOR:STRING=0 -DLLVM_VERSION_PATCH:STRING=0 -DCLANG_VERSION_MAJOR:STRING=17 -DCLANG_VERSION_MINOR:STRING=0 -DCLANG_VERSION_PATCH:STRING=0 -DCMAKE_MAKE_PROGRAM=/usr/bin/ninja', '--build-args=-j4', '--dsymutil-jobs', '1', '--build-swift-libexec', 'true', '--swift-enable-backtracing', 'true', '--build-swift-clang-overlays', 'true', '--build-swift-remote-mirror', 'true', '--swift-source-dirname', 'swift', '--swift-cmake-options=-DCMAKE_EXPORT_COMPILE_COMMANDS=TRUE -DSWIFT_FORCE_OPTIMIZED_TYPECHECKER:BOOL=FALSE -DSWIFT_STDLIB_ENABLE_STDLIBCORE_EXCLUSIVITY_CHECKING:BOOL=FALSE -DSWIFT_ENABLE_EXPERIMENTAL_DIFFERENTIABLE_PROGRAMMING:BOOL=TRUE -DSWIFT_ENABLE_EXPERIMENTAL_CONCURRENCY:BOOL=TRUE -DSWIFT_ENABLE_EXPERIMENTAL_CXX_INTEROP:BOOL=TRUE -DSWIFT_ENABLE_CXX_INTEROP_SWIFT_BRIDGING_HEADER:BOOL=TRUE -DSWIFT_ENABLE_EXPERIMENTAL_DISTRIBUTED:BOOL=TRUE -DSWIFT_ENABLE_BACKTRACING:BOOL=TRUE -DSWIFT_ENABLE_EXPERIMENTAL_OBSERVATION:BOOL=TRUE -DSWIFT_ENABLE_SYNCHRONIZATION:BOOL=TRUE -DSWIFT_ENABLE_VOLATILE:BOOL=TRUE -DSWIFT_ENABLE_RUNTIME_MODULE:BOOL=TRUE -DSWIFT_STDLIB_STATIC_PRINT=FALSE -DSWIFT_FREESTANDING_IS_DARWIN:BOOL=FALSE -DSWIFT_STDLIB_BUILD_PRIVATE:BOOL=TRUE -DSWIFT_STDLIB_ENABLE_UNICODE_DATA=TRUE -DSWIFT_SHOULD_BUILD_EMBEDDED_STDLIB=TRUE -DSWIFT_SHOULD_BUILD_EMBEDDED_STDLIB_CROSS_COMPILING=FALSE -DSWIFT_STDLIB_BUILD_SYMBOL_GRAPHS:BOOL=FALSE -DSWIFT_TOOLS_LD64_LTO_CODEGEN_ONLY_FOR_SUPPORTING_TARGETS:BOOL=FALSE -DSWIFT_ENABLE_EXPERIMENTAL_PARSER_VALIDATION:BOOL=TRUE -USWIFT_DEBUGINFO_NON_LTO_ARGS -DSWIFT_ENABLE_NEW_RUNTIME_BUILD:BOOL=FALSE', '--build-stdlib-deployment-targets', 'all', '--cross-compile-hosts', 'android-aarch64', '--cross-compile-deps-path=/home/build-user/build/sdk_root/aarch64', '--ninja-bin=/usr/bin/ninja', '--install-destdir', '/home/build-user/build/sdk_root/aarch64', '--skip-build-lldb', '--skip-build-llbuild', '--skip-build-libcxx', '--skip-build-libxml2', '--skip-build-zlib', '--skip-build-curl', '--build-swift-dynamic-stdlib', '--build-swift-static-stdlib', '--build-swift-dynamic-sdk-overlay', '--skip-test-swift', '--skip-test-lldb', '--skip-test-llbuild', '--skip-test-xctest', '--skip-test-foundation', '--skip-test-libdispatch', '--skip-local-build', '--skip-test-benchmarks', '--android-arch', 'aarch64', '--android-ndk', '/home/build-user/build/ndk/android-ndk-r27d', '--android-api-level', '28', '--android-deploy-device-path', '/data/local/tmp', '--native-clang-tools-path=/usr/local/swift/bin', '--native-swift-tools-path=/usr/local/swift/bin', '--extra-cmake-options=-USWIFT_DARWIN_SUPPORTED_ARCHS -DSWIFT_PATH_TO_SWIFT_SYNTAX_SOURCE:PATH=/source/swift-project/swift-syntax -DSWIFT_BUILD_SWIFT_SYNTAX:BOOL=TRUE -DSWIFT_EARLY_SWIFT_DRIVER_BUILD=/home/build-user/build/swift-project/Ninja-Release/earlyswiftdriver-linux-x86_64/release/bin', '--build-swift-tools=0', '--skip-test-xctest', '--swift-install-components=compiler;clang-resource-dir-symlink;license;stdlib;sdk-overlay', '--install-libdispatch', '--install-foundation', '--install-xctest', '--cross-compile-build-swift-tools=False', '--libdispatch-cmake-options=-DCMAKE_SHARED_LINKER_FLAGS=', '--foundation-cmake-options=-DCMAKE_SHARED_LINKER_FLAGS=', '--install-swift', '--reconfigure', '--llvm-lit-args=-sv', '--llvm-install-components=llvm-ar;llvm-cov;llvm-profdata;IndexStore;clang;clang-resource-headers;compiler-rt;clangd;LTO;lld', '--musl-path=/usr/local/musl', '--linux-static-archs=x86_64;aarch64', '--only-execute', 'android-aarch64-swift-build']` terminated with a non-zero exit status 1, aborting

But for some reason, doesn't appear to cause a failure for the swift-6.2-branch or development tags. @finagolfin, any guesses why?

@finagolfin
Copy link

Nothing to do with our scripts here, as I repeatedly noted, the last build-script patch was never merged into 6.2.0. That's what causes this. Apply that patch yourself and it will work.

@finagolfin finagolfin closed this Sep 16, 2025
@marcprux
Copy link
Author

Ugh, I hadn't realized that that never got merged. That's going to make a 6.2 release SDK a pain.

@finagolfin
Copy link

Not a big deal if you're willing to apply that patch yourself, but I don't know what Mishal is doing for an official SDK bundle release and if he will need us to bring it back in the Docker script for the 6.2 tag alone.

@marcprux marcprux reopened this Sep 16, 2025
@marcprux marcprux changed the title Fix build script arguments to use false instead of False Build swift-6.2-RELEASE SDK Sep 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants