Swift on Centos7


(Alexander) #1

Good day,

Maybe this is wrong channel to ask, but I try to build swift on Centos7 :slight_smile:
And facing some errors on the build process, and Im really stuck. Maybe
someone can help me how to check more details about this error?

build
~/tmp/swiftbuild/swift /swift-work
utils/build-script: note: using preset 'buildbot_linux_build_fedora23',
which expands to

utils/build-script --assertions --release --llbuild --swiftpm --xctest
--build-subdir=buildbot_linux --lldb --release --test --validation-test
--foundation -- --swift-enable-ast-verifier=0 --install-swift
--install-lldb --install-llbuild --install-swiftpm --install-xctest
--install-prefix=/usr
'--swift-install-components=compiler;clang-builtin-headers;stdlib;sdk-overlay;dev'
--build-swift-static-stdlib=1 --skip-test-lldb=1
--install-destdir=/root/tmp/swiftbuild/package
--installable-package=/root/tmp/swiftbuild/package/swift-linux-x86_64-fedora-2017-06-27--18:00:38.tgz
--verbose-build=1 --build-args=-j2 --install-foundation --reconfigure

+ mkdir -p /root/tmp/swiftbuild/build/buildbot_linux
+ env HOST_VARIABLE_linux_x86_64__SWIFT_BENCHMARK_TARGETS=
HOST_VARIABLE_linux_x86_64__SWIFT_RUN_BENCHMARK_TARGETS=
HOST_VARIABLE_linux_x86_64__SWIFT_SDKS=LINUX
HOST_VARIABLE_linux_x86_64__SWIFT_STDLIB_TARGETS=swift-stdlib-linux-x86_64
HOST_VARIABLE_linux_x86_64__SWIFT_TEST_TARGETS=check-swift-validation-linux-x86_64
/root/tmp/swiftbuild/swift/utils/build-script-impl --workspace
/root/tmp/swiftbuild --build-dir /root/tmp/swiftbuild/build/buildbot_linux
--install-prefix /usr --host-target linux-x86_64
--stdlib-deployment-targets linux-x86_64 --host-cc /usr/bin/clang
--host-cxx /usr/bin/clang++ --darwin-xcrun-toolchain default
--darwin-deployment-version-osx=10.9 --darwin-deployment-version-ios=7.0
--darwin-deployment-version-tvos=9.0
--darwin-deployment-version-watchos=2.0 --cmake /usr/bin/cmake
--cmark-build-type Release --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
--libicu-build-type Release --xctest-build-type Release
--swiftpm-build-type Release --swift-enable-assertions true
--swift-stdlib-enable-assertions true --swift-analyze-code-coverage false
--cmake-generator Ninja --build-jobs 4 '--common-cmake-options=-G Ninja
-DCMAKE_C_COMPILER:PATH=/usr/bin/clang
-DCMAKE_CXX_COMPILER:PATH=/usr/bin/clang++
-DCMAKE_MAKE_PROGRAM=/usr/bin/ninja' '--build-args=-j2 -j4 -v'
--cmark-cmake-options= '--llvm-cmake-options=-DLLVM_ENABLE_ASSERTIONS=TRUE
-DLLVM_TARGETS_TO_BUILD=X86;ARM;AArch64;PowerPC;SystemZ'
'--swift-cmake-options=-DSWIFT_STDLIB_ENABLE_SIL_OWNERSHIP=FALSE
-DCMAKE_EXPORT_COMPILE_COMMANDS=TRUE' --lldb-cmake-options=
--llbuild-cmake-options= --libdispatch-cmake-options=
--foundation-cmake-options= --xctest-cmake-options=
--swiftpm-cmake-options= --build-stdlib-deployment-targets all
--ninja-bin=/usr/bin/ninja --verbose-build --skip-build-libicu
--skip-build-playgroundlogger --skip-build-playgroundsupport
--build-swift-dynamic-stdlib --build-swift-static-stdlib
--build-swift-dynamic-sdk-overlay --skip-build-ios-device
--skip-build-ios-simulator --skip-build-tvos-device
--skip-build-tvos-simulator --skip-build-watchos-device
--skip-build-watchos-simulator --skip-build-android --skip-test-ios-host
--skip-test-ios-simulator --skip-test-tvos-host --skip-test-tvos-simulator
--skip-test-watchos-host --skip-test-watchos-simulator
--skip-test-android-host --validation-test --skip-test-benchmarks
--skip-test-optimized --android-deploy-device-path /data/local/tmp
--swift-enable-ast-verifier=0 --install-swift --install-lldb
--install-llbuild --install-swiftpm --install-xctest
'--swift-install-components=compiler;clang-builtin-headers;stdlib;sdk-overlay;dev'
--skip-test-lldb=1 --install-destdir=/root/tmp/swiftbuild/package
--installable-package=/root/tmp/swiftbuild/package/swift-linux-x86_64-fedora-2017-06-27--18:00:38.tgz
--install-foundation --reconfigure --llvm-lit-args=-sv
Building the standard library for: swift-stdlib-linux-x86_64
Running Swift tests for: check-swift-validation-linux-x86_64
cmark: using gold linker
+ mkdir -p /root/tmp/swiftbuild/build/buildbot_linux/cmark-linux-x86_64
+ pushd /root/tmp/swiftbuild/build/buildbot_linux/cmark-linux-x86_64
~/tmp/swiftbuild/build/buildbot_linux/cmark-linux-x86_64
~/tmp/swiftbuild/swift
+ env /usr/bin/cmake -G Ninja -DCMAKE_C_COMPILER:PATH=/usr/bin/clang
-DCMAKE_CXX_COMPILER:PATH=/usr/bin/clang++
-DCMAKE_MAKE_PROGRAM=/usr/bin/ninja
-DCMAKE_EXE_LINKER_FLAGS:STRING=-fuse-ld=gold
-DCMAKE_SHARED_LINKER_FLAGS:STRING=-fuse-ld=gold
-DCMAKE_BUILD_TYPE:STRING=Release /root/tmp/swiftbuild/cmark
-- Could NOT find PythonInterp: Found unsuitable version "2.7.5", but
required is at least "3" (found /usr/bin/python)

*** A python 3 interpreter is required to run the spec tests.

-- Configuring done
CMake Warning (dev) at src/CMakeLists.txt:84 (add_library):
  Policy CMP0063 is not set: Honor visibility properties for all target
  types. Run "cmake --help-policy CMP0063" for policy details. Use the
  cmake_policy command to set the policy and suppress this warning.

  Target "libcmark_static" of type "STATIC_LIBRARY" has the following
  visibility properties set for C:

    C_VISIBILITY_PRESET

  For compatibility CMake is not honoring them for this target.
This warning is for project developers. Use -Wno-dev to suppress it.

-- Generating done
-- Build files have been written to:
/root/tmp/swiftbuild/build/buildbot_linux/cmark-linux-x86_64
+ popd
~/tmp/swiftbuild/swift
+ /usr/bin/cmake --build
/root/tmp/swiftbuild/build/buildbot_linux/cmark-linux-x86_64 -- -j2 -j4 -v
all
ninja: no work to do.
llvm: using gold linker
+ mkdir -p /root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64
+ pushd /root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64
~/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64
~/tmp/swiftbuild/swift
+ env /usr/bin/cmake -G Ninja -DCMAKE_C_COMPILER:PATH=/usr/bin/clang
-DCMAKE_CXX_COMPILER:PATH=/usr/bin/clang++
-DCMAKE_MAKE_PROGRAM=/usr/bin/ninja
-DCMAKE_EXE_LINKER_FLAGS:STRING=-fuse-ld=gold
-DCMAKE_SHARED_LINKER_FLAGS:STRING=-fuse-ld=gold
-DLLVM_ENABLE_ASSERTIONS=TRUE
'-DLLVM_TARGETS_TO_BUILD=X86;ARM;AArch64;PowerPC;SystemZ' '-DCMAKE_C_FLAGS=
-fno-stack-protector' '-DCMAKE_CXX_FLAGS= -fno-stack-protector'
'-DCMAKE_C_FLAGS_RELWITHDEBINFO=-O2 -DNDEBUG'
'-DCMAKE_CXX_FLAGS_RELWITHDEBINFO=-O2 -DNDEBUG'
-DCMAKE_BUILD_TYPE:STRING=Release -DLLVM_TOOL_SWIFT_BUILD:BOOL=NO
-DLLVM_INCLUDE_DOCS:BOOL=TRUE -DLLVM_ENABLE_LTO:STRING=
-DLLVM_TOOL_COMPILER_RT_BUILD:BOOL=TRUE
-DLLVM_BUILD_EXTERNAL_COMPILER_RT:BOOL=TRUE -DLLVM_LIT_ARGS=-sv
-DCMAKE_INSTALL_PREFIX:PATH=/usr/ -DINTERNAL_INSTALL_PREFIX=local
/root/tmp/swiftbuild/llvm
-- Target triple: x86_64-unknown-linux-gnu
-- Native target architecture is X86
-- Threads enabled.
-- Doxygen disabled.
-- Sphinx disabled.
-- Go bindings disabled.
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION
OCAML_STDLIB_PATH)
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION
OCAML_STDLIB_PATH)
-- OCaml bindings disabled.
-- Building with -fPIC
-- Constructing LLVMBuild project information
-- Targeting X86
-- Targeting ARM
-- Targeting AArch64
-- Targeting PowerPC
-- Targeting SystemZ
-- Clang version: 4.0.0
-- Configuring done
-- Generating done
-- Build files have been written to:
/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64
+ popd
~/tmp/swiftbuild/swift
symlinking the system headers (/usr/include/c++) into the local clang build
directory
(/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/include).
+ ln -s -f /usr/include/c++
/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/include
+ /usr/bin/cmake --build
/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64 -- -j2 -j4 -v
all
ninja: no work to do.
swift: using gold linker
+ mkdir -p /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64
+ pushd /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64
~/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64
~/tmp/swiftbuild/swift
+ env /usr/bin/cmake -G Ninja -DCMAKE_C_COMPILER:PATH=/usr/bin/clang
-DCMAKE_CXX_COMPILER:PATH=/usr/bin/clang++
-DCMAKE_MAKE_PROGRAM=/usr/bin/ninja
-DSWIFT_STDLIB_ENABLE_SIL_OWNERSHIP=FALSE
-DCMAKE_EXPORT_COMPILE_COMMANDS=TRUE -DSWIFT_ENABLE_GOLD_LINKER=TRUE
'-DCMAKE_C_FLAGS= -fno-stack-protector' '-DCMAKE_CXX_FLAGS=
-fno-stack-protector' '-DCMAKE_C_FLAGS_RELWITHDEBINFO=-O2 -DNDEBUG'
'-DCMAKE_CXX_FLAGS_RELWITHDEBINFO=-O2 -DNDEBUG'
-DCMAKE_BUILD_TYPE:STRING=Release -DLLVM_ENABLE_ASSERTIONS:BOOL=TRUE
-DSWIFT_ANALYZE_CODE_COVERAGE:STRING=FALSE
-DSWIFT_STDLIB_BUILD_TYPE:STRING=Release
-DSWIFT_STDLIB_ASSERTIONS:BOOL=TRUE
-DSWIFT_STDLIB_ENABLE_RESILIENCE:BOOL=FALSE
-DSWIFT_STDLIB_SIL_SERIALIZE_ALL:BOOL=TRUE
-DSWIFT_NATIVE_LLVM_TOOLS_PATH:STRING=
-DSWIFT_NATIVE_CLANG_TOOLS_PATH:STRING=
-DSWIFT_NATIVE_SWIFT_TOOLS_PATH:STRING= -DSWIFT_INCLUDE_TOOLS:BOOL=TRUE
-DSWIFT_BUILD_REMOTE_MIRROR:BOOL=TRUE
-DSWIFT_SERIALIZE_STDLIB_UNITTEST:BOOL=FALSE
-DSWIFT_STDLIB_SIL_DEBUGGING:BOOL=FALSE
-DSWIFT_CHECK_INCREMENTAL_COMPILATION:BOOL=FALSE
-DSWIFT_BUILD_DYNAMIC_STDLIB:BOOL=TRUE
-DSWIFT_BUILD_STATIC_STDLIB:BOOL=TRUE
-DSWIFT_BUILD_DYNAMIC_SDK_OVERLAY:BOOL=TRUE
-DSWIFT_BUILD_STATIC_SDK_OVERLAY:BOOL=FALSE
-DSWIFT_BUILD_PERF_TESTSUITE:BOOL=TRUE -DSWIFT_BUILD_EXAMPLES:BOOL=TRUE
-DSWIFT_INCLUDE_TESTS:BOOL=TRUE
'-DSWIFT_INSTALL_COMPONENTS:STRING=compiler;clang-builtin-headers;stdlib;sdk-overlay;dev'
-DSWIFT_EMBED_BITCODE_SECTION:BOOL=FALSE -DSWIFT_TOOLS_ENABLE_LTO:STRING=
-DSWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER:BOOL=FALSE
-DSWIFT_HOST_VARIANT=linux -DSWIFT_HOST_VARIANT_SDK=LINUX
-DSWIFT_HOST_VARIANT_ARCH=x86_64 -DLLVM_LIT_ARGS=-sv -DCOVERAGE_DB=
-DSWIFT_SOURCEKIT_USE_INPROC_LIBRARY:BOOL=TRUE
-DSWIFT_DARWIN_XCRUN_TOOLCHAIN:STRING=default
-DSWIFT_AST_VERIFIER:BOOL=FALSE -DSWIFT_SIL_VERIFY_ALL:BOOL=FALSE
-DSWIFT_RUNTIME_ENABLE_LEAK_CHECKER:BOOL=FALSE
-DCMAKE_INSTALL_PREFIX:PATH=/usr/
-DSWIFT_PATH_TO_CLANG_SOURCE:PATH=/root/tmp/swiftbuild/llvm/tools/clang
-DSWIFT_PATH_TO_CLANG_BUILD:PATH=/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64
-DSWIFT_PATH_TO_LLVM_SOURCE:PATH=/root/tmp/swiftbuild/llvm
-DSWIFT_PATH_TO_LLVM_BUILD:PATH=/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64
-DSWIFT_PATH_TO_CMARK_SOURCE:PATH=/root/tmp/swiftbuild/cmark
-DSWIFT_PATH_TO_CMARK_BUILD:PATH=/root/tmp/swiftbuild/build/buildbot_linux/cmark-linux-x86_64
-DSWIFT_PATH_TO_LIBDISPATCH_SOURCE:PATH=/root/tmp/swiftbuild/swift-corelibs-libdispatch
-DSWIFT_PATH_TO_LIBDISPATCH_BUILD:PATH=/root/tmp/swiftbuild/build/buildbot_linux/libdispatch-linux-x86_64
-DSWIFT_CMARK_LIBRARY_DIR:PATH=/root/tmp/swiftbuild/build/buildbot_linux/cmark-linux-x86_64/src
-DSWIFT_SDKS:STRING=LINUX -DLLDB_ENABLE:BOOL=TRUE
-DLLDB_BUILD_DIR:STRING=/root/tmp/swiftbuild/build/buildbot_linux/lldb-linux-x86_64
-DSWIFT_EXEC:STRING=/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/bin/swiftc
/root/tmp/swiftbuild/swift
-- Building with -fPIC
-- Linux SDK:
-- Path: /
-- Version: don't use
-- Build number: don't use
-- Deployment version: don't use
-- Library subdir: linux
-- Version min name:
-- Triple name: linux
-- Architectures: x86_64
-- Object Format: ELF
-- Triple for x86_64 is x86_64-unknown-linux-gnu

···

--
-- Building host Swift tools for LINUX x86_64
-- Build type: Release
-- Assertions: TRUE
-- LTO:
--
-- Building Swift standard library and SDK overlays for SDKs: LINUX
-- Build type: Release
-- Assertions: TRUE
--
-- Building Swift runtime with:
-- Leak Detection Checker Entrypoints: FALSE
--
-- Found ICU: /usr/include
-- Swift version: 3.1.1
-- Swift vendor:
-- Swift compiler version:
-- Embedded clang compiler version:
-- Found ICU: /usr/include
CMake Warning at docs/CMakeLists.txt:24 (message):
  Unable to find sphinx-build program. Not building docs

CMake Warning at docs/CMakeLists.txt:130 (message):
  LitRe not found; code examples won't be tested.

-- Configuring done
-- Generating done
-- Build files have been written to:
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64
+ popd
~/tmp/swiftbuild/swift
+ /usr/bin/cmake --build
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64 -- -j2 -j4 -v
all swift-stdlib-linux-x86_64
[1/107] cd /root/tmp/swiftbuild/swift/stdlib/public/core && /usr/bin/cmake3
-E make_directory
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8
&& /usr/bin/python /root/tmp/swiftbuild/swift/utils/gyb
-DunicodeGraphemeBreakPropertyFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakProperty.txt
-DunicodeGraphemeBreakTestFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakTest.txt
-DCMAKE_SIZEOF_VOID_P=8 -o
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Map.swift.tmp
Map.swift.gyb && /usr/bin/cmake3 -E copy_if_different
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Map.swift.tmp
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Map.swift
&& /usr/bin/cmake3 -E remove
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Map.swift.tmp
[2/107] cd /root/tmp/swiftbuild/swift/stdlib/public/core && /usr/bin/cmake3
-E make_directory
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8
&& /usr/bin/python /root/tmp/swiftbuild/swift/utils/gyb
-DunicodeGraphemeBreakPropertyFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakProperty.txt
-DunicodeGraphemeBreakTestFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakTest.txt
-DCMAKE_SIZEOF_VOID_P=8 -o
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/LazyCollection.swift.tmp
LazyCollection.swift.gyb && /usr/bin/cmake3 -E copy_if_different
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/LazyCollection.swift.tmp
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/LazyCollection.swift
&& /usr/bin/cmake3 -E remove
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/LazyCollection.swift.tmp
[3/107] cd /root/tmp/swiftbuild/swift/stdlib/public/core && /usr/bin/cmake3
-E make_directory
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8
&& /usr/bin/python /root/tmp/swiftbuild/swift/utils/gyb
-DunicodeGraphemeBreakPropertyFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakProperty.txt
-DunicodeGraphemeBreakTestFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakTest.txt
-DCMAKE_SIZEOF_VOID_P=8 -o
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Mirrors.swift.tmp
Mirrors.swift.gyb && /usr/bin/cmake3 -E copy_if_different
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Mirrors.swift.tmp
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Mirrors.swift
&& /usr/bin/cmake3 -E remove
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Mirrors.swift.tmp
[4/107] cd /root/tmp/swiftbuild/swift/stdlib/public/core && /usr/bin/cmake3
-E make_directory
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8
&& /usr/bin/python /root/tmp/swiftbuild/swift/utils/gyb
-DunicodeGraphemeBreakPropertyFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakProperty.txt
-DunicodeGraphemeBreakTestFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakTest.txt
-DCMAKE_SIZEOF_VOID_P=8 -o
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/NewtypeWrapper.swift.tmp
NewtypeWrapper.swift.gyb && /usr/bin/cmake3 -E copy_if_different
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/NewtypeWrapper.swift.tmp
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/NewtypeWrapper.swift
&& /usr/bin/cmake3 -E remove
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/NewtypeWrapper.swift.tmp
[5/107] cd /root/tmp/swiftbuild/swift/stdlib/public/core && /usr/bin/cmake3
-E make_directory
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8
&& /usr/bin/python /root/tmp/swiftbuild/swift/utils/gyb
-DunicodeGraphemeBreakPropertyFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakProperty.txt
-DunicodeGraphemeBreakTestFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakTest.txt
-DCMAKE_SIZEOF_VOID_P=8 -o
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/PrefixWhile.swift.tmp
PrefixWhile.swift.gyb && /usr/bin/cmake3 -E copy_if_different
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/PrefixWhile.swift.tmp
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/PrefixWhile.swift
&& /usr/bin/cmake3 -E remove
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/PrefixWhile.swift.tmp
[6/107] : && /usr/bin/clang++ -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 -Wdelete-non-virtual-dtor -Werror=date-time -std=c++11
-fcolor-diagnostics -ffunction-sections -fdata-sections -Wdocumentation
-Wimplicit-fallthrough -Wunreachable-code -Woverloaded-virtual -O2
-L/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/./lib/swift/linux
-target x86_64-unknown-linux-gnu -lpthread -ldl -fuse-ld=gold
tools/swift-reflection-dump/CMakeFiles/swift-reflection-dump.dir/swift-reflection-dump.cpp.o
-o bin/swift-reflection-dump
-L/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/./lib
-lswiftReflection
/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMObject.a
/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMSupport.a
/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMBitReader.a
/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMCore.a
/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMMCParser.a
/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMMC.a
/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMSupport.a
-lrt -ldl -ltinfo -lpthread -lz -lm
-Wl,-rpath,/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/./lib
&& :
FAILED: bin/swift-reflection-dump
: && /usr/bin/clang++ -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 -Wdelete-non-virtual-dtor -Werror=date-time -std=c++11
-fcolor-diagnostics -ffunction-sections -fdata-sections -Wdocumentation
-Wimplicit-fallthrough -Wunreachable-code -Woverloaded-virtual -O2
-L/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/./lib/swift/linux
-target x86_64-unknown-linux-gnu -lpthread -ldl -fuse-ld=gold
tools/swift-reflection-dump/CMakeFiles/swift-reflection-dump.dir/swift-reflection-dump.cpp.o
-o bin/swift-reflection-dump
-L/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/./lib
-lswiftReflection
/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMObject.a
/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMSupport.a
/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMBitReader.a
/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMCore.a
/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMMCParser.a
/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMMC.a
/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMSupport.a
-lrt -ldl -ltinfo -lpthread -lz -lm
-Wl,-rpath,/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/./lib
&& :
tools/swift-reflection-dump/CMakeFiles/swift-reflection-dump.dir/swift-reflection-dump.cpp.o:/root/tmp/swiftbuild/swift/tools/swift-reflection-dump/swift-reflection-dump.cpp:function
swift::remote::TypeDecoder<swift::reflection::TypeRefBuilder>::decodeMangledType(std::shared_ptr<swift::Demangle::Node>
const&): error: undefined reference to
'swift::Demangle::mangleNode(std::shared_ptr<swift::Demangle::Node> const&)'
tools/swift-reflection-dump/CMakeFiles/swift-reflection-dump.dir/swift-reflection-dump.cpp.o:/root/tmp/swiftbuild/swift/tools/swift-reflection-dump/swift-reflection-dump.cpp:function
swift::remote::TypeDecoder<swift::reflection::TypeRefBuilder>::decodeMangledType(std::shared_ptr<swift::Demangle::Node>
const&): error: undefined reference to
'swift::Demangle::mangleNode(std::shared_ptr<swift::Demangle::Node> const&)'
tools/swift-reflection-dump/CMakeFiles/swift-reflection-dump.dir/swift-reflection-dump.cpp.o:/root/tmp/swiftbuild/swift/tools/swift-reflection-dump/swift-reflection-dump.cpp:function
swift::remote::TypeDecoder<swift::reflection::TypeRefBuilder>::decodeMangledNominalType(std::shared_ptr<swift::Demangle::Node>
const&, llvm::Optional<std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > >&,
swift::reflection::TypeRef const*&): error: undefined reference to
'swift::Demangle::mangleNode(std::shared_ptr<swift::Demangle::Node> const&)'
clang-3.8: error: linker command failed with exit code 1 (use -v to see
invocation)
[7/107] cd /root/tmp/swiftbuild/swift/stdlib/public/core && /usr/bin/cmake3
-E make_directory
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8
&& /usr/bin/python /root/tmp/swiftbuild/swift/utils/gyb
-DunicodeGraphemeBreakPropertyFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakProperty.txt
-DunicodeGraphemeBreakTestFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakTest.txt
-DCMAKE_SIZEOF_VOID_P=8 -o
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/RangeReplaceableCollection.swift.tmp
RangeReplaceableCollection.swift.gyb && /usr/bin/cmake3 -E
copy_if_different
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/RangeReplaceableCollection.swift.tmp
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/RangeReplaceableCollection.swift
&& /usr/bin/cmake3 -E remove
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/RangeReplaceableCollection.swift.tmp
[8/107] cd /root/tmp/swiftbuild/swift/stdlib/public/core && /usr/bin/cmake3
-E make_directory
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8
&& /usr/bin/python /root/tmp/swiftbuild/swift/utils/gyb
-DunicodeGraphemeBreakPropertyFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakProperty.txt
-DunicodeGraphemeBreakTestFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakTest.txt
-DCMAKE_SIZEOF_VOID_P=8 -o
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Runtime.swift.tmp
Runtime.swift.gyb && /usr/bin/cmake3 -E copy_if_different
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Runtime.swift.tmp
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Runtime.swift
&& /usr/bin/cmake3 -E remove
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Runtime.swift.tmp
[9/107] cd /root/tmp/swiftbuild/swift/stdlib/public/core && /usr/bin/cmake3
-E make_directory
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8
&& /usr/bin/python /root/tmp/swiftbuild/swift/utils/gyb
-DunicodeGraphemeBreakPropertyFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakProperty.txt
-DunicodeGraphemeBreakTestFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakTest.txt
-DCMAKE_SIZEOF_VOID_P=8 -o
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Range.swift.tmp
Range.swift.gyb && /usr/bin/cmake3 -E copy_if_different
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Range.swift.tmp
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Range.swift
&& /usr/bin/cmake3 -E remove
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Range.swift.tmp
ninja: build stopped: subcommand failed.
utils/build-script: fatal error: command terminated with a non-zero exit
status 1, aborting
utils/build-script: fatal error: command terminated with a non-zero exit
status 1, aborting
/swift-work


(Keith Duvall) #2

A user made an RPM for CentOS a while back. Not sure how well it works but you can give it a show…

Keith

Forwarded:
I built an RPM with Swift 3-RELEASE; the RPM build info is at https://github.com/tachoknight/swift-rpm. I don't use CentOS myself but it'd be interesting to know if it works or not.

