[lldb-dev] [Bug 19418] New: lots of warnings when building lldb

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Apr 13 15:11:03 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=19418

            Bug ID: 19418
           Summary: lots of warnings when building lldb
           Product: lldb
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at cs.uiuc.edu
          Reporter: tfarina at chromium.org
                CC: tfiala at google.com
    Classification: Unclassified

../tools/lldb/source/API/SBCommunication.cpp: In member function 'bool
lldb::SBCommunication::SetReadThreadBytesReceivedCallback(lldb::SBCommunication::ReadThreadBytesReceived,
void*)':
../tools/lldb/source/API/SBCommunication.cpp:253:54: warning: ISO C++ forbids
casting between pointer-to-function and pointer-to-object [enabled by default]
                      reinterpret_cast<void*>(callback),
                                                      ^
At global scope:
cc1plus: warning: unrecognized command line option "-Wno-deprecated-register"
[enabled by default]
[325/829] Building CXX object
tools/lldb/source/API/CMakeFiles/lldbAPI.dir/SBBreakpoint.cpp.o
In file included from /usr/include/python2.7/Python.h:8:0,
                 from ../tools/lldb/include/lldb/lldb-python.h:21,
                 from
../tools/lldb/include/lldb/Interpreter/ScriptInterpreterPython.h:20,
                 from
../tools/lldb/include/lldb/DataFormatters/TypeSummary.h:27,
                 from
../tools/lldb/include/lldb/DataFormatters/FormattersContainer.h:30,
                 from
../tools/lldb/include/lldb/DataFormatters/FormatManager.h:23,
                 from ../tools/lldb/include/lldb/Core/Debugger.h:27,
                 from ../tools/lldb/source/API/SBBreakpoint.cpp:22:
/usr/include/python2.7/pyconfig.h:1161:0: warning: "_POSIX_C_SOURCE" redefined
[enabled by default]
 #define _POSIX_C_SOURCE 200112L
 ^
In file included from
/usr/local/gcc/gcc-4.8.2/include/c++/4.8.2/x86_64-unknown-linux-gnu/bits/os_defines.h:39:0,
                 from
/usr/local/gcc/gcc-4.8.2/include/c++/4.8.2/x86_64-unknown-linux-gnu/bits/c++config.h:426,
                 from /usr/local/gcc/gcc-4.8.2/include/c++/4.8.2/utility:68,
                 from /usr/local/gcc/gcc-4.8.2/include/c++/4.8.2/algorithm:60,
                 from ../tools/lldb/include/lldb/Utility/SharingPtr.h:13,
                 from ../tools/lldb/include/lldb/lldb-forward.h:15,
                 from ../tools/lldb/include/lldb/lldb-types.h:14,
                 from ../tools/lldb/include/lldb/lldb-defines.h:13,
                 from ../tools/lldb/include/lldb/API/SBDefines.h:18,
                 from ../tools/lldb/include/lldb/API/SBBreakpoint.h:13,
                 from ../tools/lldb/source/API/SBBreakpoint.cpp:10:
/usr/include/features.h:164:0: note: this is the location of the previous
definition
 # define _POSIX_C_SOURCE 200809L
 ^
In file included from /usr/include/python2.7/Python.h:8:0,
                 from ../tools/lldb/include/lldb/lldb-python.h:21,
                 from
../tools/lldb/include/lldb/Interpreter/ScriptInterpreterPython.h:20,
                 from
../tools/lldb/include/lldb/DataFormatters/TypeSummary.h:27,
                 from
../tools/lldb/include/lldb/DataFormatters/FormattersContainer.h:30,
                 from
../tools/lldb/include/lldb/DataFormatters/FormatManager.h:23,
                 from ../tools/lldb/include/lldb/Core/Debugger.h:27,
                 from ../tools/lldb/source/API/SBBreakpoint.cpp:22:
/usr/include/python2.7/pyconfig.h:1183:0: warning: "_XOPEN_SOURCE" redefined
[enabled by default]
 #define _XOPEN_SOURCE 600
 ^
In file included from
/usr/local/gcc/gcc-4.8.2/include/c++/4.8.2/x86_64-unknown-linux-gnu/bits/os_defines.h:39:0,
                 from
