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

3.21节qemu编译缺少*-static包 #36

Open
adh0916 opened this issue Jun 14, 2022 · 1 comment
Open

3.21节qemu编译缺少*-static包 #36

adh0916 opened this issue Jun 14, 2022 · 1 comment

Comments

@adh0916
Copy link

adh0916 commented Jun 14, 2022

简述

.编译qemu需要依赖glibc-static、glib2-static、pcre-static、zlib-static,建议在2.1节创建la-clfs环境时安装

具体信息

configure阶段:

  1. 首先出现big/little test failed, 查看build/config.log,提示 ld找不到 -lc , 确认是缺少 libc.a, 在la-clfs的chroot环境中安装glibc-static解决
  2. 出现“sizeof(size_t) doesn't match GLIB_SIZEOF_SIZE_T. You probably need to set PKG_CONFIG_LIBDIR to point to the right pkg-config files for your build target””,与第1步问题类似,config.log提示ld找不到 -lgthread-2.0、-lglib-2.0,确认是缺少libgthread-2.0.a和libglib-2.0.a,安装glib2-static解决
  3. 再次出现第2步同样的“sizeof……”错误,config.log提示ld找不到-lpcre,确认是缺少ibpcre.a,安装pcre-static解决

ninja阶段:
.执行ninja报错,ld找不到-lz ,确认缺少libz.a,安装zlib-static解决

@sunhaiyong1978
Copy link
Owner

你说的对,我加上。

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