Suffice to say, my repo is very unofficial. :slight_smile:

Ron

···

On 21 Oct 2016, at 7:54, Leonid Orsulic via swift-users wrote:

Hello,

is it somehow possible to get Swift 3 to centos 7?
Maybe any plannings for an official way of setting up swift on centos?
If not, i would also appreciate an unofficial way.
Thanks

Regards
Leo

_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

_______________________________________________
swift-users mailing list
swift-users@swift.org <mailto:swift-users@swift.org>
https://lists.swift.org/mailman/listinfo/swift-users

On Jun 28, 2017, at 7:12 AM, Keith Duvall <keith@bloodninja.org> wrote:

Keith

On Jun 28, 2017, at 5:50 AM, Alex Blewitt via swift-users <swift-users@swift.org <mailto:swift-users@swift.org>> wrote:

It's something that isn't currently supported at the moment - follow https://bugs.swift.org/browse/SR-100 for more updates as others have tried to get it building there as well.

Alex

On 28 Jun 2017, at 10:28, Alexander via swift-users <swift-users@swift.org <mailto:swift-users@swift.org>> wrote:

Good day,

Maybe this is wrong channel to ask, but I try to build swift on Centos7 :slight_smile:
And facing some errors on the build process, and Im really stuck. Maybe someone can help me how to check more details about this error?

build
~/tmp/swiftbuild/swift /swift-work
utils/build-script: note: using preset 'buildbot_linux_build_fedora23', which expands to

utils/build-script --assertions --release --llbuild --swiftpm --xctest --build-subdir=buildbot_linux --lldb --release --test --validation-test --foundation -- --swift-enable-ast-verifier=0 --install-swift --install-lldb --install-llbuild --install-swiftpm --install-xctest --install-prefix=/usr '--swift-install-components=compiler;clang-builtin-headers;stdlib;sdk-overlay;dev' --build-swift-static-stdlib=1 --skip-test-lldb=1 --install-destdir=/root/tmp/swiftbuild/package --installable-package=/root/tmp/swiftbuild/package/swift-linux-x86_64-fedora-2017-06-27--18:00:38.tgz --verbose-build=1 --build-args=-j2 --install-foundation --reconfigure

+ mkdir -p /root/tmp/swiftbuild/build/buildbot_linux
+ env HOST_VARIABLE_linux_x86_64__SWIFT_BENCHMARK_TARGETS= HOST_VARIABLE_linux_x86_64__SWIFT_RUN_BENCHMARK_TARGETS= HOST_VARIABLE_linux_x86_64__SWIFT_SDKS=LINUX HOST_VARIABLE_linux_x86_64__SWIFT_STDLIB_TARGETS=swift-stdlib-linux-x86_64 HOST_VARIABLE_linux_x86_64__SWIFT_TEST_TARGETS=check-swift-validation-linux-x86_64 /root/tmp/swiftbuild/swift/utils/build-script-impl --workspace /root/tmp/swiftbuild --build-dir /root/tmp/swiftbuild/build/buildbot_linux --install-prefix /usr --host-target linux-x86_64 --stdlib-deployment-targets linux-x86_64 --host-cc /usr/bin/clang --host-cxx /usr/bin/clang++ --darwin-xcrun-toolchain default --darwin-deployment-version-osx=10.9 --darwin-deployment-version-ios=7.0 --darwin-deployment-version-tvos=9.0 --darwin-deployment-version-watchos=2.0 --cmake /usr/bin/cmake --cmark-build-type Release --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 --libicu-build-type Release --xctest-build-type Release --swiftpm-build-type Release --swift-enable-assertions true --swift-stdlib-enable-assertions true --swift-analyze-code-coverage false --cmake-generator Ninja --build-jobs 4 '--common-cmake-options=-G Ninja -DCMAKE_C_COMPILER:PATH=/usr/bin/clang -DCMAKE_CXX_COMPILER:PATH=/usr/bin/clang++ -DCMAKE_MAKE_PROGRAM=/usr/bin/ninja' '--build-args=-j2 -j4 -v' --cmark-cmake-options= '--llvm-cmake-options=-DLLVM_ENABLE_ASSERTIONS=TRUE -DLLVM_TARGETS_TO_BUILD=X86;ARM;AArch64;PowerPC;SystemZ' '--swift-cmake-options=-DSWIFT_STDLIB_ENABLE_SIL_OWNERSHIP=FALSE -DCMAKE_EXPORT_COMPILE_COMMANDS=TRUE' --lldb-cmake-options= --llbuild-cmake-options= --libdispatch-cmake-options= --foundation-cmake-options= --xctest-cmake-options= --swiftpm-cmake-options= --build-stdlib-deployment-targets all --ninja-bin=/usr/bin/ninja --verbose-build --skip-build-libicu --skip-build-playgroundlogger --skip-build-playgroundsupport --build-swift-dynamic-stdlib --build-swift-static-stdlib --build-swift-dynamic-sdk-overlay --skip-build-ios-device --skip-build-ios-simulator --skip-build-tvos-device --skip-build-tvos-simulator --skip-build-watchos-device --skip-build-watchos-simulator --skip-build-android --skip-test-ios-host --skip-test-ios-simulator --skip-test-tvos-host --skip-test-tvos-simulator --skip-test-watchos-host --skip-test-watchos-simulator --skip-test-android-host --validation-test --skip-test-benchmarks --skip-test-optimized --android-deploy-device-path /data/local/tmp --swift-enable-ast-verifier=0 --install-swift --install-lldb --install-llbuild --install-swiftpm --install-xctest '--swift-install-components=compiler;clang-builtin-headers;stdlib;sdk-overlay;dev' --skip-test-lldb=1 --install-destdir=/root/tmp/swiftbuild/package --installable-package=/root/tmp/swiftbuild/package/swift-linux-x86_64-fedora-2017-06-27--18:00:38.tgz --install-foundation --reconfigure --llvm-lit-args=-sv
Building the standard library for: swift-stdlib-linux-x86_64
Running Swift tests for: check-swift-validation-linux-x86_64
cmark: using gold linker
+ mkdir -p /root/tmp/swiftbuild/build/buildbot_linux/cmark-linux-x86_64
+ pushd /root/tmp/swiftbuild/build/buildbot_linux/cmark-linux-x86_64
~/tmp/swiftbuild/build/buildbot_linux/cmark-linux-x86_64 ~/tmp/swiftbuild/swift
+ env /usr/bin/cmake -G Ninja -DCMAKE_C_COMPILER:PATH=/usr/bin/clang -DCMAKE_CXX_COMPILER:PATH=/usr/bin/clang++ -DCMAKE_MAKE_PROGRAM=/usr/bin/ninja -DCMAKE_EXE_LINKER_FLAGS:STRING=-fuse-ld=gold -DCMAKE_SHARED_LINKER_FLAGS:STRING=-fuse-ld=gold -DCMAKE_BUILD_TYPE:STRING=Release /root/tmp/swiftbuild/cmark
-- Could NOT find PythonInterp: Found unsuitable version "2.7.5", but required is at least "3" (found /usr/bin/python)

*** A python 3 interpreter is required to run the spec tests.

-- Configuring done
CMake Warning (dev) at src/CMakeLists.txt:84 (add_library):
  Policy CMP0063 is not set: Honor visibility properties for all target
  types. Run "cmake --help-policy CMP0063" for policy details. Use the
  cmake_policy command to set the policy and suppress this warning.

  Target "libcmark_static" of type "STATIC_LIBRARY" has the following
  visibility properties set for C:

    C_VISIBILITY_PRESET

  For compatibility CMake is not honoring them for this target.
This warning is for project developers. Use -Wno-dev to suppress it.

-- Generating done
-- Build files have been written to: /root/tmp/swiftbuild/build/buildbot_linux/cmark-linux-x86_64
+ popd
~/tmp/swiftbuild/swift
+ /usr/bin/cmake --build /root/tmp/swiftbuild/build/buildbot_linux/cmark-linux-x86_64 -- -j2 -j4 -v all
ninja: no work to do.
llvm: using gold linker
+ mkdir -p /root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64
+ pushd /root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64
~/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64 ~/tmp/swiftbuild/swift
+ env /usr/bin/cmake -G Ninja -DCMAKE_C_COMPILER:PATH=/usr/bin/clang -DCMAKE_CXX_COMPILER:PATH=/usr/bin/clang++ -DCMAKE_MAKE_PROGRAM=/usr/bin/ninja -DCMAKE_EXE_LINKER_FLAGS:STRING=-fuse-ld=gold -DCMAKE_SHARED_LINKER_FLAGS:STRING=-fuse-ld=gold -DLLVM_ENABLE_ASSERTIONS=TRUE '-DLLVM_TARGETS_TO_BUILD=X86;ARM;AArch64;PowerPC;SystemZ' '-DCMAKE_C_FLAGS= -fno-stack-protector' '-DCMAKE_CXX_FLAGS= -fno-stack-protector' '-DCMAKE_C_FLAGS_RELWITHDEBINFO=-O2 -DNDEBUG' '-DCMAKE_CXX_FLAGS_RELWITHDEBINFO=-O2 -DNDEBUG' -DCMAKE_BUILD_TYPE:STRING=Release -DLLVM_TOOL_SWIFT_BUILD:BOOL=NO -DLLVM_INCLUDE_DOCS:BOOL=TRUE -DLLVM_ENABLE_LTO:STRING= -DLLVM_TOOL_COMPILER_RT_BUILD:BOOL=TRUE -DLLVM_BUILD_EXTERNAL_COMPILER_RT:BOOL=TRUE -DLLVM_LIT_ARGS=-sv -DCMAKE_INSTALL_PREFIX:PATH=/usr/ -DINTERNAL_INSTALL_PREFIX=local /root/tmp/swiftbuild/llvm
-- Target triple: x86_64-unknown-linux-gnu
-- Native target architecture is X86
-- Threads enabled.
-- Doxygen disabled.
-- Sphinx disabled.
-- Go bindings disabled.
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)
-- OCaml bindings disabled.
-- Building with -fPIC
-- Constructing LLVMBuild project information
-- Targeting X86
-- Targeting ARM
-- Targeting AArch64
-- Targeting PowerPC
-- Targeting SystemZ
-- Clang version: 4.0.0
-- Configuring done
-- Generating done
-- Build files have been written to: /root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64
+ popd
~/tmp/swiftbuild/swift
symlinking the system headers (/usr/include/c++) into the local clang build directory (/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/include).
+ ln -s -f /usr/include/c++ /root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/include
+ /usr/bin/cmake --build /root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64 -- -j2 -j4 -v all
ninja: no work to do.
swift: using gold linker
+ mkdir -p /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64
+ pushd /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64
~/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64 ~/tmp/swiftbuild/swift
+ env /usr/bin/cmake -G Ninja -DCMAKE_C_COMPILER:PATH=/usr/bin/clang -DCMAKE_CXX_COMPILER:PATH=/usr/bin/clang++ -DCMAKE_MAKE_PROGRAM=/usr/bin/ninja -DSWIFT_STDLIB_ENABLE_SIL_OWNERSHIP=FALSE -DCMAKE_EXPORT_COMPILE_COMMANDS=TRUE -DSWIFT_ENABLE_GOLD_LINKER=TRUE '-DCMAKE_C_FLAGS= -fno-stack-protector' '-DCMAKE_CXX_FLAGS= -fno-stack-protector' '-DCMAKE_C_FLAGS_RELWITHDEBINFO=-O2 -DNDEBUG' '-DCMAKE_CXX_FLAGS_RELWITHDEBINFO=-O2 -DNDEBUG' -DCMAKE_BUILD_TYPE:STRING=Release -DLLVM_ENABLE_ASSERTIONS:BOOL=TRUE -DSWIFT_ANALYZE_CODE_COVERAGE:STRING=FALSE -DSWIFT_STDLIB_BUILD_TYPE:STRING=Release -DSWIFT_STDLIB_ASSERTIONS:BOOL=TRUE -DSWIFT_STDLIB_ENABLE_RESILIENCE:BOOL=FALSE -DSWIFT_STDLIB_SIL_SERIALIZE_ALL:BOOL=TRUE -DSWIFT_NATIVE_LLVM_TOOLS_PATH:STRING= -DSWIFT_NATIVE_CLANG_TOOLS_PATH:STRING= -DSWIFT_NATIVE_SWIFT_TOOLS_PATH:STRING= -DSWIFT_INCLUDE_TOOLS:BOOL=TRUE -DSWIFT_BUILD_REMOTE_MIRROR:BOOL=TRUE -DSWIFT_SERIALIZE_STDLIB_UNITTEST:BOOL=FALSE -DSWIFT_STDLIB_SIL_DEBUGGING:BOOL=FALSE -DSWIFT_CHECK_INCREMENTAL_COMPILATION:BOOL=FALSE -DSWIFT_BUILD_DYNAMIC_STDLIB:BOOL=TRUE -DSWIFT_BUILD_STATIC_STDLIB:BOOL=TRUE -DSWIFT_BUILD_DYNAMIC_SDK_OVERLAY:BOOL=TRUE -DSWIFT_BUILD_STATIC_SDK_OVERLAY:BOOL=FALSE -DSWIFT_BUILD_PERF_TESTSUITE:BOOL=TRUE -DSWIFT_BUILD_EXAMPLES:BOOL=TRUE -DSWIFT_INCLUDE_TESTS:BOOL=TRUE '-DSWIFT_INSTALL_COMPONENTS:STRING=compiler;clang-builtin-headers;stdlib;sdk-overlay;dev' -DSWIFT_EMBED_BITCODE_SECTION:BOOL=FALSE -DSWIFT_TOOLS_ENABLE_LTO:STRING= -DSWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER:BOOL=FALSE -DSWIFT_HOST_VARIANT=linux -DSWIFT_HOST_VARIANT_SDK=LINUX -DSWIFT_HOST_VARIANT_ARCH=x86_64 -DLLVM_LIT_ARGS=-sv -DCOVERAGE_DB= -DSWIFT_SOURCEKIT_USE_INPROC_LIBRARY:BOOL=TRUE -DSWIFT_DARWIN_XCRUN_TOOLCHAIN:STRING=default -DSWIFT_AST_VERIFIER:BOOL=FALSE -DSWIFT_SIL_VERIFY_ALL:BOOL=FALSE -DSWIFT_RUNTIME_ENABLE_LEAK_CHECKER:BOOL=FALSE -DCMAKE_INSTALL_PREFIX:PATH=/usr/ -DSWIFT_PATH_TO_CLANG_SOURCE:PATH=/root/tmp/swiftbuild/llvm/tools/clang -DSWIFT_PATH_TO_CLANG_BUILD:PATH=/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64 -DSWIFT_PATH_TO_LLVM_SOURCE:PATH=/root/tmp/swiftbuild/llvm -DSWIFT_PATH_TO_LLVM_BUILD:PATH=/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64 -DSWIFT_PATH_TO_CMARK_SOURCE:PATH=/root/tmp/swiftbuild/cmark -DSWIFT_PATH_TO_CMARK_BUILD:PATH=/root/tmp/swiftbuild/build/buildbot_linux/cmark-linux-x86_64 -DSWIFT_PATH_TO_LIBDISPATCH_SOURCE:PATH=/root/tmp/swiftbuild/swift-corelibs-libdispatch -DSWIFT_PATH_TO_LIBDISPATCH_BUILD:PATH=/root/tmp/swiftbuild/build/buildbot_linux/libdispatch-linux-x86_64 -DSWIFT_CMARK_LIBRARY_DIR:PATH=/root/tmp/swiftbuild/build/buildbot_linux/cmark-linux-x86_64/src -DSWIFT_SDKS:STRING=LINUX -DLLDB_ENABLE:BOOL=TRUE -DLLDB_BUILD_DIR:STRING=/root/tmp/swiftbuild/build/buildbot_linux/lldb-linux-x86_64 -DSWIFT_EXEC:STRING=/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/bin/swiftc /root/tmp/swiftbuild/swift
-- Building with -fPIC
-- Linux SDK:
-- Path: /
-- Version: don't use
-- Build number: don't use
-- Deployment version: don't use
-- Library subdir: linux
-- Version min name:
-- Triple name: linux
-- Architectures: x86_64
-- Object Format: ELF
-- Triple for x86_64 is x86_64-unknown-linux-gnu
--
-- Building host Swift tools for LINUX x86_64
-- Build type: Release
-- Assertions: TRUE
-- LTO:
--
-- Building Swift standard library and SDK overlays for SDKs: LINUX
-- Build type: Release
-- Assertions: TRUE
--
-- Building Swift runtime with:
-- Leak Detection Checker Entrypoints: FALSE
--
-- Found ICU: /usr/include
-- Swift version: 3.1.1
-- Swift vendor:
-- Swift compiler version:
-- Embedded clang compiler version:
-- Found ICU: /usr/include
CMake Warning at docs/CMakeLists.txt:24 (message):
  Unable to find sphinx-build program. Not building docs

