<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 class="">What version of clang are you using? I’ve had the same problem with clang 3.9 when building on Ubuntu 16.04 on RasPi:&nbsp;<a href="https://twitter.com/ffried/status/833985445516165121" class="">https://twitter.com/ffried/status/833985445516165121</a></div><div class="">Using clang 3.8 worked fine.</div><div class=""><br class=""></div><br class=""><div class="">
<div style="color: rgb(0, 0, 0); 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; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); 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; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: 'Helvetica Neue'; 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; letter-spacing: normal; line-height: 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; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="" style="color: rgb(0, 0, 0); font-family: 'Helvetica Neue', sans-serif; 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; letter-spacing: normal; line-height: 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; margin: 0px;"><div class="" style="font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: normal; margin: 0px;">best regards,</div><div class="" style="font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: normal; margin: 0px;"><br class=""></div><div class="" style="font-size: 14px; font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: normal; margin: 0px;">Florian Friedrich</div><div class="" style="font-size: 11px; font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: normal; margin: 0px;"><font color="#5a5a5a" class="">(CTO / CIO, Senior Developer @ ser.soft GmbH)</font></div><div class="" style="font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: normal; margin: 0px; min-height: 19px;"><br class=""></div><div class="" style="font-size: 11px; font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: normal; margin: 0px;"><br class=""></div></div></div></div></div></div><div><blockquote type="cite" class=""><div class="">On 25. Apr 2017, at 16:35, Vivian Kong via swift-dev &lt;<a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><p class=""><font size="2" class="">I actually have a question regarding build as well.  I haven't been able to build 3.1 branch from source on Ubuntu 16.04 x86_64.  I hit this error:<br class=""><br class="">./swift/utils/build-script -r</font><br class=""><br class=""><font size="2" class="">...</font><br class=""><br class=""><font size="2" class="">swift: using gold linker</font><br class=""><font size="2" class="">+ /usr/bin/cmake --build /home/vivkong/swift31/build/Ninja-RelWithDebInfoAssert/swift-linux-x86_64 -- -j2 all swift-test-stdlib-linux-x86_64</font><br class=""><font size="2" class="">[5/63] Linking CXX executable bin/swift-reflection-dump</font><br class=""><font size="2" class="">FAILED: : &amp;&amp; /usr/bin/clang++   -fno-stack-protector -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wcovered-switch-default -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Werror=date-time -std=c++11 -fcolor-diagnostics -ffunction-sections -fdata-sections -Wdocumentation -Wimplicit-fallthrough -Wunreachable-code -Woverloaded-virtual -O2  -L/home/vivkong/swift31/build/Ninja-RelWithDebInfoAssert/swift-linux-x86_64/./lib/swift/linux -target x86_64-unknown-linux-gnu -lpthread -ldl -fuse-ld=gold tools/swift-reflection-dump/CMakeFiles/swift-reflection-dump.dir/swift-reflection-dump.cpp.o  -o bin/swift-reflection-dump -L/home/vivkong/swift31/build/Ninja-RelWithDebInfoAssert/llvm-linux-x86_64/./lib -lswiftReflection /home/vivkong/swift31/build/Ninja-RelWithDebInfoAssert/llvm-linux-x86_64/lib/libLLVMObject.a /home/vivkong/swift31/build/Ninja-RelWithDebInfoAssert/llvm-linux-x86_64/lib/libLLVMSupport.a /home/vivkong/swift31/build/Ninja-RelWithDebInfoAssert/llvm-linux-x86_64/lib/libLLVMBitReader.a /home/vivkong/swift31/build/Ninja-RelWithDebInfoAssert/llvm-linux-x86_64/lib/libLLVMCore.a /home/vivkong/swift31/build/Ninja-RelWithDebInfoAssert/llvm-linux-x86_64/lib/libLLVMMCParser.a /home/vivkong/swift31/build/Ninja-RelWithDebInfoAssert/llvm-linux-x86_64/lib/libLLVMMC.a /home/vivkong/swift31/build/Ninja-RelWithDebInfoAssert/llvm-linux-x86_64/lib/libLLVMSupport.a -lrt -ldl -ltinfo -lpthread -lz -lm -Wl,-rpath,/home/vivkong/swift31/build/Ninja-RelWithDebInfoAssert/llvm-linux-x86_64/./lib &amp;&amp; :</font><br class=""><font size="2" class="">/home/vivkong/swift31/swift/include/swift/Remote/MetadataReader.h:92: error: undefined reference to 'swift::Demangle::mangleNode(std::shared_ptr&lt;swift::Demangle::Node&gt; const&amp;)'</font><br class=""><font size="2" class="">/home/vivkong/swift31/swift/include/swift/Remote/MetadataReader.h:152: error: undefined reference to 'swift::Demangle::mangleNode(std::shared_ptr&lt;swift::Demangle::Node&gt; const&amp;)'</font><br class=""><font size="2" class="">/home/vivkong/swift31/swift/include/swift/Reflection/TypeRefBuilder.h:171: error: undefined reference to 'swift::Demangle::mangleNode(std::shared_ptr&lt;swift::Demangle::Node&gt; const&amp;)'</font><br class=""><font size="2" class="">clang: error: linker command failed with exit code 1 (use -v to see invocation)</font><br class=""><font size="2" class="">[5/63] Linking CXX static library lib/libswiftBasic.a</font><br class=""><font size="2" class="">ninja: build stopped: subcommand failed.</font><br class=""><font size="2" class="">./swift/utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting</font><br class=""><br class=""><font size="2" class="">I saw </font><a href="https://bugs.swift.org/browse/SR-4147" class=""><font size="2" class="">https://bugs.swift.org/browse/SR-4147</font></a><font size="2" class=""> opened for the master branch (and the workaround is to move to Ubuntu 16.04).  I'm actually able to build the 3.1 branch on s390x so I'm wondering if I'm missing some pre-reqs or setting?  Any clues would be much appreciated!</font><br class=""><font size="2" class=""><br class="">Regards,<br class=""><br class="">Vivian Kong<br class="">Linux on z Systems Open Source Ecosystem<br class="">IBM Canada Toronto Lab</font><br class=""><br class=""><span id="cid:1__=0ABB0B9EDFDC18FF8f9e8a93df938690918c0AB@">&lt;graycol.gif&gt;</span><font size="2" color="#424282" class="">Ian Partridge ---2017/04/25 10:27:39 AM---On 25 April 2017 at 15:15, Vivian Kong &lt;<a href="mailto:vivkong@ca.ibm.com" class="">vivkong@ca.ibm.com</a>&gt; wrote: &gt; I had to remove swift/utils/swi</font><br class=""><br class=""><font size="2" color="#5F5F5F" class="">From:        </font><font size="2" class="">Ian Partridge &lt;<a href="mailto:ipartridge@gmail.com" class="">ipartridge@gmail.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="">Alex Blewitt &lt;<a href="mailto:alblue@apple.com" class="">alblue@apple.com</a>&gt;, swift-dev &lt;<a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a>&gt;</font><br class=""><font size="2" color="#5F5F5F" class="">Date:        </font><font size="2" class="">2017/04/25 10:27 AM</font><br class=""><font size="2" color="#5F5F5F" class="">Subject:        </font><font size="2" class="">Re: [swift-dev] Building swift-3.1-branch from source</font><br class=""></p><hr width="100%" size="2" align="left" noshade="" style="color:#8091A5; " class=""><br class=""><br class=""><br class=""><tt class=""><font size="2" class="">On 25 April 2017 at 15:15, Vivian Kong &lt;<a href="mailto:vivkong@ca.ibm.com" class="">vivkong@ca.ibm.com</a>&gt; wrote:<br class="">&gt; I had to remove swift/utils/swift_build_support/__init__.pyc if it is there (it got generated when I use the checkout script from the master branch). Wonder if that might help you.<br class=""><br class="">Yes it works! &nbsp;Thanks!<br class=""><br class="">-- <br class="">Ian Partridge<br class=""><br class=""></font></tt><br class=""><br class=""><br class="">
</div>
_______________________________________________<br class="">swift-dev mailing list<br class=""><a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-dev<br class=""></div></blockquote></div><br class=""></body></html>