uraimo / buildSwiftOnARM

All you need to build Swift on a RaspberryPi or other ARM boards, updated to Swift 5.1.5
489 stars 37 forks source link

LinuxBrew: /usr/bin/ld: warning: libicuuc.so.61, needed #18

Closed Hackberger closed 6 years ago

Hackberger commented 6 years ago

Hello!

I am running into slight issue at presumably near the end of the build process. I appreciate any help and directions given.

Many thanks in advance!

proc/cpuinfo:

processor   : 0 through 3
model name  : ARMv7 Processor rev 4 (v7l)
BogoMIPS    : 38.40
Features    : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part    : 0xd03
CPU revision    : 4

Hardware    : BCM2835
Revision    : a02082

This is how it end:

[812/868] Performing configure step for 'libdispatch'
-- The C compiler identification is Clang 5.0.0
-- The CXX compiler identification is Clang 5.0.0
-- Check for working C compiler: /home/pi/swift/build/buildbot_linux/llvm-linux-armv7/bin/clang
-- Check for working C compiler: /home/pi/swift/build/buildbot_linux/llvm-linux-armv7/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /home/pi/swift/build/buildbot_linux/llvm-linux-armv7/bin/clang++
-- Check for working CXX compiler: /home/pi/swift/build/buildbot_linux/llvm-linux-armv7/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE  
-- Looking for __GNU_LIBRARY__
-- Looking for __GNU_LIBRARY__ - found
-- Performing Test __BUILTIN_TRAP
-- Performing Test __BUILTIN_TRAP - Success
-- Found LibRT: /usr/lib/arm-linux-gnueabihf/librt.so  
-- Looking for _pthread_workqueue_init
-- Looking for _pthread_workqueue_init - not found
-- Looking for getprogname
-- Looking for getprogname - not found
-- Looking for mach_absolute_time
-- Looking for mach_absolute_time - not found
-- Looking for mach_approximate_time
-- Looking for mach_approximate_time - not found
-- Looking for mach_port_construct
-- Looking for mach_port_construct - not found
-- Looking for malloc_create_zone
-- Looking for malloc_create_zone - not found
-- Looking for pthread_key_init_np
-- Looking for pthread_key_init_np - not found
-- Looking for pthread_main_np
-- Looking for pthread_main_np - not found
-- Looking for pthread_workqueue_setdispatch_np
-- Looking for pthread_workqueue_setdispatch_np - not found
-- Looking for strlcpy
-- Looking for strlcpy - not found
-- Looking for sysconf
-- Looking for sysconf - found
-- Looking for arc4random
-- Looking for arc4random - not found
-- Found PkgConfig: /home/linuxbrew/.linuxbrew/bin/pkg-config (found version "0.29.2") 
-- Checking for module 'libbsd-overlay'
--   Found libbsd-overlay, version 0.8.3
-- Looking for include file TargetConditionals.h
-- Looking for include file TargetConditionals.h - not found
-- Looking for include file dlfcn.h
-- Looking for include file dlfcn.h - found
-- Looking for include file fcntl.h
-- Looking for include file fcntl.h - found
-- Looking for include file inttypes.h
-- Looking for include file inttypes.h - found
-- Looking for include file libkern/OSAtomic.h
-- Looking for include file libkern/OSAtomic.h - not found
-- Looking for include file libkern/OSCrossEndian.h
-- Looking for include file libkern/OSCrossEndian.h - not found
-- Looking for include file libproc_internal.h
-- Looking for include file libproc_internal.h - not found
-- Looking for include file mach/mach.h
-- Looking for include file mach/mach.h - not found
-- Looking for include file malloc/malloc.h
-- Looking for include file malloc/malloc.h - not found
-- Looking for include file memory.h
-- Looking for include file memory.h - found
-- Looking for include file pthread/qos.h
-- Looking for include file pthread/qos.h - not found
-- Looking for include file pthread/workqueue_private.h
-- Looking for include file pthread/workqueue_private.h - not found
-- Looking for include file pthread_machdep.h
-- Looking for include file pthread_machdep.h - not found
-- Looking for include file pthread_np.h
-- Looking for include file pthread_np.h - not found
-- Looking for include file pthread_workqueue.h
-- Looking for include file pthread_workqueue.h - not found
-- Looking for include file stdint.h
-- Looking for include file stdint.h - found
-- Looking for include file stdlib.h
-- Looking for include file stdlib.h - found
-- Looking for include file string.h
-- Looking for include file string.h - found
-- Looking for include file strings.h
-- Looking for include file strings.h - found
-- Looking for include file sys/guarded.h
-- Looking for include file sys/guarded.h - not found
-- Looking for include file sys/stat.h
-- Looking for include file sys/stat.h - found
-- Looking for include file sys/types.h
-- Looking for include file sys/types.h - found
-- Looking for include file unistd.h
-- Looking for include file unistd.h - found
-- Looking for include file objc/objc-internal.h
-- Looking for include file objc/objc-internal.h - not found
-- Looking for sem_init in pthread
-- Looking for sem_init in pthread - found
-- Looking for CLOCK_UPTIME
-- Looking for CLOCK_UPTIME - not found
-- Looking for CLOCK_UPTIME_FAST
-- Looking for CLOCK_UPTIME_FAST - not found
-- Looking for CLOCK_MONOTONIC
-- Looking for CLOCK_MONOTONIC - found
-- Looking for CLOCK_REALTIME
-- Looking for CLOCK_REALTIME - found
-- Looking for CLOCK_MONOTONIC_COARSE
-- Looking for CLOCK_MONOTONIC_COARSE - found
-- Looking for FD_COPY
-- Looking for FD_COPY - not found
-- Looking for NOTE_LOWAT
-- Looking for NOTE_LOWAT - not found
-- Looking for NOTE_NONE
-- Looking for NOTE_NONE - not found
-- Looking for NOTE_REAP
-- Looking for NOTE_REAP - not found
-- Looking for NOTE_REVOKE
-- Looking for NOTE_REVOKE - not found
-- Looking for NOTE_SIGNAL
-- Looking for NOTE_SIGNAL - not found
-- Looking for POSIX_SPAWN_START_SUSPENDED
-- Looking for POSIX_SPAWN_START_SUSPENDED - not found
-- Looking for SIGEMT
-- Looking for SIGEMT - not found
-- Looking for VQ_DESIRED_DISK
-- Looking for VQ_DESIRED_DISK - not found
-- Looking for VQ_NEARLOWDISK
-- Looking for VQ_NEARLOWDISK - not found
-- Looking for VQ_QUOTA
-- Looking for VQ_QUOTA - not found
-- Looking for VQ_UPDATE
-- Looking for VQ_UPDATE - not found
-- Looking for VQ_VERYLOWDISK
-- Looking for VQ_VERYLOWDISK - not found
-- Looking for program_invocation_name
-- Looking for program_invocation_name - found
-- Looking for __printflike
-- Looking for __printflike - found
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pi/swift/build/buildbot_linux/libdispatch-linux-armv7
[815/868] Compiling /home/pi/swift/build/buildbot_linux/swift-linux-armv7/stdlib/public/core/linux/armv7/Swift.o
/home/pi/swift/swift/stdlib/public/core/Mirrors.swift.gyb:48:20: warning: 'CustomPlaygroundQuickLookable' is deprecated: CustomPlaygroundQuickLookable will be removed in a future Swift version. For customizing how types are presented in playgrounds, use CustomPlaygroundDisplayConvertible instead.
extension String : CustomPlaygroundQuickLookable {
                   ^
/home/pi/swift/swift/stdlib/public/core/Substring.swift.gyb:456:21: warning: 'CharacterView' is deprecated: Please use String or Substring directly
extension Substring.CharacterView : BidirectionalCollection {
                    ^
/home/pi/swift/swift/stdlib/public/core/Mirror.swift:745:11: warning: 'PlaygroundQuickLook' is deprecated: PlaygroundQuickLook will be removed in a future Swift version. For customizing how types are presented in playgrounds, use CustomPlaygroundDisplayConvertible instead.
extension PlaygroundQuickLook {
          ^
/home/pi/swift/swift/stdlib/public/core/Mirrors.swift.gyb:48:23: warning: 'CustomPlaygroundQuickLookable' is deprecated: CustomPlaygroundQuickLookable will be removed in a future Swift version. For customizing how types are presented in playgrounds, use CustomPlaygroundDisplayConvertible instead.
extension Character : CustomPlaygroundQuickLookable {
                      ^
/home/pi/swift/swift/stdlib/public/core/Mirrors.swift.gyb:48:18: warning: 'CustomPlaygroundQuickLookable' is deprecated: CustomPlaygroundQuickLookable will be removed in a future Swift version. For customizing how types are presented in playgrounds, use CustomPlaygroundDisplayConvertible instead.
extension Bool : CustomPlaygroundQuickLookable {
                 ^
/home/pi/swift/swift/stdlib/public/core/Mirrors.swift.gyb:48:17: warning: 'CustomPlaygroundQuickLookable' is deprecated: CustomPlaygroundQuickLookable will be removed in a future Swift version. For customizing how types are presented in playgrounds, use CustomPlaygroundDisplayConvertible instead.
extension Int : CustomPlaygroundQuickLookable {
                ^
/home/pi/swift/swift/stdlib/public/core/Mirrors.swift.gyb:48:19: warning: 'CustomPlaygroundQuickLookable' is deprecated: CustomPlaygroundQuickLookable will be removed in a future Swift version. For customizing how types are presented in playgrounds, use CustomPlaygroundDisplayConvertible instead.
extension Int32 : CustomPlaygroundQuickLookable {
                  ^
/home/pi/swift/swift/stdlib/public/core/Mirrors.swift.gyb:48:20: warning: 'CustomPlaygroundQuickLookable' is deprecated: CustomPlaygroundQuickLookable will be removed in a future Swift version. For customizing how types are presented in playgrounds, use CustomPlaygroundDisplayConvertible instead.
extension UInt32 : CustomPlaygroundQuickLookable {
                   ^
/home/pi/swift/swift/stdlib/public/core/Mirrors.swift.gyb:48:20: warning: 'CustomPlaygroundQuickLookable' is deprecated: CustomPlaygroundQuickLookable will be removed in a future Swift version. For customizing how types are presented in playgrounds, use CustomPlaygroundDisplayConvertible instead.
extension UInt16 : CustomPlaygroundQuickLookable {
                   ^
/home/pi/swift/swift/stdlib/public/core/Mirrors.swift.gyb:48:19: warning: 'CustomPlaygroundQuickLookable' is deprecated: CustomPlaygroundQuickLookable will be removed in a future Swift version. For customizing how types are presented in playgrounds, use CustomPlaygroundDisplayConvertible instead.
extension UInt8 : CustomPlaygroundQuickLookable {
                  ^
/home/pi/swift/swift/stdlib/public/core/StringUnicodeScalarView.swift:510:38: warning: 'CustomPlaygroundQuickLookable' is deprecated: CustomPlaygroundQuickLookable will be removed in a future Swift version. For customizing how types are presented in playgrounds, use CustomPlaygroundDisplayConvertible instead.
extension String.UnicodeScalarView : CustomPlaygroundQuickLookable {
                                     ^
/home/pi/swift/swift/stdlib/public/core/StringUTF16.swift:441:30: warning: 'CustomPlaygroundQuickLookable' is deprecated: CustomPlaygroundQuickLookable will be removed in a future Swift version. For customizing how types are presented in playgrounds, use CustomPlaygroundDisplayConvertible instead.
extension String.UTF16View : CustomPlaygroundQuickLookable {
                             ^
/home/pi/swift/swift/stdlib/public/core/StringUTF8.swift:660:29: warning: 'CustomPlaygroundQuickLookable' is deprecated: CustomPlaygroundQuickLookable will be removed in a future Swift version. For customizing how types are presented in playgrounds, use CustomPlaygroundDisplayConvertible instead.
extension String.UTF8View : CustomPlaygroundQuickLookable {
                            ^
/home/pi/swift/swift/stdlib/public/core/Mirrors.swift.gyb:48:20: warning: 'CustomPlaygroundQuickLookable' is deprecated: CustomPlaygroundQuickLookable will be removed in a future Swift version. For customizing how types are presented in playgrounds, use CustomPlaygroundDisplayConvertible instead.
extension UInt64 : CustomPlaygroundQuickLookable {
                   ^
/home/pi/swift/swift/stdlib/public/core/Mirrors.swift.gyb:48:18: warning: 'CustomPlaygroundQuickLookable' is deprecated: CustomPlaygroundQuickLookable will be removed in a future Swift version. For customizing how types are presented in playgrounds, use CustomPlaygroundDisplayConvertible instead.
extension UInt : CustomPlaygroundQuickLookable {
                 ^
/home/pi/swift/swift/stdlib/public/core/Substring.swift.gyb:366:23: warning: 'CustomPlaygroundQuickLookable' is deprecated: CustomPlaygroundQuickLookable will be removed in a future Swift version. For customizing how types are presented in playgrounds, use CustomPlaygroundDisplayConvertible instead.
extension Substring : CustomPlaygroundQuickLookable {
                      ^
/home/pi/swift/swift/stdlib/public/core/StringUnicodeScalarView.swift:565:10: warning: unavailable subscript 'subscript' was used to satisfy a requirement of protocol 'Collection'
  public subscript(r: Range<Index>) -> String.UnicodeScalarView.SubSequence {
         ^
/home/pi/swift/swift/stdlib/public/core/Collection.swift:463:3: note: requirement 'subscript' declared here
  subscript(bounds: Range<Index>) -> SubSequence { get }
  ^
/home/pi/swift/swift/stdlib/public/core/StringUTF16.swift:588:10: warning: unavailable subscript 'subscript' was used to satisfy a requirement of protocol 'Collection'
  public subscript(r: Range<Index>) -> String.UTF16View.SubSequence {
         ^
/home/pi/swift/swift/stdlib/public/core/Collection.swift:463:3: note: requirement 'subscript' declared here
  subscript(bounds: Range<Index>) -> SubSequence { get }
  ^
/home/pi/swift/swift/stdlib/public/core/StringUTF8.swift:714:10: warning: unavailable subscript 'subscript' was used to satisfy a requirement of protocol 'Collection'
  public subscript(r: Range<Index>) -> String.UTF8View.SubSequence {
         ^
/home/pi/swift/swift/stdlib/public/core/Collection.swift:463:3: note: requirement 'subscript' declared here
  subscript(bounds: Range<Index>) -> SubSequence { get }
  ^
/home/pi/swift/swift/stdlib/public/core/Substring.swift.gyb:677:10: warning: unavailable subscript 'subscript' was used to satisfy a requirement of protocol 'Collection'
  public subscript(r: Range<Index>) -> Substring {
         ^
/home/pi/swift/swift/stdlib/public/core/Collection.swift:463:3: note: requirement 'subscript' declared here
  subscript(bounds: Range<Index>) -> SubSequence { get }
  ^
/home/pi/swift/swift/stdlib/public/core/StringUnicodeScalarView.swift:565:10: warning: unavailable subscript 'subscript' was used to satisfy a requirement of protocol 'BidirectionalCollection'
  public subscript(r: Range<Index>) -> String.UnicodeScalarView.SubSequence {
         ^
/home/pi/swift/swift/stdlib/public/core/BidirectionalCollection.swift:128:3: note: requirement 'subscript' declared here
  subscript(bounds: Range<Index>) -> SubSequence { get }
  ^
/home/pi/swift/swift/stdlib/public/core/StringUTF16.swift:588:10: warning: unavailable subscript 'subscript' was used to satisfy a requirement of protocol 'BidirectionalCollection'
  public subscript(r: Range<Index>) -> String.UTF16View.SubSequence {
         ^
/home/pi/swift/swift/stdlib/public/core/BidirectionalCollection.swift:128:3: note: requirement 'subscript' declared here
  subscript(bounds: Range<Index>) -> SubSequence { get }
  ^
/home/pi/swift/swift/stdlib/public/core/StringUTF8.swift:714:10: warning: unavailable subscript 'subscript' was used to satisfy a requirement of protocol 'BidirectionalCollection'
  public subscript(r: Range<Index>) -> String.UTF8View.SubSequence {
         ^
/home/pi/swift/swift/stdlib/public/core/BidirectionalCollection.swift:128:3: note: requirement 'subscript' declared here
  subscript(bounds: Range<Index>) -> SubSequence { get }
  ^
/home/pi/swift/swift/stdlib/public/core/Substring.swift.gyb:698:10: warning: unavailable subscript 'subscript' was used to satisfy a requirement of protocol 'Collection'
  public subscript(r: Range<Index>) -> Substring {
         ^
/home/pi/swift/swift/stdlib/public/core/Collection.swift:463:3: note: requirement 'subscript' declared here
  subscript(bounds: Range<Index>) -> SubSequence { get }
  ^
/home/pi/swift/swift/stdlib/public/core/Substring.swift.gyb:677:10: warning: unavailable subscript 'subscript' was used to satisfy a requirement of protocol 'BidirectionalCollection'
  public subscript(r: Range<Index>) -> Substring {
         ^
/home/pi/swift/swift/stdlib/public/core/BidirectionalCollection.swift:128:3: note: requirement 'subscript' declared here
  subscript(bounds: Range<Index>) -> SubSequence { get }
  ^
/home/pi/swift/swift/stdlib/public/core/Substring.swift.gyb:698:10: warning: unavailable subscript 'subscript' was used to satisfy a requirement of protocol 'BidirectionalCollection'
  public subscript(r: Range<Index>) -> Substring {
         ^
/home/pi/swift/swift/stdlib/public/core/BidirectionalCollection.swift:128:3: note: requirement 'subscript' declared here
  subscript(bounds: Range<Index>) -> SubSequence { get }
  ^
/home/pi/swift/swift/stdlib/public/core/Mirrors.swift.gyb:48:19: warning: 'CustomPlaygroundQuickLookable' is deprecated: CustomPlaygroundQuickLookable will be removed in a future Swift version. For customizing how types are presented in playgrounds, use CustomPlaygroundDisplayConvertible instead.
extension Float : CustomPlaygroundQuickLookable {
                  ^
/home/pi/swift/swift/stdlib/public/core/Mirrors.swift.gyb:48:20: warning: 'CustomPlaygroundQuickLookable' is deprecated: CustomPlaygroundQuickLookable will be removed in a future Swift version. For customizing how types are presented in playgrounds, use CustomPlaygroundDisplayConvertible instead.
extension Double : CustomPlaygroundQuickLookable {
                   ^
/home/pi/swift/swift/stdlib/public/core/UnsafePointer.swift.gyb:993:34: warning: 'CustomPlaygroundQuickLookable' is deprecated: CustomPlaygroundQuickLookable will be removed in a future Swift version. For customizing how types are presented in playgrounds, use CustomPlaygroundDisplayConvertible instead.
extension UnsafeMutablePointer : CustomPlaygroundQuickLookable {
                                 ^
/home/pi/swift/swift/stdlib/public/core/UnsafePointer.swift.gyb:993:27: warning: 'CustomPlaygroundQuickLookable' is deprecated: CustomPlaygroundQuickLookable will be removed in a future Swift version. For customizing how types are presented in playgrounds, use CustomPlaygroundDisplayConvertible instead.
extension UnsafePointer : CustomPlaygroundQuickLookable {
                          ^
/home/pi/swift/swift/stdlib/public/core/UnsafeRawPointer.swift.gyb:996:30: warning: 'CustomPlaygroundQuickLookable' is deprecated: CustomPlaygroundQuickLookable will be removed in a future Swift version. For customizing how types are presented in playgrounds, use CustomPlaygroundDisplayConvertible instead.
extension UnsafeRawPointer : CustomPlaygroundQuickLookable {
                             ^
/home/pi/swift/swift/stdlib/public/core/Substring.swift.gyb:545:36: warning: 'CharacterView' is deprecated: Please use String or Substring directly
  public init(_ content: Substring.CharacterView) {
                                   ^
/home/pi/swift/swift/stdlib/public/core/Substring.swift.gyb:677:10: warning: unavailable subscript 'subscript' was used to satisfy a requirement of protocol 'RangeReplaceableCollection'
  public subscript(r: Range<Index>) -> Substring {
         ^
/home/pi/swift/swift/stdlib/public/core/RangeReplaceableCollection.swift:361:3: note: requirement 'subscript' declared here
  subscript(bounds: Range<Index>) -> SubSequence { get }
  ^
/home/pi/swift/swift/stdlib/public/core/Substring.swift.gyb:517:26: warning: 'CharacterView' is deprecated: Please use String or Substring directly
  public init(_ content: CharacterView) {
                         ^
/home/pi/swift/swift/stdlib/public/core/Substring.swift.gyb:698:10: warning: unavailable subscript 'subscript' was used to satisfy a requirement of protocol 'RangeReplaceableCollection'
  public subscript(r: Range<Index>) -> Substring {
         ^
/home/pi/swift/swift/stdlib/public/core/RangeReplaceableCollection.swift:361:3: note: requirement 'subscript' declared here
  subscript(bounds: Range<Index>) -> SubSequence { get }
  ^
/home/pi/swift/swift/stdlib/public/core/Mirrors.swift.gyb:48:28: warning: 'CustomPlaygroundQuickLookable' is deprecated: CustomPlaygroundQuickLookable will be removed in a future Swift version. For customizing how types are presented in playgrounds, use CustomPlaygroundDisplayConvertible instead.
extension Unicode.Scalar : CustomPlaygroundQuickLookable {
                           ^
/home/pi/swift/swift/stdlib/public/core/Mirrors.swift.gyb:48:18: warning: 'CustomPlaygroundQuickLookable' is deprecated: CustomPlaygroundQuickLookable will be removed in a future Swift version. For customizing how types are presented in playgrounds, use CustomPlaygroundDisplayConvertible instead.
extension Int8 : CustomPlaygroundQuickLookable {
                 ^
/home/pi/swift/swift/stdlib/public/core/UnsafeRawPointer.swift.gyb:996:37: warning: 'CustomPlaygroundQuickLookable' is deprecated: CustomPlaygroundQuickLookable will be removed in a future Swift version. For customizing how types are presented in playgrounds, use CustomPlaygroundDisplayConvertible instead.
extension UnsafeMutableRawPointer : CustomPlaygroundQuickLookable {
                                    ^
/home/pi/swift/swift/stdlib/public/core/Mirrors.swift.gyb:48:19: warning: 'CustomPlaygroundQuickLookable' is deprecated: CustomPlaygroundQuickLookable will be removed in a future Swift version. For customizing how types are presented in playgrounds, use CustomPlaygroundDisplayConvertible instead.
extension Int16 : CustomPlaygroundQuickLookable {
                  ^
/home/pi/swift/swift/stdlib/public/core/Mirrors.swift.gyb:48:19: warning: 'CustomPlaygroundQuickLookable' is deprecated: CustomPlaygroundQuickLookable will be removed in a future Swift version. For customizing how types are presented in playgrounds, use CustomPlaygroundDisplayConvertible instead.
extension Int64 : CustomPlaygroundQuickLookable {
                  ^
/home/pi/swift/swift/stdlib/public/core/ReflectionLegacy.swift:62:24: warning: 'PlaygroundQuickLook' is deprecated: PlaygroundQuickLook will be removed in a future Swift version. For customizing how types are presented in playgrounds, use CustomPlaygroundDisplayConvertible instead.
  var quickLookObject: PlaygroundQuickLook? { get }
                       ^
/home/pi/swift/swift/stdlib/public/core/ReflectionLegacy.swift:165:33: warning: 'PlaygroundQuickLook' is deprecated: PlaygroundQuickLook will be removed in a future Swift version. For customizing how types are presented in playgrounds, use CustomPlaygroundDisplayConvertible instead.
  internal var quickLookObject: PlaygroundQuickLook? { return nil }
                                ^
/home/pi/swift/swift/stdlib/public/core/ReflectionLegacy.swift:218:33: warning: 'PlaygroundQuickLook' is deprecated: PlaygroundQuickLook will be removed in a future Swift version. For customizing how types are presented in playgrounds, use CustomPlaygroundDisplayConvertible instead.
  internal var quickLookObject: PlaygroundQuickLook? { return nil }
                                ^
/home/pi/swift/swift/stdlib/public/core/ReflectionLegacy.swift:266:33: warning: 'PlaygroundQuickLook' is deprecated: PlaygroundQuickLook will be removed in a future Swift version. For customizing how types are presented in playgrounds, use CustomPlaygroundDisplayConvertible instead.
  internal var quickLookObject: PlaygroundQuickLook? { return nil }
                                ^
/home/pi/swift/swift/stdlib/public/core/ReflectionLegacy.swift:330:33: warning: 'PlaygroundQuickLook' is deprecated: PlaygroundQuickLook will be removed in a future Swift version. For customizing how types are presented in playgrounds, use CustomPlaygroundDisplayConvertible instead.
  internal var quickLookObject: PlaygroundQuickLook? { return nil }
                                ^
/home/pi/swift/swift/stdlib/public/core/ReflectionLegacy.swift:436:33: warning: 'PlaygroundQuickLook' is deprecated: PlaygroundQuickLook will be removed in a future Swift version. For customizing how types are presented in playgrounds, use CustomPlaygroundDisplayConvertible instead.
  internal var quickLookObject: PlaygroundQuickLook? {
                                ^
/home/pi/swift/swift/stdlib/public/core/ReflectionLegacy.swift:484:33: warning: 'PlaygroundQuickLook' is deprecated: PlaygroundQuickLook will be removed in a future Swift version. For customizing how types are presented in playgrounds, use CustomPlaygroundDisplayConvertible instead.
  internal var quickLookObject: PlaygroundQuickLook? { return nil }
                                ^
/home/pi/swift/swift/stdlib/public/core/ReflectionLegacy.swift:525:33: warning: 'PlaygroundQuickLook' is deprecated: PlaygroundQuickLook will be removed in a future Swift version. For customizing how types are presented in playgrounds, use CustomPlaygroundDisplayConvertible instead.
  internal var quickLookObject: PlaygroundQuickLook? { return nil }
                                ^
/home/pi/swift/swift/stdlib/public/core/StringCharacterView.swift:152:20: warning: 'CharacterView' is deprecated: Please use String or Substring directly
    _ body: (inout CharacterView) -> R
                   ^
/home/pi/swift/swift/stdlib/public/core/StringCharacterView.swift:152:20: warning: 'CharacterView' is deprecated: Please use String or Substring directly
    _ body: (inout CharacterView) -> R
                   ^
/home/pi/swift/swift/stdlib/public/core/StringCharacterView.swift:152:20: warning: 'CharacterView' is deprecated: Please use String or Substring directly
    _ body: (inout CharacterView) -> R
                   ^
/home/pi/swift/swift/stdlib/public/core/StringCharacterView.swift:99:14: warning: 'CharacterView' is deprecated: Please use String or Substring directly
      return CharacterView(self)
             ^
/home/pi/swift/swift/stdlib/public/core/StringCharacterView.swift:102:14: warning: 'init' is deprecated: Please use String or Substring directly
      self = String(newValue)
             ^
/home/pi/swift/swift/stdlib/public/core/StringUnicodeScalarView.swift:565:10: warning: unavailable subscript 'subscript' was used to satisfy a requirement of protocol 'RangeReplaceableCollection'
  public subscript(r: Range<Index>) -> String.UnicodeScalarView.SubSequence {
         ^
/home/pi/swift/swift/stdlib/public/core/RangeReplaceableCollection.swift:361:3: note: requirement 'subscript' declared here
  subscript(bounds: Range<Index>) -> SubSequence { get }
  ^
/home/pi/swift/swift/stdlib/public/core/String.swift:158:26: warning: 'CharacterView' is deprecated: Please use String or Substring directly
    return String(String.CharacterView(self))
                         ^
/home/pi/swift/swift/stdlib/public/core/String.swift:158:12: warning: 'init' is deprecated: Please use String or Substring directly
    return String(String.CharacterView(self))
           ^
/home/pi/swift/swift/stdlib/public/core/Substring.swift.gyb:458:44: warning: 'CharacterView' is deprecated: Please use String or Substring directly
  public typealias SubSequence = Substring.CharacterView
                                           ^
/home/pi/swift/swift/stdlib/public/core/Substring.swift.gyb:463:32: warning: 'CharacterView' is deprecated: Please use String or Substring directly
  internal init(_ base: String.CharacterView, _bounds: Range<Index>) {
                               ^
/home/pi/swift/swift/stdlib/public/core/Substring.swift.gyb:465:32: warning: 'characters' is deprecated: Please use String or Substring directly
      base: String(base._core).characters,
                               ^
/home/pi/swift/swift/stdlib/public/core/Substring.swift.gyb:494:22: warning: 'CharacterView' is deprecated: Please use String or Substring directly
    return Substring.CharacterView(_wholeString.characters, _bounds: r)
                     ^
/home/pi/swift/swift/stdlib/public/core/Substring.swift.gyb:494:49: warning: 'characters' is deprecated: Please use String or Substring directly
    return Substring.CharacterView(_wholeString.characters, _bounds: r)
                                                ^
/home/pi/swift/swift/stdlib/public/core/Substring.swift.gyb:685:12: warning: 'init' is deprecated: Please use String or Substring directly
    return String(characters[bounds])
           ^
/home/pi/swift/swift/stdlib/public/core/Substring.swift.gyb:685:19: warning: 'characters' is deprecated: Please use String or Substring directly
    return String(characters[bounds])
                  ^
/home/pi/swift/swift/stdlib/public/core/Substring.swift.gyb:691:12: warning: 'init' is deprecated: Please use String or Substring directly
    return String(characters[bounds])
           ^
/home/pi/swift/swift/stdlib/public/core/Substring.swift.gyb:691:19: warning: 'characters' is deprecated: Please use String or Substring directly
    return String(characters[bounds])
                  ^
/home/pi/swift/swift/stdlib/public/core/Substring.swift.gyb:705:19: warning: 'characters' is deprecated: Please use String or Substring directly
    return String(characters[bounds])
                  ^
/home/pi/swift/swift/stdlib/public/core/Substring.swift.gyb:711:19: warning: 'characters' is deprecated: Please use String or Substring directly
    return String(characters[bounds])
                  ^
/home/pi/swift/swift/stdlib/public/core/UIntBuffer.swift:201:24: warning: instance method 'removeFirst()' nearly matches defaulted requirement 'removeFirst()' of protocol 'RangeReplaceableCollection'
  public mutating func removeFirst() {
                       ^
/home/pi/swift/swift/stdlib/public/core/UIntBuffer.swift:201:24: note: candidate has non-matching type '<Storage, Element> () -> ()'
  public mutating func removeFirst() {
                       ^
/home/pi/swift/swift/stdlib/public/core/UIntBuffer.swift:201:24: note: move 'removeFirst()' to another extension to silence this warning
  public mutating func removeFirst() {
                       ^
/home/pi/swift/swift/stdlib/public/core/RangeReplaceableCollection.swift:324:17: note: requirement 'removeFirst()' declared here
  mutating func removeFirst() -> Element
                ^
/home/pi/swift/swift/stdlib/public/core/UnsafeRawPointer.swift.gyb:1010:41: warning: 'PlaygroundQuickLook' is deprecated: PlaygroundQuickLook will be removed in a future Swift version. For customizing how types are presented in playgrounds, use CustomPlaygroundDisplayConvertible instead.
  public var customPlaygroundQuickLook: PlaygroundQuickLook {
                                        ^
/home/pi/swift/swift/stdlib/public/core/UnsafeRawPointer.swift.gyb:1010:41: warning: 'PlaygroundQuickLook' is deprecated: PlaygroundQuickLook will be removed in a future Swift version. For customizing how types are presented in playgrounds, use CustomPlaygroundDisplayConvertible instead.
  public var customPlaygroundQuickLook: PlaygroundQuickLook {
                                        ^
/home/pi/swift/swift/stdlib/public/core/UnsafeRawPointer.swift.gyb:1011:18: warning: 'summary' is deprecated: UnsafeMutableRawPointer.customPlaygroundQuickLook will be removed in a future Swift version
    return .text(summary)
                 ^
/home/pi/swift/swift/stdlib/public/core/UnsafeRawPointer.swift.gyb:1011:18: warning: 'summary' is deprecated: UnsafeRawPointer.customPlaygroundQuickLook will be removed in a future Swift version
    return .text(summary)
                 ^
/home/pi/swift/swift/stdlib/public/core/ValidUTF8Buffer.swift:175:24: warning: instance method 'removeFirst()' nearly matches defaulted requirement 'removeFirst()' of protocol 'RangeReplaceableCollection'
  public mutating func removeFirst() {
                       ^
/home/pi/swift/swift/stdlib/public/core/ValidUTF8Buffer.swift:175:24: note: candidate has non-matching type '<Storage> () -> ()'
  public mutating func removeFirst() {
                       ^
/home/pi/swift/swift/stdlib/public/core/ValidUTF8Buffer.swift:175:24: note: move 'removeFirst()' to another extension to silence this warning
  public mutating func removeFirst() {
                       ^
/home/pi/swift/swift/stdlib/public/core/RangeReplaceableCollection.swift:324:17: note: requirement 'removeFirst()' declared here
  mutating func removeFirst() -> Element
                ^
/home/pi/swift/swift/stdlib/public/core/ValidUTF8Buffer.swift:202:24: warning: instance method 'append(contentsOf:)' nearly matches defaulted requirement 'append(contentsOf:)' of protocol 'RangeReplaceableCollection'
  public mutating func append<T>(contentsOf other: _ValidUTF8Buffer<T>) {
                       ^
/home/pi/swift/swift/stdlib/public/core/ValidUTF8Buffer.swift:202:24: note: candidate has non-matching type '<Storage, T> (contentsOf: _ValidUTF8Buffer<T>) -> ()'
  public mutating func append<T>(contentsOf other: _ValidUTF8Buffer<T>) {
                       ^
/home/pi/swift/swift/stdlib/public/core/ValidUTF8Buffer.swift:202:24: note: move 'append(contentsOf:)' to another extension to silence this warning
  public mutating func append<T>(contentsOf other: _ValidUTF8Buffer<T>) {
                       ^
/home/pi/swift/swift/stdlib/public/core/RangeReplaceableCollection.swift:201:17: note: requirement 'append(contentsOf:)' declared here
  mutating func append<S : Sequence>(contentsOf newElements: S)
                ^
/home/pi/swift/swift/stdlib/public/core/FixedArray.swift.gyb:82:27: warning: overlapping accesses to 'self.storage', but modification requires exclusive access; consider copying to a local variable
      withUnsafeBytes(of: &storage) {
                          ^~~~~~~~
/home/pi/swift/swift/stdlib/public/core/FixedArray.swift.gyb:89:18: note: conflicting access is here
          count: count)
                 ^~~~~
[855/868] Building C object tools/swift-reflection-test/CMakeFiles/swift-reflection-test-linux-armv7.dir/swift-reflection-test.c.o
/home/pi/swift/swift/tools/swift-reflection-test/swift-reflection-test.c:339:10: warning: format specifies type 'unsigned long' but the argument has type 'uintptr_t' (aka 'unsigned int') [-Wformat]
         instance);
         ^~~~~~~~
/home/pi/swift/swift/tools/swift-reflection-test/swift-reflection-test.c:366:10: warning: format specifies type 'unsigned long' but the argument has type 'uintptr_t' (aka 'unsigned int') [-Wformat]
         instance);
         ^~~~~~~~
2 warnings generated.
[858/868] Performing build step for 'libdispatch'
FAILED: tools/SourceKit/libdispatch-prefix/src/libdispatch-stamp/libdispatch-build /home/pi/swift/build/buildbot_linux/libdispatch-linux-armv7/src/libdispatch.so /home/pi/swift/build/buildbot_linux/libdispatch-linux-armv7/libBlocksRuntime.a 
cd /home/pi/swift/build/buildbot_linux/libdispatch-linux-armv7 && /usr/bin/cmake --build .
[1/78] Generating /home/pi/swift/swift-corelibs-libdispatch/dispatch/module.modulemap, /home/pi/swift/swift-corelibs-libdispatch/private/module.modulemap
[2/78] Building C object CMakeFiles/BlocksRuntime.dir/src/BlocksRuntime/data.c.o
[3/78] Building C object tests/CMakeFiles/bsdtests.dir/dispatch_test.c.o
[4/78] Building C object CMakeFiles/BlocksRuntime.dir/src/BlocksRuntime/runtime.c.o
[5/78] Linking C static library libBlocksRuntime.a
[6/78] Building C object tests/CMakeFiles/bsdtests.dir/bsdtests.c.o
[7/78] Linking C static library tests/libbsdtests.a
[8/78] Generating swiftDispatch.o, swift/Dispatch.swiftmodule, swift/Dispatch.swiftdoc
/home/pi/swift/swift-corelibs-libdispatch/src/swift/Data.swift:277:42: warning: 'RandomAccessSlice' is deprecated: renamed to 'Slice'
        public subscript(bounds: Range<Int>) -> RandomAccessSlice<DispatchData> {
                                                ^
/home/pi/swift/swift-corelibs-libdispatch/src/swift/Data.swift:277:42: note: use 'Slice' instead
        public subscript(bounds: Range<Int>) -> RandomAccessSlice<DispatchData> {
                                                ^~~~~~~~~~~~~~~~~
                                                Slice
/home/pi/swift/swift-corelibs-libdispatch/src/swift/Data.swift:337:46: warning: '_Element' is deprecated: renamed to 'Element'
        public mutating func next() -> DispatchData._Element? {
                                                    ^
/home/pi/swift/swift-corelibs-libdispatch/src/swift/Data.swift:337:46: note: use 'Element' instead
        public mutating func next() -> DispatchData._Element? {
                                                    ^~~~~~~~
                                                    Element
/home/pi/swift/swift-corelibs-libdispatch/src/swift/Data.swift:172:9: warning: 'append(_:count:)' is deprecated: Use append(_: UnsafeRawBufferPointer) instead
                        self.append($0, count: count)
                             ^
/home/pi/swift/swift-corelibs-libdispatch/src/swift/Data.swift:278:10: warning: 'RandomAccessSlice' is deprecated: renamed to 'Slice'
                return RandomAccessSlice(base: self, bounds: bounds)
                       ^
/home/pi/swift/swift-corelibs-libdispatch/src/swift/Data.swift:278:10: note: use 'Slice' instead
                return RandomAccessSlice(base: self, bounds: bounds)
                       ^~~~~~~~~~~~~~~~~
                       Slice
/home/pi/swift/swift-corelibs-libdispatch/src/swift/Dispatch.swift:99:4: warning: default will never be executed
                        default: return nil
                        ^
[9/78] Building C object src/CMakeFiles/dispatch.dir/introspection.c.o
[10/78] Building C object src/CMakeFiles/dispatch.dir/benchmark.c.o
[11/78] Building C object src/CMakeFiles/dispatch.dir/allocator.c.o
[12/78] Building C object src/CMakeFiles/dispatch.dir/data.c.o
[13/78] Building C object src/CMakeFiles/dispatch.dir/apply.c.o
[14/78] Building C object src/CMakeFiles/dispatch.dir/once.c.o
[15/78] Building C object src/CMakeFiles/dispatch.dir/mach.c.o
[16/78] Building C object src/CMakeFiles/dispatch.dir/object.c.o
[17/78] Building C object src/CMakeFiles/dispatch.dir/io.c.o
[18/78] Building C object src/CMakeFiles/dispatch.dir/semaphore.c.o
[19/78] Building C object src/CMakeFiles/dispatch.dir/time.c.o
[20/78] Building C object src/CMakeFiles/dispatch.dir/transform.c.o
[21/78] Building C object src/CMakeFiles/dispatch.dir/voucher.c.o
[22/78] Building C object src/CMakeFiles/dispatch.dir/source.c.o
[23/78] Building C object src/CMakeFiles/dispatch.dir/shims.c.o
[24/78] Building C object src/CMakeFiles/dispatch.dir/event/event.c.o
[25/78] Building C object src/CMakeFiles/dispatch.dir/init.c.o
[26/78] Building C object src/CMakeFiles/dispatch.dir/event/event_kevent.c.o
[27/78] Building C object src/CMakeFiles/dispatch.dir/shims/generic_unix_stubs.c.o
[28/78] Building C object src/CMakeFiles/dispatch.dir/event/event_epoll.c.o
[29/78] Building C object src/CMakeFiles/dispatch.dir/shims/lock.c.o
[30/78] Building CXX object src/CMakeFiles/dispatch.dir/swift/DispatchStubs.cc.o
[31/78] Building C object src/CMakeFiles/dispatch.dir/queue.c.o
[32/78] Building C object src/CMakeFiles/dispatch.dir/event/workqueue.c.o
[33/78] Building CXX object src/CMakeFiles/dispatch.dir/block.cpp.o
[34/78] Linking CXX shared library src/libdispatch.so
[35/78] Building C object tests/CMakeFiles/dispatch_debug.dir/dispatch_debug.c.o
[36/78] Building C object tests/CMakeFiles/dispatch_context_for_key.dir/dispatch_context_for_key.c.o
[37/78] Building C object tests/CMakeFiles/dispatch_api.dir/dispatch_api.c.o
[38/78] Building C object tests/CMakeFiles/dispatch_overcommit.dir/dispatch_overcommit.c.o
[39/78] Building C object tests/CMakeFiles/dispatch_timer_bit31.dir/dispatch_timer_bit31.c.o
[40/78] Building C object tests/CMakeFiles/dispatch_data.dir/dispatch_data.c.o
[41/78] Building C object tests/CMakeFiles/bsdtestharness.dir/bsdtestharness.c.o
[42/78] Building CXX object tests/CMakeFiles/dispatch_plusplus.dir/dispatch_plusplus.cpp.o
[43/78] Linking C executable tests/bsdtestharness
FAILED: tests/bsdtestharness 
: && /home/pi/swift/build/buildbot_linux/llvm-linux-armv7/bin/clang    -lrt tests/CMakeFiles/bsdtestharness.dir/bsdtestharness.c.o  -o tests/bsdtestharness  -Wl,-rpath,/home/pi/swift/build/buildbot_linux/libdispatch-linux-armv7/src:/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7 tests/libbsdtests.a src/libdispatch.so -L/home/linuxbrew/.linuxbrew/Cellar/libbsd/0.8.3/lib -lbsd /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftSwiftOnoneSupport.so && :
/usr/bin/ld: warning: libicuuc.so.61, needed by /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libicui18n.so.61, needed by /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so, not found (try using -rpath or -rpath-link)
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `uiter_setString_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_preceding_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_setAttribute_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `u_strToLower_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_openElements_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_strcollIter_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `uiter_setUTF8_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `u_strToUpper_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_following_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_setText_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_open_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_closeElements_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_next_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_strcoll_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_close_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_open_61'
clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)
[44/78] Linking CXX executable tests/dispatch_plusplus
FAILED: tests/dispatch_plusplus 
: && /home/pi/swift/build/buildbot_linux/llvm-linux-armv7/bin/clang++     -lrt tests/CMakeFiles/dispatch_plusplus.dir/dispatch_plusplus.cpp.o  -o tests/dispatch_plusplus  -Wl,-rpath,/home/pi/swift/build/buildbot_linux/libdispatch-linux-armv7/src:/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7 src/libdispatch.so libBlocksRuntime.a -L/home/linuxbrew/.linuxbrew/Cellar/libbsd/0.8.3/lib -lbsd /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftSwiftOnoneSupport.so tests/libbsdtests.a -pthread && :
/usr/bin/ld: warning: libicuuc.so.61, needed by /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libicui18n.so.61, needed by /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so, not found (try using -rpath or -rpath-link)
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `uiter_setString_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_preceding_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_setAttribute_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `u_strToLower_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_openElements_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_strcollIter_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `uiter_setUTF8_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `u_strToUpper_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_following_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_setText_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_open_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_closeElements_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_next_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_strcoll_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_close_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_open_61'
clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)
[45/78] Linking C executable tests/dispatch_api
FAILED: tests/dispatch_api 
: && /home/pi/swift/build/buildbot_linux/llvm-linux-armv7/bin/clang    -lrt tests/CMakeFiles/dispatch_api.dir/dispatch_api.c.o  -o tests/dispatch_api  -Wl,-rpath,/home/pi/swift/build/buildbot_linux/libdispatch-linux-armv7/src:/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7 src/libdispatch.so libBlocksRuntime.a -L/home/linuxbrew/.linuxbrew/Cellar/libbsd/0.8.3/lib -lbsd /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftSwiftOnoneSupport.so tests/libbsdtests.a -pthread && :
/usr/bin/ld: warning: libicuuc.so.61, needed by /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libicui18n.so.61, needed by /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so, not found (try using -rpath or -rpath-link)
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `uiter_setString_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_preceding_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_setAttribute_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `u_strToLower_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_openElements_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_strcollIter_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `uiter_setUTF8_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `u_strToUpper_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_following_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_setText_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_open_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_closeElements_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_next_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_strcoll_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_close_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_open_61'
clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)
[46/78] Linking C executable tests/dispatch_overcommit
FAILED: tests/dispatch_overcommit 
: && /home/pi/swift/build/buildbot_linux/llvm-linux-armv7/bin/clang    -lrt tests/CMakeFiles/dispatch_overcommit.dir/dispatch_overcommit.c.o  -o tests/dispatch_overcommit  -Wl,-rpath,/home/pi/swift/build/buildbot_linux/libdispatch-linux-armv7/src:/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7 src/libdispatch.so libBlocksRuntime.a -L/home/linuxbrew/.linuxbrew/Cellar/libbsd/0.8.3/lib -lbsd /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftSwiftOnoneSupport.so tests/libbsdtests.a -pthread && :
/usr/bin/ld: warning: libicuuc.so.61, needed by /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libicui18n.so.61, needed by /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so, not found (try using -rpath or -rpath-link)
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `uiter_setString_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_preceding_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_setAttribute_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `u_strToLower_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_openElements_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_strcollIter_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `uiter_setUTF8_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `u_strToUpper_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_following_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_setText_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_open_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_closeElements_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_next_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_strcoll_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_close_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_open_61'
clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)
[47/78] Linking C executable tests/dispatch_debug
FAILED: tests/dispatch_debug 
: && /home/pi/swift/build/buildbot_linux/llvm-linux-armv7/bin/clang    -lrt tests/CMakeFiles/dispatch_debug.dir/dispatch_debug.c.o  -o tests/dispatch_debug  -Wl,-rpath,/home/pi/swift/build/buildbot_linux/libdispatch-linux-armv7/src:/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7 src/libdispatch.so libBlocksRuntime.a -L/home/linuxbrew/.linuxbrew/Cellar/libbsd/0.8.3/lib -lbsd /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftSwiftOnoneSupport.so tests/libbsdtests.a -pthread && :
/usr/bin/ld: warning: libicuuc.so.61, needed by /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libicui18n.so.61, needed by /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so, not found (try using -rpath or -rpath-link)
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `uiter_setString_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_preceding_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_setAttribute_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `u_strToLower_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_openElements_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_strcollIter_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `uiter_setUTF8_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `u_strToUpper_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_following_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_setText_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_open_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_closeElements_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_next_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_strcoll_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_close_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_open_61'
clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)
[48/78] Linking C executable tests/dispatch_timer_bit31
FAILED: tests/dispatch_timer_bit31 
: && /home/pi/swift/build/buildbot_linux/llvm-linux-armv7/bin/clang    -lrt tests/CMakeFiles/dispatch_timer_bit31.dir/dispatch_timer_bit31.c.o  -o tests/dispatch_timer_bit31  -Wl,-rpath,/home/pi/swift/build/buildbot_linux/libdispatch-linux-armv7/src:/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7 src/libdispatch.so libBlocksRuntime.a -L/home/linuxbrew/.linuxbrew/Cellar/libbsd/0.8.3/lib -lbsd /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftSwiftOnoneSupport.so tests/libbsdtests.a -pthread && :
/usr/bin/ld: warning: libicuuc.so.61, needed by /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libicui18n.so.61, needed by /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so, not found (try using -rpath or -rpath-link)
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `uiter_setString_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_preceding_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_setAttribute_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `u_strToLower_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_openElements_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_strcollIter_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `uiter_setUTF8_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `u_strToUpper_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_following_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_setText_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_open_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_closeElements_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_next_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_strcoll_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_close_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_open_61'
clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
ninja: build stopped: subcommand failed.
./swift/utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting
uraimo commented 6 years ago

Hi! Can you verify if libicu is installed with:

    sudo apt-get install libicu-dev icu-devtools
Hackberger commented 6 years ago

It appears it is. Output is in German and it says that

:~ $ sudo apt-get install libicu-dev icu-devtools
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.       
Statusinformationen werden eingelesen.... Fertig
icu-devtools ist schon die neueste Version (57.1-6+deb9u2).
libicu-dev ist schon die neueste Version (57.1-6+deb9u2).
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 2 nicht aktualisiert.
uraimo commented 6 years ago

Same versions on my Pi3, libicu should also have been installed automatically since it's a dependence of icu-dev. Weird that it tries to link to .61, can you confirm that this is a clean build made with 4.1.2 without any modifications?

Hackberger commented 6 years ago

I tried it before and it failed due to a full disk.

Then I ran in given order

  1. clean.sh
  2. checkoutRelease.sh
  3. build.sh

No modification whatsoever.

Is there anything I can try?

uraimo commented 6 years ago

Just to be sure, you are using Raspbian right?

What does `apt list --installed | grep icu" says? If for example, you have icu.61 installed you could try removing it.

Hackberger commented 6 years ago

Yes, Raspbian.

: $ apt list --installed | grep icu

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

icu-devtools/stable,now 57.1-6+deb9u2 armhf  [installiert]
libbasicusageenvironment1/stable,now 2016.11.28-1 armhf  [Installiert,automatisch]
libharfbuzz-icu0/stable,now 1.4.2-1 armhf  [Installiert,automatisch]
libicu-dev/stable,now 57.1-6+deb9u2 armhf  [installiert]
libicu57/stable,now 57.1-6+deb9u2 armhf  [Installiert,automatisch]

Doesn't say anything about icu.61.

uraimo commented 6 years ago

Oh... you are using linuxbrew, so I guess that .61 can be found but cannot be properly linked. Run this:

    brew info icu4c

If this is similar to the macOS brew, it should display the path that needs to be added to LD_FLAGS, or you can just run export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<your icu path here> right before starting a build. This should fix it.

Edit: You'll likely need to do a clean build, try removing just build/buildbot-linux/swift-... and build/buildbot-linux/libdispatch... first.

Hackberger commented 6 years ago

So I did this.

: $ brew info icu4c
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.sh: line 4: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory
icu4c: stable 61.1, HEAD
C/C++ and Java libraries for Unicode and globalization
http://site.icu-project.org/
/home/linuxbrew/.linuxbrew/Cellar/icu4c/61.1 (249 files, 68.4MB) *
  Built from source on 2018-06-12 at 14:31:46
From: https://github.com/Linuxbrew/homebrew-core/blob/master/Formula/icu4c.rb
==> Options
--HEAD
    Install HEAD version

And this

: $ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/linuxbrew/.linuxbrew/Cellar/icu4c/61.1

And it is still not working.

: $ ./build.sh 
+ mkdir -p /home/pi/swift/build/buildbot_linux
+ env HOST_VARIABLE_linux_armv7__SWIFT_BENCHMARK_TARGETS= HOST_VARIABLE_linux_armv7__SWIFT_RUN_BENCHMARK_TARGETS= HOST_VARIABLE_linux_armv7__SWIFT_SDKS=LINUX HOST_VARIABLE_linux_armv7__SWIFT_STDLIB_TARGETS=swift-test-stdlib-linux-armv7 HOST_VARIABLE_linux_armv7__SWIFT_TEST_TARGETS= /home/pi/swift/swift/utils/build-script-impl --workspace /home/pi/swift --build-dir /home/pi/swift/build/buildbot_linux --install-prefix /usr --host-target linux-armv7 --stdlib-deployment-targets linux-armv7 --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++ -DLLVM_VERSION_MAJOR:STRING=5 -DLLVM_VERSION_MINOR:STRING=0 -DLLVM_VERSION_PATCH:STRING=0 -DCLANG_VERSION_MAJOR:STRING=5 -DCLANG_VERSION_MINOR:STRING=0 -DCLANG_VERSION_PATCH:STRING=0 -DCMAKE_MAKE_PROGRAM=/usr/bin/ninja' --build-args=-j4 --cmark-cmake-options= '--llvm-cmake-options=-DLLVM_ENABLE_ASSERTIONS=TRUE -DLLVM_TARGETS_TO_BUILD=X86;ARM;AArch64;PowerPC;SystemZ;Mips' '--swift-cmake-options=-DSWIFT_STDLIB_ENABLE_SIL_OWNERSHIP=FALSE -DCMAKE_EXPORT_COMPILE_COMMANDS=TRUE -DSWIFT_FORCE_OPTIMIZED_TYPECHECKER=FALSE' --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 --skip-build-libicu --skip-build-playgroundsupport --build-swift-dynamic-stdlib --build-swift-static-stdlib --build-swift-dynamic-sdk-overlay --build-swift-static-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-swift --skip-test-cmark --skip-test-lldb --skip-test-llbuild --skip-test-swiftpm --skip-test-xctest --skip-test-foundation --skip-test-libdispatch --skip-test-libicu --skip-test-playgroundsupport --skip-test-linux --skip-test-freebsd --skip-test-cygwin --skip-test-osx --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 --skip-test-benchmarks --skip-test-optimized --skip-test-optimize-for-size --android-deploy-device-path /data/local/tmp --install-libdispatch --install-foundation --install-swift --install-lldb --install-llbuild --install-xctest --install-swiftpm '--swift-install-components=autolink-driver;compiler;clang-builtin-headers;stdlib;swift-remote-mirror;sdk-overlay;dev' --install-destdir=/home/pi/swift/install --installable-package=/home/pi/swift/swift-4.1.2.tgz --llvm-lit-args=-sv
Building the standard library for: swift-test-stdlib-linux-armv7
cmark: using gold linker
+ /usr/bin/cmake --build /home/pi/swift/build/buildbot_linux/cmark-linux-armv7 -- -j4 all
ninja: no work to do.
llvm: using gold linker
symlinking the system headers (/usr/include/c++) into the local clang build directory (/home/pi/swift/build/buildbot_linux/llvm-linux-armv7/include).
+ ln -s -f /usr/include/c++ /home/pi/swift/build/buildbot_linux/llvm-linux-armv7/include
+ /usr/bin/cmake --build /home/pi/swift/build/buildbot_linux/llvm-linux-armv7 -- -j4 all
ninja: no work to do.
swift: using gold linker
+ /usr/bin/cmake --build /home/pi/swift/build/buildbot_linux/swift-linux-armv7 -- -j4 all swift-test-stdlib-linux-armv7
[1/12] Performing build step for 'libdispatch'
FAILED: tools/SourceKit/libdispatch-prefix/src/libdispatch-stamp/libdispatch-build /home/pi/swift/build/buildbot_linux/libdispatch-linux-armv7/src/libdispatch.so /home/pi/swift/build/buildbot_linux/libdispatch-linux-armv7/libBlocksRuntime.a 
cd /home/pi/swift/build/buildbot_linux/libdispatch-linux-armv7 && /usr/bin/cmake --build .
[1/36] Linking C executable tests/dispatch_api
FAILED: tests/dispatch_api 
: && /home/pi/swift/build/buildbot_linux/llvm-linux-armv7/bin/clang    -lrt tests/CMakeFiles/dispatch_api.dir/dispatch_api.c.o  -o tests/dispatch_api  -Wl,-rpath,/home/pi/swift/build/buildbot_linux/libdispatch-linux-armv7/src:/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7 src/libdispatch.so libBlocksRuntime.a -L/home/linuxbrew/.linuxbrew/Cellar/libbsd/0.8.3/lib -lbsd /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftSwiftOnoneSupport.so tests/libbsdtests.a -pthread && :
/usr/bin/ld: warning: libicuuc.so.61, needed by /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libicui18n.so.61, needed by /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so, not found (try using -rpath or -rpath-link)
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `uiter_setString_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_preceding_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_setAttribute_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `u_strToLower_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_openElements_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_strcollIter_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `uiter_setUTF8_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `u_strToUpper_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_following_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_setText_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_open_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_closeElements_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_next_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_strcoll_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_close_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_open_61'
clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)
[2/36] Linking C executable tests/dispatch_timer_bit31
FAILED: tests/dispatch_timer_bit31 
: && /home/pi/swift/build/buildbot_linux/llvm-linux-armv7/bin/clang    -lrt tests/CMakeFiles/dispatch_timer_bit31.dir/dispatch_timer_bit31.c.o  -o tests/dispatch_timer_bit31  -Wl,-rpath,/home/pi/swift/build/buildbot_linux/libdispatch-linux-armv7/src:/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7 src/libdispatch.so libBlocksRuntime.a -L/home/linuxbrew/.linuxbrew/Cellar/libbsd/0.8.3/lib -lbsd /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftSwiftOnoneSupport.so tests/libbsdtests.a -pthread && :
/usr/bin/ld: warning: libicuuc.so.61, needed by /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libicui18n.so.61, needed by /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so, not found (try using -rpath or -rpath-link)
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `uiter_setString_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_preceding_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_setAttribute_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `u_strToLower_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_openElements_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_strcollIter_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `uiter_setUTF8_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `u_strToUpper_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_following_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_setText_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_open_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_closeElements_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_next_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_strcoll_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_close_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_open_61'
clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)
[3/36] Linking C executable tests/dispatch_overcommit
FAILED: tests/dispatch_overcommit 
: && /home/pi/swift/build/buildbot_linux/llvm-linux-armv7/bin/clang    -lrt tests/CMakeFiles/dispatch_overcommit.dir/dispatch_overcommit.c.o  -o tests/dispatch_overcommit  -Wl,-rpath,/home/pi/swift/build/buildbot_linux/libdispatch-linux-armv7/src:/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7 src/libdispatch.so libBlocksRuntime.a -L/home/linuxbrew/.linuxbrew/Cellar/libbsd/0.8.3/lib -lbsd /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftSwiftOnoneSupport.so tests/libbsdtests.a -pthread && :
/usr/bin/ld: warning: libicuuc.so.61, needed by /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libicui18n.so.61, needed by /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so, not found (try using -rpath or -rpath-link)
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `uiter_setString_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_preceding_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_setAttribute_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `u_strToLower_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_openElements_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_strcollIter_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `uiter_setUTF8_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `u_strToUpper_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_following_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_setText_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_open_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_closeElements_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_next_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_strcoll_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_close_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_open_61'
clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)
[4/36] Linking C executable tests/bsdtestharness
FAILED: tests/bsdtestharness 
: && /home/pi/swift/build/buildbot_linux/llvm-linux-armv7/bin/clang    -lrt tests/CMakeFiles/bsdtestharness.dir/bsdtestharness.c.o  -o tests/bsdtestharness  -Wl,-rpath,/home/pi/swift/build/buildbot_linux/libdispatch-linux-armv7/src:/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7 tests/libbsdtests.a src/libdispatch.so -L/home/linuxbrew/.linuxbrew/Cellar/libbsd/0.8.3/lib -lbsd /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftSwiftOnoneSupport.so && :
/usr/bin/ld: warning: libicuuc.so.61, needed by /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libicui18n.so.61, needed by /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so, not found (try using -rpath or -rpath-link)
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `uiter_setString_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_preceding_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_setAttribute_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `u_strToLower_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_openElements_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_strcollIter_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `uiter_setUTF8_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `u_strToUpper_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_following_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_setText_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_open_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_closeElements_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_next_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_strcoll_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_close_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_open_61'
clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)
[5/36] Linking C executable tests/dispatch_debug
FAILED: tests/dispatch_debug 
: && /home/pi/swift/build/buildbot_linux/llvm-linux-armv7/bin/clang    -lrt tests/CMakeFiles/dispatch_debug.dir/dispatch_debug.c.o  -o tests/dispatch_debug  -Wl,-rpath,/home/pi/swift/build/buildbot_linux/libdispatch-linux-armv7/src:/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7 src/libdispatch.so libBlocksRuntime.a -L/home/linuxbrew/.linuxbrew/Cellar/libbsd/0.8.3/lib -lbsd /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftSwiftOnoneSupport.so tests/libbsdtests.a -pthread && :
/usr/bin/ld: warning: libicuuc.so.61, needed by /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libicui18n.so.61, needed by /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so, not found (try using -rpath or -rpath-link)
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `uiter_setString_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_preceding_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_setAttribute_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `u_strToLower_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_openElements_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_strcollIter_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `uiter_setUTF8_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `u_strToUpper_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_following_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_setText_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_open_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_closeElements_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_next_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_strcoll_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_close_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_open_61'
clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)
[6/36] Linking CXX executable tests/dispatch_plusplus
FAILED: tests/dispatch_plusplus 
: && /home/pi/swift/build/buildbot_linux/llvm-linux-armv7/bin/clang++     -lrt tests/CMakeFiles/dispatch_plusplus.dir/dispatch_plusplus.cpp.o  -o tests/dispatch_plusplus  -Wl,-rpath,/home/pi/swift/build/buildbot_linux/libdispatch-linux-armv7/src:/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7 src/libdispatch.so libBlocksRuntime.a -L/home/linuxbrew/.linuxbrew/Cellar/libbsd/0.8.3/lib -lbsd /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftSwiftOnoneSupport.so tests/libbsdtests.a -pthread && :
/usr/bin/ld: warning: libicuuc.so.61, needed by /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libicui18n.so.61, needed by /home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so, not found (try using -rpath or -rpath-link)
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `uiter_setString_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_preceding_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_setAttribute_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `u_strToLower_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_openElements_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_strcollIter_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `uiter_setUTF8_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `u_strToUpper_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_following_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_setText_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_open_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_closeElements_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_next_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_strcoll_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ubrk_close_61'
/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7/libswiftCore.so: undefined reference to `ucol_open_61'
clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
[2/12] Building HTML documentation
Running Sphinx v1.4.9
loading pickled environment... done
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 0 source files that are out of date
updating environment: 0 added, 0 changed, 0 removed
looking for now-outdated files... none found
no targets are out of date.
build succeeded.
ninja: build stopped: subcommand failed.
./swift/utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting

It is still not working.

I used brew to install the NextCloud client. But I do not require it any more. So if we need to break anything here in order to get swift working, alright with me.

uraimo commented 6 years ago

On a mac, that path is /usr/local/opt/icu4c/lib and you'll see it's the right one because in that directory you have files like libicuuc.a,etc... , my guess is that the Cellar path is wrong. Maybe add a /lib at the end like clang is doing for -L/home/linuxbrew/.linuxbrew/Cellar/libbsd/0.8.3/lib?

If you can uninstall it, brew uninstall icu4c should suffice. This error:

/usr/bin/ld: warning: libicuuc.so.61, needed by /home/pi/swift/build/build.......

Should disappear and ld should be able to link those libdispatch binaries.

Hackberger commented 6 years ago

Great! I jumped this hurdle. Many thanks so far!

I removed icu4c.

$ brew uninstall icu4c

But then, I figured, I would have had to re-compile and link everything again. The build.sh also ended immediately with an error.

So I re-installed icu4c.

$ brew install icu4c

And I added the /lib at the end of the path. This did the trick!

It did a lot of linking and installing but, alas, later on some issue with python scripting came across. Any ideas?

I really appreciate your patience and assistance!

 $ ./build.sh 
+ mkdir -p /home/pi/swift/build/buildbot_linux
+ env HOST_VARIABLE_linux_armv7__SWIFT_BENCHMARK_TARGETS= HOST_VARIABLE_linux_armv7__SWIFT_RUN_BENCHMARK_TARGETS= HOST_VARIABLE_linux_armv7__SWIFT_SDKS=LINUX HOST_VARIABLE_linux_armv7__SWIFT_STDLIB_TARGETS=swift-test-stdlib-linux-armv7 HOST_VARIABLE_linux_armv7__SWIFT_TEST_TARGETS= /home/pi/swift/swift/utils/build-script-impl --workspace /home/pi/swift --build-dir /home/pi/swift/build/buildbot_linux --install-prefix /usr --host-target linux-armv7 --stdlib-deployment-targets linux-armv7 --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++ -DLLVM_VERSION_MAJOR:STRING=5 -DLLVM_VERSION_MINOR:STRING=0 -DLLVM_VERSION_PATCH:STRING=0 -DCLANG_VERSION_MAJOR:STRING=5 -DCLANG_VERSION_MINOR:STRING=0 -DCLANG_VERSION_PATCH:STRING=0 -DCMAKE_MAKE_PROGRAM=/usr/bin/ninja' --build-args=-j4 --cmark-cmake-options= '--llvm-cmake-options=-DLLVM_ENABLE_ASSERTIONS=TRUE -DLLVM_TARGETS_TO_BUILD=X86;ARM;AArch64;PowerPC;SystemZ;Mips' '--swift-cmake-options=-DSWIFT_STDLIB_ENABLE_SIL_OWNERSHIP=FALSE -DCMAKE_EXPORT_COMPILE_COMMANDS=TRUE -DSWIFT_FORCE_OPTIMIZED_TYPECHECKER=FALSE' --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 --skip-build-libicu --skip-build-playgroundsupport --build-swift-dynamic-stdlib --build-swift-static-stdlib --build-swift-dynamic-sdk-overlay --build-swift-static-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-swift --skip-test-cmark --skip-test-lldb --skip-test-llbuild --skip-test-swiftpm --skip-test-xctest --skip-test-foundation --skip-test-libdispatch --skip-test-libicu --skip-test-playgroundsupport --skip-test-linux --skip-test-freebsd --skip-test-cygwin --skip-test-osx --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 --skip-test-benchmarks --skip-test-optimized --skip-test-optimize-for-size --android-deploy-device-path /data/local/tmp --install-libdispatch --install-foundation --install-swift --install-lldb --install-llbuild --install-xctest --install-swiftpm '--swift-install-components=autolink-driver;compiler;clang-builtin-headers;stdlib;swift-remote-mirror;sdk-overlay;dev' --install-destdir=/home/pi/swift/install --installable-package=/home/pi/swift/swift-4.1.2.tgz --llvm-lit-args=-sv
Building the standard library for: swift-test-stdlib-linux-armv7
cmark: using gold linker
+ /usr/bin/cmake --build /home/pi/swift/build/buildbot_linux/cmark-linux-armv7 -- -j4 all
ninja: no work to do.
llvm: using gold linker
symlinking the system headers (/usr/include/c++) into the local clang build directory (/home/pi/swift/build/buildbot_linux/llvm-linux-armv7/include).
+ ln -s -f /usr/include/c++ /home/pi/swift/build/buildbot_linux/llvm-linux-armv7/include
+ /usr/bin/cmake --build /home/pi/swift/build/buildbot_linux/llvm-linux-armv7 -- -j4 all
ninja: no work to do.
swift: using gold linker
+ /usr/bin/cmake --build /home/pi/swift/build/buildbot_linux/swift-linux-armv7 -- -j4 all swift-test-stdlib-linux-armv7
[1/12] Building HTML documentation
Running Sphinx v1.4.9
loading pickled environment... done
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 0 source files that are out of date
updating environment: 0 added, 0 changed, 0 removed
looking for now-outdated files... none found
no targets are out of date.
build succeeded.
[2/12] Performing build step for 'libdispatch'
[1/36] Linking C executable tests/dispatch_debug
[2/36] Linking C executable tests/dispatch_timer_bit31
[3/36] Linking C executable tests/dispatch_api
[4/36] Linking C executable tests/bsdtestharness
[5/36] Linking CXX executable tests/dispatch_plusplus
[6/36] Linking C executable tests/dispatch_overcommit
[7/36] Linking C executable tests/dispatch_context_for_key
[8/36] Building C object tests/CMakeFiles/dispatch_sema.dir/dispatch_sema.c.o
[9/36] Building C object tests/CMakeFiles/dispatch_queue_finalizer.dir/dispatch_queue_finalizer.c.o
[10/36] Building C object tests/CMakeFiles/dispatch_after.dir/dispatch_after.c.o
[11/36] Linking C executable tests/dispatch_data
[12/36] Building C object tests/CMakeFiles/dispatch_group.dir/dispatch_group.c.o
[13/36] Building C object tests/CMakeFiles/dispatch_apply.dir/dispatch_apply.c.o
[14/36] Building C object tests/CMakeFiles/dispatch_c99.dir/dispatch_c99.c.o
[15/36] Linking C executable tests/dispatch_sema
[16/36] Linking C executable tests/dispatch_after
[17/36] Linking C executable tests/dispatch_queue_finalizer
[18/36] Linking C executable tests/dispatch_group
[19/36] Linking C executable tests/dispatch_apply
[20/36] Building C object tests/CMakeFiles/dispatch_timer_bit63.dir/dispatch_timer_bit63.c.o
[21/36] Building C object tests/CMakeFiles/dispatch_timer_set_time.dir/dispatch_timer_set_time.c.o
[22/36] Linking C executable tests/dispatch_c99
[23/36] Building C object tests/CMakeFiles/dispatch_timer_short.dir/dispatch_timer_short.c.o
[24/36] Building C object tests/CMakeFiles/dispatch_starfish.dir/dispatch_starfish.c.o
[25/36] Building C object tests/CMakeFiles/dispatch_io_net.dir/dispatch_io_net.c.o
[26/36] Building C object tests/CMakeFiles/dispatch_timer.dir/dispatch_timer.c.o
[27/36] Linking C executable tests/dispatch_timer_set_time
[28/36] Linking C executable tests/dispatch_timer_bit63
[29/36] Linking C executable tests/dispatch_timer_short
[30/36] Linking C executable tests/dispatch_starfish
[31/36] Building C object tests/CMakeFiles/dispatch_timer_timeout.dir/dispatch_timer_timeout.c.o
[32/36] Building C object tests/CMakeFiles/dispatch_select.dir/dispatch_select.c.o
[33/36] Linking C executable tests/dispatch_io_net
[34/36] Linking C executable tests/dispatch_timer
[35/36] Linking C executable tests/dispatch_timer_timeout
[36/36] Linking C executable tests/dispatch_select
[3/12] Performing install step for 'libdispatch'
[0/1] Install the project...
-- Install configuration: ""
-- Installing: /home/pi/swift/build/buildbot_linux/swift-linux-armv7/tools/SourceKit/libdispatch-prefix/lib/swift/Block/Block.h
-- Installing: /home/pi/swift/build/buildbot_linux/swift-linux-armv7/tools/SourceKit/libdispatch-prefix/lib/swift/dispatch/base.h
-- Installing: /home/pi/swift/build/buildbot_linux/swift-linux-armv7/tools/SourceKit/libdispatch-prefix/lib/swift/dispatch/block.h
-- Installing: /home/pi/swift/build/buildbot_linux/swift-linux-armv7/tools/SourceKit/libdispatch-prefix/lib/swift/dispatch/data.h
-- Installing: /home/pi/swift/build/buildbot_linux/swift-linux-armv7/tools/SourceKit/libdispatch-prefix/lib/swift/dispatch/dispatch.h
-- Installing: /home/pi/swift/build/buildbot_linux/swift-linux-armv7/tools/SourceKit/libdispatch-prefix/lib/swift/dispatch/group.h
-- Installing: /home/pi/swift/build/buildbot_linux/swift-linux-armv7/tools/SourceKit/libdispatch-prefix/lib/swift/dispatch/introspection.h
-- Installing: /home/pi/swift/build/buildbot_linux/swift-linux-armv7/tools/SourceKit/libdispatch-prefix/lib/swift/dispatch/io.h
-- Installing: /home/pi/swift/build/buildbot_linux/swift-linux-armv7/tools/SourceKit/libdispatch-prefix/lib/swift/dispatch/object.h
-- Installing: /home/pi/swift/build/buildbot_linux/swift-linux-armv7/tools/SourceKit/libdispatch-prefix/lib/swift/dispatch/once.h
-- Installing: /home/pi/swift/build/buildbot_linux/swift-linux-armv7/tools/SourceKit/libdispatch-prefix/lib/swift/dispatch/queue.h
-- Installing: /home/pi/swift/build/buildbot_linux/swift-linux-armv7/tools/SourceKit/libdispatch-prefix/lib/swift/dispatch/semaphore.h
-- Installing: /home/pi/swift/build/buildbot_linux/swift-linux-armv7/tools/SourceKit/libdispatch-prefix/lib/swift/dispatch/source.h
-- Installing: /home/pi/swift/build/buildbot_linux/swift-linux-armv7/tools/SourceKit/libdispatch-prefix/lib/swift/dispatch/time.h
-- Installing: /home/pi/swift/build/buildbot_linux/swift-linux-armv7/tools/SourceKit/libdispatch-prefix/lib/swift/dispatch/module.modulemap
-- Installing: /home/pi/swift/build/buildbot_linux/swift-linux-armv7/tools/SourceKit/libdispatch-prefix/lib/swift/os/object.h
-- Installing: /home/pi/swift/build/buildbot_linux/swift-linux-armv7/tools/SourceKit/libdispatch-prefix/lib/swift/os/generic_unix_base.h
-- Installing: /home/pi/swift/build/buildbot_linux/swift-linux-armv7/tools/SourceKit/libdispatch-prefix/lib/swift/linux/libdispatch.so
-- Installing: /home/pi/swift/build/buildbot_linux/swift-linux-armv7/tools/SourceKit/libdispatch-prefix/lib/swift/linux/armv7l/Dispatch.swiftmodule
-- Installing: /home/pi/swift/build/buildbot_linux/swift-linux-armv7/tools/SourceKit/libdispatch-prefix/lib/swift/linux/armv7l/Dispatch.swiftdoc
[12/12] Linking CXX executable bin/complete-test
lldb: using gold linker
+ mkdir -p /home/pi/swift/build/buildbot_linux/lldb-linux-armv7
+ pushd /home/pi/swift/build/buildbot_linux/lldb-linux-armv7
~/swift/build/buildbot_linux/lldb-linux-armv7 ~/swift
+ env /usr/bin/cmake -G Ninja -DCMAKE_C_COMPILER:PATH=/usr/bin/clang -DCMAKE_CXX_COMPILER:PATH=/usr/bin/clang++ -DLLVM_VERSION_MAJOR:STRING=5 -DLLVM_VERSION_MINOR:STRING=0 -DLLVM_VERSION_PATCH:STRING=0 -DCLANG_VERSION_MAJOR:STRING=5 -DCLANG_VERSION_MINOR:STRING=0 -DCLANG_VERSION_PATCH:STRING=0 -DCMAKE_MAKE_PROGRAM=/usr/bin/ninja -DCMAKE_EXE_LINKER_FLAGS:STRING=-fuse-ld=gold -DCMAKE_SHARED_LINKER_FLAGS:STRING=-fuse-ld=gold -DLLVM_HOST_TRIPLE:STRING=armv7-unknown-linux-gnueabihf -DCMAKE_BUILD_TYPE:STRING=Release -DLLDB_SWIFTC:PATH=/home/pi/swift/build/buildbot_linux/swift-linux-armv7/bin/swiftc -DCMAKE_INSTALL_PREFIX:PATH=/usr/ -DLLDB_PATH_TO_LLVM_SOURCE:PATH=/home/pi/swift/llvm -DLLDB_PATH_TO_CLANG_SOURCE:PATH=/home/pi/swift/llvm/tools/clang -DLLDB_PATH_TO_SWIFT_SOURCE:PATH=/home/pi/swift/swift -DLLDB_PATH_TO_LLVM_BUILD:PATH=/home/pi/swift/build/buildbot_linux/llvm-linux-armv7 -DLLDB_PATH_TO_CLANG_BUILD:PATH=/home/pi/swift/build/buildbot_linux/llvm-linux-armv7 -DLLDB_PATH_TO_SWIFT_BUILD:PATH=/home/pi/swift/build/buildbot_linux/swift-linux-armv7 -DLLDB_PATH_TO_CMARK_BUILD:PATH=/home/pi/swift/build/buildbot_linux/cmark-linux-armv7 -DLLDB_IS_BUILDBOT_BUILD=0 '-DLLDB_BUILD_DATE:STRING="2018-06-22"' -DLLDB_ALLOW_STATIC_BINDINGS=1 /home/pi/swift/lldb
-- The C compiler identification is Clang 3.8.1
-- The CXX compiler identification is Clang 3.8.1
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/clang++
-- Check for working CXX compiler: /usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found LLVM_CONFIG as /home/pi/swift/build/buildbot_linux/llvm-linux-armv7/bin/llvm-config
-- Linker detection: GNU ld
-- Performing Test LLVM_NO_OLD_LIBSTDCXX
-- Performing Test LLVM_NO_OLD_LIBSTDCXX - Success
-- Performing Test C_SUPPORTS_FPIC
-- Performing Test C_SUPPORTS_FPIC - Success
-- Performing Test CXX_SUPPORTS_FPIC
-- Performing Test CXX_SUPPORTS_FPIC - Success
-- Building with -fPIC
-- Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG
-- Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG - Success
-- Performing Test C_SUPPORTS_WERROR_DATE_TIME
-- Performing Test C_SUPPORTS_WERROR_DATE_TIME - Success
-- Performing Test CXX_SUPPORTS_WERROR_DATE_TIME
-- Performing Test CXX_SUPPORTS_WERROR_DATE_TIME - Success
-- Performing Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW
-- Performing Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW - Failed
-- Performing Test CXX_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW
-- Performing Test CXX_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW - Failed
-- Performing Test CXX_SUPPORTS_CXX11
-- Performing Test CXX_SUPPORTS_CXX11 - Success
-- Performing Test LINKER_SUPPORTS_COLOR_DIAGNOSTICS
-- Performing Test LINKER_SUPPORTS_COLOR_DIAGNOSTICS - Failed
-- Performing Test C_SUPPORTS_FNO_FUNCTION_SECTIONS
-- Performing Test C_SUPPORTS_FNO_FUNCTION_SECTIONS - Success
-- Performing Test C_SUPPORTS_FFUNCTION_SECTIONS
-- Performing Test C_SUPPORTS_FFUNCTION_SECTIONS - Success
-- Performing Test CXX_SUPPORTS_FFUNCTION_SECTIONS
-- Performing Test CXX_SUPPORTS_FFUNCTION_SECTIONS - Success
-- Performing Test C_SUPPORTS_FDATA_SECTIONS
-- Performing Test C_SUPPORTS_FDATA_SECTIONS - Success
-- Performing Test CXX_SUPPORTS_FDATA_SECTIONS
-- Performing Test CXX_SUPPORTS_FDATA_SECTIONS - Success
-- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB
-- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB - Success
-- Performing Test HAVE_CXX_ATOMICS64_WITHOUT_LIB
-- Performing Test HAVE_CXX_ATOMICS64_WITHOUT_LIB - Success
-- Performing Test LLVM_HAS_ATOMICS
-- Performing Test LLVM_HAS_ATOMICS - Success
-- Found PythonInterp: 
-- Found PythonLibs: /usr/lib/arm-linux-gnueabihf/libpython3.5m.so (found version "3.5.3") 
-- Performing Test CXX_SUPPORTS_NO_DEPRECATED_DECLARATIONS
-- Performing Test CXX_SUPPORTS_NO_DEPRECATED_DECLARATIONS - Success
-- Performing Test CXX_SUPPORTS_NO_UNKNOWN_PRAGMAS
-- Performing Test CXX_SUPPORTS_NO_UNKNOWN_PRAGMAS - Success
-- Performing Test CXX_SUPPORTS_NO_STRICT_ALIASING
-- Performing Test CXX_SUPPORTS_NO_STRICT_ALIASING - Success
-- Performing Test CXX_SUPPORTS_NO_DEPRECATED_REGISTER
-- Performing Test CXX_SUPPORTS_NO_DEPRECATED_REGISTER - Success
-- Performing Test CXX_SUPPORTS_NO_VLA_EXTENSION
-- Performing Test CXX_SUPPORTS_NO_VLA_EXTENSION - Success
-- LLDB version: 5.0.0
-- Found LibXml2: /usr/lib/arm-linux-gnueabihf/libxml2.so (found version "2.9.4") 
-- Found Curses: /usr/lib/arm-linux-gnueabihf/libcurses.so  
-- Looking for __GLIBCXX__
-- Looking for __GLIBCXX__ - found
-- Performing Test LLDB_USING_LIBSTDCXX_4_9
-- Performing Test LLDB_USING_LIBSTDCXX_4_9 - Success
-- Looking for backtrace
-- Looking for backtrace - found
-- backtrace facility detected in default set of libraries
-- Found Backtrace: /usr/include  
-- Looking for ppoll
-- Looking for ppoll - found
-- Looking for sigaction
-- Looking for sigaction - found
-- Looking for termios.h
-- Looking for termios.h - found
-- Looking for include files sys/types.h, sys/event.h
-- Looking for include files sys/types.h, sys/event.h - not found
-- Performing Test HAVE_PROCESS_VM_READV
-- Performing Test HAVE_PROCESS_VM_READV - Success
-- Performing Test HAVE_NR_PROCESS_VM_READV
-- Performing Test HAVE_NR_PROCESS_VM_READV - Success
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.13") 
-- Found PythonInterp: /usr/bin/python3.5 (found version "3.5.3") 
-- Found SWIG: /usr/bin/swig3.0 (found version "3.0.10") 
-- Performing Test CXX_SUPPORTS_NO_MACRO_REDEFINED
-- Performing Test CXX_SUPPORTS_NO_MACRO_REDEFINED - Success
-- Linker detection: GNU ld
-- Linker detection: GNU ld
-- Symbols (liblldb): exporting all symbols from the lldb namespace
-- Linker detection: GNU ld
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CLANG_VERSION_MAJOR
    CLANG_VERSION_MINOR
    CLANG_VERSION_PATCH
    LLDB_BUILD_DATE
    LLDB_IS_BUILDBOT_BUILD
    LLDB_PATH_TO_LLVM_SOURCE
    LLVM_HOST_TRIPLE

-- Build files have been written to: /home/pi/swift/build/buildbot_linux/lldb-linux-armv7
+ popd
~/swift
+ /usr/bin/cmake --build /home/pi/swift/build/buildbot_linux/lldb-linux-armv7 -- -j4 all
[4/906] Python script building LLDB Python wrapper
FAILED: scripts/LLDBWrapPython.cpp scripts/lldb.py 
cd /home/pi/swift/build/buildbot_linux/lldb-linux-armv7/scripts && /usr/bin/python3.5 /home/pi/swift/lldb/scripts/prepare_bindings.py --srcRoot=/home/pi/swift/lldb --targetDir=/home/pi/swift/build/buildbot_linux/lldb-linux-armv7/scripts --cfgBldDir=/home/pi/swift/build/buildbot_linux/lldb-linux-armv7/scripts --prefix=/home/pi/swift/build/buildbot_linux/lldb-linux-armv7 --swig-executable=/usr/bin/swig3.0
ERROR:root:swig failed with error code 1: stdout=b'', stderr=b'/home/pi/swift/lldb/scripts/lldb.swig:53: Error: CPP #error "Swig versions 3.0.9 and 3.0.10 are incompatible with lldb.". Use the -cpperraswarn option to continue swig processing.\n'
ERROR:root:command line:
/usr/bin/swig3.0 -c++ -shadow -python -threads -I/home/pi/swift/lldb/include -I. -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -outdir /home/pi/swift/build/buildbot_linux/lldb-linux-armv7/scripts -o /home/pi/swift/build/buildbot_linux/lldb-linux-armv7/scripts/LLDBWrapPython.cpp /home/pi/swift/lldb/scripts/lldb.swig
[7/906] Building CXX object source/Core/CMakeFiles/lldbCore.dir/DumpDataExtractor.cpp.o
ninja: build stopped: subcommand failed.
./swift/utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting
uraimo commented 6 years ago

Check out the bottom of this post, you need to update swig manually ;) https://www.uraimo.com/2018/06/13/A-big-update-on-Swift-4-1-2-for-raspberry-pi-zero-1-2-3/

Hackberger commented 6 years ago

It continues to build! Thanks for the hint.

Regarding your blog post: it appears that the wget link should be

wget http://ftp.de.debian.org/debian/pool/main/s/swig/swig3.0_3.0.12-1.1_armhf.deb
wget http://ftp.de.debian.org/debian/pool/main/s/swig/swig_3.0.12-1.1_armhf.deb

You seem to have missed a .1 inside the file names or the versions have changed meanwhile.

Otherwise it works fine so far! I will close the issue once it finishes. Fingers crossed.

uraimo commented 6 years ago

Oh, thanks! Looks like they have updated the packages and removed the old ones :/ I'm closing this, but feel free to comment anyway if it stops somewhere else (it shouldn't).

Hackberger commented 6 years ago

In fact it stopped again.

Maybe you can have another look into it! It fails on finding libcurl (look at the end of this post).

 $ ./build.sh 
+ mkdir -p /home/pi/swift/build/buildbot_linux
+ env HOST_VARIABLE_linux_armv7__SWIFT_BENCHMARK_TARGETS= HOST_VARIABLE_linux_armv7__SWIFT_RUN_BENCHMARK_TARGETS= HOST_VARIABLE_linux_armv7__SWIFT_SDKS=LINUX HOST_VARIABLE_linux_armv7__SWIFT_STDLIB_TARGETS=swift-test-stdlib-linux-armv7 HOST_VARIABLE_linux_armv7__SWIFT_TEST_TARGETS= /home/pi/swift/swift/utils/build-script-impl --workspace /home/pi/swift --build-dir /home/pi/swift/build/buildbot_linux --install-prefix /usr --host-target linux-armv7 --stdlib-deployment-targets linux-armv7 --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++ -DLLVM_VERSION_MAJOR:STRING=5 -DLLVM_VERSION_MINOR:STRING=0 -DLLVM_VERSION_PATCH:STRING=0 -DCLANG_VERSION_MAJOR:STRING=5 -DCLANG_VERSION_MINOR:STRING=0 -DCLANG_VERSION_PATCH:STRING=0 -DCMAKE_MAKE_PROGRAM=/usr/bin/ninja' --build-args=-j4 --cmark-cmake-options= '--llvm-cmake-options=-DLLVM_ENABLE_ASSERTIONS=TRUE -DLLVM_TARGETS_TO_BUILD=X86;ARM;AArch64;PowerPC;SystemZ;Mips' '--swift-cmake-options=-DSWIFT_STDLIB_ENABLE_SIL_OWNERSHIP=FALSE -DCMAKE_EXPORT_COMPILE_COMMANDS=TRUE -DSWIFT_FORCE_OPTIMIZED_TYPECHECKER=FALSE' --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 --skip-build-libicu --skip-build-playgroundsupport --build-swift-dynamic-stdlib --build-swift-static-stdlib --build-swift-dynamic-sdk-overlay --build-swift-static-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-swift --skip-test-cmark --skip-test-lldb --skip-test-llbuild --skip-test-swiftpm --skip-test-xctest --skip-test-foundation --skip-test-libdispatch --skip-test-libicu --skip-test-playgroundsupport --skip-test-linux --skip-test-freebsd --skip-test-cygwin --skip-test-osx --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 --skip-test-benchmarks --skip-test-optimized --skip-test-optimize-for-size --android-deploy-device-path /data/local/tmp --install-libdispatch --install-foundation --install-swift --install-lldb --install-llbuild --install-xctest --install-swiftpm '--swift-install-components=autolink-driver;compiler;clang-builtin-headers;stdlib;swift-remote-mirror;sdk-overlay;dev' --install-destdir=/home/pi/swift/install --installable-package=/home/pi/swift/swift-4.1.2.tgz --llvm-lit-args=-sv
Building the standard library for: swift-test-stdlib-linux-armv7
cmark: using gold linker
+ /usr/bin/cmake --build /home/pi/swift/build/buildbot_linux/cmark-linux-armv7 -- -j4 all
ninja: no work to do.
llvm: using gold linker
symlinking the system headers (/usr/include/c++) into the local clang build directory (/home/pi/swift/build/buildbot_linux/llvm-linux-armv7/include).
+ ln -s -f /usr/include/c++ /home/pi/swift/build/buildbot_linux/llvm-linux-armv7/include
+ /usr/bin/cmake --build /home/pi/swift/build/buildbot_linux/llvm-linux-armv7 -- -j4 all
ninja: no work to do.
swift: using gold linker
+ /usr/bin/cmake --build /home/pi/swift/build/buildbot_linux/swift-linux-armv7 -- -j4 all swift-test-stdlib-linux-armv7
[1/8] Performing build step for 'libdispatch'
ninja: no work to do.
[2/2] Building HTML documentation
Running Sphinx v1.4.9
loading pickled environment... done
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 0 source files that are out of date
updating environment: 0 added, 0 changed, 0 removed
looking for now-outdated files... none found
no targets are out of date.
build succeeded.
lldb: using gold linker
+ /usr/bin/cmake --build /home/pi/swift/build/buildbot_linux/lldb-linux-armv7 -- -j4 all
[900/900] Linking CXX shared library lib/liblldb-intel-mpxtable.so
llbuild: using gold linker
+ mkdir -p /home/pi/swift/build/buildbot_linux/llbuild-linux-armv7
+ pushd /home/pi/swift/build/buildbot_linux/llbuild-linux-armv7
~/swift/build/buildbot_linux/llbuild-linux-armv7 ~/swift
+ env /usr/bin/cmake -G Ninja -DCMAKE_C_COMPILER:PATH=/usr/bin/clang -DCMAKE_CXX_COMPILER:PATH=/usr/bin/clang++ -DLLVM_VERSION_MAJOR:STRING=5 -DLLVM_VERSION_MINOR:STRING=0 -DLLVM_VERSION_PATCH:STRING=0 -DCLANG_VERSION_MAJOR:STRING=5 -DCLANG_VERSION_MINOR:STRING=0 -DCLANG_VERSION_PATCH:STRING=0 -DCMAKE_MAKE_PROGRAM=/usr/bin/ninja -DCMAKE_EXE_LINKER_FLAGS:STRING=-fuse-ld=gold -DCMAKE_SHARED_LINKER_FLAGS:STRING=-fuse-ld=gold -DCMAKE_INSTALL_PREFIX:PATH=/usr/ -DLIT_EXECUTABLE:PATH=/home/pi/swift/llvm/utils/lit/lit.py -DFILECHECK_EXECUTABLE:PATH=/home/pi/swift/build/buildbot_linux/llvm-linux-armv7/bin/FileCheck -DCMAKE_BUILD_TYPE:STRING=Debug -DLLVM_ENABLE_ASSERTIONS:BOOL=TRUE -DLLBUILD_SUPPORT_BINDINGS:= /home/pi/swift/llbuild
-- The C compiler identification is Clang 3.8.1
-- The CXX compiler identification is Clang 3.8.1
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/clang++
-- Check for working CXX compiler: /usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Lit: /home/pi/swift/llvm/utils/lit/lit.py  
-- Found FileCheck: /home/pi/swift/build/buildbot_linux/llvm-linux-armv7/bin/FileCheck  
-- Found PythonInterp: /home/linuxbrew/.linuxbrew/bin/python (found version "2.7.15") 
-- Performing Test CXX_SUPPORTS_DOCUMENTATION_FLAG
-- Performing Test CXX_SUPPORTS_DOCUMENTATION_FLAG - Success
-- Performing Test CXX_SUPPORTS_IMPLICIT_FALLTHROUGH_FLAG
-- Performing Test CXX_SUPPORTS_IMPLICIT_FALLTHROUGH_FLAG - Success
-- Performing Test CXX_SUPPORTS_UNREACHABLE_CODE_FLAG
-- Performing Test CXX_SUPPORTS_UNREACHABLE_CODE_FLAG - Success
-- Performing Test CXX_SUPPORTS_OVERLOADED_VIRTUAL
-- Performing Test CXX_SUPPORTS_OVERLOADED_VIRTUAL - Success
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CLANG_VERSION_MAJOR
    CLANG_VERSION_MINOR
    CLANG_VERSION_PATCH
    LLBUILD_SUPPORT_BINDINGS
    LLVM_ENABLE_ASSERTIONS
    LLVM_VERSION_MAJOR
    LLVM_VERSION_MINOR
    LLVM_VERSION_PATCH

-- Build files have been written to: /home/pi/swift/build/buildbot_linux/llbuild-linux-armv7
+ popd
~/swift
+ /usr/bin/cmake --build /home/pi/swift/build/buildbot_linux/llbuild-linux-armv7 -- -j4 all
[49/107] Building CXX object lib/Core/CMakeFiles/llbuildCore.dir/SQLiteBuildDB.cpp.o
/home/pi/swift/llbuild/lib/Core/SQLiteBuildDB.cpp:375:28: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
    if (numDependencyBytes != numDependencies * sizeof(uint64_t)) {
        ~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
[58/107] Building CXX object lib/BuildSystem/CMakeFiles/llbuildBuildSystem.dir/ExternalCommand.cpp.o
/home/pi/swift/llbuild/lib/BuildSystem/ExternalCommand.cpp:149:14: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
  assert(idx < value.getNumOutputs());
         ~~~ ^ ~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:89:5: note: expanded from macro 'assert'
  ((expr)                                                               \
    ^~~~
1 warning generated.
[107/107] Linking CXX executable unittests/BuildSystem/BuildSystemTests
libdispatch: using gold linker
Cleaning the libdispatch build directory
+ rm -rf /home/pi/swift/build/buildbot_linux/libdispatch-linux-armv7
+ mkdir -p /home/pi/swift/build/buildbot_linux/libdispatch-linux-armv7
+ pushd /home/pi/swift/build/buildbot_linux/libdispatch-linux-armv7
~/swift/build/buildbot_linux/libdispatch-linux-armv7 ~/swift
+ env /usr/bin/cmake -G Ninja -DCMAKE_C_COMPILER:PATH=/usr/bin/clang -DCMAKE_CXX_COMPILER:PATH=/usr/bin/clang++ -DLLVM_VERSION_MAJOR:STRING=5 -DLLVM_VERSION_MINOR:STRING=0 -DLLVM_VERSION_PATCH:STRING=0 -DCLANG_VERSION_MAJOR:STRING=5 -DCLANG_VERSION_MINOR:STRING=0 -DCLANG_VERSION_PATCH:STRING=0 -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 -DCMAKE_C_COMPILER:PATH=/home/pi/swift/build/buildbot_linux/llvm-linux-armv7/bin/clang -DCMAKE_CXX_COMPILER:PATH=/home/pi/swift/build/buildbot_linux/llvm-linux-armv7/bin/clang++ -DCMAKE_SWIFT_COMPILER:PATH=/home/pi/swift/build/buildbot_linux/swift-linux-armv7/bin/swiftc -DCMAKE_INSTALL_PREFIX:PATH=/usr/ -DCMAKE_INSTALL_LIBDIR:PATH=lib -DENABLE_SWIFT=YES -DSWIFT_RUNTIME_LIBDIR:PATH=/home/pi/swift/build/buildbot_linux/swift-linux-armv7/lib/swift/linux/armv7 -DENABLE_TESTING=YES /home/pi/swift/swift-corelibs-libdispatch
-- The C compiler identification is Clang 5.0.0
-- The CXX compiler identification is Clang 5.0.0
-- Check for working C compiler: /home/pi/swift/build/buildbot_linux/llvm-linux-armv7/bin/clang
-- Check for working C compiler: /home/pi/swift/build/buildbot_linux/llvm-linux-armv7/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /home/pi/swift/build/buildbot_linux/llvm-linux-armv7/bin/clang++
-- Check for working CXX compiler: /home/pi/swift/build/buildbot_linux/llvm-linux-armv7/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE  
-- Looking for __GNU_LIBRARY__
-- Looking for __GNU_LIBRARY__ - found
-- Performing Test __BUILTIN_TRAP
-- Performing Test __BUILTIN_TRAP - Success
-- Found LibRT: /usr/lib/arm-linux-gnueabihf/librt.so  
-- Looking for _pthread_workqueue_init
-- Looking for _pthread_workqueue_init - not found
-- Looking for getprogname
-- Looking for getprogname - not found
-- Looking for mach_absolute_time
-- Looking for mach_absolute_time - not found
-- Looking for mach_approximate_time
-- Looking for mach_approximate_time - not found
-- Looking for mach_port_construct
-- Looking for mach_port_construct - not found
-- Looking for malloc_create_zone
-- Looking for malloc_create_zone - not found
-- Looking for pthread_key_init_np
-- Looking for pthread_key_init_np - not found
-- Looking for pthread_main_np
-- Looking for pthread_main_np - not found
-- Looking for pthread_workqueue_setdispatch_np
-- Looking for pthread_workqueue_setdispatch_np - not found
-- Looking for strlcpy
-- Looking for strlcpy - not found
-- Looking for sysconf
-- Looking for sysconf - found
-- Looking for arc4random
-- Looking for arc4random - not found
-- Found PkgConfig: /home/linuxbrew/.linuxbrew/bin/pkg-config (found version "0.29.2") 
-- Checking for module 'libbsd-overlay'
--   Found libbsd-overlay, version 0.8.3
-- Looking for include file TargetConditionals.h
-- Looking for include file TargetConditionals.h - not found
-- Looking for include file dlfcn.h
-- Looking for include file dlfcn.h - found
-- Looking for include file fcntl.h
-- Looking for include file fcntl.h - found
-- Looking for include file inttypes.h
-- Looking for include file inttypes.h - found
-- Looking for include file libkern/OSAtomic.h
-- Looking for include file libkern/OSAtomic.h - not found
-- Looking for include file libkern/OSCrossEndian.h
-- Looking for include file libkern/OSCrossEndian.h - not found
-- Looking for include file libproc_internal.h
-- Looking for include file libproc_internal.h - not found
-- Looking for include file mach/mach.h
-- Looking for include file mach/mach.h - not found
-- Looking for include file malloc/malloc.h
-- Looking for include file malloc/malloc.h - not found
-- Looking for include file memory.h
-- Looking for include file memory.h - found
-- Looking for include file pthread/qos.h
-- Looking for include file pthread/qos.h - not found
-- Looking for include file pthread/workqueue_private.h
-- Looking for include file pthread/workqueue_private.h - not found
-- Looking for include file pthread_machdep.h
-- Looking for include file pthread_machdep.h - not found
-- Looking for include file pthread_np.h
-- Looking for include file pthread_np.h - not found
-- Looking for include file pthread_workqueue.h
-- Looking for include file pthread_workqueue.h - not found
-- Looking for include file stdint.h
-- Looking for include file stdint.h - found
-- Looking for include file stdlib.h
-- Looking for include file stdlib.h - found
-- Looking for include file string.h
-- Looking for include file string.h - found
-- Looking for include file strings.h
-- Looking for include file strings.h - found
-- Looking for include file sys/guarded.h
-- Looking for include file sys/guarded.h - not found
-- Looking for include file sys/stat.h
-- Looking for include file sys/stat.h - found
-- Looking for include file sys/types.h
-- Looking for include file sys/types.h - found
-- Looking for include file unistd.h
-- Looking for include file unistd.h - found
-- Looking for include file objc/objc-internal.h
-- Looking for include file objc/objc-internal.h - not found
-- Looking for sem_init in pthread
-- Looking for sem_init in pthread - found
-- Looking for CLOCK_UPTIME
-- Looking for CLOCK_UPTIME - not found
-- Looking for CLOCK_UPTIME_FAST
-- Looking for CLOCK_UPTIME_FAST - not found
-- Looking for CLOCK_MONOTONIC
-- Looking for CLOCK_MONOTONIC - found
-- Looking for CLOCK_REALTIME
-- Looking for CLOCK_REALTIME - found
-- Looking for CLOCK_MONOTONIC_COARSE
-- Looking for CLOCK_MONOTONIC_COARSE - found
-- Looking for FD_COPY
-- Looking for FD_COPY - not found
-- Looking for NOTE_LOWAT
-- Looking for NOTE_LOWAT - not found
-- Looking for NOTE_NONE
-- Looking for NOTE_NONE - not found
-- Looking for NOTE_REAP
-- Looking for NOTE_REAP - not found
-- Looking for NOTE_REVOKE
-- Looking for NOTE_REVOKE - not found
-- Looking for NOTE_SIGNAL
-- Looking for NOTE_SIGNAL - not found
-- Looking for POSIX_SPAWN_START_SUSPENDED
-- Looking for POSIX_SPAWN_START_SUSPENDED - not found
-- Looking for SIGEMT
-- Looking for SIGEMT - not found
-- Looking for VQ_DESIRED_DISK
-- Looking for VQ_DESIRED_DISK - not found
-- Looking for VQ_NEARLOWDISK
-- Looking for VQ_NEARLOWDISK - not found
-- Looking for VQ_QUOTA
-- Looking for VQ_QUOTA - not found
-- Looking for VQ_UPDATE
-- Looking for VQ_UPDATE - not found
-- Looking for VQ_VERYLOWDISK
-- Looking for VQ_VERYLOWDISK - not found
-- Looking for program_invocation_name
-- Looking for program_invocation_name - found
-- Looking for __printflike
-- Looking for __printflike - found
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CLANG_VERSION_MAJOR
    CLANG_VERSION_MINOR
    CLANG_VERSION_PATCH
    LLVM_VERSION_MAJOR
    LLVM_VERSION_MINOR
    LLVM_VERSION_PATCH

-- Build files have been written to: /home/pi/swift/build/buildbot_linux/libdispatch-linux-armv7
+ popd
~/swift
+ /usr/bin/cmake --build /home/pi/swift/build/buildbot_linux/libdispatch-linux-armv7 -- -j4 all
[8/78] Generating swiftDispatch.o, swift/Dispatch.swiftmodule, swift/Dispatch.swiftdoc
/home/pi/swift/swift-corelibs-libdispatch/src/swift/Data.swift:277:42: warning: 'RandomAccessSlice' is deprecated: renamed to 'Slice'
        public subscript(bounds: Range<Int>) -> RandomAccessSlice<DispatchData> {
                                                ^
/home/pi/swift/swift-corelibs-libdispatch/src/swift/Data.swift:277:42: note: use 'Slice' instead
        public subscript(bounds: Range<Int>) -> RandomAccessSlice<DispatchData> {
                                                ^~~~~~~~~~~~~~~~~
                                                Slice
/home/pi/swift/swift-corelibs-libdispatch/src/swift/Data.swift:337:46: warning: '_Element' is deprecated: renamed to 'Element'
        public mutating func next() -> DispatchData._Element? {
                                                    ^
/home/pi/swift/swift-corelibs-libdispatch/src/swift/Data.swift:337:46: note: use 'Element' instead
        public mutating func next() -> DispatchData._Element? {
                                                    ^~~~~~~~
                                                    Element
/home/pi/swift/swift-corelibs-libdispatch/src/swift/Data.swift:172:9: warning: 'append(_:count:)' is deprecated: Use append(_: UnsafeRawBufferPointer) instead
                        self.append($0, count: count)
                             ^
/home/pi/swift/swift-corelibs-libdispatch/src/swift/Data.swift:278:10: warning: 'RandomAccessSlice' is deprecated: renamed to 'Slice'
                return RandomAccessSlice(base: self, bounds: bounds)
                       ^
/home/pi/swift/swift-corelibs-libdispatch/src/swift/Data.swift:278:10: note: use 'Slice' instead
                return RandomAccessSlice(base: self, bounds: bounds)
                       ^~~~~~~~~~~~~~~~~
                       Slice
/home/pi/swift/swift-corelibs-libdispatch/src/swift/Dispatch.swift:99:4: warning: default will never be executed
                        default: return nil
                        ^
[78/78] Linking C executable tests/dispatch_select
foundation: using gold linker
Cleaning the Foundation build directory
+ rm -rf /home/pi/swift/build/buildbot_linux/foundation-linux-armv7
+ pushd /home/pi/swift/swift-corelibs-foundation
~/swift/swift-corelibs-foundation ~/swift
+ env SWIFTC=/home/pi/swift/build/buildbot_linux/swift-linux-armv7/bin/swiftc CLANG=/home/pi/swift/build/buildbot_linux/llvm-linux-armv7/bin/clang SWIFT=/home/pi/swift/build/buildbot_linux/swift-linux-armv7/bin/swift SDKROOT=/home/pi/swift/build/buildbot_linux/swift-linux-armv7 BUILD_DIR=/home/pi/swift/build/buildbot_linux/foundation-linux-armv7 DSTROOT=/home/pi/swift/install/ PREFIX=/usr/ ./configure Release -DXCTEST_BUILD_DIR=/home/pi/swift/build/buildbot_linux/xctest-linux-armv7 -DLIBDISPATCH_SOURCE_DIR=/home/pi/swift/swift-corelibs-libdispatch -DLIBDISPATCH_BUILD_DIR=/home/pi/swift/build/buildbot_linux/libdispatch-linux-armv7
Executing command '['pkg-config', '--cflags', 'icu-i18n']'
Executing command '['pkg-config', '--cflags-only-I', 'icu-i18n']'
Executing command '['pkg-config', '--cflags-only-other', 'icu-i18n']'
Executing command '['pkg-config', '--libs', 'icu-i18n']'
Executing command '['pkg-config', '--libs-only-l', 'icu-i18n']'
Executing command '['pkg-config', '--libs-only-L', 'icu-i18n']'
Executing command '['pkg-config', '--libs-only-other', 'icu-i18n']'
Executing command '['pkg-config', '--cflags', 'icu-uc']'
Executing command '['pkg-config', '--cflags-only-I', 'icu-uc']'
Executing command '['pkg-config', '--cflags-only-other', 'icu-uc']'
Executing command '['pkg-config', '--libs', 'icu-uc']'
Executing command '['pkg-config', '--libs-only-l', 'icu-uc']'
Executing command '['pkg-config', '--libs-only-L', 'icu-uc']'
Executing command '['pkg-config', '--libs-only-other', 'icu-uc']'
Executing command '['pkg-config', '--cflags', 'libcurl']'
Package libcurl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcurl' found
pkg-config error for package libcurl: pkg-config exited with error code 1
./swift/utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting

I can only spot one libcurl in /home/pi/swift/swift-corelibs-foundation/Foundation/URLSession/libcurl. Should I add this one to PKG_CONFIG_PATH?

Many thanks!

uraimo commented 6 years ago

Again linuxbrew (the pkg-config of linuxbrew), you could try installing the curl package, since they don't have a separate "libcurl" package, with brew install curl. Not really sure if it would work.

Or, following their instructions, this is what I would do to solve all the issues related to linuxbrew:

    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/uninstall)"
    rm -rf ~/.linuxbrew

:)

Hackberger commented 6 years ago

I did sudo find / -name "libcurl.pc" and with the result export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/lib/arm-linux-gnueabihf/pkgconfig/ and now it continues.

I will uninstall brew next!

Hackberger commented 6 years ago

After 24 h another error came up.

I removed brew. I ran clean.sh. I ran build.sh.

Console output starting at some lines above the error.

xctest-build: /home/pi/swift/build/buildbot_linux/swift-linux-armv7/bin/swiftc -emit-library /home/pi/swift/build/buildbot_linux/xctest-linux-armv7/XCTest.o -L /home/pi/swift/build/buildbot_linux/libdispatch-linux-armv7/src/.libs -L /home/pi/swift/build/buildbot_linux/foundation-linux-armv7/Foundation -lswiftGlibc -lswiftCore -lFoundation -lm -Xlinker -rpath=\$ORIGIN -o /home/pi/swift/build/buildbot_linux/xctest-linux-armv7/libXCTest.so
xctest-build: mkdir -p /home/pi/swift/build/buildbot_linux/xctest-linux-armv7/static
xctest-build: ar rcs /home/pi/swift/build/buildbot_linux/xctest-linux-armv7/static/libXCTest.a /home/pi/swift/build/buildbot_linux/xctest-linux-armv7/XCTest.o
xctest-build: Done.
swiftpm: using gold linker
+ /home/pi/swift/swiftpm/Utilities/bootstrap --release --swiftc=/home/pi/swift/build/buildbot_linux/swift-linux-armv7/bin/swiftc --sbt=/home/pi/swift/build/buildbot_linux/llbuild-linux-armv7/bin/swift-build-tool --build=/home/pi/swift/build/buildbot_linux/swiftpm-linux-armv7 --foundation=/home/pi/swift/build/buildbot_linux/foundation-linux-armv7/Foundation --libdispatch-source-dir=/home/pi/swift/swift-corelibs-libdispatch --libdispatch-build-dir=/home/pi/swift/build/buildbot_linux/libdispatch-linux-armv7 --xctest=/home/pi/swift/build/buildbot_linux/xctest-linux-armv7
--- bootstrap: note: building stage1
Compile libc.c
Compile Swift Module 'PackageDescription' (6 sources)
Compile Swift Module 'PackageDescription4' (9 sources)
Link clibc
Compile Swift Module 'libc' (1 sources)
Link libc
Compile Swift Module 'POSIX' (11 sources)
Link POSIX
Compile Swift Module 'Basic' (37 sources)
Link PackageDescription
Link PackageDescription4
/home/pi/swift/swiftpm/Sources/Basic/FileSystem.swift:232:16: warning: 'readdir_r' is deprecated
            if readdir_r(dir, &entry, &entryPtr) < 0 {
               ^
Link Basic
Compile Swift Module 'Utility' (19 sources)
Link Utility
Compile Swift Module 'TestSupportExecutable' (1 sources)
Compile Swift Module 'SourceControl' (4 sources)
Compile Swift Module 'PackageModel' (7 sources)
Link /home/pi/swift/build/buildbot_linux/swiftpm-linux-armv7/.bootstrap/bin/TestSupportExecutable
Link PackageModel
Compile Swift Module 'PackageLoading' (9 sources)
Link SourceControl
Link PackageLoading
Compile Swift Module 'PackageGraph' (6 sources)
Link PackageGraph
Compile Swift Module 'Build' (7 sources)
Compile Swift Module 'Xcodeproj' (7 sources)
Link Build
Link Xcodeproj
Compile Swift Module 'Workspace' (7 sources)
Link Workspace
Compile Swift Module 'Commands' (14 sources)
Link Commands
Compile Swift Module 'swift_package' (1 sources)
Compile Swift Module 'swift_test' (1 sources)
Compile Swift Module 'swift_build' (1 sources)
Compile Swift Module 'swift_run' (1 sources)
Link /home/pi/swift/build/buildbot_linux/swiftpm-linux-armv7/.bootstrap/bin/swift-test
Link /home/pi/swift/build/buildbot_linux/swiftpm-linux-armv7/.bootstrap/bin/swift-build
Link /home/pi/swift/build/buildbot_linux/swiftpm-linux-armv7/.bootstrap/bin/swift-package
Link /home/pi/swift/build/buildbot_linux/swiftpm-linux-armv7/.bootstrap/bin/swift-run
--- bootstrap: note: building runtime v3 target: PackageDescription: 
Compile Swift Module 'PackageDescription' (6 sources)
Link PackageDescription
--- bootstrap: note: building runtime v4 target: PackageDescription4: 
Compile Swift Module 'PackageDescription' (9 sources)
Link PackageDescription
--- bootstrap: note: building self-hosted 'swift-build': env SWIFT_EXEC=/home/pi/swift/build/buildbot_linux/swiftpm-linux-armv7/x86_64-unknown-linux/release/swiftc SWIFT_BUILD_PATH=/home/pi/swift/build/buildbot_linux/swiftpm-linux-armv7 /home/pi/swift/build/buildbot_linux/swiftpm-linux-armv7/x86_64-unknown-linux/release/swift-build-stage1 --disable-sandbox -Xlinker -rpath -Xlinker $ORIGIN/../lib/swift/linux -Xlinker -L -Xlinker /home/pi/swift/build/buildbot_linux/foundation-linux-armv7/Foundation -Xlinker -rpath -Xlinker /home/pi/swift/build/buildbot_linux/foundation-linux-armv7/Foundation -Xswiftc -I/home/pi/swift/build/buildbot_linux/foundation-linux-armv7/Foundation -Xswiftc -I/home/pi/swift/build/buildbot_linux/foundation-linux-armv7/Foundation/usr/lib/swift -Xlinker -L -Xlinker /home/pi/swift/build/buildbot_linux/xctest-linux-armv7 -Xlinker -rpath -Xlinker /home/pi/swift/build/buildbot_linux/xctest-linux-armv7 -Xswiftc -I/home/pi/swift/build/buildbot_linux/xctest-linux-armv7 -Xlinker -L/home/pi/swift/build/buildbot_linux/libdispatch-linux-armv7/src/.libs -Xswiftc -I/home/pi/swift/build/buildbot_linux/libdispatch-linux-armv7/src -Xswiftc -I/home/pi/swift/build/buildbot_linux/libdispatch-linux-armv7/src/swift -Xswiftc -I/home/pi/swift/swift-corelibs-libdispatch -Xcc -fblocks -Xswiftc -enable-testing --configuration release --build-tests
*** Error in `/home/pi/swift/build/buildbot_linux/swiftpm-linux-armv7/x86_64-unknown-linux/release/swift-build-stage1': corrupted double-linked list: 0x00d35f18 ***
--- bootstrap: error: build failed with exit status -6
./swift/utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting

What happened? Many thanks!

uraimo commented 6 years ago

Something similar will happen when the patches were not applied using checkoutrelease.sh, which I'm sure you've run when you started the process. Is this replicable removing /home/pi/swift/build/buildbot_linux/swiftpm-linux-armv7 and trying again?