Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
HeyGap opened this issue Aug 19, 2024 · 8 comments
Closed

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

HeyGap opened this issue Aug 19, 2024 · 8 comments

Comments

@HeyGap
Copy link

HeyGap commented Aug 19, 2024

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

@383004576
Copy link

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

@HeyGap
Copy link
Author

HeyGap commented Aug 19, 2024

运行环境

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
Copy link

wangzul commented Aug 19, 2024

运行环境

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
Copy link
Author

HeyGap commented Aug 19, 2024

运行环境

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
Copy link

wangzul commented Aug 19, 2024

运行环境

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
Copy link
Author

HeyGap commented Aug 19, 2024

运行环境

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
Copy link

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

@HeyGap
Copy link
Author

HeyGap commented Sep 16, 2024

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

解决了

@HeyGap HeyGap closed this as completed Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants