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

xmake addrequires boost提示找不到toolchains #4043

Open
cgMaster opened this issue May 2, 2024 · 4 comments
Open

xmake addrequires boost提示找不到toolchains #4043

cgMaster opened this issue May 2, 2024 · 4 comments
Labels

Comments

@cgMaster
Copy link

cgMaster commented May 2, 2024

Xmake 版本

2.9.1

操作系统版本和架构

win11

描述问题

xmake addrequires boost提示找不到toolchains
xmake可以找到vs2022
1714667353547
编译过程中提示
1714667771622

期待的结果

正常安装boost依赖项

工程配置

add_requires("boost " .. boost_version, {
  system = false,
  debug = is_mode("debug"),
  configs = {
    shared = is_plat("windows"),
    multi = true,
    date_time = true,
    filesystem = true,
    serialization = true,
    system = false,
    python = false,
  },
})

附加信息和错误日志

checking for cl.exe ... C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.39.33519\bin\HostX64\x64\cl.exe
checking for Microsoft Visual Studio (x64) version ... 2022
checking for zig ... no
checking for zig ... no
checking for nim ... no
checking for nim ... no
checking for unzip ... no
checking for 7z ... C:\Program Files\xmake\winenv\bin\7z
checking for git ... ok
checking for gzip ... no
git rev-parse HEAD
git rev-parse HEAD
checking for xmake::doctest ... doctest 2.4.11
checking for xmake::pybind11 ... pybind11 v2.11.1
checking for xmake::hdf5 ... hdf5 1.12.2
checking for xmake::mysql ... mysql 8.0.21
checking for xmake::boost ... no
checking for xmake::fmt ... fmt 10.2.1
checking for xmake::spdlog ... spdlog v1.14.1
checking for xmake::sqlite3 ... sqlite3 3.43.0+200
checking for cmake ... no
checking for cmake ... no
checking for cmake ... no
checking for cmake ... C:\Program Files\CMake\bin\cmake
checking for xmake::flatbuffers ... flatbuffers v23.5.26
checking for xmake::nng ... nng 1.7.3
checking for xmake::nlohmann_json ... nlohmann_json v3.11.3
checking for xmake::openssl ... openssl 1.1.1-w
checking for xmake::zlib ... zlib v1.3.1
checking for xmake::cpp-httplib ... cpp-httplib 0.14.3
note: install or modify (m) these packages (pass -y to skip confirm)?
in xmake-repo:
  -> boost 1.81.0 [serialization:y, shared:y, date_time:y, system:n, runtimes:"MD", multi:y, pytho ..)
please input: y (y/n/m)
y
checking for ping ... ok
pinging the host(github.com) ... 107 ms
checking for curl ... C:\Program Files\xmake\winenv\bin\curl
C:\Program Files\xmake\winenv\bin\curl -SL -A "Xmake/2.9.1+dev.c2f2ad5d2 (Windows;) curl/8.2.1" https://hub.nuaa.cf/boostorg/boost/releases/download/boost-1.81.0/boost-1.81.0.tar.gz -o boost-1.81.0.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   162  100   162    0     0    237      0 --:--:-- --:--:-- --:--:--   238
100  114M  100  114M    0     0  9399k      0  0:00:12  0:00:12 --:--:-- 13.1M
C:\Program Files\xmake\winenv\bin\7z x -y boost-1.81.0.tar.gz -oC:\Users\Administrator\AppData\Local\Temp\.xmake\240503\_539B981DC2C84C7080A7111F6999FD80.tar

7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21

Scanning the drive for archives:
1 file, 119934475 bytes (115 MiB)

Extracting archive: boost-1.81.0.tar.gz
--
Path = boost-1.81.0.tar.gz
Type = gzip
Headers Size = 10

Everything is Ok

Size:       548147200
Compressed: 119934475
C:\Program Files\xmake\winenv\bin\7z x -y C:\Users\Administrator\AppData\Local\Temp\.xmake\240503\_539B981DC2C84C7080A7111F6999FD80.tar\boost-1.81.0.tar -osource.tmp

7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21

Scanning the drive for archives:
1 file, 548147200 bytes (523 MiB)

Extracting archive: C:\Users\Administrator\AppData\Local\Temp\.xmake\240503\_539B981DC2C84C7080A7111F6999FD80.tar\boost-1.81.0.tar
--
Path = C:\Users\Administrator\AppData\Local\Temp\.xmake\240503\_539B981DC2C84C7080A7111F6999FD80.tar\boost-1.81.0.tar
Type = tar
Physical Size = 548147200
Headers Size = 31352320
Code Page = UTF-8

Everything is Ok

