<html><body><p><font size="2">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><br>./swift/utils/build-script -r</font><br><br><font size="2">...</font><br><br><font size="2">swift: using gold linker</font><br><font size="2">+ /usr/bin/cmake --build /home/vivkong/swift31/build/Ninja-RelWithDebInfoAssert/swift-linux-x86_64 -- -j2 all swift-test-stdlib-linux-x86_64</font><br><font size="2">[5/63] Linking CXX executable bin/swift-reflection-dump</font><br><font size="2">FAILED: : && /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 && :</font><br><font size="2">/home/vivkong/swift31/swift/include/swift/Remote/MetadataReader.h:92: error: undefined reference to 'swift::Demangle::mangleNode(std::shared_ptr<swift::Demangle::Node> const&)'</font><br><font size="2">/home/vivkong/swift31/swift/include/swift/Remote/MetadataReader.h:152: error: undefined reference to 'swift::Demangle::mangleNode(std::shared_ptr<swift::Demangle::Node> const&)'</font><br><font size="2">/home/vivkong/swift31/swift/include/swift/Reflection/TypeRefBuilder.h:171: error: undefined reference to 'swift::Demangle::mangleNode(std::shared_ptr<swift::Demangle::Node> const&)'</font><br><font size="2">clang: error: linker command failed with exit code 1 (use -v to see invocation)</font><br><font size="2">[5/63] Linking CXX static library lib/libswiftBasic.a</font><br><font size="2">ninja: build stopped: subcommand failed.</font><br><font size="2">./swift/utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting</font><br><br><font size="2">I saw </font><a href="https://bugs.swift.org/browse/SR-4147"><font size="2">https://bugs.swift.org/browse/SR-4147</font></a><font size="2"> 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><font size="2"><br>Regards,<br><br>Vivian Kong<br>Linux on z Systems Open Source Ecosystem<br>IBM Canada Toronto Lab</font><br><br><img width="16" height="16" src="cid:1__=0ABB0B9EDFDC18FF8f9e8a93df938690918c0AB@" border="0" alt="Inactive hide details for Ian Partridge ---2017/04/25 10:27:39 AM---On 25 April 2017 at 15:15, Vivian Kong <vivkong@ca.ibm.com>"><font size="2" color="#424282">Ian Partridge ---2017/04/25 10:27:39 AM---On 25 April 2017 at 15:15, Vivian Kong <vivkong@ca.ibm.com> wrote: > I had to remove swift/utils/swi</font><br><br><font size="2" color="#5F5F5F">From: </font><font size="2">Ian Partridge <ipartridge@gmail.com></font><br><font size="2" color="#5F5F5F">To: </font><font size="2">Vivian Kong/Toronto/IBM@IBMCA</font><br><font size="2" color="#5F5F5F">Cc: </font><font size="2">Alex Blewitt <alblue@apple.com>, swift-dev <swift-dev@swift.org></font><br><font size="2" color="#5F5F5F">Date: </font><font size="2">2017/04/25 10:27 AM</font><br><font size="2" color="#5F5F5F">Subject: </font><font size="2">Re: [swift-dev] Building swift-3.1-branch from source</font><br><hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br><br><br><tt><font size="2">On 25 April 2017 at 15:15, Vivian Kong <vivkong@ca.ibm.com> wrote:<br>> 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><br>Yes it works! Thanks!<br><br>-- <br>Ian Partridge<br><br></font></tt><br><br><BR>
</body></html>