public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug math/28481] New: Glibc "--disable-mathvec" configure option fail to disable traces to libmvec
@ 2021-10-21  6:39 haochen.jiang at intel dot com
  2021-10-21 16:25 ` [Bug math/28481] " joseph at codesourcery dot com
  2021-10-22 12:53 ` hjl.tools at gmail dot com
  0 siblings, 2 replies; 3+ messages in thread
From: haochen.jiang at intel dot com @ 2021-10-21  6:39 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=28481

            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: 

program test_overloaded_intrinsic
  real(4) :: x4(3200), y4(3200)
  real(8) :: x8(3200), y8(3200)

  y4 = 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= math-vector-fortran.h finclude%s/)}"

, which is maybe the cause of the error for fortran. Because when I clear that
math-vector-fortran.h, the testcase will pass, which means glibc did not tell
gcc to exclude that file under "--disable-mathvec" option.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-10-22 12:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-21  6:39 [Bug math/28481] New: Glibc "--disable-mathvec" configure option fail to disable traces to libmvec haochen.jiang at intel dot com
2021-10-21 16:25 ` [Bug math/28481] " joseph at codesourcery dot com
2021-10-22 12:53 ` hjl.tools at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).