Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 865213 - dev-libs/liborcus: fails to compile with gcc-13: error: 'uint8_t' does not name a type
Summary: dev-libs/liborcus: fails to compile with gcc-13: error: 'uint8_t' does not na...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-13
  Show dependency tree
 
Reported: 2022-08-15 09:10 UTC by WANG Xuerui
Modified: 2022-08-23 07:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description WANG Xuerui gentoo-dev 2022-08-15 09:10:12 UTC
> libtool: compile:  x86_64-pc-linux-gnu-g++ -std=c++17 -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../src/include -DSRCDIR=\"../..\" -D__ORCUS_PSR_BUILDING_DLL -fvisibility=hidden -march=native -mtune=znver2 -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=128 -fuse-linker-plugin -pipe -ggdb -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,-z,pack-relative-relocs -Wall -pthread -Wshadow -DSIZEOF_VOID_P=8 -O2 -D__ORCUS_ODS -D__ORCUS_XLSX -D__ORCUS_XLS_XML -D__ORCUS_GNUMERIC -I/usr/include/mdds-2.0 -D__ORCUS_SPREADSHEET_MODEL -D__ORCUS_PYTHON_CSV -D__ORCUS_PYTHON_XLSX -D__ORCUS_PYTHON_ODS -D__ORCUS_PYTHON_XLS_XML -D__ORCUS_PYTHON_GNUMERIC -c xml_writer.cpp  -fPIC -DPIC -o .libs/xml_writer.o
> In file included from ../../include/orcus/xml_writer.hpp:11,
>                  from xml_writer.cpp:8:
> ../../include/orcus/types.hpp:391:5: error: 'uint8_t' does not name a type
>   391 |     uint8_t version_major;
>       |     ^~~~~~~
> ../../include/orcus/types.hpp:16:1: note: 'uint8_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
>    15 | #include "env.hpp"
>   +++ |+#include <cstdint>
>    16 |
> ../../include/orcus/types.hpp:392:5: error: 'uint8_t' does not name a type
>   392 |     uint8_t version_minor;
>       |     ^~~~~~~
> ../../include/orcus/types.hpp:392:5: note: 'uint8_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
> ../../include/orcus/types.hpp:397:30: error: expected ')' before '_version_major'
>   397 |     xml_declaration_t(uint8_t _version_major, uint8_t _version_minor, character_set_t _encoding, bool _standalone);
>       |                      ~       ^~~~~~~~~~~~~~~
>       |                              )

A fix is already tested, you can find it in the linked PR.
Comment 1 Larry the Git Cow gentoo-dev 2022-08-23 07:41:32 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07677fc22445c8e3c18352c0a7166ff20321fcca

commit 07677fc22445c8e3c18352c0a7166ff20321fcca
Author:     WANG Xuerui <xen0n@gentoo.org>
AuthorDate: 2022-08-12 02:33:37 +0000
Commit:     WANG Xuerui <xen0n@gentoo.org>
CommitDate: 2022-08-23 07:40:31 +0000

    dev-libs/liborcus: fix build on gcc-13
    
    Closes: https://bugs.gentoo.org/865213
    Signed-off-by: WANG Xuerui <xen0n@gentoo.org>

 .../liborcus/files/liborcus-0.17.2-gcc-13.patch    | 29 ++++++++++++++++++++++
 dev-libs/liborcus/liborcus-0.17.2.ebuild           |  1 +
 2 files changed, 30 insertions(+)