[lldb-dev] Compilation failure on FreeBSD 8.

Alexander Potapenko glider at google.com
Wed Jan 18 05:38:47 PST 2012


Hello,

I'm facing the same problem that was discussed in September 2011.
I am trying to build LLDB on Ununtu Linux according to the instruction
from http://lldb.llvm.org/build.html (with LLVM and Clang synced to
r146622) but get a compilation error (see below).
My g++ version is 4.4.3
Clang is able to build this particular file.

Has anyone come up with a fix already?

==========================================
llvm[4]: Compiling DataVisualization.cpp for Debug+Asserts build
if  g++ -I/usr/local/google/lldb/llvm/build/include
-I/usr/local/google/lldb/llvm/build/tools/lldb/source/Core
-I/usr/local/google/lldb/llvm/include
-I/usr/local/google/lldb/llvm/tools/lldb/source/Core  -D_DEBUG
-D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
-D__STDC_LIMIT_MACROS
-I/usr/local/google/lldb/llvm/tools/lldb/source/Core/../../include
-I/usr/local/google/lldb/llvm/build/tools/lldb/source/Core/../../include
-I/usr/local/google/lldb/llvm/tools/clang/include
-I/usr/local/google/lldb/llvm/build/tools/clang/include
-I/usr/include/python2.6 -I/usr/include/python2.6
-I/usr/local/google/lldb/llvm/tools/lldb/source/Core/../../source
-I/usr/local/google/lldb/llvm/tools/lldb/source/Core/../../source/Utility
-I/usr/local/google/lldb/llvm/tools/lldb/source/Core/../../source/Plugins/Process/Utility
-g -fno-exceptions -fno-rtti -fPIC -Woverloaded-virtual -Wcast-qual
-fno-strict-aliasing    -pedantic -Wno-long-long -Wall -W
-Wno-unused-parameter -Wwrite-strings  -Wno-unknown-pragmas
-Wno-sign-compare -Wno-sign-compare -Wno-unused-function
-Wno-unneeded-internal-declaration -c -MMD -MP -MF
"/usr/local/google/lldb/llvm/build/tools/lldb/source/Core/Debug+Asserts/DataVisualization.d.tmp"
-MT "/usr/local/google/lldb/llvm/build/tools/lldb/source/Core/Debug+Asserts/DataVisualization.o"
-MT "/usr/local/google/lldb/llvm/build/tools/lldb/source/Core/Debug+Asserts/DataVisualization.d"
/usr/local/google/lldb/llvm/tools/lldb/source/Core/DataVisualization.cpp
-o /usr/local/google/lldb/llvm/build/tools/lldb/source/Core/Debug+Asserts/DataVisualization.o
; \
	        then /bin/mv -f
"/usr/local/google/lldb/llvm/build/tools/lldb/source/Core/Debug+Asserts/DataVisualization.d.tmp"
"/usr/local/google/lldb/llvm/build/tools/lldb/source/Core/Debug+Asserts/DataVisualization.d";
else /bin/rm "/usr/local/google/lldb/llvm/build/tools/lldb/source/Core/Debug+Asserts/DataVisualization.d.tmp";
exit 1; fi
In file included from /usr/include/python2.6/Python.h:8,
                 from
/usr/local/google/lldb/llvm/tools/lldb/source/Core/../../include/lldb/Core/FormatClasses.h:24,
                 from
/usr/local/google/lldb/llvm/tools/lldb/source/Core/../../include/lldb/Core/DataVisualization.h:28,
                 from
/usr/local/google/lldb/llvm/tools/lldb/source/Core/DataVisualization.cpp:10:
/usr/include/python2.6/pyconfig.h:1031:1: warning: "_POSIX_C_SOURCE" redefined
In file included from
/usr/include/c++/4.4/x86_64-linux-gnu/bits/os_defines.h:39,
                 from
/usr/include/c++/4.4/x86_64-linux-gnu/bits/c++config.h:243,
                 from /usr/include/c++/4.4/bits/localefwd.h:41,
                 from /usr/include/c++/4.4/locale:40,
                 from
/usr/local/google/lldb/llvm/tools/lldb/source/Core/../../include/lldb/Core/DataVisualization.h:22,
                 from
/usr/local/google/lldb/llvm/tools/lldb/source/Core/DataVisualization.cpp:10:
/usr/include/features.h:158:1: warning: this is the location of the
previous definition
In file included from /usr/include/python2.6/Python.h:8,
                 from
/usr/local/google/lldb/llvm/tools/lldb/source/Core/../../include/lldb/Core/FormatClasses.h:24,
                 from
/usr/local/google/lldb/llvm/tools/lldb/source/Core/../../include/lldb/Core/DataVisualization.h:28,
                 from
/usr/local/google/lldb/llvm/tools/lldb/source/Core/DataVisualization.cpp:10:
/usr/include/python2.6/pyconfig.h:1040:1: warning: "_XOPEN_SOURCE" redefined
In file included from
/usr/include/c++/4.4/x86_64-linux-gnu/bits/os_defines.h:39,
                 from
/usr/include/c++/4.4/x86_64-linux-gnu/bits/c++config.h:243,
                 from /usr/include/c++/4.4/bits/localefwd.h:41,
                 from /usr/include/c++/4.4/locale:40,
                 from