CMake Warning at docs/CMakeLists.txt:130 (message):
  LitRe not found; code examples won't be tested.

-- Configuring done
-- Generating done
-- Build files have been written to: /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64
+ popd
~/tmp/swiftbuild/swift
+ /usr/bin/cmake --build /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64 -- -j2 -j4 -v all swift-stdlib-linux-x86_64
[1/107] cd /root/tmp/swiftbuild/swift/stdlib/public/core && /usr/bin/cmake3 -E make_directory /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8 && /usr/bin/python /root/tmp/swiftbuild/swift/utils/gyb -DunicodeGraphemeBreakPropertyFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakProperty.txt -DunicodeGraphemeBreakTestFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakTest.txt -DCMAKE_SIZEOF_VOID_P=8 -o /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Map.swift.tmp Map.swift.gyb && /usr/bin/cmake3 -E copy_if_different /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Map.swift.tmp /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Map.swift && /usr/bin/cmake3 -E remove /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Map.swift.tmp
[2/107] cd /root/tmp/swiftbuild/swift/stdlib/public/core && /usr/bin/cmake3 -E make_directory /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8 && /usr/bin/python /root/tmp/swiftbuild/swift/utils/gyb -DunicodeGraphemeBreakPropertyFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakProperty.txt -DunicodeGraphemeBreakTestFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakTest.txt -DCMAKE_SIZEOF_VOID_P=8 -o /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/LazyCollection.swift.tmp LazyCollection.swift.gyb && /usr/bin/cmake3 -E copy_if_different /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/LazyCollection.swift.tmp /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/LazyCollection.swift && /usr/bin/cmake3 -E remove /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/LazyCollection.swift.tmp
[3/107] cd /root/tmp/swiftbuild/swift/stdlib/public/core && /usr/bin/cmake3 -E make_directory /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8 && /usr/bin/python /root/tmp/swiftbuild/swift/utils/gyb -DunicodeGraphemeBreakPropertyFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakProperty.txt -DunicodeGraphemeBreakTestFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakTest.txt -DCMAKE_SIZEOF_VOID_P=8 -o /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Mirrors.swift.tmp Mirrors.swift.gyb && /usr/bin/cmake3 -E copy_if_different /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Mirrors.swift.tmp /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Mirrors.swift && /usr/bin/cmake3 -E remove /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Mirrors.swift.tmp
[4/107] cd /root/tmp/swiftbuild/swift/stdlib/public/core && /usr/bin/cmake3 -E make_directory /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8 && /usr/bin/python /root/tmp/swiftbuild/swift/utils/gyb -DunicodeGraphemeBreakPropertyFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakProperty.txt -DunicodeGraphemeBreakTestFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakTest.txt -DCMAKE_SIZEOF_VOID_P=8 -o /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/NewtypeWrapper.swift.tmp NewtypeWrapper.swift.gyb && /usr/bin/cmake3 -E copy_if_different /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/NewtypeWrapper.swift.tmp /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/NewtypeWrapper.swift && /usr/bin/cmake3 -E remove /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/NewtypeWrapper.swift.tmp
[5/107] cd /root/tmp/swiftbuild/swift/stdlib/public/core && /usr/bin/cmake3 -E make_directory /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8 && /usr/bin/python /root/tmp/swiftbuild/swift/utils/gyb -DunicodeGraphemeBreakPropertyFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakProperty.txt -DunicodeGraphemeBreakTestFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakTest.txt -DCMAKE_SIZEOF_VOID_P=8 -o /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/PrefixWhile.swift.tmp PrefixWhile.swift.gyb && /usr/bin/cmake3 -E copy_if_different /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/PrefixWhile.swift.tmp /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/PrefixWhile.swift && /usr/bin/cmake3 -E remove /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/PrefixWhile.swift.tmp
[6/107] : && /usr/bin/clang++ -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 -Wdelete-non-virtual-dtor -Werror=date-time -std=c++11 -fcolor-diagnostics -ffunction-sections -fdata-sections -Wdocumentation -Wimplicit-fallthrough -Wunreachable-code -Woverloaded-virtual -O2 -L/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/./lib/swift/linux -target x86_64-unknown-linux-gnu -lpthread -ldl -fuse-ld=gold tools/swift-reflection-dump/CMakeFiles/swift-reflection-dump.dir/swift-reflection-dump.cpp.o -o bin/swift-reflection-dump -L/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/./lib -lswiftReflection /root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMObject.a /root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMSupport.a /root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMBitReader.a /root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMCore.a /root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMMCParser.a /root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMMC.a /root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMSupport.a -lrt -ldl -ltinfo -lpthread -lz -lm -Wl,-rpath,/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/./lib && :
FAILED: bin/swift-reflection-dump
: && /usr/bin/clang++ -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 -Wdelete-non-virtual-dtor -Werror=date-time -std=c++11 -fcolor-diagnostics -ffunction-sections -fdata-sections -Wdocumentation -Wimplicit-fallthrough -Wunreachable-code -Woverloaded-virtual -O2 -L/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/./lib/swift/linux -target x86_64-unknown-linux-gnu -lpthread -ldl -fuse-ld=gold tools/swift-reflection-dump/CMakeFiles/swift-reflection-dump.dir/swift-reflection-dump.cpp.o -o bin/swift-reflection-dump -L/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/./lib -lswiftReflection /root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMObject.a /root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMSupport.a /root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMBitReader.a /root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMCore.a /root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMMCParser.a /root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMMC.a /root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMSupport.a -lrt -ldl -ltinfo -lpthread -lz -lm -Wl,-rpath,/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/./lib && :
tools/swift-reflection-dump/CMakeFiles/swift-reflection-dump.dir/swift-reflection-dump.cpp.o:/root/tmp/swiftbuild/swift/tools/swift-reflection-dump/swift-reflection-dump.cpp:function swift::remote::TypeDecoder<swift::reflection::TypeRefBuilder>::decodeMangledType(std::shared_ptr<swift::Demangle::Node> const&): error: undefined reference to 'swift::Demangle::mangleNode(std::shared_ptr<swift::Demangle::Node> const&)'
tools/swift-reflection-dump/CMakeFiles/swift-reflection-dump.dir/swift-reflection-dump.cpp.o:/root/tmp/swiftbuild/swift/tools/swift-reflection-dump/swift-reflection-dump.cpp:function swift::remote::TypeDecoder<swift::reflection::TypeRefBuilder>::decodeMangledType(std::shared_ptr<swift::Demangle::Node> const&): error: undefined reference to 'swift::Demangle::mangleNode(std::shared_ptr<swift::Demangle::Node> const&)'
tools/swift-reflection-dump/CMakeFiles/swift-reflection-dump.dir/swift-reflection-dump.cpp.o:/root/tmp/swiftbuild/swift/tools/swift-reflection-dump/swift-reflection-dump.cpp:function swift::remote::TypeDecoder<swift::reflection::TypeRefBuilder>::decodeMangledNominalType(std::shared_ptr<swift::Demangle::Node> const&, llvm::Optional<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >&, swift::reflection::TypeRef const*&): error: undefined reference to 'swift::Demangle::mangleNode(std::shared_ptr<swift::Demangle::Node> const&)'
clang-3.8: error: linker command failed with exit code 1 (use -v to see invocation)
[7/107] cd /root/tmp/swiftbuild/swift/stdlib/public/core && /usr/bin/cmake3 -E make_directory /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8 && /usr/bin/python /root/tmp/swiftbuild/swift/utils/gyb -DunicodeGraphemeBreakPropertyFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakProperty.txt -DunicodeGraphemeBreakTestFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakTest.txt -DCMAKE_SIZEOF_VOID_P=8 -o /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/RangeReplaceableCollection.swift.tmp RangeReplaceableCollection.swift.gyb && /usr/bin/cmake3 -E copy_if_different /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/RangeReplaceableCollection.swift.tmp /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/RangeReplaceableCollection.swift && /usr/bin/cmake3 -E remove /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/RangeReplaceableCollection.swift.tmp
[8/107] cd /root/tmp/swiftbuild/swift/stdlib/public/core && /usr/bin/cmake3 -E make_directory /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8 && /usr/bin/python /root/tmp/swiftbuild/swift/utils/gyb -DunicodeGraphemeBreakPropertyFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakProperty.txt -DunicodeGraphemeBreakTestFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakTest.txt -DCMAKE_SIZEOF_VOID_P=8 -o /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Runtime.swift.tmp Runtime.swift.gyb && /usr/bin/cmake3 -E copy_if_different /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Runtime.swift.tmp /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Runtime.swift && /usr/bin/cmake3 -E remove /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Runtime.swift.tmp
[9/107] cd /root/tmp/swiftbuild/swift/stdlib/public/core && /usr/bin/cmake3 -E make_directory /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8 && /usr/bin/python /root/tmp/swiftbuild/swift/utils/gyb -DunicodeGraphemeBreakPropertyFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakProperty.txt -DunicodeGraphemeBreakTestFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakTest.txt -DCMAKE_SIZEOF_VOID_P=8 -o /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Range.swift.tmp Range.swift.gyb && /usr/bin/cmake3 -E copy_if_different /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Range.swift.tmp /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Range.swift && /usr/bin/cmake3 -E remove /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Range.swift.tmp
ninja: build stopped: subcommand failed.
utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting
utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting
/swift-work
_______________________________________________
swift-users mailing list
swift-users@swift.org <mailto:swift-users@swift.org>
https://lists.swift.org/mailman/listinfo/swift-users

