https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99476
YunQiang Su <syq at debian dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |syq at debian dot org
--- Comment #2 from YunQiang Su <syq at debian dot org> ---
Since commit
59e4c98173a79fcaa2c33253261409f38856c384
You can add an configure option
--includedir=/you/sysroot/include
to solve this problem.
/you/sysroot/include should contains a real workable limits.h.
The reason is due to that if gcc cannot find a limits.h,
it will use its ./gcc/glimits.h, which has no PATH_MAX defined.