From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 08E19384F006; Sat, 17 Jul 2021 17:14:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 08E19384F006 From: "me at larbob dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/61577] [4.9.0 Regression] can't compile on hp-ux v3 ia64 Date: Sat, 17 Jul 2021 17:14:14 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: major X-Bugzilla-Who: me at larbob dot org X-Bugzilla-Status: WAITING 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jul 2021 17:14:15 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D61577 --- Comment #249 from Larkin Nickle --- I am still unable to replicate a proper 11.1 build against 2.36 gas. Here's= my process: HP GCC 4.7.1 -> GCC 4.7.4: ../../sources/gcc-4.7.4/configure --prefix=3D/usr/util/toolchain/gcc-4.7.4 = --w ith-as=3D/opt/hp-gcc/bin/as --enable-languages=3Dc,c++ --disable-nls -> 4.9.2: ../../sources/gcc-4.9.2/configure --disable-libgomp --with-as=3D/opt/hp-gcc= /bi n/as --enable-languages=3Dc,c++ --prefix=3D/usr/util/toolchain/gcc-4.9.2 --disable-n ls Then, I compiled binutils 2.36 (w/ -mlp64), gmp 6.2.1, mpfr 4.1.0, and mpc 1.2.1 with HP GCC 4.7.1. All GMP tests passed except for `t-printf`, all mp= fr tests passed except `tasprintf`, and all mpc tests passed. These results are the same as John's except his `t-printf` passes with GMP. Then, I compile GCC 11.1.0 with GCC 4.9.2: ../../sources/gcc-11.1.0/configure --prefix=3D/usr/util/toolchain/gcc-11.1.= 0 - -enable-comdat --disable-libgomp --disable-nls --with-as=3D/usr/util/toolchain/bin utils-2.36/bin/as --with-gmp=3D/usr/util/toolchain/gmp-6.2.1 --with-mpfr=3D/usr/util /toolchain/mpfr-4.1.0 --with-mpc=3D/usr/util/toolchain/mpc-1.2.1 --enable-language s=3Dc,c++ --with-dwarf2 First it errors out when compiling charset.c: ../../../sources/gcc-11.1.0-new/libcpp/charset.c: In function 'cset_convert= er init_iconv_desc(cpp_reader*, const char*, const char*)': ../../../sources/gcc-11.1.0-new/libcpp/charset.c:695:1: internal compiler error: in plus_constant, at explow.c:101 695 | } | ^ libbacktrace could not find executable to open=20 Then, if libcpp's Makefile is patched so that charset.c is built with -O1, I eventually run into other errors: ../../../../sources/gcc-11.1.0-new/libgcc/libgcov-interface.c: In function 'gcov_clear': ../../../../sources/gcc-11.1.0-new/libgcc/libgcov-interface.c:143:1: intern= al compiler error: Illegal instruction 143 | } | ^ libbacktrace could not find executable to open=20 After making that compile with -O1: ../../../sources/gcc-11.1.0/zlib/inftrees.c: In function 'inflate_table': ../../../sources/gcc-11.1.0/zlib/inftrees.c:32:19: internal compiler error: Illegal instruction 32 | int ZLIB_INTERNAL inflate_table(type, lens, codes, table, bits, wor= k) | ^~~~~~~~~~~~~ libbacktrace could not find executable to open I am only able to get a build of 11.1 with BOOT_CFLAGS=3D"-g -O1" BOOT_CXXFLAGS=3D"-g -O1". It's worth noting that I have rebuilt gmp with the -O1'd 11.1 build and it fixed the `t-printf` test not passing. I then rebuilt mpfr and mpc against = it with 4.7.1 (4.9.2 and 11.1 can't seem to properly compile mpfr) and then tr= ied to build 11.1 against the new builds and still ran into the same issues.=