/usr/local/google/lldb/llvm/tools/lldb/source/Core/../../include/lldb/Core/DataVisualization.h:22,
                 from
/usr/local/google/lldb/llvm/tools/lldb/source/Core/DataVisualization.cpp:10:
/usr/include/features.h:160:1: warning: this is the location of the
previous definition
In file included from
/usr/local/google/lldb/llvm/tools/lldb/source/Core/../../include/lldb/Core/FormatManager.h:21,
                 from
/usr/local/google/lldb/llvm/tools/lldb/source/Core/../../include/lldb/Core/DataVisualization.h:29,
                 from
/usr/local/google/lldb/llvm/tools/lldb/source/Core/DataVisualization.cpp:10:
/usr/local/google/lldb/llvm/tools/lldb/source/Core/../../include/lldb/Core/FormatNavigator.h:
In member function ‘void lldb_private::FormatNavigator<KeyType,
ValueType>::Add(const typename lldb_private::FormatMap<KeyType,
ValueType>::MapType::key_type&, const typename
lldb_private::FormatMap<KeyType, ValueType>::MapType::mapped_type&)
[with KeyType = lldb_private::ConstString, ValueType =
lldb_private::ValueFormat]’:
/usr/local/google/lldb/llvm/tools/lldb/source/Core/DataVisualization.cpp:52:
  instantiated from here
/usr/local/google/lldb/llvm/tools/lldb/source/Core/../../include/lldb/Core/FormatNavigator.h:250:
error: call of overloaded ‘Add_Impl(const lldb_private::ConstString&,
const lldb_private::SharingPtr<lldb_private::ValueFormat>&,
lldb_private::FormatNavigator<lldb_private::ConstString,
lldb_private::ValueFormat>::Types<lldb_private::ConstString,
lldb_private::ValueFormat>)’ is ambiguous
/usr/local/google/lldb/llvm/tools/lldb/source/Core/../../include/lldb/Core/FormatNavigator.h:307:
note: candidates are: void lldb_private::FormatNavigator<KeyType,
ValueType>::Add_Impl(const typename lldb_private::FormatMap<KeyType,
ValueType>::MapType::key_type&, const typename
lldb_private::FormatMap<KeyType, ValueType>::MapType::mapped_type&,
lldb_private::FormatNavigator<KeyType, ValueType>::Types<K, V>) [with
K = lldb_private::ConstString, V = lldb_private::ValueFormat, KeyType
= lldb_private::ConstString, ValueType = lldb_private::ValueFormat]
/usr/local/google/lldb/llvm/tools/lldb/source/Core/../../include/lldb/Core/FormatNavigator.h:313:
note:                 void lldb_private::FormatNavigator<KeyType,
ValueType>::Add_Impl(const lldb_private::ConstString&, const typename
lldb_private::FormatMap<KeyType, ValueType>::MapType::mapped_type&,
lldb_private::FormatNavigator<KeyType,
ValueType>::Types<lldb_private::ConstString, V>) [with V =
lldb_private::ValueFormat, KeyType = lldb_private::ConstString,
ValueType = lldb_private::ValueFormat]
/usr/local/google/lldb/llvm/tools/lldb/source/Core/../../include/lldb/Core/FormatNavigator.h:
In member function ‘bool lldb_private::FormatNavigator<KeyType,
ValueType>::Get(lldb_private::ValueObject&, clang::QualType, typename
lldb_private::FormatMap<KeyType, ValueType>::MapType::mapped_type&,
lldb::DynamicValueType, uint32_t&) [with KeyType =
lldb_private::ConstString, ValueType = lldb_private::ValueFormat]’:
/usr/local/google/lldb/llvm/tools/lldb/source/Core/../../include/lldb/Core/FormatNavigator.h:267:
  instantiated from ‘bool lldb_private::FormatNavigator<KeyType,
ValueType>::Get(lldb_private::ValueObject&, typename
lldb_private::FormatMap<KeyType, ValueType>::MapType::mapped_type&,
lldb::DynamicValueType, uint32_t*) [with KeyType =
lldb_private::ConstString, ValueType = lldb_private::ValueFormat]’
/usr/local/google/lldb/llvm/tools/lldb/source/Core/DataVisualization.cpp:45:
  instantiated from here
/usr/local/google/lldb/llvm/tools/lldb/source/Core/../../include/lldb/Core/FormatNavigator.h:524:
warning: format ‘%p’ expects type ‘void*’, but argument 4 has type
‘const clang::Type*’
/usr/local/google/lldb/llvm/tools/lldb/source/Core/../../include/lldb/Core/FormatNavigator.h:524:
warning: format ‘%p’ expects type ‘void*’, but argument 5 has type
‘const clang::Type*’
At global scope:
cc1plus: warning: unrecognized command line option
"-Wno-unneeded-internal-declaration"
make[4]: *** [/usr/local/google/lldb/llvm/build/tools/lldb/source/Core/Debug+Asserts/DataVisualization.o]
Error 1
make[4]: Leaving directory
`/usr/local/google/lldb/llvm/build/tools/lldb/source/Core'
==========================================

TIA,
Alexander Potapenko
Software Engineer
Google Moscow




More information about the lldb-dev mailing list