<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="margin: 0px; line-height: normal;" class=""><span style="-webkit-text-stroke-width: initial;" class="">(Note: I</span>’<span style="-webkit-text-stroke-width: initial;" class="">ve also posted this to swift-dev, as this mailing list didn</span>’<span style="-webkit-text-stroke-width: initial;" class="">t show up on gmane.)</span></div><div style="margin: 0px; line-height: normal;" class=""><span style="-webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;" class=""><br class=""></span></div><div style="margin: 0px; line-height: normal;" class=""><span style="-webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;" class="">For SwiftPM, I'm looking to replace some POSIX calls with Foundation. NSTask</span></div><div style="margin: 0px; line-height: normal; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;" class=""><span style="font-kerning: none" class="">and NSFileManager amongst others. I've created a few PRs already for this, see</span></div><div style="margin: 0px; line-height: normal; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;" class=""><span style="font-kerning: none" class="">[1]. However before these can be merged, the build scripts need to be adjusted</span></div><div style="margin: 0px; line-height: normal; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;" class=""><span style="font-kerning: none" class="">to allow SwiftPM to build against Foundation.</span></div><div style="margin: 0px; line-height: normal; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;" class=""><span style="font-kerning: none" class=""><br class="">
</span></div><div style="margin: 0px; line-height: normal; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;" class=""><span style="font-kerning: none" class="">There has already been some pointers posted in the comments on one of these PRs,</span></div><div style="margin: 0px; line-height: normal; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;" class=""><span style="font-kerning: none" class="">see [2]. I tried to implement those, see my changes to the swift build-script in</span></div><div style="margin: 0px; line-height: normal; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;" class=""><span style="font-kerning: none" class="">[3] and the "fake toolchain" in SwiftPM in [4]. However SwiftPM builds stage1;</span></div><div style="margin: 0px; line-height: normal; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;" class=""><span style="font-kerning: none" class="">stage2 is still failing. I don't know how to proceed; I've only scratched the&nbsp;</span></div><div style="margin: 0px; line-height: normal; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;" class=""><span style="font-kerning: none" class="">surface regarding build systems and the many tools used to build the various&nbsp;</span></div><div style="margin: 0px; line-height: normal; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;" class=""><span style="font-kerning: none" class="">swift parts. I would really love some help going forward.</span></div><div style="margin: 0px; line-height: normal; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;" class=""><span style="font-kerning: none" class=""><br class="">
</span></div><div style="margin: 0px; line-height: normal; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;" class=""><span style="font-kerning: none" class="">&nbsp; &nbsp; $ swift/utils/build-script -R --swiftpm</span></div><div style="margin: 0px; line-height: normal; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;" class=""><span style="font-kerning: none" class="">&nbsp; &nbsp; (...)</span></div><div style="margin: 0px; line-height: normal; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;" class=""><span style="font-kerning: none" class="">&nbsp; &nbsp; --- bootstrap: note: building self-hosted 'swift-build': env SWIFT_EXEC=/media/sf_Developer/apple/build/Ninja-ReleaseAssert/swiftpm-linux-x86_64/debug/swiftc SWIFT_BUILD_PATH=/media/sf_Developer/apple/build/Ninja-ReleaseAssert/swiftpm-linux-x86_64 /media/sf_Developer/apple/build/Ninja-ReleaseAssert/swiftpm-linux-x86_64/debug/swift-build-stage1 -Xlinker -rpath -Xlinker $ORIGIN/../lib/swift/linux -Xlinker -L -Xlinker /media/sf_Developer/apple/build/Ninja-ReleaseAssert/foundation-linux-x86_64/Foundation -Xlinker -rpath -Xlinker /media/sf_Developer/apple/build/Ninja-ReleaseAssert/foundation-linux-x86_64/Foundation -Xswiftc -I/media/sf_Developer/apple/build/Ninja-ReleaseAssert/foundation-linux-x86_64/Foundation -Xswiftc -I/media/sf_Developer/apple/build/Ninja-ReleaseAssert/foundation-linux-x86_64/Foundation/usr/lib/swift</span></div><div style="margin: 0px; line-height: normal; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;" class=""><span style="font-kerning: none" class="">&nbsp; &nbsp; /media/sf_Developer/apple/build/Ninja-ReleaseAssert/swiftpm-linux-x86_64/debug/swift-build-stage1: error while loading shared libraries: libFoundation.so: cannot open shared object file: No such file or directory</span></div><div style="margin: 0px; line-height: normal; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;" class=""><span style="font-kerning: none" class="">&nbsp; &nbsp; --- bootstrap: error: build failed with exit status 127</span></div><div style="margin: 0px; line-height: normal; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;" class=""><span style="font-kerning: none" class=""><br class="">
</span></div><div style="margin: 0px; line-height: normal; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;" class=""><span style="font-kerning: none" class="">- Bouke</span></div><div style="margin: 0px; line-height: normal; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;" class=""><span style="font-kerning: none" class=""><br class="">
</span></div><div style="margin: 0px; line-height: normal; color: rgb(4, 51, 255); -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;" class=""><span style="font-kerning: none; color: #000000" class="">[1]: <a href="https://github.com/apple/swift-package-manager/pulls/Bouke" class=""><span style="-webkit-font-kerning: none;" class="">https://github.com/apple/swift-package-manager/pulls/Bouke</span></a></span></div><div style="margin: 0px; line-height: normal; color: rgb(4, 51, 255); -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;" class=""><span style="font-kerning: none; color: #000000" class="">[2]: <a href="https://github.com/apple/swift-package-manager/pull/292#issuecomment-216508823" class=""><span style="-webkit-font-kerning: none;" class="">https://github.com/apple/swift-package-manager/pull/292#issuecomment-216508823</span></a></span></div><div style="margin: 0px; line-height: normal; color: rgb(4, 51, 255); -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;" class=""><span style="font-kerning: none; color: #000000" class="">[3]: <a href="https://github.com/apple/swift/compare/master...Bouke:swiftpm-foundation" class=""><span style="-webkit-font-kerning: none;" class="">https://github.com/apple/swift/compare/master...Bouke:swiftpm-foundation</span></a></span></div><div style="margin: 0px; line-height: normal; color: rgb(4, 51, 255); -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;" class=""><span style="font-kerning: none; color: #000000" class="">[4]: <a href="https://github.com/apple/swift-package-manager/compare/ef491db...Bouke:swiftpm-foundation" class=""><span style="-webkit-font-kerning: none;" class="">https://github.com/apple/swift-package-manager/compare/ef491db...Bouke:swiftpm-foundation</span></a></span></div><div style="margin: 0px; line-height: normal; -webkit-text-stroke-color: rgb(0, 0, 0); -webkit-text-stroke-width: initial;" class=""><br class=""></div></body></html>