wisk / medusa

An open source interactive disassembler
Other
1.04k stars 92 forks source link

Error when running cmake: extracting cvpixelbuffer archive failed #70

Open dnivra opened 7 years ago

dnivra commented 7 years ago

I am trying to build the dev branch(commit: adb3b54) on Ubuntu 16.04.1 and I encounter the following error:

-- downloading...
     src='https://github.com/hunter-packages/Qt/releases/download/v5.5.1-cvpixelbuffer-2-p9/hunter-5.5.1-cvpixelbuffer-2.7z'
     dst='/home/introssoc/.hunter/_Base/Download/Qt/5.5.1-cvpixelbuffer-2-p9/da86822/hunter-5.5.1-cvpixelbuffer-2.7z'
     timeout='none'
<removed few download progress output>
-- [download 100% complete]
-- downloading... done
-- verifying file...
     file='/home/introssoc/.hunter/_Base/Download/Qt/5.5.1-cvpixelbuffer-2-p9/da86822/hunter-5.5.1-cvpixelbuffer-2.7z'
-- verifying file... done
-- extracting...
     src='/home/introssoc/.hunter/_Base/Download/Qt/5.5.1-cvpixelbuffer-2-p9/da86822/hunter-5.5.1-cvpixelbuffer-2.7z'
     dst='/home/introssoc/.hunter/_Base/8c538a0/a1b471c/15fdb4a/QtBuild/10'
-- extracting... [tar xfz]
CMake Error: Problem with archive_read_next_header(): Damaged 7-Zip archive
CMake Error: Problem extracting tar: /home/introssoc/.hunter/_Base/Download/Qt/5.5.1-cvpixelbuffer-2-p9/da86822/hunter-5.5.1-cvpixelbuffer-2.7z
-- extracting... [error clean up]
CMake Error at /home/introssoc/.hunter/_Base/8c538a0/a1b471c/15fdb4a/Build/Qt/__qtbase/Build/Qt-qtbase-prefix/src/Qt-qtbase-stamp/extract-Qt-qtbase.cmake:33 (message):
  error: extract of
  '/home/introssoc/.hunter/_Base/Download/Qt/5.5.1-cvpixelbuffer-2-p9/da86822/hunter-5.5.1-cvpixelbuffer-2.7z'
  failed

I think the wrong command is being used[extracting... [tar xfz]] to extract a 7zip archive - the archive is not damaged in any way since I could extract it's contents using the file explorer.

dnivra commented 7 years ago

Also, is there a temporary workaround for this issue using which the build can resume? I tried manually extracting the archive to QtBuild/10 but cmake still attempts to download, verify, extract and compile.

wisk commented 7 years ago

Hello dnivra,

I think this is a issue with CMake, if you use a up to date version, CMake is able to decompress it correctly. If you could tell me your CMake version, I could give a try.

Thanks for reporting.

dnivra commented 7 years ago

Hello wisk, Thanks for the response! I'm using cmake version 3.5.1: the version available in Ubuntu 16.04.

dnivra commented 7 years ago

I noticed just now that #68 is reporting the exact same issue but on a different version of Ubuntu.

dnivra commented 7 years ago

Hi wisk, Any update on this issue? If it is indeed a cmake issue, perhaps a cmake version check should be added when cmake is run?

dnivra commented 7 years ago

Seems like it is a cmake version issue: cmake 3.8.0 decompresses the file correctly. I think cmake has a version check feature which would abort if running version isn't new enough. Adding that should fix the problem.