Can't really reproduce, but since this is about gcc not being able to find `limits.h`
```c
/* Get the compiler's limits.h, which defines almost all the ISO constants.
We put this #include_next outside the double inclusion check because
it should be possible to include this file more than once and still get
the definitions from gcc's header. */
#if defined __GNUC__ && !defined _GCC_LIMITS_H_
/* `_GCC_LIMITS_H_' is what GCC's file defines. */
# include_next <limits.h>
#endif
```
I'd recommend checking if `libgcc-7-dev` is installed.
apt install -y libgcc-7-dev
You should be able to find the file `/usr/lib/gcc/x86_64-linux-gnu/7/include/limits.h` afterwards.