-
Notifications
You must be signed in to change notification settings - Fork 102
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
简单的Gin示范代码无法在Milkv-duo 256的Buildroot镜像上运行 #907
Comments
What about your Go environment -- |
看起来 buildroot 的内核没有开 |
你好,麻烦提供一下以下内容以供于复现: 是网络轮询初始化失败以及epoll调用失败的问题,建议查看网络相关系统日志以及修改内核配置文件后重试 |
我的环境如下:
|
Linux 应该是需要EPOLL的,但是wiki里没有描述,对应CL是 |
感谢各位大佬,内核配置开启了CONFIG_EPOLL=y和CONFIG_FUTEX=y这两个选项后,Golang的网络功能已经可以正常使用了。 |
Go wiki已更新,Linux 除了版本 最低要求是FUTEX + EPOLL,应该可以关闭这个issue了 |
系统信息
golang代码如下(也尝试了Golang的HTTP Server,Socket等等简单案例代码,都是和下面报错的信息一样,runtime: epollcreate failed with 38),只有不使用网络的Helloworld,打印等等案例可以正常执行。
使用的交叉编译命令(相同命令编译的Helloworld程序可以在milkv上运行)
GOARCH=riscv64 go build -o ping ping.go
使用ld库检查可执行程序ping的依赖情况,提示无依赖需求
[root@milkv-duo]~# /lib64/ld-musl-riscv64v0p7_xthead.so.1 --list ping
/lib64/ld-musl-riscv64v0p7_xthead.so.1: ping: Not a valid dynamic program
以下是ping程序的运行报错信息
The text was updated successfully, but these errors were encountered: