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

fatal error: 'iostream' file not found #5036

Open
tttturtle-russ opened this issue Apr 29, 2024 · 2 comments
Open

fatal error: 'iostream' file not found #5036

tttturtle-russ opened this issue Apr 29, 2024 · 2 comments
Labels

Comments

@tttturtle-russ
Copy link

Xmake 版本

xmake v2.9.1+20240429

操作系统版本和架构

Linux russ 6.8.7-arch1-2 #1 SMP PREEMPT_DYNAMIC Fri, 19 Apr 2024 09:51:31 +0000 x86_64 GNU/Linux

描述问题

我在用xmake运行tests 测试集时,遇到一个unhandled error,如下图所示
图片
显示iostream文件未找到

期待的结果

不会出现unhandled error

工程配置

GitHub仓库中的tests文件夹

附加信息和错误日志

✖  xmake lua -vD run.lua
running given lua script file run.lua.
> 132 test(s) found
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/actions/config/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/actions/package/localpkg/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/actions/test/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/apis/add_configfiles/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/apis/add_defines/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/apis/add_deps/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/apis/add_imports/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/apis/add_xxx/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/apis/check_xxx/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/apis/clone_target/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/apis/rules/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/apis/rules_inject_deps/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/apis/rules_order/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/apis/rules_override_cxx/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/apis/xxx_script/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/cli/utils/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/modules/bloom_filter/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/modules/bytes/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/modules/cache/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/modules/compress/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/modules/devel/git/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/modules/graph/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/modules/heap/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/modules/hello/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/modules/io/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/modules/json/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/modules/lib/detect/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/modules/list/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/modules/math/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/modules/os/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/modules/path/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/modules/private/select_script/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/modules/process/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/modules/scheduler/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/modules/semver/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/modules/string/serialize/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/modules/string/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/modules/table/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/plugins/create/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/plugins/project/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c++/console/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c++/linkorders/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c++/modules/aliased_headerunit/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c++/modules/circular_dependency/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c++/modules/class/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c++/modules/cpp_with_moduledeps/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c++/modules/dependence/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c++/modules/dependence2/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c++/modules/headerunits_person/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c++/modules/hello with spaces/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c++/modules/hello/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c++/modules/ifdef_module/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c++/modules/impl_unit/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c++/modules/inline_and_template/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c++/modules/internal_partition/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c++/modules/link_order/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c++/modules/moduleonly/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c++/modules/packages/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c++/modules/partitions/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c++/modules/partitions_implunit/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c++/modules/partitions_implunit2/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c++/modules/private_module/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c++/modules/staticlib/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c++/modules/stdmodules/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c++/modules/stdmodules_cpp_only/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c++/modules/stdmodules_multiple_targets/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c++/modules/stl_headerunit/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c++/modules/stl_headerunit_cpp_only/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c++/modules/submodules/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c++/modules/submodules2/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c++/modules/user_headerunit/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c++/modules/user_headerunit2/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c++/precompiled_header/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c++/shared_library/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c++/shared_library_export_all/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c++/shared_library_with_soname/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c++/snippet_runtimes/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c++/static_library/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c++/test(brackets)/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c++/unity_build/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c/Unicode 测试/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c/console/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c/headeronly/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c/library_with_cmakelists/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c/linker_scripts/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c/precompiled_header/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c/shared_library/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c/shared_library_export_all/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c/shared_library_export_list/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c/static library with spaces/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c/static_library/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c/unity_build/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/dlang/console/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/dlang/dub_package/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/dlang/shared_library/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/dlang/static_library/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/go/console/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/go/static_library/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/hybrid/static_library/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/linux/bpf/minimal/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/objc++/console/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/objc++/precompiled_header/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/objc/bundle/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/objc/console/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/objc/framework/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/other/autogen_binary_module/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/other/autogen_code/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/other/autogen_codedep/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/other/autogen_shared_module/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/other/bin2c/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/other/build_deps/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/other/merge_archive/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/other/merge_archive2/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/other/merge_object/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/other/multiplats_vs/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/other/multiplats_xcode/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/other/native_module/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/other/native_module_cjson/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/package/basic/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/package/components/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/package/depconfigs/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/package/inherit_base/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/package/multiconfig/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/package/package_rule/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/package/rootconfigs/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/package/toolchain_muslcc/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/rust/console/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/rust/rust_call_cxx_library/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/rust/static_library/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/swift/console/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/cli/test.lua
>     /home/russ/Arch/ArchTest/xmake/xmake/tests/test/test.lua
running given lua script file ./runner.lua with args:
dump from _print_vlog @@programdir/plugins/lua/main.lua:56
"/home/russ/Arch/ArchTest/xmake/xmake/tests/actions/config/test.lua"
>> testing actions/config ...
>>     running test_workdir ...
create test ...
  [+]: src/main.cpp
  [+]: xmake.lua
  [+]: .gitignore
create ok!
checking for platform ... linux
checking for architecture ... x86_64
[ 50%]: cache compiling.release src/main.cpp
[ 75%]: linking.release test
[100%]: build ok, spent 0.455s
checking for platform ... linux
checking for architecture ... x86_64
[ 50%]: cache compiling.release src/main.cpp
[ 75%]: linking.release test
[100%]: build ok, spent 0.444s
create subtest ...
  [+]: src/main.cpp
  [+]: xmake.lua
  [+]: .gitignore
