-
Notifications
You must be signed in to change notification settings - Fork 10.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SR-4147] swift-reflection-dump error while building swift #46730
Comments
Comment by Hugh Bellamy (JIRA) What version of the compiler are you running? Can you rebase to the latest master and see if the issue still occurs |
Comment by Amr Aboelela (JIRA) I used master brach, and still getting same error. The script I am running is: And I am in Linux environment, and here is the expanding running script: ========== Running script ========== ./utils/build-script --assertions --no-swift-stdlib-assertions --llbuild --swiftpm --xctest --build-subdir=buildbot_linux --lldb --release --test --validation-test --long-test --foundation --libdispatch --lit-args=-v -- --swift-enable-ast-verifier=0 --build-ninja --install-swift --install-lldb --install-llbuild --install-swiftpm --install-xctest --install-prefix=/usr '--swift-install-components=autolink-driver;compiler;clang-builtin-headers;stdlib;swift-remote-mirror;sdk-overlay;license' --build-swift-static-stdlib --build-swift-static-sdk-overlay --build-swift-stdlib-unittest-extra --test-installable-package --install-destdir=/home/amr/swift/swift/swift-nightly-install --installable-package=/home/amr/swift/swift/swift-LOCAL-2017-03-03-a-osx.tar.gz --install-foundation --install-libdispatch --reconfigure |
Comment by Amr Aboelela (JIRA) This is what i got till now: ~/swift/build/buildbot_linux$ du -sh *
2.6M cmark-linux-x86_64
492K libdispatch-linux-x86_64
1.5G llvm-linux-x86_64
21M ninja-build
1.4G swift-linux-x86_64 |
Comment by Amr Aboelela (JIRA) I am using Ubuntu 15.10 |
cc @eeckstein, @ematejska |
Comment by Christopher Hatton (JIRA) I got the same error, Ubuntu 15.10. My build folder: I invoked build with |
Comment by Amr Aboelela (JIRA) Hi Christopher On Mar 8, 2017, at 3:58 AM, Christopher Hatton <christopherhattonuk@gmail.com> wrote: Hi Amr, I saw that 4 days ago you experienced the same issue as me, building Swift on Ubuntu 15.10. I wonder if you found a fix? Perhaps like me you were using Ubuntu 15.10 because this is specifically instructed, to build Swift for Android, which was my goal. If no fix is forthcoming I may have to try Android build on Ubuntu 16.04. Trying these things out seems to take an awful lot of resources and time on my MacBook Pro though Best regards, |
Comment by Jose Rojas (JIRA) I encountered this today while building Swift on Ubuntu 16.04 (using a docker container). See the console output for more details.
|
Comment by Jose Rojas (JIRA) I tried running the command: ./swift/utils/build-toolchain local.swift And the outcome was the same... undefined symbol error while building 'bin/swift-reflection-dump'. I'm reopening this issue. |
Comment by Jose Rojas (JIRA) I double checked my settings and it looks like I had an incompatible version of cmake installed (3.5.2 instead of 3.5.1). Reverting to the correct version solved the build issue. Apologies for any spam on this. |
Additional Detail from JIRA
md5: 2fef1f4f105584e34edd12a54932047d
Issue Description:
[691/779] Linking CXX executable bin/swift-reflection-dump
FAILED: bin/swift-reflection-dump
: && /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 -Wstring-conversion -Werror=date-time -std=c++11 -fcolor-diagnostics -ffunction-sections -fdata-sections -Wdocumentation -Wimplicit-fallthrough -Wunreachable-code -Woverloaded-virtual -O3 -L/home/amr/swift/build/buildbot_linux/swift-linux-x86_64/./lib/swift/linux -target x86_64-unknown-linux-gnu -lpthread -latomic -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/amr/swift/build/buildbot_linux/llvm-linux-x86_64/./lib -lswiftReflection /home/amr/swift/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMObject.a /home/amr/swift/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMSupport.a /home/amr/swift/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMBitReader.a /home/amr/swift/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMCore.a /home/amr/swift/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMMCParser.a /home/amr/swift/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMMC.a /home/amr/swift/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMSupport.a -lrt -ldl -ltinfo -lpthread -lz -lm /home/amr/swift/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMDemangle.a -Wl,-rpath,/home/amr/swift/build/buildbot_linux/llvm-linux-x86_64/./lib && :
tools/swift-reflection-dump/CMakeFiles/swift-reflection-dump.dir/swift-reflection-dump.cpp.o:/home/amr/swift/swift/tools/swift-reflection-dump/swift-reflection-dump.cpp:function swift::remote::TypeDecoderswift::reflection::TypeRefBuilder::decodeMangledType(swift::Demangle::Node* const&): error: undefined reference to 'swift::Demangle::mangleNode(swift::Demangle::Node* const&)'
tools/swift-reflection-dump/CMakeFiles/swift-reflection-dump.dir/swift-reflection-dump.cpp.o:/home/amr/swift/swift/tools/swift-reflection-dump/swift-reflection-dump.cpp:function swift::remote::TypeDecoderswift::reflection::TypeRefBuilder::decodeMangledType(swift::Demangle::Node* const&): error: undefined reference to 'swift::Demangle::mangleNode(swift::Demangle::Node* const&)'
tools/swift-reflection-dump/CMakeFiles/swift-reflection-dump.dir/swift-reflection-dump.cpp.o:/home/amr/swift/swift/tools/swift-reflection-dump/swift-reflection-dump.cpp:function swift::remote::TypeDecoderswift::reflection::TypeRefBuilder::decodeMangledNominalType(swift::Demangle::Node* const&, llvm::Optional<std::__cxx11::basic_string<char, std::char_traits, std::allocator > >&, swift::reflection::TypeRef const*&): error: undefined reference to 'swift::Demangle::mangleNode(swift::Demangle::Node* const&)'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
./utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting
The text was updated successfully, but these errors were encountered: