[C++] Error building bundled Boost on Windows
- Dominant language
- C++
- Stars
- 17.1k
- Forks
- 4.3k
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 88
Description
### Describe the bug, including details regarding any error messages, version, and platform.
On Windows x64, I get this error with `-DBOOST_SOURCE=BUNDLED`:
```
[29/323] Performing build step for 'boost_ep'
FAILED: boost_ep-prefix/src/boost_ep-stamp/boost_ep-build boost_ep-prefix/src/boost_ep/stage/lib/libboost_system-vc143-mt-gd-x64-1_81.lib boost_ep-prefix/src/boost_ep/stage/lib/libboost_filesystem-vc143-mt-gd-x64-1_81.lib C:/Users/pitro/arrow/cpp/build-test/boost_ep-prefix/src/boost_ep-stamp/boost_ep-build C:/Users/pitro/arrow/cpp/build-test/boost_ep-prefix/src/boost_ep/stage/lib/libboost_system-vc143-mt-gd-x64-1_81.lib C:/Users/pitro/arrow/cpp/build-test/boost_ep-prefix/src/boost_ep/stage/lib/libboost_filesystem-vc143-mt-gd-x64-1_81.lib
C:\WINDOWS\system32\cmd.exe /C "cd /D C:\Users\pitro\arrow\cpp\build-test\boost_ep-prefix\src\boost_ep && "C:\Program Files\CMake\bin\cmake.exe" -P C:/Users/pitro/arrow/cpp/build-test/boost_ep-prefix/src/boost_ep-stamp/boost_ep-build-DEBUG.cmake && "C:\Program Files\CMake\bin\cmake.exe" -E touch C:/Users/pitro/arrow/cpp/build-test/boost_ep-prefix/src/boost_ep-stamp/boost_ep-build"
CMake Error at C:/Users/pitro/arrow/cpp/build-test/boost_ep-prefix/src/boost_ep-stamp/boost_ep-build-DEBUG.cmake:37 (message):
Command failed: 1
'./b2' '-j8' 'link=static' 'variant=debug' 'toolset=msvc-14.3' '--with-filesystem' '--with-system'
See also
C:/Users/pitro/arrow/cpp/build-test/boost_ep-prefix/src/boost_ep-stamp/boost_ep-build-*.log
-- stdout output is:
Performing configuration checks
- default address-model : none [1]
- default architecture : none [1]
Building the Boost C++ Libraries.
- has std::atomic_ref : no [2]
- has statx : no [2]
- has statx syscall : no [2]
- has BCrypt API : no [2]
- is Windows CE : no [2]
- has init_priority attribute : no [2]
- has stat::st_blksize : no [2]
- has stat::st_mtim : no [2]
- has stat::st_mtimensec : no [2]
- has stat::st_mtimespec : no [2]
- has stat::st_birthtim : no [2]
- has stat::st_birthtimensec : no [2]
- has stat::st_birthtimespec : no [2]
- has fdopendir(O_NOFOLLOW) : no [2]
- has POSIX *at APIs : no [2]
- x86 : no [2]
- arm : no [2]
- mips1 : no [2]
- power : no [2]
- sparc : no [2]
- has synchronization.lib : no [2]
- has std::atomic_ref : no [3]
- has statx : no [3]
- has statx syscall : no [3]
- has BCrypt API : no [3]
- is Windows CE : no [3]
- has init_priority attribute : no [3]
- has stat::st_blksize : no [3]
- has stat::st_mtim : no [3]
- has stat::st_mtimensec : no [3]
- has stat::st_mtimespec : no [3]
- has stat::st_birthtim : no [3]
- has stat::st_birthtimensec : no [3]
- has stat::st_birthtimespec : no [3]
- has fdopendir(O_NOFOLLOW) : no [3]
- has POSIX *at APIs : no [3]
- x86 : no [3]
- arm : no [3]
- mips1 : no [3]
- power : no [3]
- sparc : no [3]
- has synchronization.lib : no [3]
error: Name clash for 'libboost_atomic-vc143-mt-gd-1_81.lib'
error:
error: Tried to build the target twice, with property sets having
error: these incompatible properties:
error:
error: - 32
error: - 64
error:
error: Please make sure to have consistent requirements for these
error: properties everywhere in your project, especially for install
error: targets.
```
### Component(s)
C++
Contributor guide
Assessment
This issue has not been assessed yet.