Skip to content
Snippets Groups Projects

Fix FTBFS in gcc-11

Merged Mike Gerow requested to merge gerow-guest/android-platform-system-core:gcc-11 into master

Without this patch gcc-11 complains with errors like:

In file included from libunwindstack/DwarfSection.cpp:21:
libunwindstack/include/unwindstack/DwarfMemory.h:32:29: error: unknown type name 'size_t'; did you mean 'std::size_t'?
  bool ReadBytes(void* dst, size_t num_bytes);
                            ^~~~~~
                            std::size_t
/usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/x86_64-linux-gnu/c++/11/bits/c++config.h:280:26: note: 'std::size_t' declared here
  typedef __SIZE_TYPE__         size_t;
                                ^
In file included from libunwindstack/DwarfSection.cpp:21:
libunwindstack/include/unwindstack/DwarfMemory.h:42:3: error: unknown type name 'size_t'; did you mean 'std::size_t'?
  size_t GetEncodedSize(uint8_t encoding);
  ^~~~~~
  std::size_t
/usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/x86_64-linux-gnu/c++/11/bits/c++config.h:280:26: note: 'std::size_t' declared here
  typedef __SIZE_TYPE__         size_t;
                                ^

closes: bug#983966 Signed-off-by: Mike Gerow gerow@google.com

I can also see that this package hasn't seen any updates from upstream in quite some time. It's possible that an update there would also fix this issue. In either case, this patch should get this package building again in unstable and testing.

Edited by Mike Gerow

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading