bespoke-silicon-group / bsg_replicant

BSG Replicant: Cosimulation and Emulation Infrastructure for HammerBlade
BSD 3-Clause "New" or "Revised" License
26 stars 20 forks source link

Error in examples/cuda/hw_barrier #804

Closed dpetrisko closed 1 year ago

dpetrisko commented 2 years ago

Reproduced by make clean exec.log in that directory. Other tests seem to run fine (though I wasn't exhaustive)

g++ -c -o main.o main.cpp -I/mnt/users/ssd0/no_backup/petrisko/bsg_bladerunner/bsg_replicant/libraries -I/mnt/users/ssd0/no_backup/petrisko/bsg_bladerunner/bsg_replicant/libraries/platforms/bigblade-vcs -std=c++11 -O3 -g -Wall -Wno-unused-function -Wno-unused-variable -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_DEFAULT_SOURCE -DVCS -fPIC
In file included from /mnt/users/ssd0/no_backup/petrisko/bsg_bladerunner/bsg_replicant/libraries/bsg_manycore_responder.h:33,
                 from main.cpp:4:
/mnt/users/ssd0/no_backup/petrisko/bsg_bladerunner/bsg_replicant/libraries/bsg_manycore_request_packet_id.h:125:40: error: no matching function for call to ‘request_packet_id::request_packet_id(<brace-enclosed initializer list>, <brace-enclosed initializer list>, <brace-enclosed initializer list>, int)’
  125 |         request_packet_id(addr, x, y, 1)
      |                                        ^
main.cpp:17:5: note: in expansion of macro ‘RQST_ID’
   17 |     RQST_ID(RQST_ID_ANY_X, RQST_ID_ANY_Y, RQST_ID_ADDR(0x8888)),
      |     ^~~~~~~
/mnt/users/ssd0/no_backup/petrisko/bsg_bladerunner/bsg_replicant/libraries/bsg_manycore_request_packet_id.h:89:9: note: candidate: ‘request_packet_id::request_packet_id(request_packet_id::address_value_mask_pair, request_packet_id::coordinate_x_lo_hi_pair, request_packet_id::coordinate_y_lo_hi_pair, int)’
   89 |         request_packet_id(address_value_mask_pair addr,
      |         ^~~~~~~~~~~~~~~~~
/mnt/users/ssd0/no_backup/petrisko/bsg_bladerunner/bsg_replicant/libraries/bsg_manycore_request_packet_id.h:89:51: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘request_packet_id::address_value_mask_pair’
   89 |         request_packet_id(address_value_mask_pair addr,
      |                           ~~~~~~~~~~~~~~~~~~~~~~~~^~~~
/mnt/users/ssd0/no_backup/petrisko/bsg_bladerunner/bsg_replicant/libraries/bsg_manycore_request_packet_id.h:88:9: note: candidate: ‘request_packet_id::request_packet_id()’
   88 |         request_packet_id() : id_addr(), id_x_src(), id_y_src() {}
      |         ^~~~~~~~~~~~~~~~~
/mnt/users/ssd0/no_backup/petrisko/bsg_bladerunner/bsg_replicant/libraries/bsg_manycore_request_packet_id.h:88:9: note:   candidate expects 0 arguments, 4 provided
/mnt/users/ssd0/no_backup/petrisko/bsg_bladerunner/bsg_replicant/libraries/bsg_manycore_request_packet_id.h:45:24: note: candidate: ‘constexpr request_packet_id::request_packet_id(const request_packet_id&)’
   45 |         typedef struct request_packet_id {
      |                        ^~~~~~~~~~~~~~~~~
/mnt/users/ssd0/no_backup/petrisko/bsg_bladerunner/bsg_replicant/libraries/bsg_manycore_request_packet_id.h:45:24: note:   candidate expects 1 argument, 4 provided
/mnt/users/ssd0/no_backup/petrisko/bsg_bladerunner/bsg_replicant/libraries/bsg_manycore_request_packet_id.h:45:24: note: candidate: ‘constexpr request_packet_id::request_packet_id(request_packet_id&&)’
/mnt/users/ssd0/no_backup/petrisko/bsg_bladerunner/bsg_replicant/libraries/bsg_manycore_request_packet_id.h:45:24: note:   candidate expects 1 argument, 4 provided
make: *** [/mnt/users/ssd0/no_backup/petrisko/bsg_bladerunner/bsg_replicant/libraries/platforms/bigblade-vcs/compilation.mk:54: main.o] Error 1
dpetrisko commented 1 year ago

This was a transient error; someone else can reopen if they run into it

dpetrisko commented 1 year ago

Tracked this down to specifically GCC-11 builds. GCC-9/10 is fine