-
-
Notifications
You must be signed in to change notification settings - Fork 354
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
安装boost包报错 #4042
Labels
Comments
Title: Error when installing boost package |
给下 另外,你这 xcode 没装,用的是 CommandLineTools,而 xmake-repo ci 目前仅仅对 xcode 进行压测,所以 CommandLineTools 的环境,不保证一定 ok,我这边也没环境测试。。你可以尝试安装 xcode 后再试试 |
Title: Error when installing boost package |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Xmake 版本
2.9.1
操作系统版本和架构
macos Sonoma
描述问题
相同配置文件在linux下通过,在mac上安装boost时失败
期待的结果
安装依赖包并通过编译.相同配置文件在linux下通过.
工程配置
set_languages("cxx17")
add_includedirs("include")
add_includedirs("include/tools")
add_includedirs("include/ranges")
add_includedirs("include/compairer")
add_includedirs("include/nodes")
add_includedirs("include/trainable")
add_includedirs("include/solver")
add_includedirs("include/runtime")
add_requires("fmt")
add_requires("boost")
add_requires("libomp")
target("TexasSolver")
set_kind("shared")
add_ldflags("-pthread", "-fopenmp")
add_files("src/**.cpp|pybind/.cpp|experimental/.cpp|console.cpp")
add_packages("fmt")
add_packages("boost")
add_packages("openmp")
target("console")
set_kind("binary")
add_ldflags("-pthread", "-fopenmp")
add_files("src/console.cpp")
add_packages("fmt")
add_packages("openmp")
add_deps("TexasSolver")
工程为 https://github.com/bupticybee/TexasSolver/tree/console
附加信息和错误日志
checking for platform ... macosx
checking for architecture ... arm64
checking for Xcode directory ... %s
checking for Codesign Identity of Xcode ... no
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 unzip ... /usr/bin/unzip
checking for git ... /usr/bin/git
checking for gzip ... /usr/bin/gzip
checking for tar ... /usr/bin/tar
/usr/bin/git rev-parse HEAD
checking for cmake ... no
checking for cmake ... /opt/homebrew/bin/cmake
finding fmt from xmake ..
checking for xmake::fmt ... fmt 10.2.1
finding boost from xmake ..
checking for xmake::boost ... no
finding boost from brew ..
checking for brew ... /opt/homebrew/bin/brew
finding boost from system ..
checking for /Library/Developer/CommandLineTools/usr/bin/clang ... ok
checking for the c compiler (cc) ... clang
checking for /Library/Developer/CommandLineTools/usr/bin/clang ... ok
checking for flags (-fPIC) ... ok
checking for brew::boost ... no
finding boost from brew ..
finding boost from system ..
finding boost from vcpkg ..
finding boost from conan ..
finding boost from pkgconfig ..
checkinfo: cannot runv(pkg-config --version), No such file or directory
checking for pkg-config ... no
checkinfo: cannot runv(pkgconf --version), No such file or directory
checking for pkgconf ... no
finding boost from system ..
checking for boost ... no
finding libomp from xmake ..
checking for xmake::libomp ... libomp 12.0.1
note: install or modify (m) these packages (pass -y to skip confirm)?
in xmake-repo:
-> boost 1.84.0
please input: y (y/n/m)
y
...updated 625 targets...
finding boost from xmake ..
checking for xmake::boost ... boost 1.84.0
{
license = "BSL-1.0",
version = "1.84.0"
}
patching /Users/wx/.xmake/packages/b/boost/1.84.0/a990430d8483473188ce6832c88b8185/lib/pkgconfig/boost.pc ..
checking for flags (-fPIC) ... ok
error: ...xmake/repositories/xmake-repo/packages/b/boost/xmake.lua:340: ...amdir/core/sandbox/modules/import/core/tool/compiler.lua:84: @programdir/modules/core/tools/gcc.lua:880: /var/folders/28/m1bxpc396210plmjl1kl4gzh0000gn/T/.xmake501/240513/_30B5E98FD1734C4383CE607874386DE7.cpp:4:22: fatal error: 'boost/algorithm/string.hpp' file not found
#include <boost/algorithm/string.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
stack traceback:
[C]: in function 'error'
[@programdir/core/base/os.lua:973]:
[@programdir/modules/core/tools/gcc.lua:880]: in function 'catch'
[@programdir/core/sandbox/modules/try.lua:123]: in function 'try'
[@programdir/modules/core/tools/gcc.lua:821]:
[C]: in function 'xpcall'
[@programdir/core/base/utils.lua:275]:
[@programdir/core/tool/compiler.lua:278]: in function 'compile'
[...amdir/core/sandbox/modules/import/core/tool/compiler.lua:82]: in function 'compile'
[@programdir/modules/lib/detect/check_cxsnippets.lua:244]:
[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]:
[...xmake/repositories/xmake-repo/packages/b/boost/xmake.lua:340]: in function 'script'
[...dir/modules/private/action/require/impl/utils/filter.lua:114]: in function 'call'
[...dir/modules/private/action/require/impl/actions/test.lua:41]:
[.../modules/private/action/require/impl/actions/install.lua:444]:
[C]: in function 'xpcall'
[@programdir/core/base/utils.lua:275]: in function 'trycall'
[@programdir/core/sandbox/modules/try.lua:117]: in function 'try'
[.../modules/private/action/require/impl/actions/install.lua:370]:
[...modules/private/action/require/impl/install_packages.lua:487]: 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]:
=> install boost 1.84.0 .. failed
error: @programdir/core/main.lua:329: @programdir/core/sandbox/modules/import/core/base/task.lua:65: @programdir/modules/async/runjobs.lua:322: .../modules/private/action/require/impl/actions/install.lua:506: install failed!
stack traceback:
[C]: in function 'error'
[@programdir/core/base/os.lua:973]:
[.../modules/private/action/require/impl/actions/install.lua:506]: in function 'catch'
[@programdir/core/sandbox/modules/try.lua:123]: in function 'try'
[.../modules/private/action/require/impl/actions/install.lua:370]:
[...modules/private/action/require/impl/install_packages.lua:487]: in function 'jobfunc'
[@programdir/modules/async/runjobs.lua:238]:
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>
-> boost 1.84.0
please input: y (y/n/m)
y
=> install boost 1.84.0 .. failed
/var/folders/28/m1bxpc396210plmjl1kl4gzh0000gn/T/.xmake501/240513/_30B5E98FD1734C4383CE607874386DE7.cpp:4:22: fatal error: 'boost/algorithm/string.hpp' file not found
#include <boost/algorithm/string.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
${yellow}> in ${bright}/var/folders/28/m1bxpc396210plmjl1kl4gzh0000gn/T/.xmake501/240513/_30B5E98FD1734C4383CE607874386DE7.cpp
if you want to get more verbose errors, please see:
-> /Users/wx/.xmake/cache/packages/2405/b/boost/1.84.0/installdir.failed/logs/install.txt
error: install failed!
The text was updated successfully, but these errors were encountered: