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

树莓派上编译时报错 #45

Open
sparrowhe opened this issue Sep 13, 2020 · 2 comments
Open

树莓派上编译时报错 #45

sparrowhe opened this issue Sep 13, 2020 · 2 comments

Comments

@sparrowhe
Copy link

sparrowhe commented Sep 13, 2020

In file included from /home/pi/OnlineJudgeDeploy/Judger/src/rules/c_cpp.c:2:
/home/pi/OnlineJudgeDeploy/Judger/src/rules/c_cpp.c: In function ‘_c_cpp_seccomp_rules’:
/home/pi/OnlineJudgeDeploy/Judger/src/rules/c_cpp.c:35:89: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
     if (seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(execve), 1, SCMP_A0(SCMP_CMP_EQ, (scmp_datum_t)(_config->exe_path))) != 0) {
                                                                                         ^

gcc version 8.3.0 (Raspbian 8.3.0-6+rpi1)
GNU Make 4.2.1
cmake version 3.13.4

@virusdefender
Copy link
Contributor

不支持 arm,需要自己改

@sparrowhe
Copy link
Author

不支持 arm,需要自己改

好的 谢谢

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

2 participants