You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I have changed system=false to system=true in add_requires() and disabled tests in xmake.lua file, so that it can use system dependency as much as possible even without network.
> xmake config -vD --enable_tests=false
checking for platform ... linux
checking for architecture ... x86_64
checking for gcc ... /usr/bin/gcc
checkinfo: cannot runv(zig version), No such file or directory
checking for zig ... no
checkinfo: cannot runv(zig version), No such file or directory
checking for zig ... no
checkinfo: cannot runv(nim --version), No such file or directory
checking for nim ... no
checkinfo: cannot runv(nim --version), No such file or directory
checking for nim ... no
checking for enable_tests ... no
checking for g++ ... /usr/bin/g++
checking for the c++ compiler (cxx) ... g++
checking for /usr/bin/g++ ... ok
checking for flags (-fPIC) ... ok
> g++ "-fPIC""-m64"> /usr/bin/g++ -c -m64 -o /tmp/.xmake1000/240830/_08FD9396A9934C1082567C3E7FD14240.o /tmp/.xmake1000/240830/_CC4FF776CE1140F5806577A9E0688D22.cpp
> checking for c++ includes(mutex)
> checking for c++ types(std::mutex)
checking for posix_thread ... ok
checking for unzip ... /usr/bin/unzip
checkinfo: cannot runv(git --version), No such file or directory
checking for git ... no
checkinfo: @programdir/core/sandbox/modules/os.lua:264: cannot runv(ping -c 1 -W 1 127.0.0.1), No such file or directory
stack traceback:
[C]: infunction'error'
[@programdir/core/base/os.lua:973]:
[@programdir/core/sandbox/modules/os.lua:264]: infunction'run'
[@programdir/modules/detect/tools/find_ping.lua:41]:
[C]: infunction'xpcall'
[@programdir/core/base/utils.lua:275]:
[@programdir/core/sandbox/modules/import/lib/detect/find_program.lua:65]: infunction'_do_check'
[@programdir/core/sandbox/modules/import/lib/detect/find_program.lua:88]: infunction'_check'
[@programdir/core/sandbox/modules/import/lib/detect/find_program.lua:242]: infunction'_find'
[@programdir/core/sandbox/modules/import/lib/detect/find_program.lua:328]:
[@programdir/modules/lib/detect/find_tool.lua:31]: infunction'_find_from_modules'
[@programdir/modules/lib/detect/find_tool.lua:42]: infunction'_find_tool'
[@programdir/modules/lib/detect/find_tool.lua:88]:
[@programdir/modules/net/ping.lua:60]:
[@programdir/modules/net/fasturl.lua:48]: infunction'sort'
[@programdir/core/sandbox/modules/import/core/package/repository.lua:129]: infunction'repositories'
[@programdir/modules/private/action/require/impl/repository.lua:119]: infunction'repositories'
[@programdir/modules/private/action/require/impl/repository.lua:186]: infunction'packagedir'
[@programdir/modules/private/action/require/impl/package.lua:232]: infunction'_load_package_from_repository'
[@programdir/modules/private/action/require/impl/package.lua:895]: infunction'_load_package'
[@programdir/modules/private/action/require/impl/package.lua:1039]: infunction'_load_packages'
[@programdir/modules/private/action/require/impl/package.lua:1343]: infunction'load_packages'
[@programdir/modules/private/action/require/impl/install_packages.lua:672]:
[@programdir/modules/private/action/require/impl/environment.lua:47]: infunction'enter'
[@programdir/modules/private/action/require/install.lua:71]:
[@programdir/actions/config/main.lua:391]:
[C]: infunction'xpcall'
[@programdir/core/base/utils.lua:275]:
[@programdir/core/base/task.lua:491]: infunction'run'
[@programdir/core/main.lua:327]: infunction'cotask'
[@programdir/core/base/scheduler.lua:406]:
checking for ping ... no
checking for git ... no
checkinfo: cannot runv(git --version), No such file or directory
checking for git ... no
note: install or modify (m) these packages (pass -y to skip confirm)?in builtin-repo:
-> git latest
please input: y (y/n/m)
error: @programdir/core/main.lua:329: @programdir/modules/private/action/require/impl/install_packages.lua:772: packages(git): must be installed!
stack traceback:
[C]: infunction'error'
[@programdir/core/base/os.lua:973]:
[@programdir/modules/private/action/require/impl/install_packages.lua:772]:
[@programdir/modules/private/action/require/impl/environment.lua:47]: infunction'enter'
[@programdir/modules/private/action/require/install.lua:71]:
[@programdir/actions/config/main.lua:391]:
[C]: infunction'xpcall'
[@programdir/core/base/utils.lua:275]:
[@programdir/core/base/task.lua:491]: infunction'run'
[@programdir/core/main.lua:327]: infunction'cotask'
[@programdir/core/base/scheduler.lua:406]:
stack traceback:
[C]: infunction'error'
@programdir/core/base/os.lua:973: infunction'os.raiselevel'
(...tail calls...)
@programdir/core/main.lua:329: in upvalue 'cotask'
@programdir/core/base/scheduler.lua:406: infunction<@programdir/core/base/scheduler.lua:399>
Describe the solution you'd like
I want to build the library with system dependency.
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I have changed system=false to system=true in
add_requires()
and disabled tests in xmake.lua file, so that it can use system dependency as much as possible even without network.Describe the solution you'd like
I want to build the library with system dependency.
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: