public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/80196] fenv_t not declared
[not found] <bug-80196-4@http.gcc.gnu.org/bugzilla/>
@ 2021-06-18 19:44 ` gr.audio at gmail dot com
2021-06-28 19:55 ` dilfridge at gentoo dot org
` (9 subsequent siblings)
10 siblings, 0 replies; 11+ messages in thread
From: gr.audio at gmail dot com @ 2021-06-18 19:44 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80196
Guillaume <gr.audio at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gr.audio at gmail dot com
--- Comment #7 from Guillaume <gr.audio at gmail dot com> ---
Same problem while trying to build gcc 11.1.0 on Arch Linux (host and target =
Windows).
Configuration:
configure --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32
--prefix="$PREFIX" --disable-nls --enable-languages=c,c++,ada
--with-pkgversion=GR20210618 --enable-threads=win32 --disable-win32-registry
--disable-multilib --enable-shared --enable-static --disable-sjlj-exceptions
--with-dwarf2
Adding the '--disable-libstdcxx-pch' option doesn't help in my case, same
errors.
The cross-compiler installed on my Arch Linux for building Windows executables
is x86_64-w64-mingw32-gcc.
'x86_64-w64-mingw32-gcc -v' yields:
Utilisation des specs internes.
COLLECT_GCC=x86_64-w64-mingw32-gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-w64-mingw32/11.1.0/lto-wrapper
Cible : x86_64-w64-mingw32
Configuré? avec: /build/mingw-w64-gcc/src/gcc/configure --prefix=/usr
--libexecdir=/usr/lib --target=x86_64-w64-mingw32
--with-bugurl=https://bugs.archlinux.org/
--enable-languages=c,lto,c++,ada,objc,obj-c++,fortran --enable-shared
--enable-static --enable-threads=posix --enable-fully-dynamic-string
--enable-libstdcxx-time=yes --enable-libstdcxx-filesystem-ts=yes
--with-system-zlib --enable-cloog-backend=isl --enable-lto --enable-libgomp
--disable-multilib --enable-checking=release --disable-sjlj-exceptions
--with-dwarf2
Modè?le de thread: posix
Algorithmes de compression LTO supporté?s: zlib zstd
gcc version 11.1.0 (GCC)
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libstdc++/80196] fenv_t not declared
[not found] <bug-80196-4@http.gcc.gnu.org/bugzilla/>
2021-06-18 19:44 ` [Bug libstdc++/80196] fenv_t not declared gr.audio at gmail dot com
@ 2021-06-28 19:55 ` dilfridge at gentoo dot org
2021-06-28 19:56 ` dilfridge at gentoo dot org
` (8 subsequent siblings)
10 siblings, 0 replies; 11+ messages in thread
From: dilfridge at gentoo dot org @ 2021-06-28 19:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80196
Andreas K. Huettel <dilfridge at gentoo dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dilfridge at gentoo dot org
--- Comment #8 from Andreas K. Huettel <dilfridge at gentoo dot org> ---
Created attachment 51076
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51076&action=edit
full build log, xz-compressed
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libstdc++/80196] fenv_t not declared
[not found] <bug-80196-4@http.gcc.gnu.org/bugzilla/>
2021-06-18 19:44 ` [Bug libstdc++/80196] fenv_t not declared gr.audio at gmail dot com
2021-06-28 19:55 ` dilfridge at gentoo dot org
@ 2021-06-28 19:56 ` dilfridge at gentoo dot org
2021-07-24 13:35 ` isuruf at gmail dot com
` (7 subsequent siblings)
10 siblings, 0 replies; 11+ messages in thread
From: dilfridge at gentoo dot org @ 2021-06-28 19:56 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80196
--- Comment #9 from Andreas K. Huettel <dilfridge at gentoo dot org> ---
(In reply to Andreas K. Huettel from comment #8)
> Created attachment 51076 [details]
> full build log, xz-compressed
^ Build log for a failure with
* --host=riscv32-unknown-linux-gnu
* --target=riscv32-unknown-linux-gnu
* --build=x86_64-pc-linux-gnu
(Gentoo crossdev build of a native riscv32 compiler)
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libstdc++/80196] fenv_t not declared
[not found] <bug-80196-4@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2021-06-28 19:56 ` dilfridge at gentoo dot org
@ 2021-07-24 13:35 ` isuruf at gmail dot com
2021-07-24 19:31 ` gr.audio at gmail dot com
` (6 subsequent siblings)
10 siblings, 0 replies; 11+ messages in thread
From: isuruf at gmail dot com @ 2021-07-24 13:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80196
Isuru Fernando <isuruf at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |isuruf at gmail dot com
--- Comment #10 from Isuru Fernando <isuruf at gmail dot com> ---
Failure in gcc 11.1.0 is new and was introduced in
2251b4a5423efa8ee0d7e67537b63e404a1f6afa.
If we are building a canadian cross compiler, then
libstdc++-v3/src/c++17/floating_from_chars.cc will be compiled
with -I<build-dir>/libstdc++-v3/include where fenv.h is.
fenv.h here is the C++ include file which tries to include
the C include file with the same name by using include_next,
but finds the C++ include file from the cross compiler used for
building gcc which becomes empty because of the same include guard
used.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libstdc++/80196] fenv_t not declared
[not found] <bug-80196-4@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2021-07-24 13:35 ` isuruf at gmail dot com
@ 2021-07-24 19:31 ` gr.audio at gmail dot com
2021-07-24 23:29 ` isuruf at gmail dot com
` (5 subsequent siblings)
10 siblings, 0 replies; 11+ messages in thread
From: gr.audio at gmail dot com @ 2021-07-24 19:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80196
--- Comment #11 from Guillaume <gr.audio at gmail dot com> ---
Thanks! Wasn't happening with previous versions. Is there a workaround?
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libstdc++/80196] fenv_t not declared
[not found] <bug-80196-4@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
2021-07-24 19:31 ` gr.audio at gmail dot com
@ 2021-07-24 23:29 ` isuruf at gmail dot com
2021-08-20 22:00 ` bneumeier at gmail dot com
` (4 subsequent siblings)
10 siblings, 0 replies; 11+ messages in thread
From: isuruf at gmail dot com @ 2021-07-24 23:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80196
--- Comment #12 from Isuru Fernando <isuruf at gmail dot com> ---
I patched libstdc++-v3/acinclude.m4 to add -nostdinc++ in GLIBCXX_INCLUDES and
it worked for me.
(My previous analysis was wrong. This issue is in canadian cross compilers
where GXX_FOR_TARGET includes its own C++ headers, but with native compilers
GXX_FOR_TARGET is xgcc which doesn't include C++ headers by default)
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libstdc++/80196] fenv_t not declared
[not found] <bug-80196-4@http.gcc.gnu.org/bugzilla/>
` (5 preceding siblings ...)
2021-07-24 23:29 ` isuruf at gmail dot com
@ 2021-08-20 22:00 ` bneumeier at gmail dot com
2021-08-20 23:29 ` gr.audio at gmail dot com
` (3 subsequent siblings)
10 siblings, 0 replies; 11+ messages in thread
From: bneumeier at gmail dot com @ 2021-08-20 22:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80196
Brett Neumeier <bneumeier at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bneumeier at gmail dot com
--- Comment #13 from Brett Neumeier <bneumeier at gmail dot com> ---
I ran into this issue with:
--build=aarch64-unknown-linux-gnu
--host=x86_64-unknown-linux-gnu
--target=x86_64-unknown-linux-gnu
I applied this patch from Yujie Yang, on comment 20 of PR 100017, and it fixed
the issue for me.
diff --git a/configure b/configure
index 6157a8c87fb..2a4a05b4edf 100755
--- a/configure
+++ b/configure
@@ -16653,7 +16653,7 @@ else
fi
-RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
+RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET -nostdinc++"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar"
>&5
$as_echo_n "checking where to find the target ar... " >&6; }
diff --git a/configure.ac b/configure.ac
index 2ff48941754..01ecc8c42d9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3515,7 +3515,7 @@ ACX_CHECK_INSTALLED_TARGET_TOOL(STRIP_FOR_TARGET, strip)
ACX_CHECK_INSTALLED_TARGET_TOOL(WINDRES_FOR_TARGET, windres)
ACX_CHECK_INSTALLED_TARGET_TOOL(WINDMC_FOR_TARGET, windmc)
-RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
+RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET -nostdinc++"
GCC_TARGET_TOOL(ar, AR_FOR_TARGET, AR, [binutils/ar])
GCC_TARGET_TOOL(as, AS_FOR_TARGET, AS, [gas/as-new])
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libstdc++/80196] fenv_t not declared
[not found] <bug-80196-4@http.gcc.gnu.org/bugzilla/>
` (6 preceding siblings ...)
2021-08-20 22:00 ` bneumeier at gmail dot com
@ 2021-08-20 23:29 ` gr.audio at gmail dot com
2022-05-06 18:56 ` eddy at klopper dot net
` (2 subsequent siblings)
10 siblings, 0 replies; 11+ messages in thread
From: gr.audio at gmail dot com @ 2021-08-20 23:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80196
--- Comment #14 from Guillaume <gr.audio at gmail dot com> ---
OK, this patch fixes it for me as well.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libstdc++/80196] fenv_t not declared
[not found] <bug-80196-4@http.gcc.gnu.org/bugzilla/>
` (7 preceding siblings ...)
2021-08-20 23:29 ` gr.audio at gmail dot com
@ 2022-05-06 18:56 ` eddy at klopper dot net
2022-05-06 20:44 ` redi at gcc dot gnu.org
2022-05-06 20:47 ` redi at gcc dot gnu.org
10 siblings, 0 replies; 11+ messages in thread
From: eddy at klopper dot net @ 2022-05-06 18:56 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80196
Eddy L O Jansson <eddy at klopper dot net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |eddy at klopper dot net
--- Comment #15 from Eddy L O Jansson <eddy at klopper dot net> ---
(In reply to Jonathan Wakely from comment #6)
> Reopening. We still need to know why building the PCH fails to find fenv_t
> for some people.
I ran into this issue doing a very bog-standard build of the newly released GCC
12.1 on linux X86-64, using a configuration that previously successfully built
GCC '12.0.1 20220424 (experimental)' a week or so ago.
I did not save the output from the failed build, but it would eventually fail
with 'error: 'fenv_t' has not been declared in '::' ... '
For reasons that I'll skip, between the successful build of 12.0.1 and now I
had added:
export
CPLUS_INCLUDE_PATH=/opt/local/include/c++/12.0.1:/opt/local/include/c++/12.0.1/x86_64-linux-gnu/
to my .bashrc
Removing the 'CPLUS_INCLUDE_PATH' environment variable made the problem go
away.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libstdc++/80196] fenv_t not declared
[not found] <bug-80196-4@http.gcc.gnu.org/bugzilla/>
` (8 preceding siblings ...)
2022-05-06 18:56 ` eddy at klopper dot net
@ 2022-05-06 20:44 ` redi at gcc dot gnu.org
2022-05-06 20:47 ` redi at gcc dot gnu.org
10 siblings, 0 replies; 11+ messages in thread
From: redi at gcc dot gnu.org @ 2022-05-06 20:44 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80196
--- Comment #16 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Eddy L O Jansson from comment #15)
> For reasons that I'll skip, between the successful build of 12.0.1 and now I
> had added:
>
> export
> CPLUS_INCLUDE_PATH=/opt/local/include/c++/12.0.1:/opt/local/include/c++/12.0.
> 1/x86_64-linux-gnu/
>
> to my .bashrc
Don't do that. This causes GCC 12.1 to find the headers for GCC 12.0.1 instead
of the libc headers. That breaks the build, but is user error.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libstdc++/80196] fenv_t not declared
[not found] <bug-80196-4@http.gcc.gnu.org/bugzilla/>
` (9 preceding siblings ...)
2022-05-06 20:44 ` redi at gcc dot gnu.org
@ 2022-05-06 20:47 ` redi at gcc dot gnu.org
10 siblings, 0 replies; 11+ messages in thread
From: redi at gcc dot gnu.org @ 2022-05-06 20:47 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80196
--- Comment #17 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The problem for canadian crosses (comment 10 onwards) was PR 100017 and is
fixed now.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2022-05-06 20:47 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-80196-4@http.gcc.gnu.org/bugzilla/>
2021-06-18 19:44 ` [Bug libstdc++/80196] fenv_t not declared gr.audio at gmail dot com
2021-06-28 19:55 ` dilfridge at gentoo dot org
2021-06-28 19:56 ` dilfridge at gentoo dot org
2021-07-24 13:35 ` isuruf at gmail dot com
2021-07-24 19:31 ` gr.audio at gmail dot com
2021-07-24 23:29 ` isuruf at gmail dot com
2021-08-20 22:00 ` bneumeier at gmail dot com
2021-08-20 23:29 ` gr.audio at gmail dot com
2022-05-06 18:56 ` eddy at klopper dot net
2022-05-06 20:44 ` redi at gcc dot gnu.org
2022-05-06 20:47 ` redi 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).