secretflow / heu

A high-performance homomorphic encryption algorithm library.
https://www.secretflow.org.cn/docs/heu/en/
Apache License 2.0
83 stars 39 forks source link

编译numpy组件时出现了一些问题 #154

Open HeyGap opened 3 weeks ago

HeyGap commented 3 weeks ago

您好,我在编译heu的过程中遇到了一些问题: 在不经过任何修改的情况下,将代码git clone后直接运行build_wheel_entrypoint.sh,在numpy库的编译过程中提示我这个库有隐式类型转换的问题。请问这是我本地编译器环境的问题吗?还是其他的什么问题? b9350abfdd1cde2bff2e6453f4c58ec

383004576 commented 3 weeks ago

麻烦提供下环境信息,包含运行环境,GCC,python,PIP等版本信息。

HeyGap commented 3 weeks ago

运行环境

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

wangzul commented 3 weeks ago

运行环境

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的哪个版本。

HeyGap commented 3 weeks ago

运行环境

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下载的源码

wangzul commented 3 weeks ago

运行环境

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 commented 3 weeks ago

运行环境

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分支的代码。

好的,非常感谢!

maths644311798 commented 1 day ago

@HeyGap 请问降低gcc版本后这个问题解决了吗?