Skip to content

build failed on gcc-13 #897

@yuzibo

Description

@yuzibo

aseba was built failed on gcc-13:

/<<PKGBUILDDIR>>/aseba/common/msg/TargetDescription.h:88:17: error: ‘uint16_t’ does not name a type
|    88 |                 uint16_t crc() const;
|       |                 ^~~~~~~~
| /<<PKGBUILDDIR>>/aseba/common/msg/TargetDescription.h:26:1: note: ‘uint16_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
|    25 | #include <vector>
|   +++ |+#include <cstdint>
|    26 | 
| /<<PKGBUILDDIR>>/aseba/common/msg/TargetDescription.cpp:26:18: error: no declaration matches ‘uint16_t Aseba::TargetDescription::crc() const’
|    26 |         uint16_t TargetDescription::crc() const
|       |                  ^~~~~~~~~~~~~~~~~

The log is here.

I can confirm the patch can fix the issue:

--- a/aseba/common/msg/TargetDescription.h
+++ b/aseba/common/msg/TargetDescription.h
@@ -23,6 +23,7 @@
 #include <map>
 #include <string>
 #include <vector>
+#include <cstdint>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions