<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Aug 16, 2016, at 10:19 AM, Vivian Kong &lt;<a href="mailto:vivkong@ca.ibm.com" class="">vivkong@ca.ibm.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><p class="">Thanks for clarifying!  I just checked and my swift-test executable seems to have the correct RPATH (Foundation and XCTest paths are there).<br class=""><br class="">And yes I didn't understand why when I execute swift-test it is trying to compile.  Let me do a clean SwiftPM build again and check the log.<br class=""></p></div></div></blockquote><div><br class=""></div>That is normal behavior for the `swift-test` tool. It is just not normal behavior when run with `--version`.</div><div><br class=""></div><div>&nbsp;- Daniel<br class=""><blockquote type="cite" class=""><div class=""><div class=""><p class=""><br class="">Regards,<br class=""><br class="">Vivian Kong<br class="">Software Developer<br class="">IBM Canada Toronto Lab<br class=""><br class=""><span id="cid:1__=8FBB0A82DFCD47688f9e8a93df938690918c8FB@">&lt;graycol.gif&gt;</span><font color="#424282" class="">Daniel Dunbar ---2016/08/16 01:10:41 PM---I wasn't precise enough, we actually use RUNPATH currently. Here is what I see for a local build on</font><br class=""><br class=""><font size="2" color="#5F5F5F" class="">From:        </font><font size="2" class="">Daniel Dunbar &lt;<a href="mailto:daniel_dunbar@apple.com" class="">daniel_dunbar@apple.com</a>&gt;</font><br class=""><font size="2" color="#5F5F5F" class="">To:        </font><font size="2" class="">Vivian Kong/Toronto/IBM@IBMCA</font><br class=""><font size="2" color="#5F5F5F" class="">Cc:        </font><font size="2" class="">Daniel Dunbar &lt;<a href="mailto:daniel@zuster.org" class="">daniel@zuster.org</a>&gt;, "<a href="mailto:swift-build-dev@swift.org" class="">swift-build-dev@swift.org</a>" &lt;<a href="mailto:swift-build-dev@swift.org" class="">swift-build-dev@swift.org</a>&gt;</font><br class=""><font size="2" color="#5F5F5F" class="">Date:        </font><font size="2" class="">2016/08/16 01:10 PM</font><br class=""><font size="2" color="#5F5F5F" class="">Subject:        </font><font size="2" class="">Re: [swift-build-dev] Test failures on s390x</font><br class=""><font size="2" color="#5F5F5F" class="">Sent by:        </font><font size="2" class=""><a href="mailto:daniel_dunbar@apple.com" class="">daniel_dunbar@apple.com</a></font><br class=""></p><hr width="100%" size="2" align="left" noshade="" style="color:#8091A5; " class=""><br class=""><br class=""><br class=""><font size="4" class="">I wasn't precise enough, we actually use RUNPATH currently. Here is what I see for a local build on Ubuntu 15.10:</font><br class=""><br class=""><font size="2" color="#0220B3" class="">~/public/swift-project/swiftpm$ </font><b class=""><font size="2" class="">objdump -x ../build/Ninja-ReleaseAssert/swiftpm-linux-x86_64/debug/swift-test | grep RUNPATH</font></b><font size="2" class="">                                                                                             </font><br class=""><font size="2" class="">  RUNPATH              /home/ddunbar/public/swift-project/build/Ninja-ReleaseAssert/swift-linux-x86_64/lib/swift/linux:$ORIGIN/../lib/swift/linux:/home/ddunbar/public/swift-project/build/Ninja-ReleaseAssert/foundation-linux-x86_64/Foundation:/home/ddunbar/public/swift-project/build/Ninja-ReleaseAssert/xctest-linux-x86_64:$ORIGIN </font><br class=""><br class=""><font size="4" class="">Note the Foundation and XCTest paths there.</font><br class=""><br class=""><font size="4" class="">Actually -- I just realized what is going on, it is something completely different.</font><br class=""><br class=""><font size="4" class="">Your `swift-test --version` command appears to be, for some reason or other, actually trying to execute the tests (instead of just printing the version). It shouldn't be doing that; is it possible there is a miscompile of swift-test here?</font><br class=""><br class=""><font size="4" class=""> - Daniel</font><br class="">
<ul class=""><ul class=""><font size="4" class="">On Aug 16, 2016, at 10:03 AM, Vivian Kong &lt;</font><a href="mailto:vivkong@ca.ibm.com" class=""><u class=""><font size="4" color="#0000FF" class="">vivkong@ca.ibm.com</font></u></a><font size="4" class="">&gt; wrote:</font><br class=""><p class=""><font size="4" class="">Sorry was having lunch =P<br class=""><br class="">Makes sense! I tried doing <br class=""><br class="">objdump -x /localbox/vivkong/swift3/build/Ninja-RelWithDebInfoAssert/swiftpm-linux-s390x/debug/swiftc | grep RPATH<br class=""><br class="">but it returns nothing.<br class=""><br class="">I did the same thing on my build on x86_64 and got the same result. <br class=""><br class="">Regards,<br class=""><br class="">Vivian Kong<br class="">Software Developer<br class="">IBM Canada Toronto Lab<br class=""><br class="">&lt;graycol.gif&gt;</font><font size="4" color="#424282" class="">Daniel Dunbar ---2016/08/16 12:43:38 PM---Hi Vivian, Did you see my follow up?</font><font size="4" class=""><br class=""></font><font color="#5F5F5F" class=""><br class="">From: </font>Daniel Dunbar &lt;<a href="mailto:daniel_dunbar@apple.com" class=""><u class=""><font color="#0000FF" class="">daniel_dunbar@apple.com</font></u></a>&gt;<font color="#5F5F5F" class=""><br class="">To: </font>Vivian Kong/Toronto/IBM@IBMCA<font color="#5F5F5F" class=""><br class="">Cc: </font>Daniel Dunbar &lt;<a href="mailto:daniel@zuster.org" class=""><u class=""><font color="#0000FF" class="">daniel@zuster.org</font></u></a>&gt;, "<a href="mailto:swift-build-dev@swift.org" class=""><u class=""><font color="#0000FF" class="">swift-build-dev@swift.org</font></u></a>" &lt;<a href="mailto:swift-build-dev@swift.org" class=""><u class=""><font color="#0000FF" class="">swift-build-dev@swift.org</font></u></a>&gt;<font color="#5F5F5F" class=""><br class="">Date: </font>2016/08/16 12:43 PM<font color="#5F5F5F" class=""><br class="">Subject: </font>Re: [swift-build-dev] Test failures on s390x<font color="#5F5F5F" class=""><br class="">Sent by: </font><a href="mailto:daniel_dunbar@apple.com" class=""><u class=""><font color="#0000FF" class="">daniel_dunbar@apple.com</font></u></a></p><div class=""><br class="webkit-block-placeholder"></div><hr width="100%" size="2" align="left" noshade="" class=""><font size="4" class=""><br class=""><br class=""></font><font size="5" class=""><br class="">Hi Vivian,</font><font size="4" class=""><br class=""></font><font size="5" class=""><br class="">Did you see my follow up?</font><font size="4" class=""><br class=""></font><font size="5" class=""><br class="">- Daniel</font><ul class=""><ul class=""><ul class=""><ul class=""><font size="5" class="">On Aug 16, 2016, at 8:54 AM, Vivian Kong via swift-build-dev &lt;</font><a href="mailto:swift-build-dev@swift.org" class=""><u class=""><font size="5" color="#0000FF" class="">swift-build-dev@swift.org</font></u></a><font size="5" class="">&gt; wrote:</font><p class=""><font size="5" class="">Thanks Daniel. I've created </font><a href="https://github.com/apple/swift-package-manager/pull/608" class=""><u class=""><font size="5" color="#0000FF" class="">https://github.com/apple/swift-package-manager/pull/608</font></u></a><font size="5" class=""> to disable the tests on non-macOS platforms.<br class=""><br class="">Pull request #608 is for the swift-3.0-branch. Would I need to create another pull request for master? Wanted to see if the process is similar to </font><a href="https://github.com/apple/swift" class=""><u class=""><font size="5" color="#0000FF" class="">https://github.com/apple/swift</font></u></a><font size="5" class="">.<br class=""><br class="">Thanks!<br class=""><br class="">Regards,<br class=""><br class="">Vivian Kong<br class="">Software Developer<br class="">IBM Canada Toronto Lab<br class=""><br class="">&lt;graycol.gif&gt;</font><font size="5" color="#424282" class="">Daniel Dunbar ---2016/08/16 11:11:16 AM---Those tests don't work on non-macOS yet. I suspect the problem is simply that they are conditionaliz</font><font size="4" color="#5F5F5F" class=""><br class=""><br class="">From: </font><font size="4" class="">Daniel Dunbar &lt;</font><a href="mailto:daniel@zuster.org" class=""><u class=""><font size="4" color="#0000FF" class="">daniel@zuster.org</font></u></a><font size="4" class="">&gt;</font><font size="4" color="#5F5F5F" class=""><br class="">To: </font><font size="4" class="">Vivian Kong/Toronto/IBM@IBMCA</font><font size="4" color="#5F5F5F" class=""><br class="">Cc: </font><font size="4" class="">"</font><a href="mailto:swift-build-dev@swift.org" class=""><u class=""><font size="4" color="#0000FF" class="">swift-build-dev@swift.org</font></u></a><font size="4" class="">" &lt;</font><a href="mailto:swift-build-dev@swift.org" class=""><u class=""><font size="4" color="#0000FF" class="">swift-build-dev@swift.org</font></u></a><font size="4" class="">&gt;</font><font size="4" color="#5F5F5F" class=""><br class="">Date: </font><font size="4" class="">2016/08/16 11:11 AM</font><font size="4" color="#5F5F5F" class=""><br class="">Subject: </font><font size="4" class="">Re: [swift-build-dev] Test failures on s390x</font><font size="4" color="#5F5F5F" class=""><br class="">Sent by: </font><a href="mailto:daniel.dunbar@gmail.com" class=""><u class=""><font size="4" color="#0000FF" class="">daniel.dunbar@gmail.com</font></u></a></p><p class=""><br class=""></p><hr width="100%" size="2" align="left" noshade="" class=""><font size="5" class=""><br class=""></font><font size="6" class=""><br class=""><br class="">Those tests don't work on non-macOS yet. I suspect the problem is simply that they are conditionalized on not-Linux vs only-macOS, but they probably shouldn't be running. <br class=""><br class="">- Daniel<br class=""><br class="">On Tuesday, August 16, 2016, Vivian Kong via swift-build-dev &lt;</font><a href="mailto:swift-build-dev@swift.org" class=""><u class=""><font size="6" color="#0000FF" class="">swift-build-dev@swift.org</font></u></a><font size="6" class="">&gt; wrote:</font><ul class=""><ul class=""><ul class=""><ul class=""><font size="6" class="">I ran into these 2 failing test cases in TestToolTests when I ran the SwiftPM tests on s390x. I'm looking for hints on how to fix this as I'm not sure why the Foundation and XCTest module can't be found.<br class=""><br class="">Thanks and I appreciate the help!<br class=""><br class="">Test Case 'TestToolTests.testVersion' started at 18:01:42.018<br class="">**** FAILURE EXECUTING SUBPROCESS ****<br class="">command: /localbox/vivkong/swift3/build/Ninja-RelWithDebInfoAssert/swiftpm-linux-s390x/debug/swift-test --version<br class="">SWIFT_EXEC: nil<br class="">output: Compile Swift Module 'Basic' (20 sources)<br class="">Compile Swift Module 'POSIXTests' (2 sources)<br class="">Compile Swift Module 'PackageDescriptionTests' (3 sources)<br class="">/localbox/vivkong/swift3/swiftpm/Tests/POSIXTests/XCTestManifests.swift:11:8: error: no such module 'XCTest'<br class="">import XCTest<br class="">^<br class="">/localbox/vivkong/swift3/swiftpm/Tests/POSIXTests/XCTestManifests.swift:11:8: error: no such module 'XCTest'<br class="">import XCTest<br class="">^<br class="">/localbox/vivkong/swift3/swiftpm/Tests/PackageDescriptionTests/XCTestManifests.swift:11:8: error: no such module 'XCTest'<br class="">import XCTest<br class="">^<br class="">/localbox/vivkong/swift3/swiftpm/Tests/PackageDescriptionTests/XCTestManifests.swift:11:8: error: no such module 'XCTest'<br class="">import XCTest<br class="">^<br class="">/localbox/vivkong/swift3/swiftpm/Tests/PackageDescriptionTests/XCTestManifests.swift:11:8: error: no such module 'XCTest'<br class="">import XCTest<br class="">^<br class="">/localbox/vivkong/swift3/swiftpm/Sources/Basic/TemporaryFile.swift:13:14: error: no such module 'Foundation'<br class="">import class Foundation.FileHandle<br class="">^<br class="">/localbox/vivkong/swift3/swiftpm/Sources/Basic/TemporaryFile.swift:13:14: error: no such module 'Foundation'<br class="">import class Foundation.FileHandle<br class="">^<br class="">/localbox/vivkong/swift3/swiftpm/Sources/Basic/TemporaryFile.swift:13:14: error: no such module 'Foundation'<br class="">import class Foundation.FileHandle<br class="">^<br class="">/localbox/vivkong/swift3/swiftpm/Sources/Basic/TemporaryFile.swift:13:14: error: no such module 'Foundation'<br class="">import class Foundation.FileHandle<br class="">^<br class="">/localbox/vivkong/swift3/swiftpm/Sources/Basic/TemporaryFile.swift:13:14: error: no such module 'Foundation'<br class="">import class Foundation.FileHandle<br class="">^<br class="">/localbox/vivkong/swift3/swiftpm/Sources/Basic/TemporaryFile.swift:13:14: error: no such module 'Foundation'<br class="">import class Foundation.FileHandle<br class="">^<br class="">/localbox/vivkong/swift3/swiftpm/Sources/Basic/TemporaryFile.swift:13:14: error: no such module 'Foundation'<br class="">import class Foundation.FileHandle<br class="">^<br class="">/localbox/vivkong/swift3/swiftpm/Sources/Basic/TemporaryFile.swift:13:14: error: no such module 'Foundation'<br class="">import class Foundation.FileHandle<br class="">^<br class="">&lt;unknown&gt;:0: error: build had 3 command failures<br class="">swift-test: error: exit(-1263376016): /localbox/vivkong/swift3/build/Ninja-RelWithDebInfoAssert/swiftpm-linux-s390x/debug/swift-build-tool -f /localbox/vivkong/swift3/swiftpm/.build/debug.yaml test<br class=""><br class="">/localbox/vivkong/swift3/swiftpm/Tests/CommandsTests/TestToolTests.swift:26: error: TestToolTests.testVersion : XCTAssertTrue threw error "exit(152): /localbox/vivkong/swift3/build/Ninja-RelWithDebInfoAssert/swiftpm-linux-s390x/debug/swift-test --version" - <br class="">Test Case 'TestToolTests.testVersion' failed (1.2 seconds).<br class="">Test Suite 'TestToolTests' failed at 18:01:43.218<br class="">Executed 2 tests, with 2 failures (2 unexpected) in 2.248 (2.248) seconds<br class=""><br class="">Regards,<br class=""><br class="">Vivian Kong<br class="">Software Developer<br class="">IBM Canada Toronto Lab</font></ul></ul></ul></ul><font size="5" class=""><br class="">_______________________________________________<br class="">swift-build-dev mailing list</font><u class=""><font size="4" color="#0000FF" class=""><br class=""></font></u><a href="mailto:swift-build-dev@swift.org" class=""><u class=""><font size="5" color="#0000FF" class="">swift-build-dev@swift.org</font></u></a><u class=""><font size="5" color="#0000FF" class=""><br class=""></font></u><a href="https://lists.swift.org/mailman/listinfo/swift-build-dev" class=""><u class=""><font size="5" color="#0000FF" class="">https://lists.swift.org/mailman/listinfo/swift-build-dev</font></u></a></ul></ul></ul></ul><font size="4" class=""><br class=""><br class=""></font></ul></ul><br class=""><br class=""><br class="">
</div>
</div></blockquote></div><br class=""></body></html>