https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106779
Bug ID: 106779 Summary: GCC 12.2 fails to compile in libiberty - uknown symbol PTR - requires later patch Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: todd_richmond at hotmail dot com Target Milestone: --- I have been able to build every gcc release from 8 to 12.2 on both CentOS6 and CentOS 7 w/o problem including 12.1. However, 12.2 fails to compile libiberty/objdump.c due to "PTR" not being defined. I tried compiling with 10.2, 11.3 and 12.1 w/o success However, a big change was recently checked into libiberty that eliminates the PTR macro, but 12.2 does not include it. I can confirm that this diff works correctly https://github.com/gcc-mirror/gcc/commit/50b009c5daef92bc60fc26fcc4c495e117667387.patch