[Bug 20255] New: lldb fails to build under GNU/Linux i386

Bug ID 20255
Summary lldb fails to build under GNU/Linux i386
Product lldb
Version unspecified
Hardware PC
OS Linux
Status NEW
Severity release blocker
Priority P
Component All Bugs
Assignee lldb-dev@cs.uiuc.edu
Reporter sylvestre@debian.org
Classification Unclassified

With gcc 4.8

/tmp/buildd/llvm-toolchain-snapshot-3.5~svn212585/tools/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp:
In constructor '{anonymous}::ReadOperation::ReadOperation(lldb::addr_t, void*,
lldb::addr_t, size_t&)':
/tmp/buildd/llvm-toolchain-snapshot-3.5~svn212585/tools/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp:507:29:
error: invalid initialization of reference of type 'lldb::addr_t& {aka long
long unsigned int&}' from expression of type 'size_t {aka unsigned int}'
             m_result (result)

[...]

                ^
/tmp/buildd/llvm-toolchain-snapshot-3.5~svn212585/tools/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp:
In member function 'virtual lldb_private::Error
lldb_private::NativeProcessLinux::ReadMemory(lldb::addr_t, void*, lldb::addr_t,
lldb::addr_t&)':
/tmp/buildd/llvm-toolchain-snapshot-3.5~svn212585/tools/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp:3072:49:
error: no matching function for call to
'{anonymous}::ReadOperation::ReadOperation(lldb::addr_t&, void*&,
lldb::addr_t&, lldb::addr_t&)'
     ReadOperation op(addr, buf, size, bytes_read);

Full command:

if  g++-4.8
-I/tmp/buildd/llvm-toolchain-snapshot-3.5~svn212585/build-llvm/include
-I/tmp/buildd/llvm-toolchain-snapshot-3.5~svn212585/build-llvm/tools/lldb/source/Plugins/Process/Linux
-I/tmp/buildd/llvm-toolchain-snapshot-3.5~svn212585/include
-I/tmp/buildd/llvm-toolchain-snapshot-3.5~svn212585/tools/lldb/source/Plugins/Process/Linux
 -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
-D__STDC_LIMIT_MACROS
-I/tmp/buildd/llvm-toolchain-snapshot-3.5~svn212585/tools/lldb/source/Plugins/Process/Linux/../../../../include
-I/tmp/buildd/llvm-toolchain-snapshot-3.5~svn212585/build-llvm/tools/lldb/source/Plugins/Process/Linux/../../../../include
-I/tmp/buildd/llvm-toolchain-snapshot-3.5~svn212585/tools/clang/include
-I/tmp/buildd/llvm-toolchain-snapshot-3.5~svn212585/build-llvm/tools/clang/include
-I/tmp/buildd/llvm-toolchain-snapshot-3.5~svn212585/tools/lldb/source/Plugins/Process/Linux/../../../../source
-I/tmp/buildd/llvm-toolchain-snapshot-3.5~svn212585/tools/lldb/source/Plugins/Process/Linux/../../../../source/Utility
-I/tmp/buildd/llvm-toolchain-snapshot-3.5~svn212585/tools/lldb/source/Plugins/Process/Linux/../../../../source/Plugins/Process/Utility
-I/tmp/buildd/llvm-toolchain-snapshot-3.5~svn212585/tools/lldb/source/Plugins/Process/Linux/../../../../source/Plugins/Process/POSIX
-I/usr/include/python2.7 -I/usr/include/i386-linux-gnu/python2.7
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -fomit-frame-pointer
-std=c++11 -fvisibility-inlines-hidden -fno-exceptions -fPIC
-Woverloaded-virtual -ffunction-sections -fdata-sections -Wcast-qual
-fno-strict-aliasing -std=c++0x -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2
-D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2
-D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2
-I/tmp/buildd/llvm-toolchain-snapshot-3.5~svn212585/tools/lldb/source/Plugins/Process/Linux/../../../../source/Plugins/Utility
-D_FORTIFY_SOURCE=2  -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter
-Wwrite-strings  -Wno-unknown-pragmas -Wno-sign-compare -Wno-sign-compare
-Wno-unused-function   -Wno-maybe-uninitialized -Wno-missing-field-initializers
-c -MMD -MP -MF
"/tmp/buildd/llvm-toolchain-snapshot-3.5~svn212585/build-llvm/tools/lldb/source/Plugins/Process/Linux/Release/NativeProcessLinux.d.tmp"
-MT
"/tmp/buildd/llvm-toolchain-snapshot-3.5~svn212585/build-llvm/tools/lldb/source/Plugins/Process/Linux/Release/NativeProcessLinux.o"
-MT
"/tmp/buildd/llvm-toolchain-snapshot-3.5~svn212585/build-llvm/tools/lldb/source/Plugins/Process/Linux/Release/NativeProcessLinux.d"
/tmp/buildd/llvm-toolchain-snapshot-3.5~svn212585/tools/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
-o
/tmp/buildd/llvm-toolchain-snapshot-3.5~svn212585/build-llvm/tools/lldb/source/Plugins/Process/Linux/Release/NativeProcessLinux.o
; \
            then /bin/mv -f
"/tmp/buildd/llvm-toolchain-snapshot-3.5~svn212585/build-llvm/tools/lldb/source/Plugins/Process/Linux/Release/NativeProcessLinux.d.tmp"
"/tmp/buildd/llvm-toolchain-snapshot-3.5~svn212585/build-llvm/tools/lldb/source/Plugins/Process/Linux/Release/NativeProcessLinux.d";
else /bin/rm
"/tmp/buildd/llvm-toolchain-snapshot-3.5~svn212585/build-llvm/tools/lldb/source/Plugins/Process/Linux/Release/NativeProcessLinux.d.tmp";
exit 1; fi

I’ll take this. I have several bugs I need to look at on debian related to builds. Just need to carve out time…

Todd Fiala changed bug 20255

What Removed Added
CC tfiala@google.com
Assignee lldb-dev@cs.uiuc.edu tfiala@google.com

Comment # 1 on bug 20255 from Todd Fiala

I'll take a look at this.  I have several Debian issues I need to carve out
some time for.