aseba-community / aseba

Aseba is a set of tools which allow beginners to program robots easily and efficiently. To contact us, please open an issue.
http://aseba.wikidot.com
GNU Lesser General Public License v3.0
48 stars 62 forks source link

build failed on gcc-13 #897

Open yuzibo opened 10 months ago

yuzibo commented 10 months ago

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>