https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118010
Eric Gallager <egallager at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |egallager at gcc dot gnu.org --- Comment #9 from Eric Gallager <egallager at gcc dot gnu.org> --- (In reply to Sam James from comment #6) > (In reply to Gaius Mulley from comment #2) > > Created attachment 59912 [details] > > Proposed fix > > > > Many thanks for the bug report. > > > > Here is a proposed patch, (although I've not built it with --Wtype-mismatch > > yet). > > I've altered all return types to libc_lseek to ssize_t and tested it with: > > > > ../configure --prefix=$HOME/opt --enable-bootstrap > > --with-build-config="bootstrap-O3 bootstrap-lto" > > --enable-languages=c,c++,m2,lto > > > > Any chance you can post your configure runes? > > Sorry Gaius, I'd missed this -- yours should be basically equivalent, I just > add in BOOT_C{XX,}FLAGS="-O2 -Werror=odr -Werror=odr-type-mismatch". er... s/odr-type-mismatch/lto-type-mismatch/g, correct?