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

Use meson to build glib is failing on windows ci #1013

Closed
waruqi opened this issue Feb 22, 2022 · 2 comments
Closed

Use meson to build glib is failing on windows ci #1013

waruqi opened this issue Feb 22, 2022 · 2 comments
Labels

Comments

@waruqi
Copy link
Member

waruqi commented Feb 22, 2022

https://github.com/xmake-io/xmake-repo/runs/5283528654?check_suite_focus=true

[407/495] "lib" "/NOLOGO" /MACHINE:x64 /OUT:glib/libcharset/libcharset.a glib/libcharset/libcharset.a.p/localcharset.c.obj
[408/495] "link" @glib/glib-2.0-0.dll.rsp
   Creating library glib\glib-2.0.lib and object glib\glib-2.0.exp
[409/495] "C:\Users\runneradmin\AppData\Local\.xmake\packages\m\meson\0.60.1\69dc6ca0cc0e4df3b86c3669f12c599c\bin\meson" "--internal" "symbolextractor" "C:\Users\runneradmin\AppData\Local\.xmake\cache\packages\2202\g\glib\2.71.0\source\glib-2.71.0\build_739e08b0" glib/glib-2.0-0.dll "glib\glib-2.0.lib" glib/glib-2.0-0.dll.p/glib-2.0-0.dll.symbols 
FAILED: glib/glib-2.0-0.dll.p/glib-2.0-0.dll.symbols 
"C:\Users\runneradmin\AppData\Local\.xmake\packages\m\meson\0.60.1\69dc6ca0cc0e4df3b86c3669f12c599c\bin\meson" "--internal" "symbolextractor" "C:\Users\runneradmin\AppData\Local\.xmake\cache\packages\2202\g\glib\2.71.0\source\glib-2.71.0\build_739e08b0" glib/glib-2.0-0.dll "glib\glib-2.0.lib" glib/glib-2.0-0.dll.p/glib-2.0-0.dll.symbols 
ninja: build stopped: subcommand failed.
error: @programdir\core\sandbox\modules\os.lua:354: execv(ninja install -C build_739e08b0 -v -j 1) failed(1)
stack traceback:

Patch

References

@waruqi waruqi added the bug label Feb 22, 2022
@waruqi
Copy link
Member Author

waruqi commented Feb 22, 2022

There is a problem with using meson, which additionally depends on the python and pip environments. Even if glib has previously been well compiled with the specified version of meson, it is not guaranteed to be completely reliable. Because python and pip version changes also cause a lot of uncertainty.

Just like this case. A bug in newer versions of pip will break the compilation of glib.


使用 meson 会存在一个问题,它会额外依赖 python 和 pip 环境。即使之前已经使用指定版本的 meson 很好地编译 glib,也不能保证完全可靠。因为 python 和 pip 版本变动也会导致许多不确定性。

就好比这个 case。新版本 pip 的一个 bug 就会破坏了 glib 的编译。

@waruqi
Copy link
Member Author

waruqi commented Feb 22, 2022

@xq114 目前 3.9.10 python 带的 pip 版本,会搞跪 meson 对 glib 的编译,估计其他库的编译也会跪。。我暂时回退了 pip 的版本。

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

1 participant