https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100017
--- Comment #21 from cqwrteur <unlvsur at live dot com> --- 加QQ群1076846339 Get Outlook for Android<https://aka.ms/AAb9ysg> ________________________________ From: yangyujie at alumni dot sjtu.edu.cn <gcc-bugzi...@gcc.gnu.org> Sent: Wednesday, August 4, 2021 3:45:37 AM To: unlv...@live.com <unlv...@live.com> Subject: [Bug libstdc++/100017] [11/12 regression] error: 'fenv_t' has not been declared in '::' -- cross toolchain fails to build https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgcc.gnu.org%2Fbugzilla%2Fshow_bug.cgi%3Fid%3D100017&data=04%7C01%7C%7C653e82d3249e48040a3008d9571bda20%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637636599397520649%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=FKy8fg1EZAP5JsEVt2lfiHaDsT7zdnxvTCn7dcXg0ng%3D&reserved=0 Yujie Yang <yangyujie at alumni dot sjtu.edu.cn> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |yangyujie at alumni dot sjtu.edu.c | |n --- Comment #20 from Yujie Yang <yangyujie at alumni dot sjtu.edu.cn> --- This patch works for my cross-native build. 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]) -- You are receiving this mail because: You are on the CC list for the bug. You reported the bug.