From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BF26D3951C0E; Thu, 27 May 2021 04:22:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BF26D3951C0E From: "sebastian-gcc at sipsolutions dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug gcov-profile/100788] New: Internal compiler error related to #line macros(?) Date: Thu, 27 May 2021 04:22:50 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: gcov-profile X-Bugzilla-Version: 11.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sebastian-gcc at sipsolutions dot net 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: 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: Thu, 27 May 2021 04:22:50 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100788 Bug ID: 100788 Summary: Internal compiler error related to #line macros(?) Product: gcc Version: 11.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: gcov-profile Assignee: unassigned at gcc dot gnu.org Reporter: sebastian-gcc at sipsolutions dot net CC: marxin at gcc dot gnu.org Target Milestone: --- I first thought this might have been the identical issue as https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95847 as it seemed similar. = There is also https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96353, but I do not = think this is the same issue. We have a large file in NumPy which generates compile errors on gcc 9+ (gcc= 8 seems fine as far as I can tell). The issue on NumPy is: https://github.com/numpy/numpy/issues/18529 (It is not a major issue, but I fear it might get problematic for our coverage tools when they stop using G= CC 8, which I think they are still using.) I have attached the source file that generates the issue. Note that it is generated by a custom templating language, so I can't fully rule out that t= he inserted `#line` directives are incorrect. The one clear thing I know is that removing all `#line` directives makes the coverage compilation successfully. I expect you may need more information, but am not sure how to best provide= it, considering that the file is part of the larger project. The error/log is (this one with gcc (Debian 10.2.1-6) 10.2.1 20210110, but confirmed on a gcc 11: ... x86_64-linux-gnu-gcc: numpy/core/src/common/python_xerbla.c during IPA pass: profile numpy/core/src/multiarray/einsum_sumprod.c.src: In function =E2=80=98longdouble_sum_of_products_contig_three=E2=80=99: numpy/core/src/multiarray/einsum_sumprod.c.src:1264:1: internal compiler er= ror: in coverage_begin_function, at coverage.c:656 1264 | } | ^ 0x7ff60fe2cd09 __libc_start_main ../csu/libc-start.c:308 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. error: Command "x86_64-linux-gnu-gcc -pthread --coverage -Wno-unused-result -Wsign-compare -O0 -ggdb -g -ffile-prefix-map=3D/build/python3.9-RNBry6/python3.9-3.9.2=3D. -fstack-protector-strong -Wformat -Werror=3Dformat-security -g -fwrapv -O2 -Werror=3Dvla -Werror=3Dnonnull -Werror=3Dpointer-arith -Wlogical-op -Werror=3Dunused-function -Wdate-time -D_FORTIFY_SOURCE=3D2 -fPIC -DNPY_INTERNAL_BUILD=3D1 -DHAVE_NPY_CONFIG_H=3D1 -D_FILE_OFFSET_BITS=3D64 -D_LARGEFILE_SOURCE=3D1 -D_LARGEFILE64_SOURCE=3D1 -DHAVE_CBLAS -Ibuild/src.linux-x86_64-3.9/numpy/core/src/common -Ibuild/src.linux-x86_64-3.9/numpy/core/src/umath -Inumpy/core/include -Ibuild/src.linux-x86_64-3.9/numpy/core/include/numpy -Ibuild/src.linux-x86_64-3.9/numpy/distutils/include -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -Inumpy/core/src/_simd -I/usr/include/python3.9 -Ibuild/src.linux-x86_64-3.9/numpy/core/src/common -Ibuild/src.linux-x86_64-3.9/numpy/core/src/npymath -c build/src.linux-x86_64-3.9/numpy/core/src/multiarray/einsum_sumprod.c -o build/temp.linux-x86_64-3.9/build/src.linux-x86_64-3.9/numpy/core/src/multi= array/einsum_sumprod.o -MMD -MF build/temp.linux-x86_64-3.9/build/src.linux-x86_64-3.9/numpy/core/src/multi= array/einsum_sumprod.o.d -msse -msse2 -msse3" failed with exit status 1=