Source: mahimahi
Version: 0.98-1.1
Severity: serious
Tags: FTBFS, patch
User: debian-ri...@lists.debian.org
Usertags: riscv64
X-Debbugs-Cc: debian-ri...@lists.debian.org

Dear mahimahi Maintainer,
The mahimahi package build failed on riscv64 caused by gcc11 error.The
crucial buildd log below:
```

make[4]: Entering directory '/<<PKGBUILDDIR>>/src/packet'
g++ -DHAVE_CONFIG_H -I. -I../..  -I./../util -std=c++11 -pthread
-Wdate-time -D_FORTIFY_SOURCE=2 -pedantic -Wall -Wextra -Weffc++
-Werror -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
-fstack-protector-strong -Wformat -Werror=format-security -c -o
packetshell.o packetshell.cc
g++ -DHAVE_CONFIG_H -I. -I../..  -I./../util -std=c++11 -pthread
-Wdate-time -D_FORTIFY_SOURCE=2 -pedantic -Wall -Wextra -Weffc++
-Werror -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
-fstack-protector-strong -Wformat -Werror=format-security -c -o
dropping_packet_queue.o dropping_packet_queue.cc
In file included from abstract_packet_queue.hh:8,
                 from dropping_packet_queue.hh:9,
                 from dropping_packet_queue.cc:5:
queued_packet.hh:10:5: error: ‘uint64_t’ does not name a type
   10 |     uint64_t arrival_time;
      |     ^~~~~~~~
queued_packet.hh:1:1: note: ‘uint64_t’ is defined in header
‘<cstdint>’; did you forget to ‘#include <cstdint>’?
  +++ |+#include <cstdint>
    1 | /* -*-mode:c++; tab-width: 4; indent-tabs-mode: nil;
c-basic-offset: 4 -*- */
queued_packet.hh:13:51: error: ‘uint64_t’ has not been declared
   13 |     QueuedPacket( const std::string & s_contents, uint64_t
s_arrival_time )
      |                                                   ^~~~~~~~
queued_packet.hh: In constructor ‘QueuedPacket::QueuedPacket(const
std::string&, int)’:
queued_packet.hh:14:11: error: class ‘QueuedPacket’ does not have any
field named ‘arrival_time’
   14 |         : arrival_time( s_arrival_time ), contents( s_contents )
      |           ^~~~~~~~~~~~
make[4]: *** [Makefile:425: dropping_packet_queue.o] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/src/packet'
make[3]: *** [Makefile:380: all-recursive] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[2]: *** [Makefile:428: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:360: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j1 returned exit code 2
make: *** [debian/rules:15: build-arch] Error 25
dpkg-buildpackage: error: debian/rules build-arch subprocess returned
exit status 2

```
The full buildd log is here:
https://buildd.debian.org/status/fetch.php?pkg=mahimahi&arch=riscv64&ver=0.98-1.1&stamp=1692959066&raw=0

My solution to this issue:
Creat a patch to make it to support higher gcc version.I have tested this
modification in local,and it works well. Please let me know wheather this
solution can be accepted. The patch is in the attachment.

Gui-Yue
Best Regards

Attachment: fix_gcc11_error.patch
Description: Binary data

Reply via email to