Folders: 5125
Files: 54394
Size:       502545514
Compressed: 548147200
  => download https://hub.nuaa.cf/boostorg/boost/releases/download/boost-1.81.0/boost-1.81.0.tar.gz .. ok
checking for cl.exe ... C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.39.33519\bin\HostX64\x64\cl.exe
checking for the c++ compiler (cxx) ... cl.exe
bootstrap.bat msvc
Building Boost.Build engine
Call_If_Exists "bin\VCVARS32.BAT"
###
### Using 'msvc' toolset.
###

C:\Users\Administrator\AppData\Local\.xmake\cache\packages\2405\b\boost\1.81.0\source\tools\build\src\engine>"cl" /nologo /MP /MT /TP /Feb2 /wd4996 /O2 /GL /EHsc   -DNDEBUG  builtins.cpp class.cpp command.cpp compile.cpp constants.cpp cwd.cpp debug.cpp debugger.cpp execcmd.cpp execnt.cpp execunix.cpp filent.cpp filesys.cpp fileunix.cpp frames.cpp function.cpp glob.cpp hash.cpp hcache.cpp hdrmacro.cpp headers.cpp jam.cpp jamgram.cpp lists.cpp make.cpp make1.cpp md5.cpp mem.cpp modules.cpp native.cpp object.cpp option.cpp output.cpp parse.cpp pathnt.cpp pathsys.cpp pathunix.cpp regexp.cpp rules.cpp scan.cpp search.cpp jam_strings.cpp startup.cpp subst.cpp sysinfo.cpp timestamp.cpp variable.cpp w32_getreg.cpp modules/order.cpp modules/path.cpp modules/property-set.cpp modules/regex.cpp modules/sequence.cpp modules/set.cpp /link kernel32.lib advapi32.lib user32.lib
builtins.cpp
class.cpp
command.cpp
compile.cpp
constants.cpp
cwd.cpp
debug.cpp
debugger.cpp
execcmd.cpp
execnt.cpp
execunix.cpp
filent.cpp
filesys.cpp
fileunix.cpp
frames.cpp
function.cpp
glob.cpp
hash.cpp
hcache.cpp
hdrmacro.cpp
headers.cpp
jam.cpp
jamgram.cpp
lists.cpp
make.cpp
make1.cpp
md5.cpp
mem.cpp
modules.cpp
native.cpp
object.cpp
option.cpp
output.cpp
parse.cpp
pathnt.cpp
pathsys.cpp
pathunix.cpp
regexp.cpp
rules.cpp
scan.cpp
search.cpp
jam_strings.cpp
startup.cpp
subst.cpp
sysinfo.cpp
timestamp.cpp
variable.cpp
w32_getreg.cpp
order.cpp
path.cpp
property-set.cpp
regex.cpp
sequence.cpp
set.cpp
正在生成代码
已完成代码的生成

C:\Users\Administrator\AppData\Local\.xmake\cache\packages\2405\b\boost\1.81.0\source\tools\build\src\engine>dir *.exe
 驱动器 C 中的卷没有标签。
 卷的序列号是 52EF-0D19

 C:\Users\Administrator\AppData\Local\.xmake\cache\packages\2405\b\boost\1.81.0\source\tools\build\src\engine 的目录

2024/05/03  00:28           537,600 b2.exe
               1 个文件        537,600 字节
               0 个目录 37,380,866,048 可用字节

Generating Boost.Build configuration in project-config.jam for msvc...

Bootstrapping is done. To build, run:

    .\b2

    To generate header files, run:

    .\b2 headers

To adjust configuration, edit 'project-config.jam'.
Further information:

    - Command line help:
    .\b2 --help

    - Getting started guide:
    http://boost.org/more/getting_started/windows.html

    - Boost.Build documentation:
    http://www.boost.org/build/

checking for clang-cl.exe ... no
checking for clang-cl.exe ... no
checking for Microsoft Visual Studio (x64) version ... no
error: build toolchain not found!
  => install boost 1.81.0 .. failed
error: install failed!
warning: please use package:runtimes() or package:has_runtime() instead of package:config("vs_runtime")
@cgMaster cgMaster added the bug label May 2, 2024
@Issues-translate-bot
Copy link

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


Title: xmake addrequires boost prompts that toolchains cannot be found

@waruqi
Copy link
Member

waruqi commented May 9, 2024

贴下完整配置,你是不是切到 clang-cl 了? 去掉用 msvc 试试呢

@Issues-translate-bot
Copy link

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


Post the complete configuration. Have you switched to clang-cl? Try removing it and using msvc.

@waruqi waruqi transferred this issue from xmake-io/xmake May 16, 2024
@Issues-translate-bot
Copy link

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


Title: xmake addrequires boost prompts that toolchains cannot be found

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