[Lldb-commits] [PATCH] D76906: [lldb] Fixing the bug that the "log timer" has no tab completion
Raphael Isemann via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Apr 20 13:33:47 PDT 2020
teemperor added a comment.
In D76906#1972413 <https://reviews.llvm.org/D76906#1972413>, @gedatsu217 wrote:
> [39/575] Linking CXX shared library lib/libc++abi.1.0.dylib
> FAILED: lib/libc++abi.1.0.dylib
> : && /Library/Developer/CommandLineTools/usr/bin/c++ -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -fdiagnostics-color -g -dynamiclib -Wl,-headerpad_max_install_names -nodefaultlibs -compatibility_version 1.0.0 -current_version 1.0.0 -o lib/libc++abi.1.0.dylib -install_name @rpath/libc++abi.1.dylib projects/libcxxabi/src/CMakeFiles/cxxabi_shared.dir/cxa_aux_runtime.cpp.o projects/libcxxabi/src/CMakeFiles/cxxabi_shared.dir/cxa_default_handlers.cpp.o projects/libcxxabi/src/CMakeFiles/cxxabi_shared.dir/cxa_demangle.cpp.o projects/libcxxabi/src/CMakeFiles/cxxabi_shared.dir/cxa_exception_storage.cpp.o projects/libcxxabi/src/CMakeFiles/cxxabi_shared.dir/cxa_guard.cpp.o projects/libcxxabi/src/CMakeFiles/cxxabi_shared.dir/cxa_handlers.cpp.o projects/libcxxabi/src/CMakeFiles/cxxabi_shared.dir/cxa_unexpected.cpp.o projects/libcxxabi/src/CMakeFiles/cxxabi_shared.dir/cxa_vector.cpp.o projects/libcxxabi/src/CMakeFiles/cxxabi_shared.dir/cxa_virtual.cpp.o projects/libcxxabi/src/CMakeFiles/cxxabi_shared.dir/stdlib_exception.cpp.o projects/libcxxabi/src/CMakeFiles/cxxabi_shared.dir/stdlib_stdexcept.cpp.o projects/libcxxabi/src/CMakeFiles/cxxabi_shared.dir/stdlib_typeinfo.cpp.o projects/libcxxabi/src/CMakeFiles/cxxabi_shared.dir/abort_message.cpp.o projects/libcxxabi/src/CMakeFiles/cxxabi_shared.dir/fallback_malloc.cpp.o projects/libcxxabi/src/CMakeFiles/cxxabi_shared.dir/private_typeinfo.cpp.o projects/libcxxabi/src/CMakeFiles/cxxabi_shared.dir/stdlib_new_delete.cpp.o projects/libcxxabi/src/CMakeFiles/cxxabi_shared.dir/cxa_exception.cpp.o projects/libcxxabi/src/CMakeFiles/cxxabi_shared.dir/cxa_personality.cpp.o -Wl,-rpath, at loader_path/../lib -lSystem -Wl,-exported_symbols_list,/Users/shu/Documents/llvm-project/libcxxabi/src/../lib/itanium-base.exp -Wl,-exported_symbols_list,/Users/shu/Documents/llvm-project/libcxxabi/src/../lib/new-delete.exp -Wl,-exported_symbols_list,/Users/shu/Documents/llvm-project/libcxxabi/src/../lib/personality-v0.exp && :
> Undefined symbols for architecture x86_64:
> "__ZTIDu", referenced from:
> -exported_symbol[s_list] command line option
> "__ZTIPDu", referenced from:
> -exported_symbol[s_list] command line option
> "__ZTIPKDu", referenced from:
> -exported_symbol[s_list] command line option
> "__ZTSDu", referenced from:
> -exported_symbol[s_list] command line option
> "__ZTSPDu", referenced from:
> -exported_symbol[s_list] command line option
> "__ZTSPKDu", referenced from:
> -exported_symbol[s_list] command line option
> ld: symbol(s) not found for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see invocation)
>
>
> This is an error message. I know it is caused around libc++, but I don't know where parts should I fix.
> I did below to solve it.
>
> - delete build directory and make build directory again (cmake -G Ninja -DLLVM_ENABLE_PROJECTS="clang;lldb;libcxx;libcxxabi" ../llvm)
> - build each project(ninja lldb, ninja clang, ninja cxx, ninja cxxabi)
> - but when I executed "ninja cxx" and "ninja cxxabi", the same error occured.
>
> I sometimes tried to solve this problem this week, but I could not solve it. (I could not go to my laboratory because of coronavirus spreading, and I was busy dealing with that, so I could not take much time.)
I don't think I've seen this error before. Are you on the latest Xcode?
In any case, you should be able to just have "clang;lldb" in the project list which should get your check-lldb working. You won't get libc++ tests but at least the testsuit itself should work this way.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D76906/new/
https://reviews.llvm.org/D76906
More information about the lldb-commits
mailing list