Can not build on Windows 11 (non-English) #4725
-
What version of OR-Tools and what language are you using? Which solver are you using (e.g. CP-SAT, Routing Solver, GLOP, BOP, Gurobi) What operating system (Linux, Windows, ...) and version? What did you do?
What did you expect to see What did you see instead? Performing download step (download, verify and extract) for 'boost-populate'
-- File already exists but no hash specified (use URL_HASH):
file='D:/Source/GitHub/aetos382/or-tools/build/_deps/boost-subbuild/boost-populate-prefix/src/boost-1.87.0-cmake.tar.gz'
Old file will be removed and new file downloaded from URL.
-- Downloading...
dst='D:/Source/GitHub/aetos382/or-tools/build/_deps/boost-subbuild/boost-populate-prefix/src/boost-1.87.0-cmake.tar.gz'
timeout='none'
inactivity timeout='none'
-- Using src='https://github.com/boostorg/boost/releases/download/boost-1.87.0/boost-1.87.0-cmake.tar.gz'
-- [download 0% complete]
-- [download 1% complete]
-- [download 2% complete]
...
-- [download 99% complete]
-- [download 100% complete]
-- Downloading... done
-- extracting...
src='D:/Source/GitHub/aetos382/or-tools/build/_deps/boost-subbuild/boost-populate-prefix/src/boost-1.87.0-cmake.tar.gz'
dst='D:/Source/GitHub/aetos382/or-tools/build/_deps/boost-src'
-- extracting... [tar xfz]
CUSTOMBUILD : CMake error : Problem with archive_write_header(): Invalid empty pathname [D:\Source\GitHub\aetos382\or-tools\build\_deps\boost-subbuild\boost-populate.vcxproj]
-- extracting... [error clean up]
CUSTOMBUILD : CMake error : Current file: [D:\Source\GitHub\aetos382\or-tools\build\_deps\boost-subbuild\boost-populate.vcxproj]
CUSTOMBUILD : CMake error : Problem extracting tar: D:/Source/GitHub/aetos382/or-tools/build/_deps/boost-subbuild/boost-populate-prefix/src/boost-1.87.0-cmake.tar.gz [D:\Source\GitHub\aetos382\or-tools\build\_deps\boost-subbuild\boost-populate.vcxproj]
CMake Error at boost-subbuild/boost-populate-prefix/src/boost-populate-stamp/extract-boost-populate.cmake:40 (message):
Extract of
'D:/Source/GitHub/aetos382/or-tools/build/_deps/boost-subbuild/boost-populate-prefix/src/boost-1.87.0-cmake.tar.gz'
failed Anything else we should know about your project / environment Also, I get an error when I try to extract > tar -xzf boost-1.87.0-cmake.tar.gz
boost-1.87.0/libs/wave/test/testwave/testfiles/utf8-test-テ淞オ邃「竏・: Invalid empty pathname: Unknown error
boost-1.87.0/libs/wave/test/testwave/testfiles/utf8-test-テ淞オ邃「竏・file.hpp: Invalid empty pathname: Unknown error
tar.exe: Error exit delayed from previous errors. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
The problem was avoided by doing the following. # ##############################################################################
# BOOST
# ##############################################################################
if(BUILD_Boost)
message(CHECK_START "Fetching Boost")
list(APPEND CMAKE_MESSAGE_INDENT " ")
FetchContent_Declare(
Boost
- URL
- https://github.com/boostorg/boost/releases/download/boost-1.87.0/boost-1.87.0-cmake.tar.gz
- USES_TERMINAL_DOWNLOAD TRUE
- DOWNLOAD_NO_EXTRACT FALSE
+ GIT_REPOSITORY "https://github.com/boostorg/boost.git"
+ GIT_TAG "boost-1.87.0"
+ GIT_SHALLOW TRUE
+ GIT_SUBMODULES_RECURSE TRUE
PATCH_COMMAND git apply --ignore-whitespace "${CMAKE_CURRENT_LIST_DIR}/../../patches/boost-1.87.0.patch"
)
set(BOOST_INCLUDE_LIBRARIES multiprecision serialization)
option(BOOST_SKIP_INSTALL_RULES NO)
set(BOOST_ENABLE_CMAKE ON)
set(BUILD_SHARED_LIBS OFF)
FetchContent_MakeAvailable(Boost)
set(BUILD_SHARED_LIBS ON)
list(POP_BACK CMAKE_MESSAGE_INDENT)
message(CHECK_PASS "fetched")
endif() https://github.com/google/or-tools/blob/v9.14/cmake/dependencies/CMakeLists.txt#L298-L320 |
Beta Was this translation helpful? Give feedback.
-
I tried this problem on the English version of Windows 11 and could not reproduce it. |
Beta Was this translation helpful? Give feedback.
-
Fixed on |
Beta Was this translation helpful? Give feedback.
Fixed on
main
.... c19897d