代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/ghc 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
diff --color -Nar ghc-9.6.3-orig/m4/fp_find_cxx_std_lib.m4 ghc-9.6.3/m4/fp_find_cxx_std_lib.m4
Workaround for bugs in m4/fp_find_cxx_std_lib.m4
According to ghc maintainer, there was originally designed for detecting which libcxx
was used. However under EulerMaker environment, this detection failed like this:
checking C++ standard library flavour... libstdc++
checking for linkage against 'stdc++'... failed
checking for linkage against 'stdc++ supc++'... failed
configure: error: Failed to find C++ standard library
its actually caused by this error:
ld: warning: libm.so.6, needed by libstdc++.so, not found (try using -rpath or -rpath-link)
ld: libstdc++.so: undefined reference to `fesetround@GLIBC_2.2.5'
ld: libstdc++.so: undefined reference to `fegetround@GLIBC_2.2.5'
Upstream Issue URL: https://gitlab.haskell.org/ghc/ghc/-/issues/23118
Upstream Pull Request URL: https://gitlab.haskell.org/ghc/ghc/-/merge_requests/10116
===================================================================
--- ghc-9.6.3-orig/m4/fp_find_cxx_std_lib.m4
+++ ghc-9.6.3/m4/fp_find_cxx_std_lib.m4
@@ -51,9 +51,9 @@
fi
try_libs() {
- dnl Try to link a plain object with CC manually
+ dnl Try to link a plain object with CXX manually
AC_MSG_CHECKING([for linkage against '${3}'])
- if "$CC" -o actest actest.o ${1} 2>/dev/null; then
+ if "$CXX" -o actest actest.o ${1} 2>/dev/null; then
CXX_STD_LIB_LIBS="${3}"
p="`"$CXX" --print-file-name ${2}`"
d="`dirname "$p"`"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。