Bug 149639 - FTBFS with GCC 13
Summary: FTBFS with GCC 13
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:7.4.0 target:7.3.5
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-20 13:11 UTC by Martin Liška
Modified: 2022-06-27 03:00 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Liška 2022-06-20 13:11:21 UTC
Description:
Fails with:

[ 1147s] In file included from /home/abuild/rpmbuild/BUILD/libreoffice-7.3.4.2/workdir/UnpackedTarball/pdfium/fpdfsdk/fpdf_flatten.cpp:17:
[ 1147s] /home/abuild/rpmbuild/BUILD/libreoffice-7.3.4.2/workdir/UnpackedTarball/pdfium/constants/annotation_flags.h:12:11: error: 'uint32_t' does not name a type
[ 1147s]    12 | constexpr uint32_t kInvisible = 1 << 0;
[ 1147s]       |           ^~~~~~~~
[ 1147s] /home/abuild/rpmbuild/BUILD/libreoffice-7.3.4.2/workdir/UnpackedTarball/pdfium/constants/annotation_flags.h:1:1: note: 'uint32_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
[ 1147s]   +++ |+#include <cstdint>
[ 1147s]     1 | // Copyright 2019 PDFium Authors. All rights reserved.

Documented change: https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes



Actual Results:
FTBFS

Expected Results:
It builds.


Reproducible: Always


User Profile Reset: No



Additional Info:
No other info.
Comment 1 Caolán McNamara 2022-06-20 14:08:17 UTC
https://gerrit.libreoffice.org/c/core/+/134760 for trunk I imagine resolves this towards 7-4
Comment 2 Caolán McNamara 2022-06-20 14:09:30 UTC
and that applies cleanly to 7-3 to proposed for 7-3 with https://gerrit.libreoffice.org/c/core/+/136163

done in trunk so, so mark as resolved wrt that
Comment 3 Martin Liška 2022-06-20 14:15:38 UTC
Great, thanks for the fix.
Comment 4 Commit Notification 2022-06-20 14:55:22 UTC
Stephan Bergmann committed a patch related to this issue.
It has been pushed to "libreoffice-7-3":

https://git.libreoffice.org/core/commit/5fb04477e6850fdfb54bb481c1901accea397ffe

tdf#149639 Missing #include <stdint.h> in various external code

It will be available in 7.3.5.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.