From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CFD8C385842D; Tue, 19 Oct 2021 02:13:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CFD8C385842D From: "haochen.jiang at intel dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/102826] New: Glibc "--disable-mathvec" configure option fail to disable traces to libmvec Date: Tue, 19 Oct 2021 02:13:33 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: haochen.jiang at intel 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter 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: Tue, 19 Oct 2021 02:13:33 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102826 Bug ID: 102826 Summary: Glibc "--disable-mathvec" configure option fail to disable traces to libmvec Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: haochen.jiang at intel dot com Target Milestone: --- When I build Glibc with "--disable-mathvec" and run through this simple testcase:=20 program test_overloaded_intrinsic real(4) :: x4(3200), y4(3200) real(8) :: x8(3200), y8(3200) y4 =3D sin(x4) print *, y4 end It reports error: undefined reference to `_ZGVeN8v_sin' It is trying to find libmvec functions, while because of the disabling, libmvec.so will not be generated. When I go through gcc file. In gcc/config/gnu-user.h Line 156, we have: #undef TARGET_F951_OPTIONS #define TARGET_F951_OPTIONS "%{!nostdinc:\ %:fortran-preinclude-file(-fpre-include=3D math-vector-fortran.h finclude= %s/)}" , which is maybe the cause of the error. Because when I clear that math-vector-fortran.h, the testcase will pass.=