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

[求助/Help]ubuntu 2022.04 编译host image编译报错 #19024

Closed
nyl1001 opened this issue Dec 18, 2023 · 8 comments
Closed

[求助/Help]ubuntu 2022.04 编译host image编译报错 #19024

nyl1001 opened this issue Dec 18, 2023 · 8 comments
Labels

Comments

@nyl1001
Copy link

nyl1001 commented Dec 18, 2023

报错信息如下:make image host-image VERSION=v3.10.8
mkdir -p /root/cloudpods/_output

Start to build component: host-image
make[1]: Entering directory '/root/cloudpods'
go build -mod vendor -ldflags "-w -X yunion.io/x/pkg/util/version.gitVersion=master-20230911.0-497-g4cb021916520a5 -X yunion.io/x/pkg/util/version.gitCommit=4cb0219165 -X yunion.io/x/pkg/util/version.gitBranch=master -X yunion.io/x/pkg/util/version.buildDate=2023-12-18T02:09:41Z -X yunion.io/x/pkg/util/version.gitTreeState=dirty -X yunion.io/x/pkg/util/version.gitMajor=0 -X yunion.io/x/pkg/util/version.gitMinor=0" -o /root/cloudpods/_output/bin/host-image yunion.io/x/onecloud/cmd/host-image

runtime/cgo

/usr/bin/ld: cannot find -lqemuio: No such file or directory
/usr/bin/ld: cannot find -lgnutls: No such file or directory
/usr/bin/ld: cannot find -lqemuio: No such file or directory
/usr/bin/ld: cannot find -lgnutls: No such file or directory

本人参照https://github.com/yunionio/qemu 编译了qemu,LIBQEMUIO_PATH也指向了qemu根目录,但是编译依然报上述错误,尝试安装了各种依赖包,依然不能解决问题。

@nyl1001 nyl1001 added the question Further information is requested label Dec 18, 2023
@nyl1001
Copy link
Author

nyl1001 commented Dec 18, 2023

贵司开源给人犹抱琵琶半遮面的感觉,回答issue遮遮掩掩的,关于host image编译的那两个issue 都没有给出完整的解决方法,这是啥原因呢

@swordqiu
Copy link
Member

@nyl1001 多谢反馈。我们自己根据文档验证一下,如果有文档不够清晰的地方,我们尽快修正。

@zexi
Copy link
Member

zexi commented Dec 18, 2023

类似的问题还有 #18094 ,编译出 libqemuaio.a 后,再制作 host-image 容器镜像会遇到下面的问题。

img_v3_0268_084bcfcb-1384-43dd-afd3-e465c4ca263g

@wanyaoqi
Copy link
Member

@nyl1001 @zexi @swordqiu https://github.com/yunionio/qemu/tree/stable-2.12 请使用这个分支,这个功能是基于 qemu 2.12 开发的

@zexi
Copy link
Member

zexi commented Dec 18, 2023

建议专门写篇如何编译 libqemuaio 的文档到开发手册里面。
qemu 编译是 4.2 的版本,libqemuaio 又是基于 2.12 的版本,看这个 https://github.com/yunionio/qemu/blob/main/README.md 不清楚。

@nyl1001
Copy link
Author

nyl1001 commented Dec 19, 2023

@nyl1001 @zexi @swordqiu https://github.com/yunionio/qemu/tree/stable-2.12 请使用这个分支,这个功能是基于 qemu 2.12 开发的

一样报错,请问LIBQEMUIO_PATH到底设置多少,你们都没有回答

@zexi
Copy link
Member

zexi commented Dec 25, 2023

@nyl1001 参考这个 PR 的文档步骤试试能否编译出来?yunionio/website#69

Copy link

github-actions bot commented Feb 1, 2024

If you do not provide feedback for more than 37 days, we will close the issue and you can either reopen it or submit a new issue.

您超过 37 天未反馈信息,我们将关闭该 issue,如有需求您可以重新打开或者提交新的 issue。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants