Skip to content

Can not build lldb15.0.0 on i686 against older kernel (pre-4.1) #57594

@satmandu

Description

@satmandu

14.x built fine. This might be related to this issue with llvm 13: https://bugs.llvm.org/show_bug.cgi?id=51917

Building llvm 15.0.0 on i686 gives me this error:

[7465/7686] Building CXX object tools/lldb/source/Plugins/Process/Linux/CMakeFiles/lldbPluginProcessLinux.dir/NativeThreadLinux.cpp.o
samu: job failed: CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/local/bin/ccache /usr/local/lib/ccache/bin/clang++ -DHAVE_ROUND -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/usr/local/tmp/crew/llvm.20220906180702.dir/builddir/tools/lldb/source/Plugins/Process/Linux -I/usr/local/tmp/crew/llvm.20220906180702.dir/lldb/source/Plugins/Process/Linux -I/usr/local/tmp/crew/llvm.20220906180702.dir/lldb/include -I/usr/local/tmp/crew/llvm.20220906180702.dir/builddir/tools/lldb/include -I/usr/local/tmp/crew/llvm.20220906180702.dir/builddir/include -I/usr/local/tmp/crew/llvm.20220906180702.dir/llvm/include -I/usr/local/tmp/crew/llvm.20220906180702.dir/llvm/../clang/include -I/usr/local/tmp/crew/llvm.20220906180702.dir/builddir/tools/lldb/../clang/include -I/usr/local/tmp/crew/llvm.20220906180702.dir/lldb/source -I/usr/local/tmp/crew/llvm.20220906180702.dir/builddir/tools/lldb/source -isystem /usr/local/include/libxml2 -latomic -fPIC -flto=thin -fvisibility-inlines-hidden -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -fdiagnostics-color -flto=thin -Wno-deprecated-declarations -Wno-unknown-pragmas -Wno-strict-aliasing -Wno-deprecated-register -Wno-vla-extension -O3 -DNDEBUG  -fno-exceptions -std=c++14 -MD -MT tools/lldb/source/Plugins/Process/Linux/CMakeFiles/lldbPluginProcessLinux.dir/Perf.cpp.o -MF tools/lldb/source/Plugins/Process/Linux/CMakeFiles/lldbPluginProcessLinux.dir/Perf.cpp.o.d -o tools/lldb/source/Plugins/Process/Linux/CMakeFiles/lldbPluginProcessLinux.dir/Perf.cpp.o -c /usr/local/tmp/crew/llvm.20220906180702.dir/lldb/source/Plugins/Process/Linux/Perf.cpp
clang-14: warning: -latomic: 'linker' input unused [-Wunused-command-line-argument]
/usr/local/tmp/crew/llvm.20220906180702.dir/lldb/source/Plugins/Process/Linux/Perf.cpp:135:17: error: no member named 'aux_offset' in 'perf_event_mmap_page'
  metadata_page.aux_offset =
  ~~~~~~~~~~~~~ ^
/usr/local/tmp/crew/llvm.20220906180702.dir/lldb/source/Plugins/Process/Linux/Perf.cpp:136:21: error: no member named 'data_offset' in 'perf_event_mmap_page'
      metadata_page.data_offset + metadata_page.data_size;
      ~~~~~~~~~~~~~ ^
/usr/local/tmp/crew/llvm.20220906180702.dir/lldb/source/Plugins/Process/Linux/Perf.cpp:136:49: error: no member named 'data_size' in 'perf_event_mmap_page'
      metadata_page.data_offset + metadata_page.data_size;
                                  ~~~~~~~~~~~~~ ^
/usr/local/tmp/crew/llvm.20220906180702.dir/lldb/source/Plugins/Process/Linux/Perf.cpp:137:17: error: no member named 'aux_size' in 'perf_event_mmap_page'
  metadata_page.aux_size = num_aux_pages * getpagesize();
  ~~~~~~~~~~~~~ ^
/usr/local/tmp/crew/llvm.20220906180702.dir/lldb/source/Plugins/Process/Linux/Perf.cpp:140:41: error: no member named 'aux_size' in 'perf_event_mmap_page'
          DoMmap(nullptr, metadata_page.aux_size, PROT_READ, MAP_SHARED,
                          ~~~~~~~~~~~~~ ^
/usr/local/tmp/crew/llvm.20220906180702.dir/lldb/source/Plugins/Process/Linux/Perf.cpp:141:32: error: no member named 'aux_offset' in 'perf_event_mmap_page'
                 metadata_page.aux_offset, "aux buffer")) {
                 ~~~~~~~~~~~~~ ^
/usr/local/tmp/crew/llvm.20220906180702.dir/lldb/source/Plugins/Process/Linux/Perf.cpp:177:29: error: no member named 'data_offset' in 'perf_event_mmap_page'
              mmap_metadata.data_offset,
              ~~~~~~~~~~~~~ ^
/usr/local/tmp/crew/llvm.20220906180702.dir/lldb/source/Plugins/Process/Linux/Perf.cpp:178:46: error: no member named 'data_size' in 'perf_event_mmap_page'
           static_cast<size_t>(mmap_metadata.data_size)};
                               ~~~~~~~~~~~~~ ^
/usr/local/tmp/crew/llvm.20220906180702.dir/lldb/source/Plugins/Process/Linux/Perf.cpp:184:46: error: no member named 'aux_size' in 'perf_event_mmap_page'
           static_cast<size_t>(mmap_metadata.aux_size)};
                               ~~~~~~~~~~~~~ ^
/usr/local/tmp/crew/llvm.20220906180702.dir/lldb/source/Plugins/Process/Linux/Perf.cpp:208:38: error: no member named 'data_size' in 'perf_event_mmap_page'
  uint64_t data_size = mmap_metadata.data_size;
                       ~~~~~~~~~~~~~ ^
/usr/local/tmp/crew/llvm.20220906180702.dir/lldb/source/Plugins/Process/Linux/Perf.cpp:244:37: error: no member named 'aux_head' in 'perf_event_mmap_page'
  uint64_t aux_head = mmap_metadata.aux_head;
                      ~~~~~~~~~~~~~ ^
/usr/local/tmp/crew/llvm.20220906180702.dir/lldb/source/Plugins/Process/Linux/Perf.cpp:301:47: error: no member named 'data_size' in 'perf_event_mmap_page'
  if (mmap_metadata.data_head < mmap_metadata.data_size)
                                ~~~~~~~~~~~~~ ^
/usr/local/tmp/crew/llvm.20220906180702.dir/lldb/source/Plugins/Process/Linux/Perf.cpp:304:26: error: no member named 'data_size' in 'perf_event_mmap_page'
    return mmap_metadata.data_size; // The buffer has wrapped.
           ~~~~~~~~~~~~~ ^
/usr/local/tmp/crew/llvm.20220906180702.dir/lldb/source/Plugins/Process/Linux/Perf.cpp:310:8: warning: unused variable 'log' [-Wunused-variable]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions