Open HeyGap opened 3 weeks ago
麻烦提供下环境信息,包含运行环境,GCC,python,PIP等版本信息。
Linux 5.15.153.1-microsoft-standard-WSL2 #1 SMP Fri Mar 29 23:14:13 UTC 2024 x86_64 GNU/Linux
PRETTY_NAME="Kali GNU/Linux Rolling" NAME="Kali GNU/Linux" VERSION_ID="2024.1" VERSION="2024.1" VERSION_CODENAME=kali-rolling ID=kali ID_LIKE=debian
gcc (Debian 13.3.0-3) 13.3.0 Copyright (C) 2023 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Python 3.11.8 (main, Feb 7 2024, 21:52:08) [GCC 13.2.0] on linux
pip 24.2
bazel 6.5.0
我在编译时需要修改 setup.py 中的 build 函数, bazel_flags.extend([ "--copt=-Wno-error", # Don't treat warnings as errors "--copt=-Wno-stringop-overflow", # Suppress specific warning if needed ]) 否则 ipp 会有一些被当作 errors 的 warnings
运行环境
Linux 5.15.153.1-microsoft-standard-WSL2 #1 SMP Fri Mar 29 23:14:13 UTC 2024 x86_64 GNU/Linux
PRETTY_NAME="Kali GNU/Linux Rolling" NAME="Kali GNU/Linux" VERSION_ID="2024.1" VERSION="2024.1" VERSION_CODENAME=kali-rolling ID=kali ID_LIKE=debian
GCC
gcc (Debian 13.3.0-3) 13.3.0 Copyright (C) 2023 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
python
Python 3.11.8 (main, Feb 7 2024, 21:52:08) [GCC 13.2.0] on linux
pip
pip 24.2
bazel
bazel 6.5.0
另:
我在编译时需要修改 setup.py 中的 build 函数, bazel_flags.extend([ "--copt=-Wno-error", # Don't treat warnings as errors "--copt=-Wno-stringop-overflow", # Suppress specific warning if needed ]) 否则 ipp 会有一些被当作 errors 的 warnings
源码用的heu的哪个版本。
运行环境
Linux 5.15.153.1-microsoft-standard-WSL2 #1 SMP Fri Mar 29 23:14:13 UTC 2024 x86_64 GNU/Linux PRETTY_NAME="Kali GNU/Linux Rolling" NAME="Kali GNU/Linux" VERSION_ID="2024.1" VERSION="2024.1" VERSION_CODENAME=kali-rolling ID=kali ID_LIKE=debian
GCC
gcc (Debian 13.3.0-3) 13.3.0 Copyright (C) 2023 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
python
Python 3.11.8 (main, Feb 7 2024, 21:52:08) [GCC 13.2.0] on linux
pip
pip 24.2
bazel
bazel 6.5.0
另:
我在编译时需要修改 setup.py 中的 build 函数, bazel_flags.extend([ "--copt=-Wno-error", # Don't treat warnings as errors "--copt=-Wno-stringop-overflow", # Suppress specific warning if needed ]) 否则 ipp 会有一些被当作 errors 的 warnings
源码用的heu的哪个版本。
应该是最新版,我通过git clone https://github.com/secretflow/heu.git下载的源码
运行环境
Linux 5.15.153.1-microsoft-standard-WSL2 #1 SMP Fri Mar 29 23:14:13 UTC 2024 x86_64 GNU/Linux PRETTY_NAME="Kali GNU/Linux Rolling" NAME="Kali GNU/Linux" VERSION_ID="2024.1" VERSION="2024.1" VERSION_CODENAME=kali-rolling ID=kali ID_LIKE=debian
GCC
gcc (Debian 13.3.0-3) 13.3.0 Copyright (C) 2023 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
python
Python 3.11.8 (main, Feb 7 2024, 21:52:08) [GCC 13.2.0] on linux
pip
pip 24.2
bazel
bazel 6.5.0
另:
我在编译时需要修改 setup.py 中的 build 函数, bazel_flags.extend([ "--copt=-Wno-error", # Don't treat warnings as errors "--copt=-Wno-stringop-overflow", # Suppress specific warning if needed ]) 否则 ipp 会有一些被当作 errors 的 warnings
源码用的heu的哪个版本。
应该是最新版,我通过git clone https://github.com/secretflow/heu.git下载的源码
1.你可以降低你的gcc g++ 版本至11.4,应该可以解决你的问题。 2.不推荐使用main分支源码,可能存在PR代码,推荐使用tag 版本的或者release/0.5.x分支的代码。
运行环境
Linux 5.15.153.1-microsoft-standard-WSL2 #1 SMP Fri Mar 29 23:14:13 UTC 2024 x86_64 GNU/Linux PRETTY_NAME="Kali GNU/Linux Rolling" NAME="Kali GNU/Linux" VERSION_ID="2024.1" VERSION="2024.1" VERSION_CODENAME=kali-rolling ID=kali ID_LIKE=debian
GCC
gcc (Debian 13.3.0-3) 13.3.0 Copyright (C) 2023 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
python
Python 3.11.8 (main, Feb 7 2024, 21:52:08) [GCC 13.2.0] on linux
pip
pip 24.2
bazel
bazel 6.5.0
另:
我在编译时需要修改 setup.py 中的 build 函数, bazel_flags.extend([ "--copt=-Wno-error", # Don't treat warnings as errors "--copt=-Wno-stringop-overflow", # Suppress specific warning if needed ]) 否则 ipp 会有一些被当作 errors 的 warnings
源码用的heu的哪个版本。
应该是最新版,我通过git clone https://github.com/secretflow/heu.git下载的源码
1.你可以降低你的gcc g++ 版本至11.4,应该可以解决你的问题。 2.不推荐使用main分支源码,可能存在PR代码,推荐使用tag 版本的或者release/0.5.x分支的代码。
好的,非常感谢!
@HeyGap 请问降低gcc版本后这个问题解决了吗?
您好,我在编译heu的过程中遇到了一些问题: 在不经过任何修改的情况下,将代码git clone后直接运行build_wheel_entrypoint.sh,在numpy库的编译过程中提示我这个库有隐式类型转换的问题。请问这是我本地编译器环境的问题吗?还是其他的什么问题?