<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1251"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Has anyone tested the assorted install commands while cross compiling? Are they supposed to work?<br class=""><div class="">
<span style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; line-height: normal; float: none; display: inline !important;" class=""><br class="Apple-interchange-newline">Andrew Hyatt</span><br style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; line-height: normal;" class=""><span style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; line-height: normal; float: none; display: inline !important;" class=""><a href="mailto:ahyattdev@icloud.com" class="">ahyattdev@icloud.com</a></span>
</div>
<br class=""><div style=""><blockquote type="cite" class=""><div class="">On Mar 30, 2016, at 5:43 PM, Andrew Hyatt <<a href="mailto:andythehyatt@gmail.com" class="">andythehyatt@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=windows-1251" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">It appears as though the --install-swift flag is intended to make build-script-impl install swift. However, it fails with this: <div class=""><br class=""></div><div class=""><div class="">/usr/local/bin/cmake --build /Users/andyhyatt/src/swift-fixed/build/Ninja-Debug/swift-macosx-x86_64 -- install</div><div class="">ninja: error: unknown target ‘install'</div><div class=""><br class=""></div><div class="">This is strange, because similar commands like --install-lldb function without error. </div><div class=""><br class=""></div><div class="">Another quirk is that swift-macosx-x86_64 is the folder it is running the install scripts of, but I am cross compiling for armv7s. </div><div class=""><br class=""></div><div class="">Is there a better way to export the compiled tools for install when cross compiling than what I am doing?</div></div><div class="">
<div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class="Apple-interchange-newline">Andrew Hyatt</div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:andythehyatt@gmail.com" class="">andythehyatt@gmail.com</a></div>
</div>
<br class=""><div style="" class=""><blockquote type="cite" class=""><div class="">On Mar 28, 2016, at 5:56 PM, Andrew Hyatt via swift-dev <<a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="content-type" content="text/html; charset=utf-8" class=""><div dir="auto" class=""><div class="">It is worth noting that I am cross compiling on Mac OS X 10.11.3 x86_64, and compiling for an armv7s Darwin 15.0.0 platform. <br class=""><br class="">Andrew Hyatt<div class=""><a href="mailto:ahyattdev@icloud.com" class="">ahyattdev@icloud.com</a></div></div><div class=""><br class="">On Mar 26, 2016, at 10:44 AM, Andrew Hyatt via swift-dev <<a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a>> wrote:<br class=""><br class=""></div><blockquote type="cite" class=""><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div class="">swift-dev,</div><div class=""><br class=""></div><div class="">The build system is ignoring swift-install-components when cross compiling. </div><div class=""><br class=""></div><div class="">The llvm-install-components are copied over cleanly, but the swift-install-components are ignored. </div><div class=""><br class=""></div><div class="">An additional issue is that it still puts the products in the toolchain directory and ignores the specified prefix, despite a blank toolchain prefix being specified. </div><div class=""><br class=""></div><div class="">The expected layout of install-destdir: /usr/local/ *everything from llvm-install-components and swift-install-components*</div><div class=""><br class=""></div><div class="">Actual layout: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/ *everything from llvm-install-components*</div><div class=""><br class=""></div><div class="">My build command:</div><div class=""><br class=""></div>utils/build-script -i --no-assertions -- \<div class="">--cross-compile-tools-deployment-targets "iphoneos-armv7s” \<div class="">--user-config-args="-DLLVM_ENABLE_BACKTRACES=Off -DSWIFT_BUILD_SOURCEKIT=FALSE” \<div class="">--install-destdir=/Users/andyhyatt/src/inst --install-prefix=/usr/local/ \</div><div class="">--swift-install-components "compiler;stdlib;clang-builtin-headers” \</div><div class="">--llvm-install-components "clang;libclang;libclang-headers” \</div><div class="">--toolchain-prefix=“/"</div><div class=""><br class=""></div><div class="">Also, is there any way to get a list of valid components for llvm-install-components? </div><div class=""><br class=""></div><div class="">There is a CMake variable called _SWIFT_KNOWN_INSTALL_COMPONENTS that is defined here: <a href="https://github.com/apple/swift/blob/de8322951cf4863acb69f489a6feaee20532215b/CMakeLists.txt#L85" class="">https://github.com/apple/swift/blob/de8322951cf4863acb69f489a6feaee20532215b/CMakeLists.txt#L85</a></div><div class=""><br class=""></div><div class="">I was unable to find an equivalent definition for LLVM. <br class=""><div class="">
<div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class="Apple-interchange-newline">Andrew Hyatt</div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:andythehyatt@gmail.com" class="">andythehyatt@gmail.com</a></div>
</div>
<br class=""></div></div></div></div></blockquote><blockquote type="cite" class=""><div class=""><span class="">_______________________________________________</span><br class=""><span class="">swift-dev mailing list</span><br class=""><span class=""><a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a></span><br class=""><span class=""><a href="https://lists.swift.org/mailman/listinfo/swift-dev" class="">https://lists.swift.org/mailman/listinfo/swift-dev</a></span><br class=""></div></blockquote></div>_______________________________________________<br class="">swift-dev mailing list<br class=""><a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a><br class=""><a href="https://lists.swift.org/mailman/listinfo/swift-dev" class="">https://lists.swift.org/mailman/listinfo/swift-dev</a><br class=""></div></blockquote></div><br class=""></div></div></blockquote></div><br class=""></body></html>