cmake-js / boost-lib

Boost dependency manager for CMake.js based native modules
https://www.npmjs.com/package/boost-lib
MIT License
13 stars 8 forks source link

Boost download fails due to 'Unhandled stream error' #1

Closed jamsch0 closed 9 years ago

jamsch0 commented 9 years ago

I cannot get a native module I am creating to build, since the cmake-js rebuild fails to finish downloading Boost. I tried cloning your tutorial repository and had the same experience. Included below is the cmake-js output and a link to a gist of the full npm error log.

info CMD CLEAN
info RUN cmake -E remove_directory "C:\Users\toxicwolf\OneDrive\Documents\Development\cmake-js-tut-04-boost-module\build"
info CMD CONFIGURE
info RUN cmake "C:\Users\toxicwolf\OneDrive\Documents\Development\cmake-js-tut-04-boost-module" --no-warn-unused-cli -G"Visual Studio 14 2015 Win64" -DCMAKE_BUILD_TYPE="Release" -DCMAKE_JS_INC="C:\Users\toxicwolf\.cmake-js\iojs-x64\v2.3.1\src;C:\Users\toxicwolf\.cmake-js\iojs-x64\v2.3.1\deps\v8\include;C:\Users\toxicwolf\.cmake-js\iojs-x64\v2.3.1\deps\uv\include;C:\Users\toxicwolf\OneDrive\Documents\Development\cmake-js-tut-04-boost-module\node_modules\nan" -DNODE_RUNTIME="iojs" -DNODE_RUNTIMEVERSION="2.3.1" -DNODE_ARCH="x64" -DCMAKE_JS_LIB="C:\Users\toxicwolf\.cmake-js\iojs-x64\v2.3.1\win-x64\iojs.lib"
Not searching for unused variables given on the command line.
-- The C compiler identification is MSVC 19.0.23026.0
-- The CXX compiler identification is MSVC 19.0.23026.0
-- Check for working C compiler using: Visual Studio 14 2015 Win64
-- Check for working C compiler using: Visual Studio 14 2015 Win64 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Visual Studio 14 2015 Win64
-- Check for working CXX compiler using: Visual Studio 14 2015 Win64 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Require Boost Libs module started.
-- Required Boost version: >= 1.58.0
-- Required libs: coroutine
-- Boost Lib Installer starting.
-- Invoking boost-lib to download Boost >= 1.58.0.
info BOOST Searching for Boost >= 1.58.0 in 'C:\Users\toxicwolf\.cmake-js\boost'.
info BOOST Boost found in 'C:\Users\toxicwolf\.cmake-js\boost\1.58.0'.
info BOOST Downloading submodules of director 'libs'.
info BOOST Downloading submodules of director 'numeric'.
http BOOST Downloading: https://github.com/boostorg/numeric_conversion/archive/boost-1.58.0.tar.gz
http BOOST Downloading: https://github.com/boostorg/numeric_interval/archive/boost-1.58.0.tar.gz
http BOOST Downloading: https://github.com/boostorg/numeric_odeint/archive/boost-1.58.0.tar.gz
http BOOST Downloading: https://github.com/boostorg/numeric_ublas/archive/boost-1.58.0.tar.gz
stream.js:74
      throw er; // Unhandled stream error in pipe.
            ^
Error: incorrect header check
    at Zlib._handle.onerror (zlib.js:363:17)
CMake Error at node_modules/boost-lib/cmake/DownloadBoost.cmake:10 (message):
  Download error.
Call Stack (most recent call first):
  node_modules/boost-lib/cmake/BoostLibInstaller.cmake:23 (download_boost)
  node_modules/boost-lib/cmake/BoostLib.cmake:19 (boost_lib_installer)
  CMakeLists.txt:17 (require_boost_libs)

https://gist.github.com/toxicwolf/a476630506cff18b2b72

unbornchikken commented 9 years ago

There is something not right with boost 1.58 release, because its https://github.com/boostorg/numeric_ublas/archive/boost-1.58.0.tar file gives 404, despite it is registered as a valid submodule release file on github.

jamsch0 commented 9 years ago

Just tried 1.57 and 1.59, both of which suffer from the same issue. Do you know of a working version, or are all versions likely to be affected?

unbornchikken commented 9 years ago

1.58 worked at the time of boost-lib release for sure. I can ignore 404 submos, though. But they will not compile of course if your module depend on it.

jamsch0 commented 9 years ago

I see. Is there a workaround that I can use so I can at least get started developing my module, manually downloading the files perhaps?

unbornchikken commented 9 years ago

Sorry, I hadn't have the time to do a 404 skipper patch. I hope I can do it in this weekend. Or would you try to make a PR for handling this?

jamsch0 commented 9 years ago

I would if I knew what I was doing, but I'll wait for your patch instead, no rush.

unbornchikken commented 9 years ago

It has been tweaked in 0.9.2.