When attempting to build lang/swift on FreeBSD 10.3-RELEASE-p4 AMD64, the following error occurs: copying static files... done copying extra files... done dumping search index in English (code: en) ... done dumping object inventory... done build succeeded, 537 warnings. [14/558] /usr/local/bin/clang++38 -DGTEST_HAS_RTTI=0 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib/ABI -I/usr/ports/lang/swift/work/swift-2.2.1/swift/lib/ABI -I/usr/ports/lang/swift/work/swift-2.2.1/swift/include -Iinclude -I/usr/local/include -I/usr/ports/lang/swift/work/swift-2.2.1/build/Ninja-Release/llvm-freebsd-x86_64/include -I/usr/ports/lang/swift/work/swift-2.2.1/llvm/include -I/usr/ports/lang/swift/work/swift-2.2.1/build/Ninja-Release/llvm-freebsd-x86_64/tools/clang/include -I/usr/ports/lang/swift/work/swift-2.2.1/llvm/tools/clang/include -I/usr/ports/lang/swift/work/swift-2.2.1/cmark/src -I/usr/ports/lang/swift/work/swift-2.2.1/build/Ninja-Release/cmark-freebsd-x86_64/src -fno-stack-protector -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wcovered-switch-default -Wnon-virtual-dtor -Werror=date-time -std=c++11 -fcolor-diagnostics -ffunction-sections -fdata-sections -Wdocumentation -Wimplicit-fallthrough -Wunreachable-code -Woverloaded-virtual -O3 -DNDEBUG -fno-exceptions -fno-rtti -target x86_64-unknown-freebsd10.3-RELEASE-p4 -isysroot / -O2 -momit-leaf-frame-pointer -g0 -DNDEBUG -MMD -MT lib/ABI/CMakeFiles/swiftABI.dir/Compression.cpp.o -MF lib/ABI/CMakeFiles/swiftABI.dir/Compression.cpp.o.d -o lib/ABI/CMakeFiles/swiftABI.dir/Compression.cpp.o -c /usr/ports/lang/swift/work/swift-2.2.1/swift/lib/ABI/Compression.cpp ninja: build stopped: subcommand failed. ./utils/build-script: command terminated with a non-zero exit status 1, aborting *** Error code 1 Stop. make[1]: stopped in /usr/ports/lang/swift *** Error code 1 Stop. make: stopped in /usr/ports/lang/swift ===>>> make build failed for lang/swift ===>>> Aborting update ===>>> You can restart from the point of failure with this command line: portmaster <flags> lang/swift Build log is attached. Please let me know if there is further information I can provide. Thank you. =)
Created attachment 171440 [details] swift_build.log.tar.gz
FreeBSD 11.0-RELEASE-p5 amd64, in a jail lang/swift build fails with the same error: ninja: build stopped: subcommand failed. ./utils/build-script: command terminated with a non-zero exit status 1, aborting *** Error code 1 It would be nice if we could at least build it from source, because packages are not available either. Let me know if I can help in any way, Thank you.
One more update on this issue. I was able to successfully build swift on a machine running 11.0-RELEASE-p5, but in a jail with 10.3-RELEASE-p13 userland. Trying to build under 11.0-RELEASE-p5 still fails with the same error.
A commit references this bug: Author: swills Date: Tue Apr 25 02:53:03 UTC 2017 New revision: 439356 URL: https://svnweb.freebsd.org/changeset/ports/439356 Log: lang/swift: update to 3.1.1 This fixes build issues [1] and makes swiftc work [2]. But swiftpm is still not working, hopefully soon. PR: 210284 [1] PR: 210386 [2] Reported by: Lacey Powers <lacey.leanne@gmail.com> [1] Reported by: Tom Pusateri <pusateri@bangj.com> [2] Changes: head/lang/swift/Makefile head/lang/swift/distinfo head/lang/swift/files/patch-llbuild_CMakeLists.txt head/lang/swift/files/patch-llbuild_lib_llvm_Support_CMakeLists.txt head/lang/swift/files/patch-llbuild_lib_llvm_Support_Unix_Process.inc head/lang/swift/files/patch-llvm_lib_Support_Unix_Process.inc head/lang/swift/files/patch-swift-corelibs-foundation_lib_target.py head/lang/swift/files/patch-swift_cmake_modules_SwiftSharedCMakeConfig.cmake head/lang/swift/files/patch-swift_docs_CMakeLists.txt head/lang/swift/files/patch-swift_lib_ClangImporter_ClangImporter.cpp head/lang/swift/files/patch-swift_utils_build-presets.ini head/lang/swift/files/patch-swift_utils_build-script-impl head/lang/swift/files/patch-swiftpm_Sources_PackageDescription_Package.swift head/lang/swift/files/patch-swiftpm_Sources_libc_libc.swift head/lang/swift/pkg-plist
Should be fixed now, sorry it took so long. Please let me know if there are still issues, hopefully you haven't lost interest by now.
I can confirm that it builds on 11.0-RELEASE-p9. I did not do any extensive testing, but REPL seems to run just fine. Thanks for bringing 3.1.1, I appreciate your efforts :)
A commit references this bug: Author: swills Date: Thu Apr 27 13:24:06 UTC 2017 New revision: 439547 URL: https://svnweb.freebsd.org/changeset/ports/439547 Log: MFH: r439356 lang/swift: update to 3.1.1 This fixes build issues [1] and makes swiftc work [2]. But swiftpm is still not working, hopefully soon. PR: 210284 [1] PR: 210386 [2] Reported by: Lacey Powers <lacey.leanne@gmail.com> [1] Reported by: Tom Pusateri <pusateri@bangj.com> [2] Approved by: ports-secteam (swills, with-hat) Changes: _U branches/2017Q2/ branches/2017Q2/lang/swift/Makefile branches/2017Q2/lang/swift/distinfo branches/2017Q2/lang/swift/files/patch-llbuild_CMakeLists.txt branches/2017Q2/lang/swift/files/patch-llbuild_lib_llvm_Support_CMakeLists.txt branches/2017Q2/lang/swift/files/patch-llbuild_lib_llvm_Support_Unix_Process.inc branches/2017Q2/lang/swift/files/patch-llvm_lib_Support_Unix_Process.inc branches/2017Q2/lang/swift/files/patch-swift-corelibs-foundation_lib_target.py branches/2017Q2/lang/swift/files/patch-swift_cmake_modules_SwiftSharedCMakeConfig.cmake branches/2017Q2/lang/swift/files/patch-swift_docs_CMakeLists.txt branches/2017Q2/lang/swift/files/patch-swift_lib_ClangImporter_ClangImporter.cpp branches/2017Q2/lang/swift/files/patch-swift_utils_build-presets.ini branches/2017Q2/lang/swift/files/patch-swift_utils_build-script-impl branches/2017Q2/lang/swift/files/patch-swiftpm_Sources_PackageDescription_Package.swift branches/2017Q2/lang/swift/files/patch-swiftpm_Sources_libc_libc.swift branches/2017Q2/lang/swift/pkg-plist