From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 346C93857704; Thu, 18 May 2023 03:46:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 346C93857704 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684381565; bh=jejhRE0uMxKH+mrR2C3VzkzGbl/5e0I1GL85bmBzmM8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Mk5FQP9wwT4nBxvh9RB5vDYMOf8YYH7Zl/dAeSugddiN7TbQZY+vYNPmdS4EJ7hDy CcZPPMQiZj0THFa8vgxdjODVwn1KLzJM16p5k1ov8/H8PamX6ey2mSzFoLBOtL+ZNr tMzfzZ90+eHpK8U3rvOZWPvLWhN1eLrISX2134tM= From: "syq at debian dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/99476] 'PATH_MAX' was not declared in this scope Date: Thu, 18 May 2023 03:46:04 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: syq at debian dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99476 YunQiang Su changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |syq at debian dot org --- Comment #2 from YunQiang Su --- Since commit 59e4c98173a79fcaa2c33253261409f38856c384 You can add an configure option --includedir=3D/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.=