<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="">I’m sorry for the experience Travis, but this is certainly one of our pain points. There’s a lot at play and we haven’t finished setting up our public CI either. Here’s what I do locally to build a toolchain on OS X:<div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo; color: rgb(95, 135, 135); background-color: rgb(228, 228, 228);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #878700" class=""><b class="">function</b></span> <span style="font-variant-ligatures: no-common-ligatures; color: #0187d7" class="">build_osx_package</span><span style="font-variant-ligatures: no-common-ligatures; color: #00af87" class="">()</span> <span style="font-variant-ligatures: no-common-ligatures; color: #00af87" class="">{</span> </div><p style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo; color: rgb(95, 135, 135); background-color: rgb(255, 254, 215); min-height: 14px;" class=""> <br class="webkit-block-placeholder"></p><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo; color: rgb(95, 135, 135); background-color: rgb(255, 254, 215);" class=""> <span style="font-variant-ligatures: no-common-ligatures; color: #0187d7" class="">YEAR</span>=$<span style="font-variant-ligatures: no-common-ligatures; color: #af8700" class="">(</span><span style="font-variant-ligatures: no-common-ligatures; color: #5f5fd7" class=""><b class="">date</b></span> +<span style="font-variant-ligatures: no-common-ligatures; color: #00af87" class="">"%Y"</span><span style="font-variant-ligatures: no-common-ligatures; color: #af8700" class="">)</span> </div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo; color: rgb(95, 135, 135); background-color: rgb(255, 254, 215);" class=""> <span style="font-variant-ligatures: no-common-ligatures; color: #0187d7" class="">MONTH</span>=$<span style="font-variant-ligatures: no-common-ligatures; color: #af8700" class="">(</span><span style="font-variant-ligatures: no-common-ligatures; color: #5f5fd7" class=""><b class="">date</b></span> +<span style="font-variant-ligatures: no-common-ligatures; color: #00af87" class="">"%m"</span><span style="font-variant-ligatures: no-common-ligatures; color: #af8700" class="">)</span> </div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo; color: rgb(95, 135, 135); background-color: rgb(255, 254, 215);" class=""> <span style="font-variant-ligatures: no-common-ligatures; color: #0187d7" class="">DAY</span>=$<span style="font-variant-ligatures: no-common-ligatures; color: #af8700" class="">(</span><span style="font-variant-ligatures: no-common-ligatures; color: #5f5fd7" class=""><b class="">date</b></span> +<span style="font-variant-ligatures: no-common-ligatures; color: #00af87" class="">"%d"</span><span style="font-variant-ligatures: no-common-ligatures; color: #af8700" class="">)</span> </div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo; color: rgb(95, 135, 135); background-color: rgb(255, 254, 215);" class=""> <span style="font-variant-ligatures: no-common-ligatures; color: #0187d7" class="">TOOLCHAIN_VERSION</span>=<span style="font-variant-ligatures: no-common-ligatures; color: #00af87" class="">"swift-2.2-SNAPSHOT-${YEAR}-${MONTH}-${DAY}-a"</span> </div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo; color: rgb(95, 135, 135); background-color: rgb(255, 254, 215);" class=""> <span style="font-variant-ligatures: no-common-ligatures; color: #0187d7" class="">ARCHIVE_DIR</span>=<span style="font-variant-ligatures: no-common-ligatures; color: #00af87" class="">"${TOOLCHAIN_VERSION}-${BUILD_NUMBER}"</span> </div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo; color: rgb(95, 135, 135); background-color: rgb(255, 254, 215);" class=""> <span style="font-variant-ligatures: no-common-ligatures; color: #0187d7" class="">ARCHIVE</span>=<span style="font-variant-ligatures: no-common-ligatures; color: #00af87" class="">"${TOOLCHAIN_VERSION}-osx.tar.gz"</span> </div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo; color: rgb(95, 135, 135); background-color: rgb(255, 254, 215);" class=""> <span style="font-variant-ligatures: no-common-ligatures; color: #0187d7" class="">SYM_ARCHIVE</span>=<span style="font-variant-ligatures: no-common-ligatures; color: #00af87" class="">"${TOOLCHAIN_VERSION}-osx-symbols.tar.gz"</span> </div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo; color: rgb(95, 135, 135); background-color: rgb(255, 254, 215);" class=""> <span style="font-variant-ligatures: no-common-ligatures; color: #0187d7" class="">BUNDLE_IDENTIFIER</span>=<span style="font-variant-ligatures: no-common-ligatures; color: #00af87" class="">"org.swift.${YEAR}${MONTH}${DAY}"</span> </div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo; color: rgb(95, 135, 135); background-color: rgb(255, 254, 215);" class=""> <span style="font-variant-ligatures: no-common-ligatures; color: #0187d7" class="">DISPLAY_NAME</span>=<span style="font-variant-ligatures: no-common-ligatures; color: #00af87" class="">"Swift 2.2 Development Snapshot"</span> </div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo; color: rgb(95, 135, 135); background-color: rgb(255, 254, 215);" class=""> <span style="font-variant-ligatures: no-common-ligatures; color: #0187d7" class="">TOOLCHAIN_NAME</span>=<span style="font-variant-ligatures: no-common-ligatures; color: #00af87" class="">"${TOOLCHAIN_VERSION}"</span> </div><p style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo; color: rgb(95, 135, 135); background-color: rgb(255, 254, 215); min-height: 14px;" class=""> <br class="webkit-block-placeholder"></p><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo; color: rgb(95, 135, 135); background-color: rgb(255, 254, 215);" class=""> <span style="font-variant-ligatures: no-common-ligatures; color: #0187d7" class="">SWIFT_SOURCE_ROOT</span>=<span style="font-variant-ligatures: no-common-ligatures; color: #00af87" class="">"${SRC_DIR}"</span> </div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo; color: rgb(95, 135, 135); background-color: rgb(255, 254, 215);" class=""> <span style="font-variant-ligatures: no-common-ligatures; color: #0187d7" class="">SWIFT_BUILD_ROOT</span>=<span style="font-variant-ligatures: no-common-ligatures; color: #00af87" class="">"${SRC_DIR}/build"</span> </div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo; color: rgb(95, 135, 135); background-color: rgb(255, 254, 215);" class=""> <span style="font-variant-ligatures: no-common-ligatures; color: #0187d7" class="">SWIFT_INSTALLABLE_PACKAGE</span>=<span style="font-variant-ligatures: no-common-ligatures; color: #00af87" class="">"${SRC_DIR}/${ARCHIVE}"</span> </div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo; color: rgb(95, 135, 135); background-color: rgb(255, 254, 215);" class=""> <span style="font-variant-ligatures: no-common-ligatures; color: #0187d7" class="">SWIFT_INSTALL_DIR</span>=<span style="font-variant-ligatures: no-common-ligatures; color: #00af87" class="">"${SRC_DIR}/swift-nightly-install"</span> </div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo; color: rgb(95, 135, 135); background-color: rgb(255, 254, 215);" class=""> <span style="font-variant-ligatures: no-common-ligatures; color: #0187d7" class="">SWIFT_INSTALL_SYMROOT</span>=<span style="font-variant-ligatures: no-common-ligatures; color: #00af87" class="">"${SRC_DIR}/swift-nightly-symroot"</span> </div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo; color: rgb(0, 175, 135); background-color: rgb(255, 254, 215);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #5f8787" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #0187d7" class="">SWIFT_TOOLCHAIN_DIR</span><span style="font-variant-ligatures: no-common-ligatures; color: #5f8787" class="">=</span>"/Applications/Xcode.app/Contents/Developer/Toolchains/${TOOLCHAIN_NAME}.xctoolchain"<span style="font-variant-ligatures: no-common-ligatures; color: #5f8787" class=""> </span></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo; color: rgb(95, 135, 135); background-color: rgb(255, 254, 215);" class=""> <span style="font-variant-ligatures: no-common-ligatures; color: #0187d7" class="">SYMBOLS_PACKAGE</span>=<span style="font-variant-ligatures: no-common-ligatures; color: #00af87" class="">"${SRC_DIR}/${SYM_ARCHIVE}"</span> </div><p style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo; color: rgb(95, 135, 135); background-color: rgb(255, 254, 215); min-height: 14px;" class=""> <br class="webkit-block-placeholder"></p><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo; color: rgb(0, 175, 135); background-color: rgb(255, 254, 215);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #5f8787" class=""> ./swift/utils/build-script --preset=</span>"buildbot_osx_package"<span style="font-variant-ligatures: no-common-ligatures; color: #5f8787" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #0187d7" class="">install_destdir</span><span style="font-variant-ligatures: no-common-ligatures; color: #5f8787" class="">=</span>"${SWIFT_INSTALL_DIR}"<span style="font-variant-ligatures: no-common-ligatures; color: #5f8787" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #0187d7" class="">installable_package</span><span style="font-variant-ligatures: no-common-ligatures; color: #5f8787" class="">=</span>"${SWIFT_INSTALLABLE_PACKAGE}"<span style="font-variant-ligatures: no-common-ligatures; color: #5f8787" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #0187d7" class="">install_toolchain_dir</span><span style="font-variant-ligatures: no-common-ligatures; color: #5f8787" class="">=</span>"${SWIF<span style="font-variant-ligatures: no-common-ligatures; color: #5f8787" class="">\</span></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo; color: rgb(1, 135, 215); background-color: rgb(255, 254, 215);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #00af87" class="">T_TOOLCHAIN_DIR}"</span><span style="font-variant-ligatures: no-common-ligatures; color: #5f8787" class=""> </span>install_symroot<span style="font-variant-ligatures: no-common-ligatures; color: #5f8787" class="">=</span><span style="font-variant-ligatures: no-common-ligatures; color: #00af87" class="">"${SWIFT_INSTALL_SYMROOT}"</span><span style="font-variant-ligatures: no-common-ligatures; color: #5f8787" class=""> </span>symbols_package<span style="font-variant-ligatures: no-common-ligatures; color: #5f8787" class="">=</span><span style="font-variant-ligatures: no-common-ligatures; color: #00af87" class="">"${SYMBOLS_PACKAGE}"</span><span style="font-variant-ligatures: no-common-ligatures; color: #5f8787" class=""> </span>darwin_toolchain_bundle_identifier<span style="font-variant-ligatures: no-common-ligatures; color: #5f8787" class="">=</span><span style="font-variant-ligatures: no-common-ligatures; color: #00af87" class="">"${BUNDLE_IDENTIFIER}"</span><span style="font-variant-ligatures: no-common-ligatures; color: #5f8787" class=""> </span>darwin_toolchain_display_n<span style="font-variant-ligatures: no-common-ligatures; color: #5f8787" class="">\</span></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo; color: rgb(95, 135, 135); background-color: rgb(255, 254, 215);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #0187d7" class="">ame</span>=<span style="font-variant-ligatures: no-common-ligatures; color: #00af87" class="">"${DISPLAY_NAME}"</span> <span style="font-variant-ligatures: no-common-ligatures; color: #0187d7" class="">darwin_toolchain_xctoolchain_name</span>=<span style="font-variant-ligatures: no-common-ligatures; color: #00af87" class="">"${TOOLCHAIN_NAME}"</span> <span style="font-variant-ligatures: no-common-ligatures; color: #0187d7" class="">darwin_toolchain_version</span>=<span style="font-variant-ligatures: no-common-ligatures; color: #00af87" class="">"${TOOLCHAIN_VERSION}"</span> </div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo; color: rgb(0, 175, 135); background-color: rgb(255, 254, 215);" class="">}</div><div class=""><br class=""></div><div class="">It should work. If not, please file a bug with your output and configuration and let us know about it. </div><div class=""><br class=""></div><div class="">- mish</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Dec 14, 2015, at 8:32 PM, Dmitri Gribenko <<a href="mailto:gribozavr@gmail.com" class="">gribozavr@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" style="font-family: Helvetica; font-size: 14px; 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="">+Mishal Awadah, Mishal Shah<br class=""><div class="gmail_extra"><br class=""><div class="gmail_quote">On Mon, Dec 14, 2015 at 8:04 PM, Travis Tilley via swift-dev<span class="Apple-converted-space"> </span><span dir="ltr" class=""><<a href="mailto:swift-dev@swift.org" target="_blank" class="">swift-dev@swift.org</a>></span><span class="Apple-converted-space"> </span>wrote:<br class=""><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;"><div dir="ltr" class=""><div class=""><div style="font-family: verdana, sans-serif; font-size: 12.8px;" class="">Is there any documentation somewhere on what the exact commands are that the buildbot CI performs and how the packages on <a href="http://swift.org/" target="_blank" class="">swift.org</a> are created?</div><div style="font-family: verdana, sans-serif; font-size: 12.8px;" class=""><br class=""></div><div style="font-family: verdana, sans-serif; font-size: 12.8px;" class="">I've noticed that:</div><div style="font-family: verdana, sans-serif; font-size: 12.8px;" class=""><br class=""></div><div style="font-family: verdana, sans-serif; font-size: 12.8px;" class="">1) LLDB doesn't compile on either OSX or ubuntu 15 via the normal script for various reasons (codesign on OSX, no idea on ubuntu) in the default configuration. This seems highly counter-intuitive.</div><div style="font-family: verdana, sans-serif; font-size: 12.8px;" class=""><br class=""></div><div style="font-family: verdana, sans-serif; font-size: 12.8px;" class="">2) The buildbot presets don't have sane defaults and I can't find any documentation on what "sane" might mean for those builds.</div><div style="font-family: verdana, sans-serif; font-size: 12.8px;" class=""><br class=""></div><div style="font-family: verdana, sans-serif; font-size: 12.8px;" class="">3) I still can't build the full suite using the following command (which, again, may or may not be sane):</div><div style="font-family: verdana, sans-serif; font-size: 12.8px;" class=""><br class=""></div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;"><span style="font-size: 12.8px;" class=""><font face="monospace, monospace" class="">nice ./swift/utils/build-script \<br class=""></font></span><span style="font-size: 12.8px;" class=""><font face="monospace, monospace" class=""> <span class="Apple-converted-space"> </span>--preset=buildbot_osx_package \<br class=""></font></span><span style="font-size: 12.8px;" class=""><font face="monospace, monospace" class=""> <span class="Apple-converted-space"> </span>installable_package=/tmp/swift.tar.gz \<br class=""></font></span><span style="font-size: 12.8px;" class=""><font face="monospace, monospace" class=""> <span class="Apple-converted-space"> </span>install_destdir=/Library/Developer/Toolchains/swift-2.2-SNAPSHOT-2015-12-14/ \<br class=""></font></span><span style="font-size: 12.8px;" class=""><font face="monospace, monospace" class=""> <span class="Apple-converted-space"> </span>install_toolchain_dir=/Library/Developer/Toolchains/swift-2.2-SNAPSHOT-2015-12-14.xctoolchain \<br class=""></font></span><span style="font-size: 12.8px;" class=""><font face="monospace, monospace" class=""> <span class="Apple-converted-space"> </span>install_symroot=/Library/Developer/Toolchains/swift-2.2-SNAPSHOT-2015-12-14/ \<br class=""></font></span><span style="font-size: 12.8px;" class=""><font face="monospace, monospace" class=""> <span class="Apple-converted-space"> </span>symbols_package=/tmp/swift-symbols.tar.gz \<br class=""></font></span><span style="font-size: 12.8px;" class=""><font face="monospace, monospace" class=""> <span class="Apple-converted-space"> </span>darwin_toolchain_bundle_identifier=org.swift.20151214 \<br class=""></font></span><span style="font-size: 12.8px;" class=""><font face="monospace, monospace" class=""> <span class="Apple-converted-space"> </span>darwin_toolchain_display_name=20151214 \<br class=""></font></span><span style="font-size: 12.8px;" class=""><font face="monospace, monospace" class=""> <span class="Apple-converted-space"> </span>darwin_toolchain_xctoolchain_name=swift darwin_toolchain_version=swift</font></span></blockquote><div class=""><font face="verdana, sans-serif" class=""><span style="font-size: 12.8px;" class=""><br class=""></span></font></div><div style="font-family: arial, sans-serif; font-size: 12.8px;" class=""><div class=""><font face="verdana, sans-serif" class="">All that I actually -want- to do is start xcode using a freshly built swift toolchain. That is it. I don't even need any of the SDKs other than OSX built. But the build directory install structure doesn't have anything like what `launch-with-toolchain` appears to expect...</font></div></div><div style="font-family: arial, sans-serif; font-size: 12.8px;" class=""><font face="verdana, sans-serif" class=""><br class=""></font></div><div style="font-family: arial, sans-serif; font-size: 12.8px;" class=""><font face="verdana, sans-serif" class="">Not sure where i'm going wrong. Please feel free to tell me to RTFM if there is a FM to read.</font></div><div style="font-family: arial, sans-serif; font-size: 12.8px;" class=""><font face="verdana, sans-serif" class=""><br class=""></font></div><div style="font-family: arial, sans-serif; font-size: 12.8px;" class=""><font face="verdana, sans-serif" class=""><br class=""></font></div><div style="font-family: arial, sans-serif; font-size: 12.8px;" class=""><font face="verdana, sans-serif" class="">-Travis Tilley</font></div><div style="font-family: arial, sans-serif; font-size: 12.8px;" class=""><font face="verdana, sans-serif" class=""><br class=""></font></div></div></div><img src="https://u2002410.ct.sendgrid.net/wf/open?upn=HvbB2rNqe6WERAH1f5iSygoap13wP4MPscYBJZE6r41Dy-2F82U-2FpUMV9g-2Bx6EPlEG-2FnmmPHVo-2B9iXuj59yoSbAy1qmC-2BMkE4Z6gUphQb2R0I94UjUHyt5iqnsIvgpKfAqcJwzC6hepLZs1YfJeMbDMAmy2Q3RtKVz6lXLfdhHFeDDWamRHT8THWXhxGE9kNprJ9sucRrCs2VemosOzDVa1Q5nylV6GuddCo7Hx7R97hQ-3D" alt="" width="1" height="1" border="0" style="min-height: 1px !important; width: 1px !important; border-width: 0px !important; margin: 0px !important; padding: 0px !important;" class=""><span class="Apple-converted-space"> </span><br class="">_______________________________________________<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" rel="noreferrer" target="_blank" class="">https://lists.swift.org/mailman/listinfo/swift-dev</a><br class=""><br class=""></blockquote></div><br class=""><br clear="all" class=""><div class=""><br class=""></div>--<span class="Apple-converted-space"> </span><br class=""><div class="gmail_signature">main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if<br class="">(j){printf("%d\n",i);}}} /*Dmitri Gribenko <<a href="mailto:gribozavr@gmail.com" target="_blank" class="">gribozavr@gmail.com</a>>*/</div></div></div></div></blockquote></div><br class=""></div></div></body></html>