From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2E9783858D39; Thu, 21 Oct 2021 06:39:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2E9783858D39 From: "haochen.jiang at intel dot com" To: glibc-bugs@sourceware.org Subject: [Bug math/28481] New: Glibc "--disable-mathvec" configure option fail to disable traces to libmvec Date: Thu, 21 Oct 2021 06:39:46 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: math X-Bugzilla-Version: unspecified 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: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot 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://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2021 06:39:47 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28481 Bug ID: 28481 Summary: Glibc "--disable-mathvec" configure option fail to disable traces to libmvec Product: glibc Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: math Assignee: unassigned at sourceware dot org Reporter: haochen.jiang at intel dot com Target Milestone: --- When I build Glibc with "--disable-mathvec" and run through this simple testcase in fortran:=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' Also for c, it has the same error using similar simple testcase in c. 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 for fortran. Because when I clear t= hat math-vector-fortran.h, the testcase will pass, which means glibc did not te= ll gcc to exclude that file under "--disable-mathvec" option. --=20 You are receiving this mail because: You are on the CC list for the bug.=