/usr/local/gcc/gcc-4.8.2/include/c++/4.8.2/x86_64-unknown-linux-gnu/bits/c++config.h:426,
                 from /usr/local/gcc/gcc-4.8.2/include/c++/4.8.2/utility:68,
                 from /usr/local/gcc/gcc-4.8.2/include/c++/4.8.2/algorithm:60,
                 from ../tools/lldb/include/lldb/Utility/SharingPtr.h:13,
                 from ../tools/lldb/include/lldb/lldb-forward.h:15,
                 from ../tools/lldb/include/lldb/lldb-types.h:14,
                 from ../tools/lldb/include/lldb/lldb-defines.h:13,
                 from ../tools/lldb/include/lldb/API/SBDefines.h:18,
                 from ../tools/lldb/include/lldb/API/SBBreakpoint.h:13,
                 from ../tools/lldb/source/API/SBBreakpoint.cpp:10:
/usr/include/features.h:166:0: note: this is the location of the previous
definition
 # define _XOPEN_SOURCE 700
 ^
cc1plus: warning: unrecognized command line option "-Wno-deprecated-register"
[enabled by default]
[328/829] Building CXX object
tools/lldb/source/API/CMakeFiles/lldbAPI.dir/SBHostOS.cpp.o
../tools/lldb/source/API/SBHostOS.cpp: In static member function 'static
lldb::thread_t lldb::SBHostOS::ThreadCreate(const char*, lldb::thread_func_t,
void*, lldb::SBError*)':
../tools/lldb/source/API/SBHostOS.cpp:54:67: warning: ISO C++ forbids casting
between pointer-to-function and pointer-to-object [enabled by default]
                      name, reinterpret_cast<void*>(thread_function),
                                                                   ^
At global scope:
cc1plus: warning: unrecognized command line option "-Wno-deprecated-register"
[enabled by default]
[330/829] Building CXX object
tools/lldb/source/API/CMakeFiles/lldbAPI.dir/SBBreakpointLocation.cpp.o
In file included from /usr/include/python2.7/Python.h:8:0,
                 from ../tools/lldb/include/lldb/lldb-python.h:21,
                 from
../tools/lldb/include/lldb/Interpreter/ScriptInterpreterPython.h:20,
                 from
../tools/lldb/include/lldb/DataFormatters/TypeSummary.h:27,
                 from
../tools/lldb/include/lldb/DataFormatters/FormattersContainer.h:30,
                 from
../tools/lldb/include/lldb/DataFormatters/FormatManager.h:23,
                 from ../tools/lldb/include/lldb/Core/Debugger.h:27,
                 from ../tools/lldb/source/API/SBBreakpointLocation.cpp:20:
/usr/include/python2.7/pyconfig.h:1161:0: warning: "_POSIX_C_SOURCE" redefined
[enabled by default]
 #define _POSIX_C_SOURCE 200112L
 ^
In file included from
/usr/local/gcc/gcc-4.8.2/include/c++/4.8.2/x86_64-unknown-linux-gnu/bits/os_defines.h:39:0,
                 from
/usr/local/gcc/gcc-4.8.2/include/c++/4.8.2/x86_64-unknown-linux-gnu/bits/c++config.h:426,
                 from /usr/local/gcc/gcc-4.8.2/include/c++/4.8.2/utility:68,
                 from /usr/local/gcc/gcc-4.8.2/include/c++/4.8.2/algorithm:60,
                 from ../tools/lldb/include/lldb/Utility/SharingPtr.h:13,
                 from ../tools/lldb/include/lldb/lldb-forward.h:15,
                 from ../tools/lldb/include/lldb/lldb-types.h:14,
                 from ../tools/lldb/include/lldb/lldb-defines.h:13,
                 from ../tools/lldb/include/lldb/API/SBDefines.h:18,
                 from ../tools/lldb/include/lldb/API/SBBreakpointLocation.h:13,
/usr/include/features.h:164:0: note: this is the location of the previous
definition
 # define _POSIX_C_SOURCE 200809L
 ^
In file included from /usr/include/python2.7/Python.h:8:0,
                 from ../tools/lldb/include/lldb/lldb-python.h:21,
                 from
../tools/lldb/include/lldb/Interpreter/ScriptInterpreterPython.h:20,
                 from
../tools/lldb/include/lldb/DataFormatters/TypeSummary.h:27,
                 from
../tools/lldb/include/lldb/DataFormatters/FormattersContainer.h:30,
                 from
