Bug 210284 - lang/swift build fails. Exits with non-zero status
Summary: lang/swift build fails. Exits with non-zero status
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Steve Wills
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-14 19:57 UTC by Lacey Powers
Modified: 2017-04-27 13:24 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (swills)


Attachments
swift_build.log.tar.gz (86.14 KB, application/x-tgz)
2016-06-14 19:58 UTC, Lacey Powers
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lacey Powers 2016-06-14 19:57:02 UTC
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. =)
Comment 1 Lacey Powers 2016-06-14 19:58:19 UTC
Created attachment 171440 [details]
swift_build.log.tar.gz
Comment 2 Serge 2016-12-15 23:54:56 UTC
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.
Comment 3 Serge 2016-12-22 16:16:17 UTC
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.
Comment 4 commit-hook freebsd_committer freebsd_triage 2017-04-25 02:53:38 UTC
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
Comment 5 Steve Wills freebsd_committer freebsd_triage 2017-04-25 02:56:51 UTC
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.
Comment 6 Serge 2017-04-26 20:32:57 UTC
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 :)
Comment 7 commit-hook freebsd_committer freebsd_triage 2017-04-27 13:24:47 UTC
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