Re: [Bug Report] Git fails to compile with fortify-headers and LTO - error: inlining failed in call to 'always_inline' 'fwrite': function body can be overwritten at link time
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 18, 2023, 23:13 UTC
- Message-ID
- <xmqqcz0oerup.fsf@gitster.g>
- In-Reply-To
- <CAHfWF5n5kk1bYdU4qKTF3n_Ad9BGjwbbmm+0ZQEX=1NZzRiWXA@mail.gmail.com>
Immolo <immoloism@googlemail.com> writes:
Show 10 quoted lines
> /usr/include/fortify/stdio.h: In function 'verify_cache': > /usr/include/fortify/stdio.h:59:28: error: inlining failed in call to > 'always_inline' 'fwrite': function body can be overwritten at link > time > 59 | _FORTIFY_FN(fwrite) size_t fwrite(const void *__d, size_t __n, > size_t __m, FILE *__f) > | ^ > cache-tree.c:175:33: note: called from here > 175 | fprintf(stderr, "...\n"); > | ^
It looks like a plain vanilla invocation of fprintf(), unlike from any random application, a user of the standard C runtime library . Is this a bug to be reported here, or would it be more valuable and useful if reported to GCC or Fortify folks, I wonder?