_______________________________________________
swift-users mailing list
swift-users@swift.org <mailto:swift-users@swift.org>
https://lists.swift.org/mailman/listinfo/swift-users


(Alex Blewitt) #3

It's something that isn't currently supported at the moment - follow https://bugs.swift.org/browse/SR-100 for more updates as others have tried to get it building there as well.

Alex

···

On 28 Jun 2017, at 10:28, Alexander via swift-users <swift-users@swift.org> wrote:

Good day,

Maybe this is wrong channel to ask, but I try to build swift on Centos7 :slight_smile:
And facing some errors on the build process, and Im really stuck. Maybe someone can help me how to check more details about this error?

build
~/tmp/swiftbuild/swift /swift-work
utils/build-script: note: using preset 'buildbot_linux_build_fedora23', which expands to

utils/build-script --assertions --release --llbuild --swiftpm --xctest --build-subdir=buildbot_linux --lldb --release --test --validation-test --foundation -- --swift-enable-ast-verifier=0 --install-swift --install-lldb --install-llbuild --install-swiftpm --install-xctest --install-prefix=/usr '--swift-install-components=compiler;clang-builtin-headers;stdlib;sdk-overlay;dev' --build-swift-static-stdlib=1 --skip-test-lldb=1 --install-destdir=/root/tmp/swiftbuild/package --installable-package=/root/tmp/swiftbuild/package/swift-linux-x86_64-fedora-2017-06-27--18:00:38.tgz --verbose-build=1 --build-args=-j2 --install-foundation --reconfigure

+ mkdir -p /root/tmp/swiftbuild/build/buildbot_linux
+ env HOST_VARIABLE_linux_x86_64__SWIFT_BENCHMARK_TARGETS= HOST_VARIABLE_linux_x86_64__SWIFT_RUN_BENCHMARK_TARGETS= HOST_VARIABLE_linux_x86_64__SWIFT_SDKS=LINUX HOST_VARIABLE_linux_x86_64__SWIFT_STDLIB_TARGETS=swift-stdlib-linux-x86_64 HOST_VARIABLE_linux_x86_64__SWIFT_TEST_TARGETS=check-swift-validation-linux-x86_64 /root/tmp/swiftbuild/swift/utils/build-script-impl --workspace /root/tmp/swiftbuild --build-dir /root/tmp/swiftbuild/build/buildbot_linux --install-prefix /usr --host-target linux-x86_64 --stdlib-deployment-targets linux-x86_64 --host-cc /usr/bin/clang --host-cxx /usr/bin/clang++ --darwin-xcrun-toolchain default --darwin-deployment-version-osx=10.9 --darwin-deployment-version-ios=7.0 --darwin-deployment-version-tvos=9.0 --darwin-deployment-version-watchos=2.0 --cmake /usr/bin/cmake --cmark-build-type Release --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 --libicu-build-type Release --xctest-build-type Release --swiftpm-build-type Release --swift-enable-assertions true --swift-stdlib-enable-assertions true --swift-analyze-code-coverage false --cmake-generator Ninja --build-jobs 4 '--common-cmake-options=-G Ninja -DCMAKE_C_COMPILER:PATH=/usr/bin/clang -DCMAKE_CXX_COMPILER:PATH=/usr/bin/clang++ -DCMAKE_MAKE_PROGRAM=/usr/bin/ninja' '--build-args=-j2 -j4 -v' --cmark-cmake-options= '--llvm-cmake-options=-DLLVM_ENABLE_ASSERTIONS=TRUE -DLLVM_TARGETS_TO_BUILD=X86;ARM;AArch64;PowerPC;SystemZ' '--swift-cmake-options=-DSWIFT_STDLIB_ENABLE_SIL_OWNERSHIP=FALSE -DCMAKE_EXPORT_COMPILE_COMMANDS=TRUE' --lldb-cmake-options= --llbuild-cmake-options= --libdispatch-cmake-options= --foundation-cmake-options= --xctest-cmake-options= --swiftpm-cmake-options= --build-stdlib-deployment-targets all --ninja-bin=/usr/bin/ninja --verbose-build --skip-build-libicu --skip-build-playgroundlogger --skip-build-playgroundsupport --build-swift-dynamic-stdlib --build-swift-static-stdlib --build-swift-dynamic-sdk-overlay --skip-build-ios-device --skip-build-ios-simulator --skip-build-tvos-device --skip-build-tvos-simulator --skip-build-watchos-device --skip-build-watchos-simulator --skip-build-android --skip-test-ios-host --skip-test-ios-simulator --skip-test-tvos-host --skip-test-tvos-simulator --skip-test-watchos-host --skip-test-watchos-simulator --skip-test-android-host --validation-test --skip-test-benchmarks --skip-test-optimized --android-deploy-device-path /data/local/tmp --swift-enable-ast-verifier=0 --install-swift --install-lldb --install-llbuild --install-swiftpm --install-xctest '--swift-install-components=compiler;clang-builtin-headers;stdlib;sdk-overlay;dev' --skip-test-lldb=1 --install-destdir=/root/tmp/swiftbuild/package --installable-package=/root/tmp/swiftbuild/package/swift-linux-x86_64-fedora-2017-06-27--18:00:38.tgz --install-foundation --reconfigure --llvm-lit-args=-sv
Building the standard library for: swift-stdlib-linux-x86_64
Running Swift tests for: check-swift-validation-linux-x86_64
cmark: using gold linker
+ mkdir -p /root/tmp/swiftbuild/build/buildbot_linux/cmark-linux-x86_64
+ pushd /root/tmp/swiftbuild/build/buildbot_linux/cmark-linux-x86_64
~/tmp/swiftbuild/build/buildbot_linux/cmark-linux-x86_64 ~/tmp/swiftbuild/swift
+ env /usr/bin/cmake -G Ninja -DCMAKE_C_COMPILER:PATH=/usr/bin/clang -DCMAKE_CXX_COMPILER:PATH=/usr/bin/clang++ -DCMAKE_MAKE_PROGRAM=/usr/bin/ninja -DCMAKE_EXE_LINKER_FLAGS:STRING=-fuse-ld=gold -DCMAKE_SHARED_LINKER_FLAGS:STRING=-fuse-ld=gold -DCMAKE_BUILD_TYPE:STRING=Release /root/tmp/swiftbuild/cmark
-- Could NOT find PythonInterp: Found unsuitable version "2.7.5", but required is at least "3" (found /usr/bin/python)

*** A python 3 interpreter is required to run the spec tests.

-- Configuring done
CMake Warning (dev) at src/CMakeLists.txt:84 (add_library):
  Policy CMP0063 is not set: Honor visibility properties for all target
  types. Run "cmake --help-policy CMP0063" for policy details. Use the
  cmake_policy command to set the policy and suppress this warning.

  Target "libcmark_static" of type "STATIC_LIBRARY" has the following
  visibility properties set for C:

    C_VISIBILITY_PRESET

  For compatibility CMake is not honoring them for this target.
This warning is for project developers. Use -Wno-dev to suppress it.

-- Generating done
-- Build files have been written to: /root/tmp/swiftbuild/build/buildbot_linux/cmark-linux-x86_64
+ popd
~/tmp/swiftbuild/swift
+ /usr/bin/cmake --build /root/tmp/swiftbuild/build/buildbot_linux/cmark-linux-x86_64 -- -j2 -j4 -v all
ninja: no work to do.
llvm: using gold linker
+ mkdir -p /root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64
+ pushd /root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64
~/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64 ~/tmp/swiftbuild/swift
+ env /usr/bin/cmake -G Ninja -DCMAKE_C_COMPILER:PATH=/usr/bin/clang -DCMAKE_CXX_COMPILER:PATH=/usr/bin/clang++ -DCMAKE_MAKE_PROGRAM=/usr/bin/ninja -DCMAKE_EXE_LINKER_FLAGS:STRING=-fuse-ld=gold -DCMAKE_SHARED_LINKER_FLAGS:STRING=-fuse-ld=gold -DLLVM_ENABLE_ASSERTIONS=TRUE '-DLLVM_TARGETS_TO_BUILD=X86;ARM;AArch64;PowerPC;SystemZ' '-DCMAKE_C_FLAGS= -fno-stack-protector' '-DCMAKE_CXX_FLAGS= -fno-stack-protector' '-DCMAKE_C_FLAGS_RELWITHDEBINFO=-O2 -DNDEBUG' '-DCMAKE_CXX_FLAGS_RELWITHDEBINFO=-O2 -DNDEBUG' -DCMAKE_BUILD_TYPE:STRING=Release -DLLVM_TOOL_SWIFT_BUILD:BOOL=NO -DLLVM_INCLUDE_DOCS:BOOL=TRUE -DLLVM_ENABLE_LTO:STRING= -DLLVM_TOOL_COMPILER_RT_BUILD:BOOL=TRUE -DLLVM_BUILD_EXTERNAL_COMPILER_RT:BOOL=TRUE -DLLVM_LIT_ARGS=-sv -DCMAKE_INSTALL_PREFIX:PATH=/usr/ -DINTERNAL_INSTALL_PREFIX=local /root/tmp/swiftbuild/llvm
-- Target triple: x86_64-unknown-linux-gnu
-- Native target architecture is X86
-- Threads enabled.
-- Doxygen disabled.
-- Sphinx disabled.
-- Go bindings disabled.
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)
-- OCaml bindings disabled.
-- Building with -fPIC
-- Constructing LLVMBuild project information
-- Targeting X86
-- Targeting ARM
-- Targeting AArch64
-- Targeting PowerPC
-- Targeting SystemZ
-- Clang version: 4.0.0
-- Configuring done
-- Generating done
-- Build files have been written to: /root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64
+ popd
~/tmp/swiftbuild/swift
symlinking the system headers (/usr/include/c++) into the local clang build directory (/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/include).
+ ln -s -f /usr/include/c++ /root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/include
+ /usr/bin/cmake --build /root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64 -- -j2 -j4 -v all
ninja: no work to do.
swift: using gold linker
+ mkdir -p /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64
+ pushd /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64
~/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64 ~/tmp/swiftbuild/swift
+ env /usr/bin/cmake -G Ninja -DCMAKE_C_COMPILER:PATH=/usr/bin/clang -DCMAKE_CXX_COMPILER:PATH=/usr/bin/clang++ -DCMAKE_MAKE_PROGRAM=/usr/bin/ninja -DSWIFT_STDLIB_ENABLE_SIL_OWNERSHIP=FALSE -DCMAKE_EXPORT_COMPILE_COMMANDS=TRUE -DSWIFT_ENABLE_GOLD_LINKER=TRUE '-DCMAKE_C_FLAGS= -fno-stack-protector' '-DCMAKE_CXX_FLAGS= -fno-stack-protector' '-DCMAKE_C_FLAGS_RELWITHDEBINFO=-O2 -DNDEBUG' '-DCMAKE_CXX_FLAGS_RELWITHDEBINFO=-O2 -DNDEBUG' -DCMAKE_BUILD_TYPE:STRING=Release -DLLVM_ENABLE_ASSERTIONS:BOOL=TRUE -DSWIFT_ANALYZE_CODE_COVERAGE:STRING=FALSE -DSWIFT_STDLIB_BUILD_TYPE:STRING=Release -DSWIFT_STDLIB_ASSERTIONS:BOOL=TRUE -DSWIFT_STDLIB_ENABLE_RESILIENCE:BOOL=FALSE -DSWIFT_STDLIB_SIL_SERIALIZE_ALL:BOOL=TRUE -DSWIFT_NATIVE_LLVM_TOOLS_PATH:STRING= -DSWIFT_NATIVE_CLANG_TOOLS_PATH:STRING= -DSWIFT_NATIVE_SWIFT_TOOLS_PATH:STRING= -DSWIFT_INCLUDE_TOOLS:BOOL=TRUE -DSWIFT_BUILD_REMOTE_MIRROR:BOOL=TRUE -DSWIFT_SERIALIZE_STDLIB_UNITTEST:BOOL=FALSE -DSWIFT_STDLIB_SIL_DEBUGGING:BOOL=FALSE -DSWIFT_CHECK_INCREMENTAL_COMPILATION:BOOL=FALSE -DSWIFT_BUILD_DYNAMIC_STDLIB:BOOL=TRUE -DSWIFT_BUILD_STATIC_STDLIB:BOOL=TRUE -DSWIFT_BUILD_DYNAMIC_SDK_OVERLAY:BOOL=TRUE -DSWIFT_BUILD_STATIC_SDK_OVERLAY:BOOL=FALSE -DSWIFT_BUILD_PERF_TESTSUITE:BOOL=TRUE -DSWIFT_BUILD_EXAMPLES:BOOL=TRUE -DSWIFT_INCLUDE_TESTS:BOOL=TRUE '-DSWIFT_INSTALL_COMPONENTS:STRING=compiler;clang-builtin-headers;stdlib;sdk-overlay;dev' -DSWIFT_EMBED_BITCODE_SECTION:BOOL=FALSE -DSWIFT_TOOLS_ENABLE_LTO:STRING= -DSWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER:BOOL=FALSE -DSWIFT_HOST_VARIANT=linux -DSWIFT_HOST_VARIANT_SDK=LINUX -DSWIFT_HOST_VARIANT_ARCH=x86_64 -DLLVM_LIT_ARGS=-sv -DCOVERAGE_DB= -DSWIFT_SOURCEKIT_USE_INPROC_LIBRARY:BOOL=TRUE -DSWIFT_DARWIN_XCRUN_TOOLCHAIN:STRING=default -DSWIFT_AST_VERIFIER:BOOL=FALSE -DSWIFT_SIL_VERIFY_ALL:BOOL=FALSE -DSWIFT_RUNTIME_ENABLE_LEAK_CHECKER:BOOL=FALSE -DCMAKE_INSTALL_PREFIX:PATH=/usr/ -DSWIFT_PATH_TO_CLANG_SOURCE:PATH=/root/tmp/swiftbuild/llvm/tools/clang -DSWIFT_PATH_TO_CLANG_BUILD:PATH=/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64 -DSWIFT_PATH_TO_LLVM_SOURCE:PATH=/root/tmp/swiftbuild/llvm -DSWIFT_PATH_TO_LLVM_BUILD:PATH=/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64 -DSWIFT_PATH_TO_CMARK_SOURCE:PATH=/root/tmp/swiftbuild/cmark -DSWIFT_PATH_TO_CMARK_BUILD:PATH=/root/tmp/swiftbuild/build/buildbot_linux/cmark-linux-x86_64 -DSWIFT_PATH_TO_LIBDISPATCH_SOURCE:PATH=/root/tmp/swiftbuild/swift-corelibs-libdispatch -DSWIFT_PATH_TO_LIBDISPATCH_BUILD:PATH=/root/tmp/swiftbuild/build/buildbot_linux/libdispatch-linux-x86_64 -DSWIFT_CMARK_LIBRARY_DIR:PATH=/root/tmp/swiftbuild/build/buildbot_linux/cmark-linux-x86_64/src -DSWIFT_SDKS:STRING=LINUX -DLLDB_ENABLE:BOOL=TRUE -DLLDB_BUILD_DIR:STRING=/root/tmp/swiftbuild/build/buildbot_linux/lldb-linux-x86_64 -DSWIFT_EXEC:STRING=/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/bin/swiftc /root/tmp/swiftbuild/swift
-- Building with -fPIC
-- Linux SDK:
-- Path: /
-- Version: don't use
-- Build number: don't use
-- Deployment version: don't use
-- Library subdir: linux
-- Version min name:
-- Triple name: linux
-- Architectures: x86_64
-- Object Format: ELF
-- Triple for x86_64 is x86_64-unknown-linux-gnu
--
-- Building host Swift tools for LINUX x86_64
-- Build type: Release
-- Assertions: TRUE
-- LTO:
--
-- Building Swift standard library and SDK overlays for SDKs: LINUX
-- Build type: Release
-- Assertions: TRUE
--
-- Building Swift runtime with:
-- Leak Detection Checker Entrypoints: FALSE
--
-- Found ICU: /usr/include
-- Swift version: 3.1.1
-- Swift vendor:
-- Swift compiler version:
-- Embedded clang compiler version:
-- Found ICU: /usr/include
CMake Warning at docs/CMakeLists.txt:24 (message):
  Unable to find sphinx-build program. Not building docs

