From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 30AAE385C41B; Tue, 30 Aug 2022 19:07:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 30AAE385C41B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1661886437; bh=4jmG6yAACozA8vlIJ71bmT/heT4vJC9wUfqUW5KDmBQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=vpUg5/CPsIGHep/KpaARuwL1v6RlXVFY/+yZV6AxPwexk3HCqvYntKIwiZAQVJ80R SiM8KBzfxkl9hg8OducSKQPC/6mHo86ILle1vXEGIsX8S4uZeLGxkOlPCSZrkc0dyh ClQtAueAz5yiqG+YZQUPRqVP7CkQp469qpdD6M6Q= From: "todd_richmond at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/106779] GCC 12.2 fails to compile in libiberty - uknown symbol PTR - requires later patch Date: Tue, 30 Aug 2022 19:07:16 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 12.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: todd_richmond at hotmail dot com 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: 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=3D106779 --- Comment #7 from Todd Richmond --- i was playing w/ cmdline and had deleted an extra arg. the 12.2 path is bef= ore the 12.1 path. However, our build scripts include the correct gcc header d= ir to all configure lines to ensure we don't pull in the system gcc headers. T= his causes 12.2 to include the source include dir (var/tmp...) last instead of first It is strange that this only fails for 12.2. I rebuilt 12.1 yesterday w/o i= ssue so did something change in Makefile.in or a configure script that changed t= he include order? I can confirm that removing the original gcc include paths from the compile works correctly fail: /tools/arch/Linux_3.10.0-x86_64/gcc-12.1.0-bootstrap/bin/gcc -c -DHAVE_CONF= IG_H -fPIC -O3 -pipe -DNDEBUG -Wno-error=3Dunused-value -Wno-unused-variable=20 -I/tools/arch/Linux_3.10.0-x86_64/gcc-12.2.0-bootstrap/include -I/tools/arch/Linux_3.10.0-x86_64/gcc-12.1.0-bootstrap//include -I. -I/var/tmp/gcc-12.2.0-bootstrap/gcc-12.2.0/libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -Wshadow=3Dlocal -pedantic= =20 -D_GNU_SOURCE -fcf-protection /var/tmp/gcc-12.2.0-bootstrap/gcc-12.2.0/libiberty/objalloc.c -o objalloc.o succeed: /tools/arch/Linux_3.10.0-x86_64/gcc-12.1.0-bootstrap/bin/gcc -c -DHAVE_CONF= IG_H -fPIC -O3 -pipe -ffunction-sections -fdata-sections -march=3Dnehalem -mtune=3Dbroadwell -DNDEBUG -Wno-error=3Dunused-value -Wno-unused-variable = -I. -I/var/tmp/gcc-12.2.0-bootstrap/gcc-12.2.0/libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -Wshadow=3Dlocal -pedantic= =20 -D_GNU_SOURCE -fcf-protection /var/tmp/gcc-12.2.0-bootstrap/gcc-12.2.0/libiberty/objalloc.c -o objalloc.o=