==> Making package: swiftc 1.0.0_master-1 (Fri Dec 4 09:01:03 EST 2015) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Found 0001-Miscellaneous-fixes-for-Python-3-compatibility.patch -> Found headerpaths.patch -> Updating swift git repo... Fetching origin From http://github.com/apple/swift 108af7d..0b487bd refs/pull/90/head -> refs/pull/90/head + ba318ec...8dd3be5 refs/pull/90/merge -> refs/pull/90/merge (forced update) -> Updating llvm git repo... Fetching origin -> Updating clang git repo... Fetching origin -> Updating lldb git repo... Fetching origin -> Updating cmark git repo... Fetching origin -> Updating llbuild git repo... Fetching origin -> Updating swiftpm git repo... Fetching origin -> Updating swift-corelibs-xctest git repo... Fetching origin -> Updating swift-corelibs-foundation git repo... Fetching origin ==> Validating source files with md5sums... 0001-Miscellaneous-fixes-for-Python-3-compatibility.patch ... Skipped headerpaths.patch ... Skipped swift ... Skipped llvm ... Skipped clang ... Skipped lldb ... Skipped cmark ... Skipped llbuild ... Skipped swiftpm ... Skipped swift-corelibs-xctest ... Skipped swift-corelibs-foundation ... Skipped ==> Extracting sources... -> Creating working copy of swift git repo... Reset branch 'makepkg' -> Creating working copy of swift-llvm git repo... Reset branch 'makepkg' -> Creating working copy of swift-clang git repo... Reset branch 'makepkg' -> Creating working copy of swift-lldb git repo... Reset branch 'makepkg' -> Creating working copy of swift-cmark git repo... Reset branch 'makepkg' -> Creating working copy of swift-llbuild git repo... Reset branch 'makepkg' -> Creating working copy of swift-package-manager git repo... Reset branch 'makepkg' -> Creating working copy of swift-corelibs-xctest git repo... Reset branch 'makepkg' -> Creating working copy of swift-corelibs-foundation git repo... Reset branch 'makepkg' ==> Starting prepare()... /home/ryan/Source/swift/src/0001-Miscellaneous-fixes-for-Python-3-compatibility.patch:923: trailing whitespace. print('}') warning: 1 line adds whitespace errors. ==> Removing existing $pkgdir/ directory... ==> Starting build()... Building the standard library for: swift-stdlib-linux-x86_64 Running Swift tests for: check-swift-linux-x86_64 cmark: using standard linker ++ cmake_config_opt cmark ++ product=cmark ++ [[ Ninja == \X\c\o\d\e ]] + /usr/bin/cmake --build /home/ryan/Source/swift/src/build/Ninja-ReleaseAssert/cmark-linux-x86_64 -- all ninja: no work to do. llvm: using standard linker ++ cmake_config_opt llvm ++ product=llvm ++ [[ Ninja == \X\c\o\d\e ]] + /usr/bin/cmake --build /home/ryan/Source/swift/src/build/Ninja-ReleaseAssert/llvm-linux-x86_64 -- all [1/15] Generating SVNVersion.inc [2/15] Running utility command for scan-view [3/15] Running utility command for scan-build swift: using standard linker ++ cmake_config_opt swift ++ product=swift ++ [[ Ninja == \X\c\o\d\e ]] + /usr/bin/cmake --build /home/ryan/Source/swift/src/build/Ninja-ReleaseAssert/swift-linux-x86_64 -- all swift-stdlib-linux-x86_64 [1/76] Generating UnicodeExtendedGraphemeClusters.cpp from UnicodeExtendedGraphemeClusters.cpp.gyb with ptr size = 8 [2/76] Generating SortedCFDatabase.def from SortedCFDatabase.def.gyb with ptr size = [3/76] Generating CollectionAlgorithms.swift from CollectionAlgorithms.swift.gyb with ptr size = 8 [4/76] Symlinking Clang resource headers into /home/ryan/Source/swift/src/build/Ninja-ReleaseAssert/swift-linux-x86_64/./lib/swift/clang [5/76] Generating UnicodeExtendedGraphemeClusters.cpp from UnicodeExtendedGraphemeClusters.cpp.gyb with ptr size = 8 [6/76] Generating IntegerParsing.swift from IntegerParsing.swift.gyb with ptr size = 8 [7/76] Generating Flatten.swift from Flatten.swift.gyb with ptr size = 8 [8/74] Generating Interval.swift from Interval.swift.gyb with ptr size = 8 [9/74] Generating FixedPoint.swift from FixedPoint.swift.gyb with ptr size = 8 [10/74] Generating BuiltinMath.swift from BuiltinMath.swift.gyb with ptr size = 8 [11/74] Generating Arrays.swift from Arrays.swift.gyb with ptr size = 8 [12/74] Generating FloatingPoint.swift from FloatingPoint.swift.gyb with ptr size = 8 [13/74] Generating FloatingPointOperations.swift from FloatingPointOperations.swift.gyb with ptr size = 8 [14/74] Generating FloatingPointParsing.swift from FloatingPointParsing.swift.gyb with ptr size = 8 [15/74] Generating HashedCollections.swift from HashedCollections.swift.gyb with ptr size = 8 [16/74] Generating IntegerArithmetic.swift from IntegerArithmetic.swift.gyb with ptr size = 8 [17/74] Generating Mirrors.swift from Mirrors.swift.gyb with ptr size = 8 [18/74] Generating RangeMirrors.swift from RangeMirrors.swift.gyb with ptr size = 8 [19/74] Generating Runtime.swift from Runtime.swift.gyb with ptr size = 8 [20/74] Generating SequenceAlgorithms.swift from SequenceAlgorithms.swift.gyb with ptr size = 8 [21/74] Generating Slice.swift from Slice.swift.gyb with ptr size = 8 [22/74] Generating Sort.swift from Sort.swift.gyb with ptr size = 8 [23/74] Generating StrideMirrors.swift from StrideMirrors.swift.gyb with ptr size = 8 [24/73] Generating SwiftRevision.inc [25/73] Generating ClangRevision.inc [26/73] Generating LLVMRevision.inc [27/64] Generating StringInterpolation.swift from StringInterpolation.swift.gyb with ptr size = 8 [28/64] Generating StringUTFViewsMirrors.swift from StringUTFViewsMirrors.swift.gyb with ptr size = 8 [29/64] Generating UnicodeTrie.swift from UnicodeTrie.swift.gyb with ptr size = 8 [30/64] Generating UnavailableStringAPIs.swift from UnavailableStringAPIs.swift.gyb with ptr size = 8 [31/64] Generating UnsafeBufferPointer.swift from UnsafeBufferPointer.swift.gyb with ptr size = 8 [32/64] Generating UnsafePointer.swift from UnsafePointer.swift.gyb with ptr size = 8 [33/64] Generating CollectionMirrors.swift from CollectionMirrors.swift.gyb with ptr size = 8 [34/64] Generating ExistentialCollection.swift from ExistentialCollection.swift.gyb with ptr size = 8 [35/64] Copying Glibc module to /home/ryan/Source/swift/src/build/Ninja-ReleaseAssert/swift-linux-x86_64/./lib/swift/glibc [36/64] Generating LoggingWrappers.swift from LoggingWrappers.swift.gyb with ptr size = 8 [37/64] Generating CheckMutableCollectionType.swift from CheckMutableCollectionType.swift.gyb with ptr size = 8 [38/64] Generating StdlibUnittest.swift from StdlibUnittest.swift.gyb with ptr size = 8 [39/60] Linking CXX shared library lib/swift/linux/x86_64/libswiftCore.so FAILED: : && /usr/bin/clang++ -fPIC -fno-stack-protector -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wcovered-switch-default -Wnon-virtual-dtor -Werror=date-time -std=c++11 -fcolor-diagnostics -ffunction-sections -fdata-sections -Wdocumentation -Wimplicit-fallthrough -Wunreachable-code -Woverloaded-virtual -O3 -Wl,-O1,--sort-common,--as-needed,-z,relro -Wl,-z,defs -target x86_64-unknown-linux-gnu -isysroot / -lpthread -ldl -Xlinker -T -Xlinker /home/ryan/Source/swift/src/build/Ninja-ReleaseAssert/swift-linux-x86_64/./lib/swift/linux/x86_64/swift.ld -L/home/ryan/Source/swift/src/build/Ninja-ReleaseAssert/swift-linux-x86_64/./lib/swift/linux/x86_64 -L/home/ryan/Source/swift/src/build/Ninja-ReleaseAssert/swift-linux-x86_64/./bin/../lib/swift/linux/x86_64 -L/home/ryan/Source/swift/src/build/Ninja-ReleaseAssert/swift-linux-x86_64/./bin/../lib/swift/linux -shared -Wl,-soname,libswiftCore.so -o lib/swift/linux/x86_64/libswiftCore.so stdlib/public/core/linux/x86_64/Swift.o -L/home/ryan/Source/swift/src/build/Ninja-ReleaseAssert/llvm-linux-x86_64/lib -L/home/ryan/Source/swift/src/build/Ninja-ReleaseAssert/llvm-linux-x86_64/./lib lib/swift/linux/x86_64/libswiftRuntime.a lib/swift/linux/x86_64/libswiftStdlibStubs.a -licuuc -licui18n -lbsd -Wl,-rpath,"\$ORIGIN:/usr/lib/swift/linux" && : lib/swift/linux/x86_64/libswiftRuntime.a(Casting.cpp.o): In function `swift_getTypeName': /home/ryan/Source/swift/src/swift/stdlib/public/runtime/Casting.cpp:(.text.swift_getTypeName+0xde): undefined reference to `pthread_rwlock_rdlock' /home/ryan/Source/swift/src/swift/stdlib/public/runtime/Casting.cpp:(.text.swift_getTypeName+0x17c): undefined reference to `pthread_rwlock_unlock' /home/ryan/Source/swift/src/swift/stdlib/public/runtime/Casting.cpp:(.text.swift_getTypeName+0x184): undefined reference to `pthread_rwlock_wrlock' /home/ryan/Source/swift/src/swift/stdlib/public/runtime/Casting.cpp:(.text.swift_getTypeName+0x23a): undefined reference to `pthread_rwlock_unlock' /home/ryan/Source/swift/src/swift/stdlib/public/runtime/Casting.cpp:(.text.swift_getTypeName+0x2c8): undefined reference to `pthread_rwlock_unlock' lib/swift/linux/x86_64/libswiftRuntime.a(Casting.cpp.o): In function `_addImageProtocolConformances(dl_phdr_info*, unsigned long, void*)': /home/ryan/Source/swift/src/swift/stdlib/public/runtime/Casting.cpp:(.text._ZL29_addImageProtocolConformancesP12dl_phdr_infomPv+0x1e): undefined reference to `dlopen' /home/ryan/Source/swift/src/swift/stdlib/public/runtime/Casting.cpp:(.text._ZL29_addImageProtocolConformancesP12dl_phdr_infomPv+0x30): undefined reference to `dlsym' /home/ryan/Source/swift/src/swift/stdlib/public/runtime/Casting.cpp:(.text._ZL29_addImageProtocolConformancesP12dl_phdr_infomPv+0x55): undefined reference to `dlclose' clang-3.7: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed. swift/utils/build-script: command terminated with a non-zero exit status 1, aborting ==> ERROR: A failure occurred in build(). Aborting...