CMake Warning at docs/CMakeLists.txt:130 (message):
  LitRe not found; code examples won't be tested.

-- Configuring done
-- Generating done
-- Build files have been written to: /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64
+ popd
~/tmp/swiftbuild/swift
+ /usr/bin/cmake --build /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64 -- -j2 -j4 -v all swift-stdlib-linux-x86_64
[1/107] cd /root/tmp/swiftbuild/swift/stdlib/public/core && /usr/bin/cmake3 -E make_directory /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8 && /usr/bin/python /root/tmp/swiftbuild/swift/utils/gyb -DunicodeGraphemeBreakPropertyFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakProperty.txt -DunicodeGraphemeBreakTestFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakTest.txt -DCMAKE_SIZEOF_VOID_P=8 -o /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Map.swift.tmp Map.swift.gyb && /usr/bin/cmake3 -E copy_if_different /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Map.swift.tmp /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Map.swift && /usr/bin/cmake3 -E remove /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Map.swift.tmp
[2/107] cd /root/tmp/swiftbuild/swift/stdlib/public/core && /usr/bin/cmake3 -E make_directory /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8 && /usr/bin/python /root/tmp/swiftbuild/swift/utils/gyb -DunicodeGraphemeBreakPropertyFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakProperty.txt -DunicodeGraphemeBreakTestFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakTest.txt -DCMAKE_SIZEOF_VOID_P=8 -o /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/LazyCollection.swift.tmp LazyCollection.swift.gyb && /usr/bin/cmake3 -E copy_if_different /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/LazyCollection.swift.tmp /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/LazyCollection.swift && /usr/bin/cmake3 -E remove /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/LazyCollection.swift.tmp
[3/107] cd /root/tmp/swiftbuild/swift/stdlib/public/core && /usr/bin/cmake3 -E make_directory /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8 && /usr/bin/python /root/tmp/swiftbuild/swift/utils/gyb -DunicodeGraphemeBreakPropertyFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakProperty.txt -DunicodeGraphemeBreakTestFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakTest.txt -DCMAKE_SIZEOF_VOID_P=8 -o /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Mirrors.swift.tmp Mirrors.swift.gyb && /usr/bin/cmake3 -E copy_if_different /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Mirrors.swift.tmp /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Mirrors.swift && /usr/bin/cmake3 -E remove /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Mirrors.swift.tmp
[4/107] cd /root/tmp/swiftbuild/swift/stdlib/public/core && /usr/bin/cmake3 -E make_directory /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8 && /usr/bin/python /root/tmp/swiftbuild/swift/utils/gyb -DunicodeGraphemeBreakPropertyFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakProperty.txt -DunicodeGraphemeBreakTestFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakTest.txt -DCMAKE_SIZEOF_VOID_P=8 -o /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/NewtypeWrapper.swift.tmp NewtypeWrapper.swift.gyb && /usr/bin/cmake3 -E copy_if_different /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/NewtypeWrapper.swift.tmp /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/NewtypeWrapper.swift && /usr/bin/cmake3 -E remove /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/NewtypeWrapper.swift.tmp
[5/107] cd /root/tmp/swiftbuild/swift/stdlib/public/core && /usr/bin/cmake3 -E make_directory /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8 && /usr/bin/python /root/tmp/swiftbuild/swift/utils/gyb -DunicodeGraphemeBreakPropertyFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakProperty.txt -DunicodeGraphemeBreakTestFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakTest.txt -DCMAKE_SIZEOF_VOID_P=8 -o /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/PrefixWhile.swift.tmp PrefixWhile.swift.gyb && /usr/bin/cmake3 -E copy_if_different /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/PrefixWhile.swift.tmp /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/PrefixWhile.swift && /usr/bin/cmake3 -E remove /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/PrefixWhile.swift.tmp
[6/107] : && /usr/bin/clang++ -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 -Wdelete-non-virtual-dtor -Werror=date-time -std=c++11 -fcolor-diagnostics -ffunction-sections -fdata-sections -Wdocumentation -Wimplicit-fallthrough -Wunreachable-code -Woverloaded-virtual -O2 -L/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/./lib/swift/linux -target x86_64-unknown-linux-gnu -lpthread -ldl -fuse-ld=gold tools/swift-reflection-dump/CMakeFiles/swift-reflection-dump.dir/swift-reflection-dump.cpp.o -o bin/swift-reflection-dump -L/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/./lib -lswiftReflection /root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMObject.a /root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMSupport.a /root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMBitReader.a /root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMCore.a /root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMMCParser.a /root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMMC.a /root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMSupport.a -lrt -ldl -ltinfo -lpthread -lz -lm -Wl,-rpath,/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/./lib && :
FAILED: bin/swift-reflection-dump
: && /usr/bin/clang++ -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 -Wdelete-non-virtual-dtor -Werror=date-time -std=c++11 -fcolor-diagnostics -ffunction-sections -fdata-sections -Wdocumentation -Wimplicit-fallthrough -Wunreachable-code -Woverloaded-virtual -O2 -L/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/./lib/swift/linux -target x86_64-unknown-linux-gnu -lpthread -ldl -fuse-ld=gold tools/swift-reflection-dump/CMakeFiles/swift-reflection-dump.dir/swift-reflection-dump.cpp.o -o bin/swift-reflection-dump -L/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/./lib -lswiftReflection /root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMObject.a /root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMSupport.a /root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMBitReader.a /root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMCore.a /root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMMCParser.a /root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMMC.a /root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMSupport.a -lrt -ldl -ltinfo -lpthread -lz -lm -Wl,-rpath,/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/./lib && :
tools/swift-reflection-dump/CMakeFiles/swift-reflection-dump.dir/swift-reflection-dump.cpp.o:/root/tmp/swiftbuild/swift/tools/swift-reflection-dump/swift-reflection-dump.cpp:function swift::remote::TypeDecoder<swift::reflection::TypeRefBuilder>::decodeMangledType(std::shared_ptr<swift::Demangle::Node> const&): error: undefined reference to 'swift::Demangle::mangleNode(std::shared_ptr<swift::Demangle::Node> const&)'
tools/swift-reflection-dump/CMakeFiles/swift-reflection-dump.dir/swift-reflection-dump.cpp.o:/root/tmp/swiftbuild/swift/tools/swift-reflection-dump/swift-reflection-dump.cpp:function swift::remote::TypeDecoder<swift::reflection::TypeRefBuilder>::decodeMangledType(std::shared_ptr<swift::Demangle::Node> const&): error: undefined reference to 'swift::Demangle::mangleNode(std::shared_ptr<swift::Demangle::Node> const&)'
tools/swift-reflection-dump/CMakeFiles/swift-reflection-dump.dir/swift-reflection-dump.cpp.o:/root/tmp/swiftbuild/swift/tools/swift-reflection-dump/swift-reflection-dump.cpp:function swift::remote::TypeDecoder<swift::reflection::TypeRefBuilder>::decodeMangledNominalType(std::shared_ptr<swift::Demangle::Node> const&, llvm::Optional<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >&, swift::reflection::TypeRef const*&): error: undefined reference to 'swift::Demangle::mangleNode(std::shared_ptr<swift::Demangle::Node> const&)'
clang-3.8: error: linker command failed with exit code 1 (use -v to see invocation)
[7/107] cd /root/tmp/swiftbuild/swift/stdlib/public/core && /usr/bin/cmake3 -E make_directory /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8 && /usr/bin/python /root/tmp/swiftbuild/swift/utils/gyb -DunicodeGraphemeBreakPropertyFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakProperty.txt -DunicodeGraphemeBreakTestFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakTest.txt -DCMAKE_SIZEOF_VOID_P=8 -o /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/RangeReplaceableCollection.swift.tmp RangeReplaceableCollection.swift.gyb && /usr/bin/cmake3 -E copy_if_different /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/RangeReplaceableCollection.swift.tmp /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/RangeReplaceableCollection.swift && /usr/bin/cmake3 -E remove /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/RangeReplaceableCollection.swift.tmp
[8/107] cd /root/tmp/swiftbuild/swift/stdlib/public/core && /usr/bin/cmake3 -E make_directory /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8 && /usr/bin/python /root/tmp/swiftbuild/swift/utils/gyb -DunicodeGraphemeBreakPropertyFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakProperty.txt -DunicodeGraphemeBreakTestFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakTest.txt -DCMAKE_SIZEOF_VOID_P=8 -o /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Runtime.swift.tmp Runtime.swift.gyb && /usr/bin/cmake3 -E copy_if_different /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Runtime.swift.tmp /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Runtime.swift && /usr/bin/cmake3 -E remove /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Runtime.swift.tmp
[9/107] cd /root/tmp/swiftbuild/swift/stdlib/public/core && /usr/bin/cmake3 -E make_directory /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8 && /usr/bin/python /root/tmp/swiftbuild/swift/utils/gyb -DunicodeGraphemeBreakPropertyFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakProperty.txt -DunicodeGraphemeBreakTestFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakTest.txt -DCMAKE_SIZEOF_VOID_P=8 -o /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Range.swift.tmp Range.swift.gyb && /usr/bin/cmake3 -E copy_if_different /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Range.swift.tmp /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Range.swift && /usr/bin/cmake3 -E remove /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Range.swift.tmp
ninja: build stopped: subcommand failed.
utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting
utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting
/swift-work
_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users


(Alexander) #4

Thanks, I'll check it out.

···

On Wed, Jun 28, 2017 at 11:50 AM Alex Blewitt <alblue@apple.com> wrote:

It's something that isn't currently supported at the moment - follow
https://bugs.swift.org/browse/SR-100 for more updates as others have
tried to get it building there as well.

Alex

On 28 Jun 2017, at 10:28, Alexander via swift-users <swift-users@swift.org> > wrote:

Good day,

Maybe this is wrong channel to ask, but I try to build swift on Centos7 :slight_smile:
And facing some errors on the build process, and Im really stuck. Maybe
someone can help me how to check more details about this error?

build
~/tmp/swiftbuild/swift /swift-work
utils/build-script: note: using preset 'buildbot_linux_build_fedora23',
which expands to

utils/build-script --assertions --release --llbuild --swiftpm --xctest
--build-subdir=buildbot_linux --lldb --release --test --validation-test
--foundation -- --swift-enable-ast-verifier=0 --install-swift
--install-lldb --install-llbuild --install-swiftpm --install-xctest
--install-prefix=/usr
'--swift-install-components=compiler;clang-builtin-headers;stdlib;sdk-overlay;dev'
--build-swift-static-stdlib=1 --skip-test-lldb=1
--install-destdir=/root/tmp/swiftbuild/package
--installable-package=/root/tmp/swiftbuild/package/swift-linux-x86_64-fedora-2017-06-27--18:00:38.tgz
--verbose-build=1 --build-args=-j2 --install-foundation --reconfigure

+ mkdir -p /root/tmp/swiftbuild/build/buildbot_linux
+ env HOST_VARIABLE_linux_x86_64__SWIFT_BENCHMARK_TARGETS=
HOST_VARIABLE_linux_x86_64__SWIFT_RUN_BENCHMARK_TARGETS=
HOST_VARIABLE_linux_x86_64__SWIFT_SDKS=LINUX
HOST_VARIABLE_linux_x86_64__SWIFT_STDLIB_TARGETS=swift-stdlib-linux-x86_64
HOST_VARIABLE_linux_x86_64__SWIFT_TEST_TARGETS=check-swift-validation-linux-x86_64
/root/tmp/swiftbuild/swift/utils/build-script-impl --workspace
/root/tmp/swiftbuild --build-dir /root/tmp/swiftbuild/build/buildbot_linux
--install-prefix /usr --host-target linux-x86_64
--stdlib-deployment-targets linux-x86_64 --host-cc /usr/bin/clang
--host-cxx /usr/bin/clang++ --darwin-xcrun-toolchain default
--darwin-deployment-version-osx=10.9 --darwin-deployment-version-ios=7.0
--darwin-deployment-version-tvos=9.0
--darwin-deployment-version-watchos=2.0 --cmake /usr/bin/cmake
--cmark-build-type Release --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
--libicu-build-type Release --xctest-build-type Release
--swiftpm-build-type Release --swift-enable-assertions true
--swift-stdlib-enable-assertions true --swift-analyze-code-coverage false
--cmake-generator Ninja --build-jobs 4 '--common-cmake-options=-G Ninja
-DCMAKE_C_COMPILER:PATH=/usr/bin/clang
-DCMAKE_CXX_COMPILER:PATH=/usr/bin/clang++
-DCMAKE_MAKE_PROGRAM=/usr/bin/ninja' '--build-args=-j2 -j4 -v'
--cmark-cmake-options= '--llvm-cmake-options=-DLLVM_ENABLE_ASSERTIONS=TRUE
-DLLVM_TARGETS_TO_BUILD=X86;ARM;AArch64;PowerPC;SystemZ'
'--swift-cmake-options=-DSWIFT_STDLIB_ENABLE_SIL_OWNERSHIP=FALSE
-DCMAKE_EXPORT_COMPILE_COMMANDS=TRUE' --lldb-cmake-options=
--llbuild-cmake-options= --libdispatch-cmake-options=
--foundation-cmake-options= --xctest-cmake-options=
--swiftpm-cmake-options= --build-stdlib-deployment-targets all
--ninja-bin=/usr/bin/ninja --verbose-build --skip-build-libicu
--skip-build-playgroundlogger --skip-build-playgroundsupport
--build-swift-dynamic-stdlib --build-swift-static-stdlib
--build-swift-dynamic-sdk-overlay --skip-build-ios-device
--skip-build-ios-simulator --skip-build-tvos-device
--skip-build-tvos-simulator --skip-build-watchos-device
--skip-build-watchos-simulator --skip-build-android --skip-test-ios-host
--skip-test-ios-simulator --skip-test-tvos-host --skip-test-tvos-simulator
--skip-test-watchos-host --skip-test-watchos-simulator
--skip-test-android-host --validation-test --skip-test-benchmarks
--skip-test-optimized --android-deploy-device-path /data/local/tmp
--swift-enable-ast-verifier=0 --install-swift --install-lldb
--install-llbuild --install-swiftpm --install-xctest
'--swift-install-components=compiler;clang-builtin-headers;stdlib;sdk-overlay;dev'
--skip-test-lldb=1 --install-destdir=/root/tmp/swiftbuild/package
--installable-package=/root/tmp/swiftbuild/package/swift-linux-x86_64-fedora-2017-06-27--18:00:38.tgz
--install-foundation --reconfigure --llvm-lit-args=-sv
Building the standard library for: swift-stdlib-linux-x86_64
Running Swift tests for: check-swift-validation-linux-x86_64
cmark: using gold linker
+ mkdir -p /root/tmp/swiftbuild/build/buildbot_linux/cmark-linux-x86_64
+ pushd /root/tmp/swiftbuild/build/buildbot_linux/cmark-linux-x86_64
~/tmp/swiftbuild/build/buildbot_linux/cmark-linux-x86_64
~/tmp/swiftbuild/swift
+ env /usr/bin/cmake -G Ninja -DCMAKE_C_COMPILER:PATH=/usr/bin/clang
-DCMAKE_CXX_COMPILER:PATH=/usr/bin/clang++
-DCMAKE_MAKE_PROGRAM=/usr/bin/ninja
-DCMAKE_EXE_LINKER_FLAGS:STRING=-fuse-ld=gold
-DCMAKE_SHARED_LINKER_FLAGS:STRING=-fuse-ld=gold
-DCMAKE_BUILD_TYPE:STRING=Release /root/tmp/swiftbuild/cmark
-- Could NOT find PythonInterp: Found unsuitable version "2.7.5", but
required is at least "3" (found /usr/bin/python)

*** A python 3 interpreter is required to run the spec tests.

-- Configuring done
CMake Warning (dev) at src/CMakeLists.txt:84 (add_library):
  Policy CMP0063 is not set: Honor visibility properties for all target
  types. Run "cmake --help-policy CMP0063" for policy details. Use the
  cmake_policy command to set the policy and suppress this warning.

  Target "libcmark_static" of type "STATIC_LIBRARY" has the following
  visibility properties set for C:

    C_VISIBILITY_PRESET

  For compatibility CMake is not honoring them for this target.
This warning is for project developers. Use -Wno-dev to suppress it.

-- Generating done
-- Build files have been written to:
/root/tmp/swiftbuild/build/buildbot_linux/cmark-linux-x86_64
+ popd
~/tmp/swiftbuild/swift
+ /usr/bin/cmake --build
/root/tmp/swiftbuild/build/buildbot_linux/cmark-linux-x86_64 -- -j2 -j4 -v
all
ninja: no work to do.
llvm: using gold linker
+ mkdir -p /root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64
+ pushd /root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64
~/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64
~/tmp/swiftbuild/swift
+ env /usr/bin/cmake -G Ninja -DCMAKE_C_COMPILER:PATH=/usr/bin/clang
-DCMAKE_CXX_COMPILER:PATH=/usr/bin/clang++
-DCMAKE_MAKE_PROGRAM=/usr/bin/ninja
-DCMAKE_EXE_LINKER_FLAGS:STRING=-fuse-ld=gold
-DCMAKE_SHARED_LINKER_FLAGS:STRING=-fuse-ld=gold
-DLLVM_ENABLE_ASSERTIONS=TRUE
'-DLLVM_TARGETS_TO_BUILD=X86;ARM;AArch64;PowerPC;SystemZ' '-DCMAKE_C_FLAGS=
-fno-stack-protector' '-DCMAKE_CXX_FLAGS= -fno-stack-protector'
'-DCMAKE_C_FLAGS_RELWITHDEBINFO=-O2 -DNDEBUG'
'-DCMAKE_CXX_FLAGS_RELWITHDEBINFO=-O2 -DNDEBUG'
-DCMAKE_BUILD_TYPE:STRING=Release -DLLVM_TOOL_SWIFT_BUILD:BOOL=NO
-DLLVM_INCLUDE_DOCS:BOOL=TRUE -DLLVM_ENABLE_LTO:STRING=
-DLLVM_TOOL_COMPILER_RT_BUILD:BOOL=TRUE
-DLLVM_BUILD_EXTERNAL_COMPILER_RT:BOOL=TRUE -DLLVM_LIT_ARGS=-sv
-DCMAKE_INSTALL_PREFIX:PATH=/usr/ -DINTERNAL_INSTALL_PREFIX=local
/root/tmp/swiftbuild/llvm
-- Target triple: x86_64-unknown-linux-gnu
-- Native target architecture is X86
-- Threads enabled.
-- Doxygen disabled.
-- Sphinx disabled.
-- Go bindings disabled.
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION
OCAML_STDLIB_PATH)
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION
OCAML_STDLIB_PATH)
-- OCaml bindings disabled.
-- Building with -fPIC
-- Constructing LLVMBuild project information
-- Targeting X86
-- Targeting ARM
-- Targeting AArch64
-- Targeting PowerPC
-- Targeting SystemZ
-- Clang version: 4.0.0
-- Configuring done
-- Generating done
-- Build files have been written to:
/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64
+ popd
~/tmp/swiftbuild/swift
symlinking the system headers (/usr/include/c++) into the local clang
build directory
(/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/include).
+ ln -s -f /usr/include/c++
/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/include
+ /usr/bin/cmake --build
/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64 -- -j2 -j4 -v
all
ninja: no work to do.
swift: using gold linker
+ mkdir -p /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64
+ pushd /root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64
~/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64
~/tmp/swiftbuild/swift
+ env /usr/bin/cmake -G Ninja -DCMAKE_C_COMPILER:PATH=/usr/bin/clang
-DCMAKE_CXX_COMPILER:PATH=/usr/bin/clang++
-DCMAKE_MAKE_PROGRAM=/usr/bin/ninja
-DSWIFT_STDLIB_ENABLE_SIL_OWNERSHIP=FALSE
-DCMAKE_EXPORT_COMPILE_COMMANDS=TRUE -DSWIFT_ENABLE_GOLD_LINKER=TRUE
'-DCMAKE_C_FLAGS= -fno-stack-protector' '-DCMAKE_CXX_FLAGS=
-fno-stack-protector' '-DCMAKE_C_FLAGS_RELWITHDEBINFO=-O2 -DNDEBUG'
'-DCMAKE_CXX_FLAGS_RELWITHDEBINFO=-O2 -DNDEBUG'
-DCMAKE_BUILD_TYPE:STRING=Release -DLLVM_ENABLE_ASSERTIONS:BOOL=TRUE
-DSWIFT_ANALYZE_CODE_COVERAGE:STRING=FALSE
-DSWIFT_STDLIB_BUILD_TYPE:STRING=Release
-DSWIFT_STDLIB_ASSERTIONS:BOOL=TRUE
-DSWIFT_STDLIB_ENABLE_RESILIENCE:BOOL=FALSE
-DSWIFT_STDLIB_SIL_SERIALIZE_ALL:BOOL=TRUE
-DSWIFT_NATIVE_LLVM_TOOLS_PATH:STRING=
-DSWIFT_NATIVE_CLANG_TOOLS_PATH:STRING=
-DSWIFT_NATIVE_SWIFT_TOOLS_PATH:STRING= -DSWIFT_INCLUDE_TOOLS:BOOL=TRUE
-DSWIFT_BUILD_REMOTE_MIRROR:BOOL=TRUE
-DSWIFT_SERIALIZE_STDLIB_UNITTEST:BOOL=FALSE
-DSWIFT_STDLIB_SIL_DEBUGGING:BOOL=FALSE
-DSWIFT_CHECK_INCREMENTAL_COMPILATION:BOOL=FALSE
-DSWIFT_BUILD_DYNAMIC_STDLIB:BOOL=TRUE
-DSWIFT_BUILD_STATIC_STDLIB:BOOL=TRUE
-DSWIFT_BUILD_DYNAMIC_SDK_OVERLAY:BOOL=TRUE
-DSWIFT_BUILD_STATIC_SDK_OVERLAY:BOOL=FALSE
-DSWIFT_BUILD_PERF_TESTSUITE:BOOL=TRUE -DSWIFT_BUILD_EXAMPLES:BOOL=TRUE
-DSWIFT_INCLUDE_TESTS:BOOL=TRUE
'-DSWIFT_INSTALL_COMPONENTS:STRING=compiler;clang-builtin-headers;stdlib;sdk-overlay;dev'
-DSWIFT_EMBED_BITCODE_SECTION:BOOL=FALSE -DSWIFT_TOOLS_ENABLE_LTO:STRING=
-DSWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER:BOOL=FALSE
-DSWIFT_HOST_VARIANT=linux -DSWIFT_HOST_VARIANT_SDK=LINUX
-DSWIFT_HOST_VARIANT_ARCH=x86_64 -DLLVM_LIT_ARGS=-sv -DCOVERAGE_DB=
-DSWIFT_SOURCEKIT_USE_INPROC_LIBRARY:BOOL=TRUE
-DSWIFT_DARWIN_XCRUN_TOOLCHAIN:STRING=default
-DSWIFT_AST_VERIFIER:BOOL=FALSE -DSWIFT_SIL_VERIFY_ALL:BOOL=FALSE
-DSWIFT_RUNTIME_ENABLE_LEAK_CHECKER:BOOL=FALSE
-DCMAKE_INSTALL_PREFIX:PATH=/usr/
-DSWIFT_PATH_TO_CLANG_SOURCE:PATH=/root/tmp/swiftbuild/llvm/tools/clang
-DSWIFT_PATH_TO_CLANG_BUILD:PATH=/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64
-DSWIFT_PATH_TO_LLVM_SOURCE:PATH=/root/tmp/swiftbuild/llvm
-DSWIFT_PATH_TO_LLVM_BUILD:PATH=/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64
-DSWIFT_PATH_TO_CMARK_SOURCE:PATH=/root/tmp/swiftbuild/cmark
-DSWIFT_PATH_TO_CMARK_BUILD:PATH=/root/tmp/swiftbuild/build/buildbot_linux/cmark-linux-x86_64
-DSWIFT_PATH_TO_LIBDISPATCH_SOURCE:PATH=/root/tmp/swiftbuild/swift-corelibs-libdispatch
-DSWIFT_PATH_TO_LIBDISPATCH_BUILD:PATH=/root/tmp/swiftbuild/build/buildbot_linux/libdispatch-linux-x86_64
-DSWIFT_CMARK_LIBRARY_DIR:PATH=/root/tmp/swiftbuild/build/buildbot_linux/cmark-linux-x86_64/src
-DSWIFT_SDKS:STRING=LINUX -DLLDB_ENABLE:BOOL=TRUE
-DLLDB_BUILD_DIR:STRING=/root/tmp/swiftbuild/build/buildbot_linux/lldb-linux-x86_64
-DSWIFT_EXEC:STRING=/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/bin/swiftc
/root/tmp/swiftbuild/swift
-- Building with -fPIC
-- Linux SDK:
-- Path: /
-- Version: don't use
-- Build number: don't use
-- Deployment version: don't use
-- Library subdir: linux
-- Version min name:
-- Triple name: linux
-- Architectures: x86_64
-- Object Format: ELF
-- Triple for x86_64 is x86_64-unknown-linux-gnu
--
-- Building host Swift tools for LINUX x86_64
-- Build type: Release
-- Assertions: TRUE
-- LTO:
--
-- Building Swift standard library and SDK overlays for SDKs: LINUX
-- Build type: Release
-- Assertions: TRUE
--
-- Building Swift runtime with:
-- Leak Detection Checker Entrypoints: FALSE
--
-- Found ICU: /usr/include
-- Swift version: 3.1.1
-- Swift vendor:
-- Swift compiler version:
-- Embedded clang compiler version:
-- Found ICU: /usr/include
CMake Warning at docs/CMakeLists.txt:24 (message):
  Unable to find sphinx-build program. Not building docs

