patr-schm / TinyAD-Examples

Code examples for automatic differentiation with TinyAD
MIT License
27 stars 5 forks source link

Unable to be compiled with gcc 13 #3

Open B4rc1 opened 6 months ago

B4rc1 commented 6 months ago

When compiling the examples with gcc 13, compilation fails. But when using gcc12 everything compiles as it should.

Error when compiling with gcc 13:

[ 23%] Building CXX object libs/glow-extras/CMakeFiles/glow-extras.dir/vector/glow-extras/vector/fonts.cc.o
In file included from /home/jonas/uni/seminar-report/examples/TinyAD-Examples/libs/glow-extras/vector/glow-extras/vector/fonts.cc:3:
/home/jonas/uni/seminar-report/examples/TinyAD-Examples/libs/glow/src/glow/common/log.hh:30:8: error: ‘uint8_t’ does not name a type
   30 | extern uint8_t logMask;
      |        ^~~~~~~
/home/jonas/uni/seminar-report/examples/TinyAD-Examples/libs/glow/src/glow/common/log.hh:5:1: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?

Full output: cmake_output_gcc13.txt make_output_gcc13.txt

This is due to header changes in gcc 13: https://gcc.gnu.org/gcc-13/porting_to.html

I think this would be fixed by updating the glow library but I dont have the time to extensively test that right now. I will just compile with gcc 12 for now.