源码编译llvm Error 记录

$ cmake -G "Unix Makefiles" ../llvm      -DLLVM_ENABLE_PROJECTS="bolt;clang;clang-tools-extra;compiler-rt;cross-project-tests;libclc;l
ld;lldb;mlir;openmp;polly;pstl;flang"      -DLLVM_BUILD_EXAMPLES=ON      -DCMAKE_BUILD_TYPE=Release           -DLLVM_ENABLE_ASSERTIONS=ON           -DLLVM_ENABLE_RUNTIMES=all             -DLLVM_BUILD_LLVM_DYLIB=ON              -DCMAKE_INSTALL_PREFIX=../bin_lib

Error:

[100%] Built target lldbIntelFeatures
[100%] Linking CXX executable ../../../../bin/lldb
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `whline@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `update_panels@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `waddch@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `waddnstr@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `wattr_set@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `newwin@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `subwin@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `subpad@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `wredrawln@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `new_panel@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `top_panel@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `wattr_get@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `wbkgd@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `refresh@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `wattr_off@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `doupdate@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `wtouchln@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `vw_printw@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `mvwin@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `newpad@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `delscreen@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `newterm@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `derwin@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `wattr_on@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `copywin@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `box@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `del_panel@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `init_pair@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `wresize@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `start_color@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `noecho@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `wgetch@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `wmove@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `endwin@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `delwin@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `werase@NCURSES6_5.0.19991023'
collect2: error: ld returned 1 exit status
make[2]: *** [tools/lldb/tools/driver/CMakeFiles/lldb.dir/build.make:119: bin/lldb] Error 1
make[1]: *** [CMakeFiles/Makefile2:156157: tools/lldb/tools/driver/CMakeFiles/lldb.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[100%] Linking CXX executable ../../../../bin/lldb-vscode
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `whline@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `update_panels@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `waddch@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `waddnstr@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `wattr_set@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `newwin@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `subwin@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `subpad@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `wredrawln@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `new_panel@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `top_panel@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `wattr_get@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `wbkgd@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `refresh@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `wattr_off@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `doupdate@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `wtouchln@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `vw_printw@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `mvwin@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `newpad@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `delscreen@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `newterm@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `derwin@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `wattr_on@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `copywin@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `box@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `del_panel@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `init_pair@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `wresize@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `start_color@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `noecho@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `wgetch@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `wmove@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `endwin@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `delwin@NCURSES6_5.0.19991023'
/usr/bin/ld: ../../../../lib/liblldb.so.16.0.6: undefined reference to `werase@NCURSES6_5.0.19991023'
collect2: error: ld returned 1 exit status
make[2]: *** [tools/lldb/tools/lldb-vscode/CMakeFiles/lldb-vscode.dir/build.make:296: bin/lldb-vscode] Error 1
make[1]: *** [CMakeFiles/Makefile2:156868: tools/lldb/tools/lldb-vscode/CMakeFiles/lldb-vscode.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

你可能感兴趣的:(llvm)