public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/102826] New: Glibc "--disable-mathvec" configure option fail to disable traces to libmvec
@ 2021-10-19 2:13 haochen.jiang at intel dot com
2021-10-19 2:30 ` [Bug fortran/102826] " pinskia at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: haochen.jiang at intel dot com @ 2021-10-19 2:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102826
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:
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'
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. Because when I clear that
math-vector-fortran.h, the testcase will pass.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/102826] Glibc "--disable-mathvec" configure option fail to disable traces to libmvec
2021-10-19 2:13 [Bug fortran/102826] New: Glibc "--disable-mathvec" configure option fail to disable traces to libmvec haochen.jiang at intel dot com
@ 2021-10-19 2:30 ` pinskia at gcc dot gnu.org
2021-10-19 2:57 ` pinskia at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-10-19 2:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102826
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Isn't this a bug in glibc and not gcc. Gcc is doing what glibc header file is
telling it can be done.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/102826] Glibc "--disable-mathvec" configure option fail to disable traces to libmvec
2021-10-19 2:13 [Bug fortran/102826] New: Glibc "--disable-mathvec" configure option fail to disable traces to libmvec haochen.jiang at intel dot com
2021-10-19 2:30 ` [Bug fortran/102826] " pinskia at gcc dot gnu.org
@ 2021-10-19 2:57 ` pinskia at gcc dot gnu.org
2021-10-19 5:08 ` haochen.jiang at intel dot com
2021-10-22 21:46 ` pinskia at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-10-19 2:57 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102826
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |MOVED
Status|UNCONFIRMED |RESOLVED
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
math-vector-fortran.h comes from glibc so this is a glibc bug and not a GCC
bug.
installed header files from glibc should match --disable-mathvec .
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/102826] Glibc "--disable-mathvec" configure option fail to disable traces to libmvec
2021-10-19 2:13 [Bug fortran/102826] New: Glibc "--disable-mathvec" configure option fail to disable traces to libmvec haochen.jiang at intel dot com
2021-10-19 2:30 ` [Bug fortran/102826] " pinskia at gcc dot gnu.org
2021-10-19 2:57 ` pinskia at gcc dot gnu.org
@ 2021-10-19 5:08 ` haochen.jiang at intel dot com
2021-10-22 21:46 ` pinskia at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: haochen.jiang at intel dot com @ 2021-10-19 5:08 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102826
--- Comment #3 from haochen.jiang at intel dot com ---
(In reply to Andrew Pinski from comment #2)
> math-vector-fortran.h comes from glibc so this is a glibc bug and not a GCC
> bug.
> installed header files from glibc should match --disable-mathvec .
>From my perspective, there maybe bug in glibc.
However, in the gfortran config part of gcc, it should not has the finclude
part for F951 under all circumstances or there should be some option to control
that. This is also a bug I believe.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/102826] Glibc "--disable-mathvec" configure option fail to disable traces to libmvec
2021-10-19 2:13 [Bug fortran/102826] New: Glibc "--disable-mathvec" configure option fail to disable traces to libmvec haochen.jiang at intel dot com
` (2 preceding siblings ...)
2021-10-19 5:08 ` haochen.jiang at intel dot com
@ 2021-10-22 21:46 ` pinskia at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-10-22 21:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102826
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Haochen Jiang from comment #3)
> However, in the gfortran config part of gcc, it should not has the finclude
> part for F951 under all circumstances or there should be some option to
> control that. This is also a bug I believe.
Maybe there should be an option but only to workaround bugs in glibc :).
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-10-22 21:46 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-19 2:13 [Bug fortran/102826] New: Glibc "--disable-mathvec" configure option fail to disable traces to libmvec haochen.jiang at intel dot com
2021-10-19 2:30 ` [Bug fortran/102826] " pinskia at gcc dot gnu.org
2021-10-19 2:57 ` pinskia at gcc dot gnu.org
2021-10-19 5:08 ` haochen.jiang at intel dot com
2021-10-22 21:46 ` pinskia at gcc dot gnu.org
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).