tboox / tbox

🎁 A glib-like multi-platform c library
https://docs.tboox.org
Apache License 2.0
4.89k stars 725 forks source link

通过xrepo引入tbox 1.7.4,xmake config在wasm平台编译报错 #226

Closed da-liii closed 1 year ago

da-liii commented 1 year ago

注:提问题时若使用不能用/没效果/有问题/报错此类模糊表达,但又没有根据下面的模板给出任何相关辅助信息的,将绝对不会有任何反馈。

描述问题

xmake config 失败

期待的结果

xmake config 成功

错误信息

error: @programdir/modules/private/async/runjobs.lua:256: @programdir/modules/private/action/build/object.lua:91: @programdir/modules/core/tools/gcc.lua:807: In file included from src/tbox/utils/trace.c:29:
src/tbox/utils/../platform/impl/mutex.h:33:13: fatal error: 'spinlock.h' file not found
   33 | #   include "spinlock.h"
      |             ^~~~~~~~~~~~
1 error generated.

相关环境

Ubuntu 22.04, emscritpen 3.1.42

其他信息

https://github.com/XmacsLabs/lolly/pull/92

Issues-translate-bot commented 1 year ago

Bot detected the issue body's language is not English, translate it automatically.


Title: Introduced through xrepo to challenge, compile and report errors on the wasm platform

Note: If you use vague expressions such as unable/no effect/problem/error when asking a question, but do not give any relevant auxiliary information according to the template below, there will be absolutely no feedback.

Describe the problem

Please describe the problem you are encountering as clearly and precisely as possible.

Expected results

Please describe your desired outcome as clearly and precisely as possible.

Error message

If possible, please try to attach the error output information during the running of the program.

Related environment

Please provide compilation and runtime environment information.

other information

Please provide any additional information to help us diagnose the problem.

waruqi commented 1 year ago

dev 分支我修复了,但是我不保证 wasm 版本能正常用,从来没在 wasm 里面测试过,可能部分模块是没实现的。

Issues-translate-bot commented 1 year ago

Bot detected the issue body's language is not English, translate it automatically.


I fixed the dev branch, but I do not guarantee that the wasm version can be used normally. I have never tested it in wasm, and some modules may not be implemented.

da-liii commented 1 year ago

我来测试 wasm 的可用性吧

Issues-translate-bot commented 1 year ago

Bot detected the issue body's language is not English, translate it automatically.


Let me test the usability of wasm

da-liii commented 1 year ago

Fixed by https://github.com/tboox/tbox/commit/fd261c9035b93e01bd2437c9956a7a9f4a98a5b5 and https://github.com/tboox/tbox/commit/151fe7f214422b4253a9952d3481e7c6487ee0e3