CMake Warning at docs/CMakeLists.txt:130 (message):
  LitRe not found; code examples won't be tested.

-- Configuring done
-- Generating done
-- Build files have been written to:
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64
+ popd
~/tmp/swiftbuild/swift
+ /usr/bin/cmake --build
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64 -- -j2 -j4 -v
all swift-stdlib-linux-x86_64
[1/107] cd /root/tmp/swiftbuild/swift/stdlib/public/core &&
/usr/bin/cmake3 -E make_directory
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8
&& /usr/bin/python /root/tmp/swiftbuild/swift/utils/gyb
-DunicodeGraphemeBreakPropertyFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakProperty.txt
-DunicodeGraphemeBreakTestFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakTest.txt
-DCMAKE_SIZEOF_VOID_P=8 -o
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Map.swift.tmp
Map.swift.gyb && /usr/bin/cmake3 -E copy_if_different
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Map.swift.tmp
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Map.swift
&& /usr/bin/cmake3 -E remove
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Map.swift.tmp
[2/107] cd /root/tmp/swiftbuild/swift/stdlib/public/core &&
/usr/bin/cmake3 -E make_directory
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8
&& /usr/bin/python /root/tmp/swiftbuild/swift/utils/gyb
-DunicodeGraphemeBreakPropertyFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakProperty.txt
-DunicodeGraphemeBreakTestFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakTest.txt
-DCMAKE_SIZEOF_VOID_P=8 -o
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/LazyCollection.swift.tmp
LazyCollection.swift.gyb && /usr/bin/cmake3 -E copy_if_different
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/LazyCollection.swift.tmp
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/LazyCollection.swift
&& /usr/bin/cmake3 -E remove
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/LazyCollection.swift.tmp
[3/107] cd /root/tmp/swiftbuild/swift/stdlib/public/core &&
/usr/bin/cmake3 -E make_directory
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8
&& /usr/bin/python /root/tmp/swiftbuild/swift/utils/gyb
-DunicodeGraphemeBreakPropertyFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakProperty.txt
-DunicodeGraphemeBreakTestFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakTest.txt
-DCMAKE_SIZEOF_VOID_P=8 -o
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Mirrors.swift.tmp
Mirrors.swift.gyb && /usr/bin/cmake3 -E copy_if_different
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Mirrors.swift.tmp
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Mirrors.swift
&& /usr/bin/cmake3 -E remove
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Mirrors.swift.tmp
[4/107] cd /root/tmp/swiftbuild/swift/stdlib/public/core &&
/usr/bin/cmake3 -E make_directory
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8
&& /usr/bin/python /root/tmp/swiftbuild/swift/utils/gyb
-DunicodeGraphemeBreakPropertyFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakProperty.txt
-DunicodeGraphemeBreakTestFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakTest.txt
-DCMAKE_SIZEOF_VOID_P=8 -o
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/NewtypeWrapper.swift.tmp
NewtypeWrapper.swift.gyb && /usr/bin/cmake3 -E copy_if_different
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/NewtypeWrapper.swift.tmp
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/NewtypeWrapper.swift
&& /usr/bin/cmake3 -E remove
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/NewtypeWrapper.swift.tmp
[5/107] cd /root/tmp/swiftbuild/swift/stdlib/public/core &&
/usr/bin/cmake3 -E make_directory
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8
&& /usr/bin/python /root/tmp/swiftbuild/swift/utils/gyb
-DunicodeGraphemeBreakPropertyFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakProperty.txt
-DunicodeGraphemeBreakTestFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakTest.txt
-DCMAKE_SIZEOF_VOID_P=8 -o
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/PrefixWhile.swift.tmp
PrefixWhile.swift.gyb && /usr/bin/cmake3 -E copy_if_different
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/PrefixWhile.swift.tmp
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/PrefixWhile.swift
&& /usr/bin/cmake3 -E remove
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/PrefixWhile.swift.tmp
[6/107] : && /usr/bin/clang++ -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 -Wdelete-non-virtual-dtor -Werror=date-time -std=c++11
-fcolor-diagnostics -ffunction-sections -fdata-sections -Wdocumentation
-Wimplicit-fallthrough -Wunreachable-code -Woverloaded-virtual -O2
-L/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/./lib/swift/linux
-target x86_64-unknown-linux-gnu -lpthread -ldl -fuse-ld=gold
tools/swift-reflection-dump/CMakeFiles/swift-reflection-dump.dir/swift-reflection-dump.cpp.o
-o bin/swift-reflection-dump
-L/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/./lib
-lswiftReflection
/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMObject.a
/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMSupport.a
/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMBitReader.a
/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMCore.a
/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMMCParser.a
/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMMC.a
/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMSupport.a
-lrt -ldl -ltinfo -lpthread -lz -lm
-Wl,-rpath,/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/./lib
&& :
FAILED: bin/swift-reflection-dump
: && /usr/bin/clang++ -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 -Wdelete-non-virtual-dtor -Werror=date-time -std=c++11
-fcolor-diagnostics -ffunction-sections -fdata-sections -Wdocumentation
-Wimplicit-fallthrough -Wunreachable-code -Woverloaded-virtual -O2
-L/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/./lib/swift/linux
-target x86_64-unknown-linux-gnu -lpthread -ldl -fuse-ld=gold
tools/swift-reflection-dump/CMakeFiles/swift-reflection-dump.dir/swift-reflection-dump.cpp.o
-o bin/swift-reflection-dump
-L/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/./lib
-lswiftReflection
/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMObject.a
/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMSupport.a
/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMBitReader.a
/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMCore.a
/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMMCParser.a
/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMMC.a
/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMSupport.a
-lrt -ldl -ltinfo -lpthread -lz -lm
-Wl,-rpath,/root/tmp/swiftbuild/build/buildbot_linux/llvm-linux-x86_64/./lib
&& :
tools/swift-reflection-dump/CMakeFiles/swift-reflection-dump.dir/swift-reflection-dump.cpp.o:/root/tmp/swiftbuild/swift/tools/swift-reflection-dump/swift-reflection-dump.cpp:function
swift::remote::TypeDecoder<swift::reflection::TypeRefBuilder>::decodeMangledType(std::shared_ptr<swift::Demangle::Node>
const&): error: undefined reference to
'swift::Demangle::mangleNode(std::shared_ptr<swift::Demangle::Node> const&)'
tools/swift-reflection-dump/CMakeFiles/swift-reflection-dump.dir/swift-reflection-dump.cpp.o:/root/tmp/swiftbuild/swift/tools/swift-reflection-dump/swift-reflection-dump.cpp:function
swift::remote::TypeDecoder<swift::reflection::TypeRefBuilder>::decodeMangledType(std::shared_ptr<swift::Demangle::Node>
const&): error: undefined reference to
'swift::Demangle::mangleNode(std::shared_ptr<swift::Demangle::Node> const&)'
tools/swift-reflection-dump/CMakeFiles/swift-reflection-dump.dir/swift-reflection-dump.cpp.o:/root/tmp/swiftbuild/swift/tools/swift-reflection-dump/swift-reflection-dump.cpp:function
swift::remote::TypeDecoder<swift::reflection::TypeRefBuilder>::decodeMangledNominalType(std::shared_ptr<swift::Demangle::Node>
const&, llvm::Optional<std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > >&,
swift::reflection::TypeRef const*&): error: undefined reference to
'swift::Demangle::mangleNode(std::shared_ptr<swift::Demangle::Node> const&)'
clang-3.8: error: linker command failed with exit code 1 (use -v to see
invocation)
[7/107] cd /root/tmp/swiftbuild/swift/stdlib/public/core &&
/usr/bin/cmake3 -E make_directory
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8
&& /usr/bin/python /root/tmp/swiftbuild/swift/utils/gyb
-DunicodeGraphemeBreakPropertyFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakProperty.txt
-DunicodeGraphemeBreakTestFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakTest.txt
-DCMAKE_SIZEOF_VOID_P=8 -o
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/RangeReplaceableCollection.swift.tmp
RangeReplaceableCollection.swift.gyb && /usr/bin/cmake3 -E
copy_if_different
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/RangeReplaceableCollection.swift.tmp
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/RangeReplaceableCollection.swift
&& /usr/bin/cmake3 -E remove
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/RangeReplaceableCollection.swift.tmp
[8/107] cd /root/tmp/swiftbuild/swift/stdlib/public/core &&
/usr/bin/cmake3 -E make_directory
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8
&& /usr/bin/python /root/tmp/swiftbuild/swift/utils/gyb
-DunicodeGraphemeBreakPropertyFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakProperty.txt
-DunicodeGraphemeBreakTestFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakTest.txt
-DCMAKE_SIZEOF_VOID_P=8 -o
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Runtime.swift.tmp
Runtime.swift.gyb && /usr/bin/cmake3 -E copy_if_different
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Runtime.swift.tmp
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Runtime.swift
&& /usr/bin/cmake3 -E remove
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Runtime.swift.tmp
[9/107] cd /root/tmp/swiftbuild/swift/stdlib/public/core &&
/usr/bin/cmake3 -E make_directory
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8
&& /usr/bin/python /root/tmp/swiftbuild/swift/utils/gyb
-DunicodeGraphemeBreakPropertyFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakProperty.txt
-DunicodeGraphemeBreakTestFile=/root/tmp/swiftbuild/swift/utils/UnicodeData/GraphemeBreakTest.txt
-DCMAKE_SIZEOF_VOID_P=8 -o
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Range.swift.tmp
Range.swift.gyb && /usr/bin/cmake3 -E copy_if_different
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Range.swift.tmp
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Range.swift
&& /usr/bin/cmake3 -E remove
/root/tmp/swiftbuild/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/8/Range.swift.tmp
ninja: build stopped: subcommand failed.
utils/build-script: fatal error: command terminated with a non-zero exit
status 1, aborting
utils/build-script: fatal error: command terminated with a non-zero exit
status 1, aborting
/swift-work

_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users