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

[Bug]: gcc13 编译时,会报一些数据类型未定义 #273

Closed
Lost-Temple opened this issue Mar 4, 2024 · 5 comments · Fixed by #274
Closed

[Bug]: gcc13 编译时,会报一些数据类型未定义 #273

Lost-Temple opened this issue Mar 4, 2024 · 5 comments · Fixed by #274

Comments

@Lost-Temple
Copy link

Issue Type

Build/Install

Modules Involved

Others

Have you reproduced the bug with SPU HEAD?

Yes

Have you searched existing issues?

Yes

SPU Version

spu main

OS Platform and Distribution

fedora38

Python Version

3.11.5

Compiler Version

gcc 13

Current Behavior?

编译时,bazel-spu/external/yacl/yacl/base/int128.h 会报类型未定义的错误,这可能是-std=c++17,但使用gcc13去编译时发生的,错误信息例子如:error: 'uint64_t' was not declared in this scope

Standalone code to reproduce the issue

error: 'uint64_t' was not declared in this scope

Relevant log output

No response

@anakinxc anakinxc transferred this issue from secretflow/spu Mar 4, 2024
@anakinxc
Copy link
Collaborator

anakinxc commented Mar 4, 2024

Hi @Lost-Temple

Can you try with gcc <= 12?

@Lost-Temple
Copy link
Author

我MAC成功,fedora38上是GCC是13,没有GCC <=12的环境,如果我有其它环境到时候再来这里补充吧

@Chrisdehe
Copy link
Member

感谢输入

@Lost-Temple
Copy link
Author

spu main 分支中/bazel/repositories.bzl中还是用的旧的tag。

def _yacl():
    maybe(
        http_archive,
        name = "yacl",
        urls = [
            "https://github.com/secretflow/yacl/archive/refs/tags/0.4.3b1.tar.gz",
        ],
        strip_prefix = "yacl-0.4.3b1",
        sha256 = "e22a1ca88a97d4709fb08051d4f756c3bb581ff74f93e01f9eb4bb52dd694b19",
    )

@anakinxc
Copy link
Collaborator

anakinxc commented Mar 6, 2024

spu main 分支中/bazel/repositories.bzl中还是用的旧的tag。

def _yacl():
    maybe(
        http_archive,
        name = "yacl",
        urls = [
            "https://github.com/secretflow/yacl/archive/refs/tags/0.4.3b1.tar.gz",
        ],
        strip_prefix = "yacl-0.4.3b1",
        sha256 = "e22a1ca88a97d4709fb08051d4f756c3bb581ff74f93e01f9eb4bb52dd694b19",
    )

这个要等下一个周期,你可以临时用这个 commit id 继续测试

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

Successfully merging a pull request may close this issue.

3 participants