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

reflect-cpp installation reports "links not found" #5045

Closed
mirageAlchemy opened this issue Aug 25, 2024 · 6 comments
Closed

reflect-cpp installation reports "links not found" #5045

mirageAlchemy opened this issue Aug 25, 2024 · 6 comments
Labels

Comments

@mirageAlchemy
Copy link

mirageAlchemy commented Aug 25, 2024

Xmake Version

v2.9.4+20240729

Operating System Version and Architecture

#23~22.04.1-Ubuntu SMP Fri Jun 21 19:23:45 UTC 2024 x86_64 x86_64 x86_64 GNU/Linu

Describe Bug

reflect-cpp cannot be installed normally

Expected Behavior

successfully install and use reflect-cpp

Project Configuration

Additional Information and Error Logs

xrepo install -D reflect-cpp
finding yyjson from xmake ..
finding ctre from xmake ..
finding reflect-cpp from xmake ..
note: install or modify (m) these packages (pass -y to skip confirm)?
in xmake-repo:
  -> reflect-cpp v0.14.1 
please input: y (y/n/m)
y
error: @programdir/core/main.lua:329: @programdir/modules/async/runjobs.lua:325: @programdir/core/package/package.lua:2420: package(reflect-cpp): links not found!
stack traceback:
    [C]: in function 'error'
    [@programdir/core/base/os.lua:973]:
    [@programdir/core/package/package.lua:2420]: in function '_generate_build_configs'
    [@programdir/core/package/package.lua:2584]: in function 'check_cxxsnippets'
    [...repositories/xmake-repo/packages/r/reflect-cpp/xmake.lua:33]: in function 'script'
    [...ir/modules/private/action/require/impl/actions/check.lua:37]:
    [...modules/private/action/require/impl/install_packages.lua:483]: in function 'jobfunc'
    [@programdir/modules/async/runjobs.lua:241]:

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>
error: @programdir/core/main.lua:329: @programdir/core/sandbox/modules/os.lua:378: execv(/usr/bin/xmake require -D -j 6 --extra={system=false} reflect-cpp) failed(255)
stack traceback:
    [C]: in function 'error'
    [@programdir/core/base/os.lua:973]:
    [@programdir/core/sandbox/modules/os.lua:378]:
    [@programdir/modules/private/xrepo/action/install.lua:300]: in function '_install_packages'
    [@programdir/modules/private/xrepo/action/install.lua:307]:
    [@programdir/modules/private/xrepo/main.lua:196]:
    [@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>
@mirageAlchemy
Copy link
Author

By the way, I installed 0.11.1 without any issue locally on my mac, I guess its because back then reflect-cpp is still header only. So a slightly off-topic question, is there any way for me to install a specific version of package in xrepo? I tried xrepo install reflect-cpp==0.11.1 with no luck.

@star-hengxing
Copy link
Contributor

0.14.1 version work for me. Try -vD flag to get full log.

By the way, I installed 0.11.1 without any issue locally on my mac, I guess its because back then reflect-cpp is still header only. So a slightly off-topic question, is there any way for me to install a specific version of package in xrepo? I tried xrepo install reflect-cpp==0.11.1 with no luck.

xrepo install "reflect-cpp v0.11.1"

@waruqi
Copy link
Member

waruqi commented Aug 26, 2024

it works for me too.

please provide full verbose logs. with -vD instead of -D

xrepo install -vD reflect-cpp

@mirageAlchemy
Copy link
Author

$ xrepo install -vD reflect-cpp
/home/ubuntu/.local/bin/xmake create -P .
create working ...
  [+]: src/main.cpp
  [+]: xmake.lua
  [+]: .gitignore
create ok!
/home/ubuntu/.local/bin/xmake f -c --require=n -vD
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
configure
{
    ndk_stdcxx = true
    clean = true
    mode = release
    host = linux
    arch = x86_64
    buildir = build
    ccache = true
    kind = static
    plat = linux
}
/home/ubuntu/.local/bin/xmake require -v -D -j 6 --extra={system=false} reflect-cpp
checking for unzip ... /usr/bin/unzip
checking for git ... /usr/bin/git
checking for gzip ... /usr/bin/gzip
checking for tar ... /usr/bin/tar
checking for ping ... /usr/bin/ping
pinging the host(gitlab.com) ... 1 ms
pinging the host(github.com) ... 2 ms
pinging the host(gitee.com) ... 56 ms
updating repositories .. 
pulling repository(build-artifacts): https://gitlab.com/xmake-mirror/build-artifacts.git to /home/ubuntu/.xmake/repositories/build-artifacts ..
/usr/bin/git -c core.fsmonitor=false pull origin main -f
From https://gitlab.com/xmake-mirror/build-artifacts
 * branch              main       -> FETCH_HEAD
Already up to date.
pulling repository(xmake-repo): https://gitlab.com/tboox/xmake-repo.git to /home/ubuntu/.xmake/repositories/xmake-repo ..
/usr/bin/git -c core.fsmonitor=false pull origin master -f
remote: Enumerating objects: 23, done.
remote: Counting objects: 100% (23/23), done.
remote: Compressing objects: 100% (16/16), done.
remote: Total 19 (delta 6), reused 0 (delta 0), pack-reused 0 (from 0)
Unpacking objects: 100% (19/19), 6.55 KiB | 1.09 MiB/s, done.
From https://gitlab.com/tboox/xmake-repo
 * branch              master     -> FETCH_HEAD
   02309f96..df3a58c3  master     -> origin/master
Updating 02309f96..df3a58c3
Fast-forward
 packages/m/minio-cpp/patches/0.3.0/cmake-pkgconfig-find-deps.patch | 42 ++++++++++++++++++++++++++++++++++++++++++
 packages/m/minio-cpp/patches/0.3.0/macos-unistd.patch              | 15 +++++++++++++++
 packages/m/minio-cpp/xmake.lua                                     | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 packages/s/spine-runtimes/patches/3.8/cmake.patch                  | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 packages/s/spine-runtimes/xmake.lua                                | 38 ++++++++++++++++++++++++++++++++++++++
 5 files changed, 223 insertions(+)
 create mode 100644 packages/m/minio-cpp/patches/0.3.0/cmake-pkgconfig-find-deps.patch
 create mode 100644 packages/m/minio-cpp/patches/0.3.0/macos-unistd.patch
 create mode 100644 packages/m/minio-cpp/xmake.lua
 create mode 100644 packages/s/spine-runtimes/patches/3.8/cmake.patch
 create mode 100644 packages/s/spine-runtimes/xmake.lua
ok
/usr/bin/git rev-parse HEAD
checking for cmake ... no
finding yyjson from xmake ..
checking for xmake::yyjson ... yyjson 0.10.0
finding ctre from xmake ..
checking for xmake::ctre ... ctre v3.9.0
finding reflect-cpp from xmake ..
checking for xmake::reflect-cpp ... no
note: install or modify (m) these packages (pass -y to skip confirm)?
in xmake-repo:
  -> reflect-cpp v0.14.1 
please input: y (y/n/m)
y
checking for gcc ... /usr/bin/gcc
checking for the c++ compiler (cxx) ... gcc
error: @programdir/core/main.lua:329: @programdir/modules/async/runjobs.lua:325: @programdir/core/package/package.lua:2420: package(reflect-cpp): links not found!
stack traceback:
    [C]: in function 'error'
    [@programdir/core/base/os.lua:973]:
    [@programdir/core/package/package.lua:2420]: in function '_generate_build_configs'
    [@programdir/core/package/package.lua:2584]: in function 'check_cxxsnippets'
    [...repositories/xmake-repo/packages/r/reflect-cpp/xmake.lua:33]: in function 'script'
    [...ir/modules/private/action/require/impl/actions/check.lua:37]:
    [...modules/private/action/require/impl/install_packages.lua:483]: in function 'jobfunc'
    [@programdir/modules/async/runjobs.lua:241]:

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(/home/ubuntu/.local/bin/xmake require -v -D -j 6 --extra={system=false} reflect-cpp) failed(255)
stack traceback:
    [C]: in function 'error'
    [@programdir/core/base/os.lua:973]:
    [@programdir/core/sandbox/modules/os.lua:378]:
    [@programdir/modules/private/xrepo/action/install.lua:300]: in function '_install_packages'
    [@programdir/modules/private/xrepo/action/install.lua:307]:
    [@programdir/modules/private/xrepo/main.lua:196]:
    [@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>

@waruqi the command output is as above, thanks!

@star-hengxing that command works! thank you too!

@waruqi
Copy link
Member

waruqi commented Aug 26, 2024

try dev, it should work. xmake update -s dev

@mirageAlchemy
Copy link
Author

It works now, much appreciated!

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