create ok!
checking for platform ... linux
checking for architecture ... x86_64
[ 50%]: cache compiling.release src/main.cpp
[ 75%]: linking.release test
[100%]: build ok, spent 0.464s
>>   finished 1 test method(s) ...
running given lua script file ./runner.lua with args:
dump from _print_vlog @@programdir/plugins/lua/main.lua:56
"/home/russ/Arch/ArchTest/xmake/xmake/tests/actions/package/localpkg/test.lua"
>> testing actions/package/localpkg ...
>>     running test_main ...
[100%]: build ok, spent 0.01s
package(add): ../bar/build/packages/a/add generated
package(sub): ../bar/build/packages/s/sub generated
package(foo): ../bar/build/packages/f/foo generated
checking for platform ... linux
checking for architecture ... x86_64
checking for flags (-fPIC) ... ok
> gcc "-fPIC" "-m64"
checking for flags (-fvisibility-inlines-hidden) ... ok
> gcc "-fvisibility-inlines-hidden" "-m64"
checking for flags (-O3) ... ok
> gcc "-O3" "-m64"
checking for flags (-DNDEBUG) ... ok
> gcc "-DNDEBUG" "-m64"
checking for flags (-fPIC) ... ok
> g++ "-fPIC" "-m64" "-m64"
[100%]: build ok, spent 0.147s
foo(1, 2) = 0
>>   finished 1 test method(s) ...
running given lua script file ./runner.lua with args:
dump from _print_vlog @@programdir/plugins/lua/main.lua:56
"/home/russ/Arch/ArchTest/xmake/xmake/tests/actions/test/test.lua"
>> testing actions/test ...
>>     running test_main ...
[ 50%]: cache compiling.release src/compile_1.cpp
[ 50%]: cache compiling.release src/compile_2.cpp
running tests ...
[  2%]: test_10/compile_fail     .................................... passed 0.001s
[  4%]: test_11/compile_pass     .................................... failed 0.000s
[ 47%]: test_13/stub_1           .................................... passed 0.016s
[ 47%]: test_14/stub_2           .................................... passed 0.015s
[ 47%]: test_15/stub_n           .................................... passed 0.014s
[ 47%]: test_1/args              .................................... passed 0.015s
[ 47%]: test_1/default           .................................... passed 0.014s
[ 47%]: test_1/fail_output       .................................... passed 0.014s
[ 47%]: test_1/pass_output       .................................... passed 0.013s
[ 47%]: test_2/args              .................................... passed 0.012s
[ 47%]: test_2/default           .................................... passed 0.013s
[ 47%]: test_2/fail_output       .................................... passed 0.012s
[ 47%]: test_2/pass_output       .................................... passed 0.012s
[ 47%]: test_3/args              .................................... passed 0.011s
[ 47%]: test_3/default           .................................... passed 0.011s
[ 47%]: test_3/fail_output       .................................... passed 0.010s
[ 47%]: test_3/pass_output       .................................... passed 0.006s
[ 47%]: test_4/args              .................................... passed 0.005s
[ 85%]: test_4/default           .................................... passed 0.014s
[ 85%]: test_4/fail_output       .................................... passed 0.014s
[ 85%]: test_4/pass_output       .................................... passed 0.010s
[ 85%]: test_5/args              .................................... passed 0.010s
[ 85%]: test_5/default           .................................... passed 0.010s
[ 85%]: test_5/fail_output       .................................... failed 0.009s
[ 85%]: test_5/pass_output       .................................... failed 0.008s
[ 85%]: test_6/args              .................................... passed 0.008s
[ 85%]: test_6/default           .................................... passed 0.008s
[ 85%]: test_6/fail_output       .................................... passed 0.008s
[ 85%]: test_6/pass_output       .................................... passed 0.007s
[ 85%]: test_7/args              .................................... failed 0.006s
[ 85%]: test_7/default           .................................... failed 0.006s
[ 85%]: test_7/fail_output       .................................... failed 0.006s
[ 85%]: test_7/pass_output       .................................... failed 0.006s
[ 85%]: test_8/args              .................................... passed 0.005s
[100%]: test_8/default           .................................... passed 0.013s
[100%]: test_8/fail_output       .................................... passed 0.013s
[100%]: test_8/pass_output       .................................... failed 0.009s
[100%]: test_9/args              .................................... passed 0.009s
[100%]: test_9/default           .................................... passed 0.008s
[100%]: test_9/fail_output       .................................... passed 0.003s
[100%]: test_9/pass_output       .................................... passed 0.002s
[100%]: test_timeout/run_timeout .................................... failed 1.002s

78% tests passed, 9 tests failed out of 42, spent 1.044s
>>   finished 1 test method(s) ...
running given lua script file ./runner.lua with args:
dump from _print_vlog @@programdir/plugins/lua/main.lua:56
"/home/russ/Arch/ArchTest/xmake/xmake/tests/apis/add_configfiles/test.lua"
>> testing apis/add_configfiles ...
>>     running test_main ...
[100%]: build ok, spent 0.011s
>>   finished 1 test method(s) ...
running given lua script file ./runner.lua with args:
dump from _print_vlog @@programdir/plugins/lua/main.lua:56
"/home/russ/Arch/ArchTest/xmake/xmake/tests/apis/add_defines/test.lua"
>> testing apis/add_defines ...
>>     running test_main ...
[100%]: build ok, spent 0.009s
>>   finished 1 test method(s) ...
running given lua script file ./runner.lua with args:
dump from _print_vlog @@programdir/plugins/lua/main.lua:56
"/home/russ/Arch/ArchTest/xmake/xmake/tests/apis/add_deps/test.lua"
>> testing apis/add_deps ...
>>     running test_main ...
{ 
  inc2 = { 
    interface = true 
  } 
}

{ 
  interface = true 
}

true
src/*.c
src/*.c
src/*.c



TEST2
TEST2
[100%]: build ok, spent 0.028s
>>   finished 1 test method(s) ...
running given lua script file ./runner.lua with args:
dump from _print_vlog @@programdir/plugins/lua/main.lua:56
"/home/russ/Arch/ArchTest/xmake/xmake/tests/apis/add_imports/test.lua"
>> testing apis/add_imports ...
>>     running test_main ...
[100%]: build ok, spent 0.003s
>>   finished 1 test method(s) ...
running given lua script file ./runner.lua with args:
dump from _print_vlog @@programdir/plugins/lua/main.lua:56
"/home/russ/Arch/ArchTest/xmake/xmake/tests/apis/add_xxx/test.lua"
>> testing apis/add_xxx ...
>>     running test_main ...
[100%]: build ok, spent 0.003s
>>   finished 1 test method(s) ...
running given lua script file ./runner.lua with args:
dump from _print_vlog @@programdir/plugins/lua/main.lua:56
"/home/russ/Arch/ArchTest/xmake/xmake/tests/apis/check_xxx/test.lua"
>> testing apis/check_xxx ...
>>     running test_main ...
[100%]: build ok, spent 0.016s
>>   finished 1 test method(s) ...
running given lua script file ./runner.lua with args:
dump from _print_vlog @@programdir/plugins/lua/main.lua:56
"/home/russ/Arch/ArchTest/xmake/xmake/tests/apis/clone_target/test.lua"
>> testing apis/clone_target ...
>>     running test_main ...
link2 test
link1 test2

build cache stats:
cache directory: build/.build_cache
cache hit rate: 0%
cache hit: 0
cache hit total time: 0.000s
cache miss: 0
cache miss total time: 0.000s
new cached files: 0
remote cache hit: 0
remote new cached files: 0
preprocess failed: 0
compile fallback count: 0
compile total time: 0.000s

[100%]: build ok, spent 0.012s
>>   finished 1 test method(s) ...
running given lua script file ./runner.lua with args:
dump from _print_vlog @@programdir/plugins/lua/main.lua:56
"/home/russ/Arch/ArchTest/xmake/xmake/tests/apis/rules/test.lua"
>> testing apis/rules ...
>>     running test_main ...
markdown: on_load
rule(stub3): on_load
rule(stub2): on_load
rule(stub1): on_load
target: before_build
rule(stub2): before_build
rule(stub1): before_build
rule(stub0b): before_build_file src/main.c
rule(stub0b): before_build_file src/main2.c
before_build_file:  src/test.c.in
compile src/index.md
[ 61%]: compiling.release src/test.c.in
rule(stub0a): after_build_file src/main.c
rule(stub0a): after_build_file src/main2.c
after_build_file:  src/test.c.in
[ 92%]: linking.release test
target: after_build
rule(stub2): after_build
rule(stub1): after_build
[100%]: build ok, spent 0.073s
>>   finished 1 test method(s) ...
running given lua script file ./runner.lua with args:
dump from _print_vlog @@programdir/plugins/lua/main.lua:56
"/home/russ/Arch/ArchTest/xmake/xmake/tests/apis/rules_inject_deps/test.lua"
>> testing apis/rules_inject_deps ...
>>     running test_main ...
build cppfront file
[ 71%]: cache compiling.release src/main.cpp
[ 85%]: linking.release test
[100%]: build ok, spent 0.092s
>>   finished 1 test method(s) ...
running given lua script file ./runner.lua with args:
dump from _print_vlog @@programdir/plugins/lua/main.lua:56
"/home/russ/Arch/ArchTest/xmake/xmake/tests/apis/rules_order/test.lua"
>> testing apis/rules_order ...
>>     running test_main ...
target.before_build_file: src/test.man
before_build_file: src/test.man
target.before_build_file: src/main.c
target.before_build_file: src/test.md
before_build_file: src/test.md
on_build_file: src/test.man
on_build_file: src/test.md
target.after_build_file: src/test.man
after_build_file: src/test.man
target.after_build_file: src/main.c
target.after_build_file: src/test.md
after_build_file: src/test.md
[100%]: build ok, spent 0.012s
>>   finished 1 test method(s) ...
running given lua script file ./runner.lua with args:
dump from _print_vlog @@programdir/plugins/lua/main.lua:56
"/home/russ/Arch/ArchTest/xmake/xmake/tests/apis/rules_override_cxx/test.lua"
>> testing apis/rules_override_cxx ...
>>     running test_main ...
[100%]: build ok, spent 0.01s
>>   finished 1 test method(s) ...
running given lua script file ./runner.lua with args:
dump from _print_vlog @@programdir/plugins/lua/main.lua:56
"/home/russ/Arch/ArchTest/xmake/xmake/tests/apis/xxx_script/test.lua"
>> testing apis/xxx_script ...
>>     running test_main ...
checking for platform ... linux
checking for architecture ... x86_64
before_build
build
[100%]: build ok, spent 0.003s
>>   finished 1 test method(s) ...
running given lua script file ./runner.lua with args:
dump from _print_vlog @@programdir/plugins/lua/main.lua:56
"/home/russ/Arch/ArchTest/xmake/xmake/tests/cli/utils/test.lua"
>> testing cli/utils ...
>>     running test_version ...
>>     running test_help ...
>>   finished 2 test method(s) ...
running given lua script file ./runner.lua with args:
dump from _print_vlog @@programdir/plugins/lua/main.lua:56
"/home/russ/Arch/ArchTest/xmake/xmake/tests/modules/bloom_filter/test.lua"
>> testing modules/bloom_filter ...
>>     running test_bloom_filter ...
>>   finished 1 test method(s) ...
running given lua script file ./runner.lua with args:
dump from _print_vlog @@programdir/plugins/lua/main.lua:56
"/home/russ/Arch/ArchTest/xmake/xmake/tests/modules/bytes/test.lua"
>> testing modules/bytes ...
>>     running test_index ...
>>     running test_ctor ...
>>     running test_clone ...
>>     running test_move ...
>>     running test_copy ...
>>     running test_slice ...
>>     running test_copy2 ...
>>     running test_int ...
>>     running test_concat ...
>>   finished 9 test method(s) ...
running given lua script file ./runner.lua with args:
dump from _print_vlog @@programdir/plugins/lua/main.lua:56
"/home/russ/Arch/ArchTest/xmake/xmake/tests/modules/cache/test.lua"
>> testing modules/cache ...
>>     running test_memcache ...
>>     running test_localcache ...
>>     running test_globalcache ...
>>   finished 3 test method(s) ...
running given lua script file ./runner.lua with args:
dump from _print_vlog @@programdir/plugins/lua/main.lua:56
"/home/russ/Arch/ArchTest/xmake/xmake/tests/modules/compress/test.lua"
>> testing modules/compress ...
>>     running test_lz4 ...
>>   finished 1 test method(s) ...
running given lua script file ./runner.lua with args:
dump from _print_vlog @@programdir/plugins/lua/main.lua:56
"/home/russ/Arch/ArchTest/xmake/xmake/tests/modules/devel/git/test.lua"
>> testing modules/devel/git ...
>>     running test_asgiturl ...
>>   finished 1 test method(s) ...
running given lua script file ./runner.lua with args:
dump from _print_vlog @@programdir/plugins/lua/main.lua:56
"/home/russ/Arch/ArchTest/xmake/xmake/tests/modules/graph/test.lua"
>> testing modules/graph ...
>>     running test_find_cycle ...
>>     running test_topological_sort ...
>>   finished 2 test method(s) ...
running given lua script file ./runner.lua with args:
dump from _print_vlog @@programdir/plugins/lua/main.lua:56
"/home/russ/Arch/ArchTest/xmake/xmake/tests/modules/heap/test.lua"
>> testing modules/heap ...
>>     running test_valueheap ...
>>     running test_cdataheap ...
>>   finished 2 test method(s) ...
running given lua script file ./runner.lua with args:
dump from _print_vlog @@programdir/plugins/lua/main.lua:56
"/home/russ/Arch/ArchTest/xmake/xmake/tests/modules/hello/test.lua"
>> testing modules/hello ...
>>     running test_hello ...
hello
>>   finished 1 test method(s) ...
running given lua script file ./runner.lua with args:
dump from _print_vlog @@programdir/plugins/lua/main.lua:56
"/home/russ/Arch/ArchTest/xmake/xmake/tests/modules/io/test.lua"
>> testing modules/io ...
>>     running test_write ...
>>     running test_prop ...
>>     running test_readlines ...
>>     running test_lines ...
>>     running test_read ...
>>   finished 5 test method(s) ...
running given lua script file ./runner.lua with args:
dump from _print_vlog @@programdir/plugins/lua/main.lua:56
"/home/russ/Arch/ArchTest/xmake/xmake/tests/modules/json/test.lua"
>> testing modules/json ...
>>     running test_json_encode ...
>>     running test_json_decode ...
>>   finished 2 test method(s) ...
running given lua script file ./runner.lua with args:
dump from _print_vlog @@programdir/plugins/lua/main.lua:56
"/home/russ/Arch/ArchTest/xmake/xmake/tests/modules/lib/detect/test.lua"
>> testing modules/lib/detect ...
>>     running test_find_toolname ...
>>   finished 1 test method(s) ...
running given lua script file ./runner.lua with args:
dump from _print_vlog @@programdir/plugins/lua/main.lua:56
"/home/russ/Arch/ArchTest/xmake/xmake/tests/modules/list/test.lua"
>> testing modules/list ...
>>     running test_push ...
>>     running test_remove ...
>>     running test_insert_last ...
>>     running test_remove_last ...
>>     running test_for_remove ...
>>     running test_remove_first ...
>>     running test_insert ...
>>     running test_rfor_remove ...
>>     running test_insert_first ...
>>   finished 9 test method(s) ...
running given lua script file ./runner.lua with args:
dump from _print_vlog @@programdir/plugins/lua/main.lua:56
"/home/russ/Arch/ArchTest/xmake/xmake/tests/modules/math/test.lua"
>> testing modules/math ...
>>     running test_isnan ...
>>     running test_isint ...
>>     running test_isinf ...
>>   finished 3 test method(s) ...
running given lua script file ./runner.lua with args:
dump from _print_vlog @@programdir/plugins/lua/main.lua:56
"/home/russ/Arch/ArchTest/xmake/xmake/tests/modules/os/test.lua"
>> testing modules/os ...
>>     running test_argv ...
>>     running test_cp_mvdir_into_another_dir ...
>>     running test_setenv ...
>>     running test_cp_symlink ...
>>     running test_args ...
>>     running test_rename ...
>>     running test_cpdir ...
>>   finished 7 test method(s) ...
running given lua script file ./runner.lua with args:
dump from _print_vlog @@programdir/plugins/lua/main.lua:56
"/home/russ/Arch/ArchTest/xmake/xmake/tests/modules/path/test.lua"
>> testing modules/path ...
>>     running test_extension ...
>>     running test_splitenv_unix ...
>>     running test_splitenv_win ...
>>     skipped test_splitenv_win : wrong host platform
>>     running test_relative ...
>>     running test_absolute ...
>>     running test_translate ...
>>     running test_directory ...
>>     running test_instance ...
>>     running test_normalize ...
>>   finished 9 test method(s) ...
running given lua script file ./runner.lua with args:
dump from _print_vlog @@programdir/plugins/lua/main.lua:56
"/home/russ/Arch/ArchTest/xmake/xmake/tests/modules/private/select_script/test.lua"
>> testing modules/private/select_script ...
>>     running test_logical_expr ...
>>     running test_plat_arch_subhost_subarch ...
>>     running test_plat_subhost ...
>>     running test_subhost_only ...
>>     running test_plat_arch_subhost ...
>>     running test_subhost_subarch ...
>>     running test_plat_arch ...
>>     running test_plat_only ...
>>   finished 8 test method(s) ...
running given lua script file ./runner.lua with args:
dump from _print_vlog @@programdir/plugins/lua/main.lua:56
"/home/russ/Arch/ArchTest/xmake/xmake/tests/modules/process/test.lua"
>> testing modules/process ...
>>     running test_sched_process ...
>>     running test_single_process ...
>>   finished 2 test method(s) ...
running given lua script file ./runner.lua with args:
dump from _print_vlog @@programdir/plugins/lua/main.lua:56
"/home/russ/Arch/ArchTest/xmake/xmake/tests/modules/scheduler/test.lua"
>> testing modules/scheduler ...
>>     running test_yield ...
>>     running test_sleep ...
>>     running test_group ...
>>     running test_runjobs ...
>>   finished 4 test method(s) ...
running given lua script file ./runner.lua with args:
dump from _print_vlog @@programdir/plugins/lua/main.lua:56
"/home/russ/Arch/ArchTest/xmake/xmake/tests/modules/semver/test.lua"
>> testing modules/semver ...
>>     running test_semver_satisfies ...
>>     running test_semver_parse ...
>>     running test_semver_select ...
>>     running test_semver_match ...
>>   finished 4 test method(s) ...
running given lua script file ./runner.lua with args:
dump from _print_vlog @@programdir/plugins/lua/main.lua:56
"/home/russ/Arch/ArchTest/xmake/xmake/tests/modules/string/serialize/test.lua"
>> testing modules/string/serialize ...
>>     running test_number ...
>>     running test_boolean ...
>>     running test_nil ...
>>     running test_table ...
>>     running test_function ...
>>     running test_refloop ...
>>   finished 6 test method(s) ...
running given lua script file ./runner.lua with args:
dump from _print_vlog @@programdir/plugins/lua/main.lua:56
"/home/russ/Arch/ArchTest/xmake/xmake/tests/modules/string/test.lua"
>> testing modules/string ...
>>     running test_trim ...
>>     running test_ltrim ...
>>     running test_split ...
>>     running test_replace ...
>>     running test_startswith ...
>>     running test_endswith ...
>>     running test_lastof ...
>>     running test_rtrim ...
>>   finished 8 test method(s) ...
running given lua script file ./runner.lua with args:
dump from _print_vlog @@programdir/plugins/lua/main.lua:56
"/home/russ/Arch/ArchTest/xmake/xmake/tests/modules/table/test.lua"
>> testing modules/table ...
>>     running test_unwrap ...
>>     running test_find_if ...
>>     running test_orderkeys ...
>>     running test_remove_if ...
>>     running test_wrap ...
>>   finished 5 test method(s) ...
running given lua script file ./runner.lua with args:
dump from _print_vlog @@programdir/plugins/lua/main.lua:56
"/home/russ/Arch/ArchTest/xmake/xmake/tests/plugins/create/test.lua"
>> testing plugins/create ...
>>     running test_main ...
create test ...
  [+]: src/main.cpp
  [+]: xmake.lua
  [+]: .gitignore
create ok!
[ 50%]: cache compiling.release src/main.cpp
[ 75%]: linking.release test
[100%]: build ok, spent 0.274s
create test_cpp ...
  [+]: src/main.cpp
  [+]: xmake.lua
  [+]: .gitignore
create ok!
[ 50%]: cache compiling.release src/main.cpp
[ 75%]: linking.release test_cpp
[100%]: build ok, spent 0.264s
create test_cpp2 ...
  [+]: src/foo.cpp
  [+]: src/foo.h
  [+]: src/main.cpp
  [+]: xmake.lua
  [+]: .gitignore
create ok!
[ 37%]: cache compiling.release src/foo.cpp
[ 50%]: cache compiling.release src/main.cpp
[ 62%]: archiving.release libfoo.a
[ 87%]: linking.release test_cpp2
[100%]: build ok, spent 0.098s
create test_cpp3 ...
  [+]: src/foo.cpp
  [+]: src/foo.h
  [+]: src/main.cpp
  [+]: xmake.lua
  [+]: .gitignore
create ok!
[ 37%]: cache compiling.release src/foo.cpp
[ 50%]: cache compiling.release src/main.cpp
[ 62%]: linking.release libfoo.so
[ 87%]: linking.release test_cpp3
[100%]: build ok, spent 0.217s
>>   finished 1 test method(s) ...
running given lua script file ./runner.lua with args:
dump from _print_vlog @@programdir/plugins/lua/main.lua:56
"/home/russ/Arch/ArchTest/xmake/xmake/tests/plugins/project/test.lua"
>> testing plugins/project ...
>>     running test_vsxmake ...
>>     skipped test_vsxmake : wrong host platform
>>     running test_compile_commands ...
xmake create testproj
create testproj ...
  [+]: src/main.cpp
  [+]: xmake.lua
  [+]: .gitignore
create ok!
xmake project -k compile_commands
checking for platform ... linux
checking for architecture ... x86_64
create ok!
xmake
[ 50%]: cache compiling.release src/main.cpp
[ 75%]: linking.release testproj
create ok!
compile_commands.json updated!
[100%]: build ok, spent 0.383s
>>     running test_cmake ...
xmake create testproj
create testproj ...
  [+]: src/main.cpp
  [+]: xmake.lua
  [+]: .gitignore
create ok!
xmake project -k cmake
checking for platform ... linux
checking for architecture ... x86_64
create ok!
/usr/bin/cmake ..
-- The CXX compiler identification is GNU 13.2.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done (0.2s)
-- Generating done (0.0s)
-- Build files have been written to: /tmp/.xmake1000/240430/_79E5E76E791B4F008D857F43E6617810/testproj/build
/usr/bin/cmake --build .
[ 50%] Building CXX object CMakeFiles/testproj.dir/src/main.cpp.o
[100%] Linking CXX executable linux/x86_64/release/testproj
[100%] Built target testproj
>>   finished 3 test method(s) ...
running given lua script file ./runner.lua with args:
dump from _print_vlog @@programdir/plugins/lua/main.lua:56
"/home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c++/console/test.lua"
>> testing projects/c++/console ...
>>     running test_main ...
configure
{
    network = public
    proxy_pac = pac.lua
    clean = true
    theme = default
}
checking for platform ... linux
checking for architecture ... x86_64
[ 50%]: cache compiling.release src/main.cpp
[ 75%]: linking.release test
[100%]: build ok, spent 0.264s
[100%]: build ok, spent 0.01s
package(test): build/packages/t/test generated
installing test ..
installing test to /tmp/.xmake1000/240430 ..
install ok!
uninstalling test ..
uninstalling test from /tmp/.xmake1000/240430 ..
uninstall ok!
checking for platform ... linux
checking for architecture ... x86_64
checking for flags (-fPIC) ... ok
> gcc "-fPIC" "-m64"
checking for flags (-fvisibility-inlines-hidden) ... ok
> gcc "-fvisibility-inlines-hidden" "-m64"
checking for flags (-O0) ... ok
> gcc "-O0" "-m64"
[ 50%]: cache compiling.debug src/main.cpp
checking for flags (-MMD -MF) ... ok
> gcc "-MMD" "-MF" "/dev/null" "-m64"
checking for flags (-fdiagnostics-color=always) ... ok
> gcc "-fdiagnostics-color=always" "-m64"
checking for flags (-fPIC) ... ok
> g++ "-fPIC" "-m64" "-m64"
[ 75%]: linking.debug test
[100%]: build ok, spent 0.248s
function main(argv)
    os.exec("xmake -r -a -D")
end
define macro(buildtest) ok!
macros:
    buildtest
    package
[ 50%]: cache compiling.debug src/main.cpp
[ 75%]: linking.debug test
[100%]: build ok, spent 0.09s
delete macro(buildtest) ok!
>>   finished 1 test method(s) ...
running given lua script file ./runner.lua with args:
dump from _print_vlog @@programdir/plugins/lua/main.lua:56
"/home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c++/linkorders/test.lua"
>> testing projects/c++/linkorders ...
>>     running test_main ...
configure
{
    network = public
    clean = true
    theme = default
    proxy_pac = pac.lua
}
checking for platform ... linux
checking for architecture ... x86_64
finding zlib from xmake ..
finding z from system ..
checking for flags (-fPIC) ... ok
> gcc "-fPIC" "-m64"
> /usr/bin/gcc -c -m64 -o /tmp/.xmake1000/240430/_EF70C4441C074530821D2B03E9ED3830.o /tmp/.xmake1000/240430/_C7DF7220149949FA949CE5341A44A1FB.c
checking for flags (-fdiagnostics-color=always) ... ok
> gcc "-fdiagnostics-color=always" "-m64"
checking for flags (-fPIC) ... ok
> g++ "-fPIC" "-m64" "-m64"
> /usr/bin/g++ -o /tmp/.xmake1000/240430/_EF70C4441C074530821D2B03E9ED3830.b /tmp/.xmake1000/240430/_EF70C4441C074530821D2B03E9ED3830.o -m64 -lz
> checking for c includes(zlib.h)
> checking for c links(z)
> checking for c snippet(find_package/z)
finding libpng from xmake ..
finding libpng from pacman ..
> /usr/bin/gcc -c -m64 -o /tmp/.xmake1000/240430/_264EDBDF10A14B108DA82E6A1B7D1E10.o /tmp/.xmake1000/240430/_775FB00633BC4F66BF87D39CCDE5CF30.c
> /usr/bin/g++ -o /tmp/.xmake1000/240430/_264EDBDF10A14B108DA82E6A1B7D1E10.b /tmp/.xmake1000/240430/_264EDBDF10A14B108DA82E6A1B7D1E10.o -m64 -llibpng
> checking for c links(libpng)
> checking for c snippet(find_package/libpng)
checkinfo: ...gramdir/core/sandbox/modules/import/core/tool/linker.lua:75: @programdir/core/sandbox/modules/os.lua:273: /usr/bin/ld: 找不到 -llibpng: 没有那个文件或目录
collect2: 错误:ld 返回 1

stack traceback:
    [C]: in function 'error'
    [@programdir/core/base/os.lua:973]:
    [@programdir/core/sandbox/modules/os.lua:273]:
    [@programdir/core/sandbox/modules/os.lua:291]: in function 'vrunv'
    [@programdir/modules/core/tools/gcc.lua:561]:
    [C]: in function 'xpcall'
    [@programdir/core/base/utils.lua:275]:
    [@programdir/core/tool/linker.lua:221]: in function 'link'
    [...gramdir/core/sandbox/modules/import/core/tool/linker.lua:73]: in function 'link'
    [@programdir/modules/lib/detect/check_cxsnippets.lua:249]:
    [C]: in function 'xpcall'
    [@programdir/core/base/utils.lua:275]: in function 'trycall'
    [@programdir/core/sandbox/modules/try.lua:117]: in function 'try'
    [@programdir/modules/lib/detect/check_cxsnippets.lua:236]:
    [@programdir/modules/package/manager/system/find_package.lua:93]:
    [...amdir/modules/package/manager/pkgconfig/find_package.lua:47]:
    [@programdir/modules/package/manager/pacman/find_package.lua:159]:
    [@programdir/modules/package/manager/find_package.lua:110]: in function '_find_package'
    [@programdir/modules/package/manager/find_package.lua:194]:
    [@programdir/modules/lib/detect/find_package.lua:109]:
    [@programdir/core/package/package.lua:1788]: in function '_fetch_library'
    [@programdir/core/package/package.lua:1955]: in function 'fetch'
    [...modules/private/action/require/impl/install_packages.lua:333]: in function 'jobfunc'
    [@programdir/modules/async/runjobs.lua:238]:
    [C]: in function 'xpcall'
    [@programdir/core/base/utils.lua:275]: in function 'trycall'
    [@programdir/core/sandbox/modules/try.lua:117]: in function 'try'
    [@programdir/modules/async/runjobs.lua:220]: in function 'cotask'
    [@programdir/core/base/scheduler.lua:406]:

> /usr/bin/gcc -c -m64 -o /tmp/.xmake1000/240430/_EAD6532D3C0D46308D61A7EFA0843B30.o /tmp/.xmake1000/240430/_775FB00633BC4F66BF87D39CCDE5CF30.c
> /usr/bin/g++ -o /tmp/.xmake1000/240430/_EAD6532D3C0D46308D61A7EFA0843B30.b /tmp/.xmake1000/240430/_EAD6532D3C0D46308D61A7EFA0843B30.o -m64 -llibpng16
> checking for c links(libpng16)
> checking for c snippet(find_package/libpng16)
checkinfo: ...gramdir/core/sandbox/modules/import/core/tool/linker.lua:75: @programdir/core/sandbox/modules/os.lua:273: /usr/bin/ld: 找不到 -llibpng16: 没有那个文件或目录
collect2: 错误:ld 返回 1

stack traceback:
    [C]: in function 'error'
    [@programdir/core/base/os.lua:973]:
    [@programdir/core/sandbox/modules/os.lua:273]:
    [@programdir/core/sandbox/modules/os.lua:291]: in function 'vrunv'
    [@programdir/modules/core/tools/gcc.lua:561]:
    [C]: in function 'xpcall'
    [@programdir/core/base/utils.lua:275]:
    [@programdir/core/tool/linker.lua:221]: in function 'link'
    [...gramdir/core/sandbox/modules/import/core/tool/linker.lua:73]: in function 'link'
    [@programdir/modules/lib/detect/check_cxsnippets.lua:249]:
    [C]: in function 'xpcall'
    [@programdir/core/base/utils.lua:275]: in function 'trycall'
    [@programdir/core/sandbox/modules/try.lua:117]: in function 'try'
    [@programdir/modules/lib/detect/check_cxsnippets.lua:236]:
    [@programdir/modules/package/manager/system/find_package.lua:93]:
    [...amdir/modules/package/manager/pkgconfig/find_package.lua:47]:
    [@programdir/modules/package/manager/pacman/find_package.lua:159]:
    [@programdir/modules/package/manager/find_package.lua:110]: in function '_find_package'
    [@programdir/modules/package/manager/find_package.lua:194]:
    [@programdir/modules/lib/detect/find_package.lua:109]:
    [@programdir/core/package/package.lua:1788]: in function '_fetch_library'
    [@programdir/core/package/package.lua:1955]: in function 'fetch'
    [...modules/private/action/require/impl/install_packages.lua:333]: in function 'jobfunc'
    [@programdir/modules/async/runjobs.lua:238]:
    [C]: in function 'xpcall'
    [@programdir/core/base/utils.lua:275]: in function 'trycall'
    [@programdir/core/sandbox/modules/try.lua:117]: in function 'try'
    [@programdir/modules/async/runjobs.lua:220]: in function 'cotask'
    [@programdir/core/base/scheduler.lua:406]:

[ 50%]: cache compiling.release src/foo.cpp
[ 58%]: archiving.release libfoo.a
[ 66%]: cache compiling.release src/main.cpp
[ 66%]: cache compiling.release src/foo.cpp
[ 83%]: linking.release demo
[ 83%]: linking.release libbar.so
[100%]: build ok, spent 0.634s
[100%]: build ok, spent 0.018s
package(bar): build/packages/b/bar generated
package(foo): build/packages/f/foo generated
package(demo): build/packages/d/demo generated
installing bar ..
installing bar to /tmp/.xmake1000/240430 ..
installing foo ..
installing foo to /tmp/.xmake1000/240430 ..
installing demo ..
installing demo to /tmp/.xmake1000/240430 ..
install ok!
uninstalling bar ..
uninstalling bar from /tmp/.xmake1000/240430 ..
uninstalling foo ..
uninstalling foo from /tmp/.xmake1000/240430 ..
uninstalling demo ..
uninstalling demo from /tmp/.xmake1000/240430 ..
uninstall ok!
checking for platform ... linux
checking for architecture ... x86_64
finding zlib from xmake ..
finding z from system ..
checking for flags (-fPIC) ... ok
> gcc "-fPIC" "-m64"
> /usr/bin/gcc -c -m64 -o /tmp/.xmake1000/240430/_24BD0321F6F243308568330A9D0F6D50.o /tmp/.xmake1000/240430/_C7DF7220149949FA949CE5341A44A1FB.c
checking for flags (-fdiagnostics-color=always) ... ok
> gcc "-fdiagnostics-color=always" "-m64"
checking for flags (-fPIC) ... ok
> g++ "-fPIC" "-m64" "-m64"
> /usr/bin/g++ -o /tmp/.xmake1000/240430/_24BD0321F6F243308568330A9D0F6D50.b /tmp/.xmake1000/240430/_24BD0321F6F243308568330A9D0F6D50.o -m64 -lz
> checking for c includes(zlib.h)
> checking for c links(z)
> checking for c snippet(find_package/z)
finding libpng from xmake ..
finding libpng from pacman ..
> /usr/bin/gcc -c -m64 -o /tmp/.xmake1000/240430/_1D5587CF47064F0081DBEEA5B91C1D30.o /tmp/.xmake1000/240430/_775FB00633BC4F66BF87D39CCDE5CF30.c
> /usr/bin/g++ -o /tmp/.xmake1000/240430/_1D5587CF47064F0081DBEEA5B91C1D30.b /tmp/.xmake1000/240430/_1D5587CF47064F0081DBEEA5B91C1D30.o -m64 -llibpng
> checking for c links(libpng)
> checking for c snippet(find_package/libpng)
checkinfo: ...gramdir/core/sandbox/modules/import/core/tool/linker.lua:75: @programdir/core/sandbox/modules/os.lua:273: /usr/bin/ld: 找不到 -llibpng: 没有那个文件或目录
collect2: 错误:ld 返回 1

stack traceback:
    [C]: in function 'error'
    [@programdir/core/base/os.lua:973]:
    [@programdir/core/sandbox/modules/os.lua:273]:
    [@programdir/core/sandbox/modules/os.lua:291]: in function 'vrunv'
    [@programdir/modules/core/tools/gcc.lua:561]:
    [C]: in function 'xpcall'
    [@programdir/core/base/utils.lua:275]:
    [@programdir/core/tool/linker.lua:221]: in function 'link'
    [...gramdir/core/sandbox/modules/import/core/tool/linker.lua:73]: in function 'link'
    [@programdir/modules/lib/detect/check_cxsnippets.lua:249]:
    [C]: in function 'xpcall'
    [@programdir/core/base/utils.lua:275]: in function 'trycall'
    [@programdir/core/sandbox/modules/try.lua:117]: in function 'try'
    [@programdir/modules/lib/detect/check_cxsnippets.lua:236]:
    [@programdir/modules/package/manager/system/find_package.lua:93]:
    [...amdir/modules/package/manager/pkgconfig/find_package.lua:47]:
    [@programdir/modules/package/manager/pacman/find_package.lua:159]:
    [@programdir/modules/package/manager/find_package.lua:110]: in function '_find_package'
    [@programdir/modules/package/manager/find_package.lua:194]:
    [@programdir/modules/lib/detect/find_package.lua:109]:
    [@programdir/core/package/package.lua:1788]: in function '_fetch_library'
    [@programdir/core/package/package.lua:1955]: in function 'fetch'
    [...modules/private/action/require/impl/install_packages.lua:333]: in function 'jobfunc'
    [@programdir/modules/async/runjobs.lua:238]:
    [C]: in function 'xpcall'
    [@programdir/core/base/utils.lua:275]: in function 'trycall'
    [@programdir/core/sandbox/modules/try.lua:117]: in function 'try'
    [@programdir/modules/async/runjobs.lua:220]: in function 'cotask'
    [@programdir/core/base/scheduler.lua:406]:

> /usr/bin/gcc -c -m64 -o /tmp/.xmake1000/240430/_13BF6FADF4154030814B1C41081CE950.o /tmp/.xmake1000/240430/_775FB00633BC4F66BF87D39CCDE5CF30.c
> /usr/bin/g++ -o /tmp/.xmake1000/240430/_13BF6FADF4154030814B1C41081CE950.b /tmp/.xmake1000/240430/_13BF6FADF4154030814B1C41081CE950.o -m64 -llibpng16
> checking for c links(libpng16)
> checking for c snippet(find_package/libpng16)
checkinfo: ...gramdir/core/sandbox/modules/import/core/tool/linker.lua:75: @programdir/core/sandbox/modules/os.lua:273: /usr/bin/ld: 找不到 -llibpng16: 没有那个文件或目录
collect2: 错误:ld 返回 1

stack traceback:
    [C]: in function 'error'
    [@programdir/core/base/os.lua:973]:
    [@programdir/core/sandbox/modules/os.lua:273]:
    [@programdir/core/sandbox/modules/os.lua:291]: in function 'vrunv'
    [@programdir/modules/core/tools/gcc.lua:561]:
    [C]: in function 'xpcall'
    [@programdir/core/base/utils.lua:275]:
    [@programdir/core/tool/linker.lua:221]: in function 'link'
    [...gramdir/core/sandbox/modules/import/core/tool/linker.lua:73]: in function 'link'
    [@programdir/modules/lib/detect/check_cxsnippets.lua:249]:
    [C]: in function 'xpcall'
    [@programdir/core/base/utils.lua:275]: in function 'trycall'
    [@programdir/core/sandbox/modules/try.lua:117]: in function 'try'
    [@programdir/modules/lib/detect/check_cxsnippets.lua:236]:
    [@programdir/modules/package/manager/system/find_package.lua:93]:
    [...amdir/modules/package/manager/pkgconfig/find_package.lua:47]:
    [@programdir/modules/package/manager/pacman/find_package.lua:159]:
    [@programdir/modules/package/manager/find_package.lua:110]: in function '_find_package'
    [@programdir/modules/package/manager/find_package.lua:194]:
    [@programdir/modules/lib/detect/find_package.lua:109]:
    [@programdir/core/package/package.lua:1788]: in function '_fetch_library'
    [@programdir/core/package/package.lua:1955]: in function 'fetch'
    [...modules/private/action/require/impl/install_packages.lua:333]: in function 'jobfunc'
    [@programdir/modules/async/runjobs.lua:238]:
    [C]: in function 'xpcall'
    [@programdir/core/base/utils.lua:275]: in function 'trycall'
    [@programdir/core/sandbox/modules/try.lua:117]: in function 'try'
    [@programdir/modules/async/runjobs.lua:220]: in function 'cotask'
    [@programdir/core/base/scheduler.lua:406]:

checking for flags (-fPIC) ... ok
> gcc "-fPIC" "-m64"
checking for flags (-fvisibility-inlines-hidden) ... ok
> gcc "-fvisibility-inlines-hidden" "-m64"
checking for flags (-O0) ... ok
> gcc "-O0" "-m64"
[ 50%]: cache compiling.debug src/foo.cpp
checking for flags (-MMD -MF) ... ok
> gcc "-MMD" "-MF" "/dev/null" "-m64"
checking for flags (-fdiagnostics-color=always) ... ok
> gcc "-fdiagnostics-color=always" "-m64"
[ 58%]: archiving.debug libfoo.a
[ 66%]: cache compiling.debug src/main.cpp
[ 66%]: cache compiling.debug src/foo.cpp
[ 83%]: linking.debug demo
checking for flags (-fPIC) ... ok
> g++ "-fPIC" "-shared" "-m64" "-m64"
[ 83%]: linking.debug libbar.so
[100%]: build ok, spent 0.642s
function main(argv)
    os.exec("xmake -r -a -D")
end
define macro(buildtest) ok!
macros:
    buildtest
    package
[ 33%]: cache compiling.debug src/foo.cpp
[ 41%]: cache compiling.debug src/main.cpp
[ 50%]: cache compiling.debug src/foo.cpp
[ 58%]: archiving.debug libfoo.a
[ 66%]: linking.debug libbar.so
[ 91%]: linking.debug demo
[100%]: build ok, spent 0.112s
delete macro(buildtest) ok!
>>   finished 1 test method(s) ...
running given lua script file ./runner.lua with args:
dump from _print_vlog @@programdir/plugins/lua/main.lua:56
"/home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c++/modules/aliased_headerunit/test.lua"
>> testing projects/c++/modules/aliased_headerunit ...
>>     running test_main ...
checking for platform ... linux
checking for architecture ... x86_64
checking for platform ... linux
checking for architecture ... x86_64
>>   finished 1 test method(s) ...
running given lua script file ./runner.lua with args:
dump from _print_vlog @@programdir/plugins/lua/main.lua:56
"/home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c++/modules/circular_dependency/test.lua"
>> testing projects/c++/modules/circular_dependency ...
>>     running test_main ...
checking for platform ... linux
checking for architecture ... x86_64
>>   finished 1 test method(s) ...
running given lua script file ./runner.lua with args:
dump from _print_vlog @@programdir/plugins/lua/main.lua:56
"/home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c++/modules/class/test.lua"
>> testing projects/c++/modules/class ...
>>     running test_main ...
checking for platform ... linux
checking for architecture ... x86_64
checking for platform ... linux
checking for architecture ... x86_64
checking for platform ... linux
checking for architecture ... x86_64
>>     test failed: @programdir/core/sandbox/modules/os.lua:264: [  0%]: <class> generating.module.deps src/hello_impl.cpp
[  0%]: <class> generating.module.deps src/main.cpp
[  0%]: <class> generating.module.deps src/hello.mpp
error: Error while scanning dependencies for src/hello_impl.cpp:
src/hello_impl.cpp:2:10: fatal error: 'iostream' file not found


stack traceback:
    [C]: in function 'error'
    [@programdir/core/base/os.lua:973]:
    [@programdir/core/sandbox/modules/os.lua:264]: in function 'run'
    [./projects/c++/modules/class/../test_base.lua:9]: in function '_build'
    [./projects/c++/modules/class/../test_base.lua:66]:

>>       function test_main projects/c++/modules/test_base.lua:36
error: @programdir/core/main.lua:329: ./test_utils/print_error.lua:46: aborting because of unhandled error ...
stack traceback:
    [C]: in function 'error'
    [@programdir/core/base/os.lua:973]:
    [./test_utils/print_error.lua:46]: in function 'print_error'
    [./runner.lua:58]: in function 'catch'
    [@programdir/core/sandbox/modules/try.lua:123]: in function 'try'
    [./runner.lua:44]:
    [@programdir/plugins/lua/main.lua:124]:
    [C]: in function 'xpcall'
    [@programdir/core/base/utils.lua:275]:
    [@programdir/core/base/task.lua:491]: in function 'run'
    [@programdir/core/main.lua:327]: in function 'cotask'
    [@programdir/core/base/scheduler.lua:406]:

stack traceback:
	[C]: in function 'error'
	@programdir/core/base/os.lua:973: in function 'os.raiselevel'
	(...tail calls...)
	@programdir/core/main.lua:329: in upvalue 'cotask'
	@programdir/core/base/scheduler.lua:406: in function <@programdir/core/base/scheduler.lua:399>
error: @programdir/core/main.lua:329: @programdir/core/sandbox/modules/os.lua:378: execv(xmake lua -v -D ./runner.lua /home/russ/Arch/ArchTest/xmake/xmake/tests/projects/c++/modules/class/test.lua) failed(255)
stack traceback:
    [C]: in function 'error'
    [@programdir/core/base/os.lua:973]:
    [@programdir/core/sandbox/modules/os.lua:378]: in function 'execv'
    [./run.lua:14]: in function '_run_test'
    [./run.lua:50]:
    [@programdir/plugins/lua/main.lua:124]:
    [C]: in function 'xpcall'
    [@programdir/core/base/utils.lua:275]:
    [@programdir/core/base/task.lua:491]: in function 'run'
    [@programdir/core/main.lua:327]: in function 'cotask'
    [@programdir/core/base/scheduler.lua:406]:

stack traceback:
	[C]: in function 'error'
	@programdir/core/base/os.lua:973: in function 'base/os.raiselevel'
	(...tail calls...)
	@programdir/core/main.lua:329: in upvalue 'cotask'
	@programdir/core/base/scheduler.lua:406: in function <@programdir/core/base/scheduler.lua:399>
@waruqi
Copy link
Member

waruqi commented Apr 30, 2024

这边暂时无法复现这个问题,ci 也 ok ,你可以先自己调下源码。

@Issues-translate-bot
Copy link

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


This problem cannot be reproduced here for the time being, and ci is ok. You can adjust the source code yourself first.

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

3 participants