Description of problem:
'Verilated' code does not compile with GCC 11 (default compiler on F34+). 'Verilator' generates c++ code from Verilog code, which is subsequently compiled with GCC/G++. This generated code is missing an `#include <limits>` which means that verilator is mostly nonfunctional on F34 and Rawhide.
**This was fixed upstream with https://github.com/verilator/verilator/pull/2747, which is probably trivial enough to cherry pick.**
Version-Release number of selected component (if applicable):
verilator-4.108-2.fc34.x86_64 (any 4.108.x works)
gcc-c++-11.1.1-1.fc34.x86_64 (any 11.x works)
How reproducible: 100%
Steps to Reproduce:
1. Install g++ and verilator
2. Create a trivial verilog file 'out.v' (content doesn't really matter, taken from example on verilator docs):
initial begin $display("Hello World"); $finish; end
3. 'Verilate' and compile the file with 'verilator --cc --exe --build our.v'
Build fails with missing 'std::numeric_limits' (see attached log)
Build passes and an exe is generated
Created attachment 1778665 [details]
Output on a fresh F34 machine