Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Compile time error with intel 19.0.4.243

未關閉
#313 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
25/100
Issue 類型
缺陷
描述清晰度
需要釐清
活躍度
停滯
技術堆疊
cpp
領域
build-system

研究方向

從 boost/operators.hpp 第 169 行和 libs/python/src/converter/registry.cpp 第 302 行附近開始,然後使用 Intel icpc 19.0.4.243 和所示的 C++11 命令重現該失敗。調查編譯器的 constexpr 診斷,並確立一項相容性變更或支援版本限制,使 Boost.Python 能夠完成編譯。

由索引模型根據 Issue 內容生成。

描述

I suspect the compiler is at fault, but still:

intel-linux.compile.c++ bin.v2/libs/python/build/intel-linux/release/python-3.6/threading-multi/visibility-hidden/converter/registry.o
./boost/operators.hpp(169): error #3377: constexpr function return is non-constant
       friend BOOST_OPERATORS_CONSTEXPR bool operator!=(const T& x, const T& y) { return !static_cast<bool>(x == y); }
                                                                                         ^
          detected during instantiation of class "boost::operators_impl::equality_comparable1<T, B> [with T=boost::python::type_info, B=boost::operators_impl::operators_detail::empty_base<boost::python::type_
info>]" at line 302 of "libs/python/src/converter/registry.cpp"

compilation aborted for libs/python/src/converter/registry.cpp (code 2)

    "icpc" -c -xc++ -fvisibility-inlines-hidden -fPIC -m64 -pthread -fvisibility=hidden -w1 -inline-level=2 -O3 -ip -std=c++11 -DBOOST_ALL_NO_LIB=1 -DBOOST_PYTHON_SOURCE -DNDEBUG -I"." -I"/opt/software/occige
n/tools/intelpython3/2019.3/intelpython3/include/python3.6m"   -c -o "bin.v2/libs/python/build/intel-linux/release/python-3.6/threading-multi/visibility-hidden/converter/registry.o" "libs/python/src/converter
/registry.cpp"

...failed intel-linux.compile.c++ bin.v2/libs/python/build/intel-linux/release/python-3.6/threading-multi/visibility-hidden/converter/registry.o...

Thanks

主要語言
C++
星號
537
分支
223
平均合併
11 小時 22 分鐘
30 天內合併 PR
2

貢獻指南

這個儲存庫沒有索引到貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

boostorg/python 的其他 Issue

查看 boostorg/python 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。