Skip to content

Can not build on windows 11 #4724

@aetos382

Description

@aetos382

What version of OR-Tools and what language are you using?
Version: main/stable
Language: C#

Which solver are you using (e.g. CP-SAT, Routing Solver, GLOP, BOP, Gurobi)

What operating system (Linux, Windows, ...) and version?
Windows 11

What did you do?
Steps to reproduce the behavior:

  1. git clone https://github.com/google/or-tools.git
  2. cd or-tools
  3. cmake -S . -B build -DBUILD_DEPS=ON -DBUILD_DOTNET=ON
  4. See error

What did you expect to see
The build system configured successfully.

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
I am using the latest VC++ 2022 and the tar preinstalled on Windows 11.
The output of tar --version is as follows
bsdtar 3.7.7 - libarchive 3.7.7 zlib/1.2.13.1-motley liblzma/5.4.3 bz2lib/1.0.8 libzstd/1.5.5

Also, I get an error when I try to extract boost-1.87.0-cmake.tar.gz with tar.

> 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.

Metadata

Metadata

Assignees

Labels

Build: CMakeCMake based build issueDependenciesPull requests that update a dependency fileHelp NeededModeling/Usage problemOS: WindowsWindows OS

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions