[Bug debugedit/32648] New: debugedit fails to build with '-Og' option and gcc 14

Qi.Chen at windriver dot com sourceware-bugzilla@sourceware.org
Thu Feb 6 03:46:50 GMT 2025


https://sourceware.org/bugzilla/show_bug.cgi?id=32648

            Bug ID: 32648
           Summary: debugedit fails to build with '-Og' option and gcc 14
           Product: debugedit
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: debugedit
          Assignee: unassigned at sourceware dot org
          Reporter: Qi.Chen at windriver dot com
                CC: debugedit at sourceware dot org
  Target Milestone: ---

When building debugedit with '-Og' option, we got the following error:

  include/xxhash.h:5210:1: error: inlining failed in call to
  'always_inline' 'XXH3_scrambleAcc_sse2': function not considered for inlining

The gcc version is 14.2. The error was there because debugedit tries to always
use use the inline version of xxhash. However, xxhash cannot always inline.
Below are some related information:

"""
In the Binary Size control section of the README.md for:
   https://github.com/Cyan4973/xxHash
we have:

XXH_NO_INLINE_HINTS: 
By default, xxHash uses __attribute__((always_inline)) and __forceinline to
improve performance at the cost of code size. 
Defining this macro to 1 will mark all internal functions as static, allowing
the compiler to decide whether to 
inline a function or not. This is very useful when optimizing for smallest
binary size, and is automatically defined 
when compiling with -O0, -Os, -Oz, or -fno-inline on GCC and Clang. 
It may also be required to successfully compile  using -Og, depending on
compiler version.

This was updated in:
  
https://github.com/Cyan4973/xxHash/commit/574aabad87b2ab9440403e92e1075ef48554eb87
and mentioned in:
   https://github.com/Cyan4973/xxHash/issues/943#issuecomment-2563205130

"""

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Debugedit mailing list