../tools/lldb/include/lldb/DataFormatters/FormatManager.h:23,
                 from ../tools/lldb/include/lldb/Core/Debugger.h:27,
                 from ../tools/lldb/source/API/SBBreakpointLocation.cpp:20:
/usr/include/python2.7/pyconfig.h:1183:0: warning: "_XOPEN_SOURCE" redefined
[enabled by default]
 #define _XOPEN_SOURCE 600
 ^
In file included from
/usr/local/gcc/gcc-4.8.2/include/c++/4.8.2/x86_64-unknown-linux-gnu/bits/os_defines.h:39:0,
                 from
/usr/local/gcc/gcc-4.8.2/include/c++/4.8.2/x86_64-unknown-linux-gnu/bits/c++config.h:426,
                 from /usr/local/gcc/gcc-4.8.2/include/c++/4.8.2/utility:68,
                 from /usr/local/gcc/gcc-4.8.2/include/c++/4.8.2/algorithm:60,
                 from ../tools/lldb/include/lldb/Utility/SharingPtr.h:13,
                 from ../tools/lldb/include/lldb/lldb-forward.h:15,
                 from ../tools/lldb/include/lldb/lldb-types.h:14,
                 from ../tools/lldb/include/lldb/lldb-defines.h:13,
                 from ../tools/lldb/include/lldb/API/SBDefines.h:18,
                 from ../tools/lldb/include/lldb/API/SBBreakpointLocation.h:13,
                 from ../tools/lldb/source/API/SBBreakpointLocation.cpp:10:
/usr/include/features.h:166:0: note: this is the location of the previous
definition
 # define _XOPEN_SOURCE 700
 ^
cc1plus: warning: unrecognized command line option "-Wno-deprecated-register"
[enabled by default]
[353/829] Building CXX object
tools/lldb/source/API/CMakeFiles/lldbAPI.dir/SBTarget.cpp.o
../tools/lldb/source/API/SBTarget.cpp: In member function 'lldb::SBError
lldb::SBTarget::SetSectionLoadAddress(lldb::SBSection, lldb::addr_t)':
../tools/lldb/source/API/SBTarget.cpp:2427:30: warning: variable 'stop_id' set
but not used [-Wunused-but-set-variable]
                     uint32_t stop_id = 0;
                              ^
../tools/lldb/source/API/SBTarget.cpp: In member function 'lldb::SBError
lldb::SBTarget::ClearSectionLoadAddress(lldb::SBSection)':
../tools/lldb/source/API/SBTarget.cpp:2463:22: warning: variable 'stop_id' set
but not used [-Wunused-but-set-variable]
             uint32_t stop_id = 0;
                      ^
../tools/lldb/source/API/SBTarget.cpp: In member function 'lldb::SBError
lldb::SBTarget::ClearModuleLoadAddress(lldb::SBModule)':
../tools/lldb/source/API/SBTarget.cpp:2542:30: warning: variable 'stop_id' set
but not used [-Wunused-but-set-variable]
                     uint32_t stop_id = 0;
                              ^
At global scope:
cc1plus: warning: unrecognized command line option "-Wno-deprecated-register"
[enabled by default]
[465/829] Building CXX object
tools/lldb/source/Core/CMakeFiles/lldbCore.dir/PluginManager.cpp.o
../tools/lldb/source/Core/PluginManager.cpp: In function
'lldb_private::FileSpec::EnumerateDirectoryResult LoadPluginCallback(void*,
lldb_private::FileSpec::FileType, const lldb_private::FileSpec&)':
../tools/lldb/source/Core/PluginManager.cpp:118:159: warning: ISO C++ forbids
casting between pointer-to-function and pointer-to-object [enabled by default]
                 plugin_info.plugin_init_callback =
(PluginInitCallback)Host::DynamicLibraryGetSymbol (plugin_info.plugin_handle,
"LLDBPluginInitialize", error);
                                                                               
                                                                              
^
../tools/lldb/source/Core/PluginManager.cpp:128:162: warning: ISO C++ forbids
casting between pointer-to-function and pointer-to-object [enabled by default]
                     plugin_info.plugin_term_callback =
(PluginTermCallback)Host::DynamicLibraryGetSymbol (plugin_info.plugin_handle,
"LLDBPluginTerminate", error);
                                                                               
                                                                               
  ^
At global scope:
cc1plus: warning: unrecognized command line option "-Wno-deprecated-register"
[enabled by default]

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20140413/a9493f9c/attachment.html>


More information about the lldb-dev mailing list