<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/102119>102119</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Dwarf Error: found dwarf version '5', this reader only handles version 2, 3 and 4 information. lldb build
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
aideveloperme
</td>
</tr>
</table>
<pre>
[ 97%] Building CXX object source/API/CMakeFiles/liblldb.dir/SBTypeNameSpecifier.cpp.o
[ 97%] Building CXX object source/API/CMakeFiles/liblldb.dir/SBTypeSummary.cpp.o
[ 97%] Building CXX object source/API/CMakeFiles/liblldb.dir/SBTypeSynthetic.cpp.o
[ 97%] Building CXX object source/API/CMakeFiles/liblldb.dir/SBValue.cpp.o
[ 97%] Building CXX object source/API/CMakeFiles/liblldb.dir/SBValueList.cpp.o
[ 97%] Building CXX object source/API/CMakeFiles/liblldb.dir/SBVariablesOptions.cpp.o
[ 97%] Building CXX object source/API/CMakeFiles/liblldb.dir/SBWatchpoint.cpp.o
[ 97%] Building CXX object source/API/CMakeFiles/liblldb.dir/SBWatchpointOptions.cpp.o
[ 97%] Building CXX object source/API/CMakeFiles/liblldb.dir/SBUnixSignals.cpp.o
[ 97%] Building CXX object source/API/CMakeFiles/liblldb.dir/SystemInitializerFull.cpp.o
[ 97%] Building CXX object source/API/CMakeFiles/liblldb.dir/__/__/bindings/python/LLDBWrapPython.cpp.o
In file included from /home/meghak/llvm/llvm-omp-build/include/llvm/Support/FormatVariadic.h:34,
from /home/meghak/llvm/lldb-build/llvm-project-llvmorg-18.1.8/lldb/include/lldb/Utility/Stream.h:16,
from /home/meghak/llvm/lldb-build/llvm-project-llvmorg-18.1.8/lldb/include/lldb/Core/Address.h:12,
from /home/meghak/llvm/lldb-build/llvm-project-llvmorg-18.1.8/lldb/include/lldb/Core/Module.h:12,
from /home/meghak/llvm/lldb-build/llvm-project-llvmorg-18.1.8/lldb/source/API/SBModuleSpec.cpp:12:
In static member function ‘static size_t llvm::detail::HelperFunctions::consumeNumHexDigits(llvm::StringRef&, llvm::HexPrintStyle, size_t)’,
inlined from ‘static void llvm::format_provider<T, typename std::enable_if<llvm::detail::use_integral_formatter<T>::value, void>::type>::format(const T&, llvm::raw_ostream&, llvm::StringRef) [with T = long unsigned int]’ at /home/meghak/llvm/llvm-omp-build/include/llvm/Support/FormatProviders.h:136:35,
inlined from ‘void llvm::detail::provider_format_adapter<T>::format(llvm::raw_ostream&, llvm::StringRef) [with T = long unsigned int]’ at /home/meghak/llvm/llvm-omp-build/include/llvm/Support/FormatVariadicDetails.h:40:45:
/home/meghak/llvm/llvm-omp-build/include/llvm/Support/FormatProviders.h:96:27: warning: ‘HS’ may be used uninitialized [-Wmaybe-uninitialized]
96 | if (isPrefixedHexStyle(Style))
| ~~~~~~~~~~~~~~~~~~^~~~~~~
/home/meghak/llvm/llvm-omp-build/include/llvm/Support/FormatProviders.h: In member function ‘void llvm::detail::provider_format_adapter<T>::format(llvm::raw_ostream&, llvm::StringRef) [with T = long unsigned int]’:
/home/meghak/llvm/llvm-omp-build/include/llvm/Support/FormatProviders.h:133:19: note: ‘HS’ was declared here
133 | HexPrintStyle HS;
| ^~
In file included from /home/meghak/llvm/llvm-omp-build/include/llvm/Support/FormatVariadic.h:34,
from /home/meghak/llvm/lldb-build/llvm-project-llvmorg-18.1.8/lldb/include/lldb/Utility/Stream.h:16,
from /home/meghak/llvm/lldb-build/llvm-project-llvmorg-18.1.8/lldb/include/lldb/Core/Address.h:12,
from /home/meghak/llvm/lldb-build/llvm-project-llvmorg-18.1.8/lldb/source/API/SBFrame.cpp:18:
In static member function ‘static size_t llvm::detail::HelperFunctions::consumeNumHexDigits(llvm::StringRef&, llvm::HexPrintStyle, size_t)’,
inlined from ‘static void llvm::format_provider<T, typename std::enable_if<llvm::detail::use_integral_formatter<T>::value, void>::type>::format(const T&, llvm::raw_ostream&, llvm::StringRef) [with T = long unsigned int]’ at /home/meghak/llvm/llvm-omp-build/include/llvm/Support/FormatProviders.h:136:35,
inlined from ‘void llvm::detail::provider_format_adapter<T>::format(llvm::raw_ostream&, llvm::StringRef) [with T = const long unsigned int&]’ at /home/meghak/llvm/llvm-omp-build/include/llvm/Support/FormatVariadicDetails.h:40:45:
/home/meghak/llvm/llvm-omp-build/include/llvm/Support/FormatProviders.h:96:27: warning: ‘HS’ may be used uninitialized [-Wmaybe-uninitialized]
96 | if (isPrefixedHexStyle(Style))
| ~~~~~~~~~~~~~~~~~~^~~~~~~
/home/meghak/llvm/llvm-omp-build/include/llvm/Support/FormatProviders.h: In member function ‘void llvm::detail::provider_format_adapter<T>::format(llvm::raw_ostream&, llvm::StringRef) [with T = const long unsigned int&]’:
/home/meghak/llvm/llvm-omp-build/include/llvm/Support/FormatProviders.h:133:19: note: ‘HS’ was declared here
133 | HexPrintStyle HS;
| ^~
In static member function ‘static size_t llvm::detail::HelperFunctions::consumeNumHexDigits(llvm::StringRef&, llvm::HexPrintStyle, size_t)’,
inlined from ‘static void llvm::format_provider<T, typename std::enable_if<llvm::detail::use_integral_formatter<T>::value, void>::type>::format(const T&, llvm::raw_ostream&, llvm::StringRef) [with T = long unsigned int]’ at /home/meghak/llvm/llvm-omp-build/include/llvm/Support/FormatProviders.h:136:35,
inlined from ‘void llvm::detail::provider_format_adapter<T>::format(llvm::raw_ostream&, llvm::StringRef) [with T = long unsigned int&]’ at /home/meghak/llvm/llvm-omp-build/include/llvm/Support/FormatVariadicDetails.h:40:45:
/home/meghak/llvm/llvm-omp-build/include/llvm/Support/FormatProviders.h:96:27: warning: ‘HS’ may be used uninitialized [-Wmaybe-uninitialized]
96 | if (isPrefixedHexStyle(Style))
| ~~~~~~~~~~~~~~~~~~^~~~~~~
/home/meghak/llvm/llvm-omp-build/include/llvm/Support/FormatProviders.h: In member function ‘void llvm::detail::provider_format_adapter<T>::format(llvm::raw_ostream&, llvm::StringRef) [with T = long unsigned int&]’:
/home/meghak/llvm/llvm-omp-build/include/llvm/Support/FormatProviders.h:133:19: note: ‘HS’ was declared here
133 | HexPrintStyle HS;
| ^~
[ 97%] Linking CXX shared library ../../lib/liblldb.so
/usr/bin/ld: Dwarf Error: found dwarf version '5', this reader only handles version 2, 3 and 4 information.
/home/meghak/llvm/python3.10.14-build/lib/libpython3.10.a(posixmodule.o): In function `os_openpty':
posixmodule.c:(.text.unlikely+0x5f44): undefined reference to `openpty'
/home/meghak/llvm/python3.10.14-build/lib/libpython3.10.a(posixmodule.o): In function `os_forkpty':
posixmodule.c:(.text.unlikely+0x8695): undefined reference to `forkpty'
collect2: error: ld returned 1 exit status
make[2]: *** [lib/liblldb.so.18.1.8] Error 1
make[1]: *** [source/API/CMakeFiles/liblldb.dir/all] Error 2
make: *** [all] Error 2
installation script
gcc -12.2
cmaek-3.30.1
python-3.10
cmake -B build-lldb -G "Unix Makefiles" -DCMAKE_C_COMPILER=/home/user1/gcc12/bin/gcc -DCMAKE_CXX_COMPILER=/home/user1/gcc12/bin/g++ -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/home/user1/llvm/lldb-build -DLLVM_ENABLE_PROJECTS="lldb" -DLLVM_TARGETS_TO_BUILD="NVPTX;X86" -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON -DCMAKE_INSTALL_RPATH=/home/user1/llvm/lldb-build/lib -DPython3_EXECUTABLE=/home/user1/llvm/python3.10.14-build/bin/python3.10 -DCMAKE_EXE_LINKER_FLAGS="-lutil" -DLLVM_INSTALL_UTILS=ON -S lldb
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsWllz4joW_jXiRYXLllkfeGDtMJckVCDdzJNLWAfQRJZckpzAfZjfPiXbrElP90xduic1uFIGaznLd1asUGP4WgJ0UL2H6oMKzexG6Q7lDF5BqBR0ApWlYju3ALebiNRRfYB7GReMyzXuLxZYLf8BscVGZToGREbd6RiRUf-evsCICzCIjARfCsGWHuMakd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