Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-10140

CMake Error: Problem with archive_read_open_file(): Unrecognized archive format

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Resolved
    • None
    • None
    • build

    Description

      Hi All,

      We tried to build Mesos on Windows with VS2019. It failed to build due to "CUSTOMBUILD : CMake error : Problem with archive_read_open_file(): Unrecognized archive format [F:\gitP\apache\mesos\build_amd64\3rdparty\wclayer-WIP.vcxproj]" on Windows using MSVC. It can be reproduced on latest reversion d4634f4 on master branch. Could you help confirm? We use cmake version 3.17.2.

       

      Reproduce steps:

      1.  git clone -c core.autocrlf=true https://github.com/apache/mesos F:\gitP\apache\mesos
      2.  Open a VS 2019 x64 command prompt as admin and browse to F:\gitP\apache\mesos
      3.  mkdir build_amd64 && pushd build_amd64

      4.  cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_SYSTEM_VERSION=10.0.18362.0 -DENABLE_LIBEVENT=1 -DHAS_AUTHENTICATION=0 -DPATCHEXE_PATH="F:\tools\gnuwin32\bin" -T host=x64 ..

      5.  set CL=/D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING

      6.  msbuild /maxcpucount:4 /p:Platform=x64 /p:Configuration=Debug Mesos.sln /t:Rebuild

       

      ErrorMessage:

      manual run:

      F:\gitP\apache\mesos\build_amd64\3rdparty\wclayer-WIP\src>cmake --version
      cmake version 3.17.2

      CMake suite maintained and supported by Kitware (kitware.com/cmake).

      F:\gitP\apache\mesos\build_amd64\3rdparty\wclayer-WIP\src>cmake -E tar xjf archive.tar
      CMake Error: Problem with archive_read_open_file(): Unrecognized archive format
      CMake Error: Problem extracting tar: archive.tar

      build log: (see attachment)

      59>CUSTOMBUILD : CMake error : Problem with archive_read_open_file(): Unrecognized archive format [F:\gitP\apache\mesos\build_amd64\3rdparty\wclayer-WIP.vcxproj]
      59>CUSTOMBUILD : CMake error : Problem extracting tar: F:/gitP/apache/mesos/build_amd64/3rdparty/wclayer-WIP/src/archive.tar [F:\gitP\apache\mesos\build_amd64\3rdparty\wclayer-WIP.vcxproj]
      – extracting... [error clean up]
      CMake Error at wclayer-WIP-stamp/extract-wclayer-WIP.cmake:33 (message):
      59>CUSTOMBUILD : error : extract of [F:\gitP\apache\mesos\build_amd64\3rdparty\wclayer-WIP.vcxproj]
      'F:/gitP/apache/mesos/build_amd64/3rdparty/wclayer-WIP/src/archive.tar'
      failed

      Attachments

        1. mesos_build.log
          842 kB
          QuellaZhang

        Activity

          People

            Unassigned Unassigned
            QuellaZhang QuellaZhang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: