GithubHelp home page GithubHelp logo

compile error about node-libcurl HOT 8 CLOSED

jcmais avatar jcmais commented on July 22, 2024
compile error

from node-libcurl.

Comments (8)

JCMais avatar JCMais commented on July 22, 2024

Which version of the library you are trying to build? I suppose it's >0.3.0

from node-libcurl.

aberenyi avatar aberenyi commented on July 22, 2024

Yep, 0.4.0.

from node-libcurl.

pvblicltd avatar pvblicltd commented on July 22, 2024

same problem here, anything I can do to help? OSX fine, Linux it wont build

Node v0.12.1, NPM v2.5.1

Linux (basically a dist of Debian)

PRETTY_NAME="Raspbian GNU/Linux 7 (wheezy)"
NAME="Raspbian GNU/Linux"
VERSION_ID="7"
VERSION="7 (wheezy)"

Verbose OUtput

npm info it worked if it ends with ok
npm verb cli [ '/usr/local/bin/node',
npm verb cli '/usr/local/bin/npm',
npm verb cli 'install',
npm verb cli 'node-libcurl',
npm verb cli '--verbose',
npm verb cli '--unsafe-perm' ]
npm info using [email protected]
npm info using [email protected]
npm verb cache add spec node-libcurl@~0.4.0
npm verb addNamed node-libcurl@>=0.4.0 <0.5.0
npm verb addNameRange registry:https://registry.npmjs.org/node-libcurl not in flight; fetching
npm verb request uri https://registry.npmjs.org/node-libcurl
npm verb request no auth needed
npm info attempt registry request try #1 at 13:24:07
npm verb request id 34f1ad2bbb1c4a27
npm verb etag "6DWZTKFIN93J2NWVXWR0QKOLP"
npm http request GET https://registry.npmjs.org/node-libcurl
npm info retry will retry, error on last attempt: Error: getaddrinfo EAI_AGAIN
npm info attempt registry request try #2 at 13:24:38
npm verb etag "6DWZTKFIN93J2NWVXWR0QKOLP"
npm http request GET https://registry.npmjs.org/node-libcurl
npm info retry will retry, error on last attempt: Error: getaddrinfo EAI_AGAIN
npm info attempt registry request try #3 at 13:25:58
npm verb etag "6DWZTKFIN93J2NWVXWR0QKOLP"
npm http request GET https://registry.npmjs.org/node-libcurl
npm http 304 https://registry.npmjs.org/node-libcurl
npm verb etag https://registry.npmjs.org/node-libcurl from cache
npm verb get saving node-libcurl to /root/.npm/registry.npmjs.org/node-libcurl/.cache.json
npm verb addNamed [email protected]
npm verb afterAdd /root/.npm/node-libcurl/0.4.0/package/package.json not in flight; writing
npm verb afterAdd /root/.npm/node-libcurl/0.4.0/package/package.json written
npm info install [email protected] into /home/pi/network-app
npm info installOne [email protected]
npm verb installOne of node-libcurl to /home/pi/network-app not in flight; installing
npm verb lock using /root/.npm/_locks/node-libcurl-8bfa5c6d35e30f46.lock for /home/pi/network-app/node_modules/node-libcurl
npm verb unbuild node_modules/node-libcurl
npm verb gentlyRm vacuuming /home/pi/network-app/node_modules/node-libcurl
npm verb tar unpack /root/.npm/node-libcurl/0.4.0/package.tgz
npm verb tar unpacking to /home/pi/network-app/node_modules/node-libcurl
npm verb gentlyRm vacuuming /home/pi/network-app/node_modules/node-libcurl
npm info preinstall [email protected]
npm verb cache add spec [email protected]
npm verb cache add spec [email protected]
npm verb addNamed bindings@>=1.2.0 <1.3.0
npm verb addNameRange registry:https://registry.npmjs.org/bindings not in flight; fetching
npm verb addNamed nan@>=1.7.0 <1.8.0
npm verb addNameRange registry:https://registry.npmjs.org/nan not in flight; fetching
npm verb request uri https://registry.npmjs.org/bindings
npm verb request no auth needed
npm info attempt registry request try #1 at 13:26:02
npm verb etag "ADMJ9SS6EQD8EASND8DTMLB6V"
npm http request GET https://registry.npmjs.org/bindings
npm verb request uri https://registry.npmjs.org/nan
npm verb request no auth needed
npm info attempt registry request try #1 at 13:26:02
npm verb etag "9D70CGL7I2GVSPGK48NI768U9"
npm http request GET https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/bindings
npm verb etag https://registry.npmjs.org/bindings from cache
npm verb get saving bindings to /root/.npm/registry.npmjs.org/bindings/.cache.json
npm http 304 https://registry.npmjs.org/nan
npm verb etag https://registry.npmjs.org/nan from cache
npm verb get saving nan to /root/.npm/registry.npmjs.org/nan/.cache.json
npm verb addNamed [email protected]
npm verb addNamed [email protected]
npm verb afterAdd /root/.npm/nan/1.7.0/package/package.json not in flight; writing
npm verb afterAdd /root/.npm/bindings/1.2.1/package/package.json not in flight; writing
npm verb afterAdd /root/.npm/nan/1.7.0/package/package.json written
npm verb afterAdd /root/.npm/bindings/1.2.1/package/package.json written
npm info install [email protected] into /home/pi/network-app/node_modules/node-libcurl
npm info install [email protected] into /home/pi/network-app/node_modules/node-libcurl
npm info installOne [email protected]
npm verb installOne of nan to /home/pi/network-app/node_modules/node-libcurl not in flight; installing
npm info installOne [email protected]
npm verb installOne of bindings to /home/pi/network-app/node_modules/node-libcurl not in flight; installing
npm verb lock using /root/.npm/_locks/nan-2bf592c597a98654.lock for /home/pi/network-app/node_modules/node-libcurl/node_modules/nan
npm verb lock using /root/.npm/_locks/bindings-718001d07963b011.lock for /home/pi/network-app/node_modules/node-libcurl/node_modules/bindings
npm verb unbuild node_modules/node-libcurl/node_modules/nan
npm verb unbuild node_modules/node-libcurl/node_modules/bindings
npm verb gentlyRm vacuuming /home/pi/network-app/node_modules/node-libcurl/node_modules/nan
npm verb gentlyRm vacuuming /home/pi/network-app/node_modules/node-libcurl/node_modules/bindings
npm verb tar unpack /root/.npm/nan/1.7.0/package.tgz
npm verb tar unpacking to /home/pi/network-app/node_modules/node-libcurl/node_modules/nan
npm verb gentlyRm vacuuming /home/pi/network-app/node_modules/node-libcurl/node_modules/nan
npm verb tar unpack /root/.npm/bindings/1.2.1/package.tgz
npm verb tar unpacking to /home/pi/network-app/node_modules/node-libcurl/node_modules/bindings
npm verb gentlyRm vacuuming /home/pi/network-app/node_modules/node-libcurl/node_modules/bindings
npm info preinstall [email protected]
npm verb about to build /home/pi/network-app/node_modules/node-libcurl/node_modules/bindings
npm info build /home/pi/network-app/node_modules/node-libcurl/node_modules/bindings
npm verb linkStuff [ false,
npm verb linkStuff false,
npm verb linkStuff false,
npm verb linkStuff '/home/pi/network-app/node_modules/node-libcurl/node_modules' ]
npm info linkStuff [email protected]
npm verb linkBins [email protected]
npm verb linkMans [email protected]
npm verb rebuildBundles [email protected]
npm info install [email protected]
npm info postinstall [email protected]
npm verb unlock done using /root/.npm/_locks/bindings-718001d07963b011.lock for /home/pi/network-app/node_modules/node-libcurl/node_modules/bindings
npm info preinstall [email protected]
npm verb about to build /home/pi/network-app/node_modules/node-libcurl/node_modules/nan
npm info build /home/pi/network-app/node_modules/node-libcurl/node_modules/nan
npm verb linkStuff [ false,
npm verb linkStuff false,
npm verb linkStuff false,
npm verb linkStuff '/home/pi/network-app/node_modules/node-libcurl/node_modules' ]
npm info linkStuff [email protected]
npm verb linkBins [email protected]
npm verb linkMans [email protected]
npm verb rebuildBundles [email protected]
npm info install [email protected]
npm info postinstall [email protected]
npm verb unlock done using /root/.npm/_locks/nan-2bf592c597a98654.lock for /home/pi/network-app/node_modules/node-libcurl/node_modules/nan
npm verb about to build /home/pi/network-app/node_modules/node-libcurl
npm info build /home/pi/network-app/node_modules/node-libcurl
npm verb linkStuff [ false, false, false, '/home/pi/network-app/node_modules' ]
npm info linkStuff [email protected]
npm verb linkBins [email protected]
npm verb linkMans [email protected]
npm verb rebuildBundles [email protected]
npm verb rebuildBundles [ 'bindings', 'nan' ]
npm info install [email protected]

[email protected] install /home/pi/network-app/node_modules/node-libcurl
node tools/retrieve-win-deps && node tools/generate-stubs && node-gyp rebuild

gyp info it worked if it ends with ok
gyp verb cli [ 'node',
gyp verb cli '/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli 'rebuild' ]
gyp info using [email protected]
gyp info using [email protected] | linux | arm
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python" in the PATH
gyp verb which succeeded python /usr/bin/python
gyp verb check python version python -c "import platform; print(platform.python_version());" returned: "2.7.3\n"
gyp verb get node dir no --target version specified, falling back to host node version: v0.12.1
gyp verb command install [ 'v0.12.1' ]
gyp verb install input version string "v0.12.1"
gyp verb install installing version: 0.12.1
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 0.12.1
gyp verb build dir attempting to create "build" dir: /home/pi/network-app/node_modules/node-libcurl/build
gyp verb build dir "build" dir needed to be created? /home/pi/network-app/node_modules/node-libcurl/build
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: /home/pi/network-app/node_modules/node-libcurl/build/config.gypi
gyp verb config.gypi checking for gypi file: /home/pi/network-app/node_modules/node-libcurl/config.gypi
gyp verb common.gypi checking for gypi file: /home/pi/network-app/node_modules/node-libcurl/common.gypi
gyp verb gyp gyp format was not specified; forcing "make"
child_process: customFds option is deprecated, use stdio instead.
gyp info spawn python
gyp info spawn args [ '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/home/pi/network-app/node_modules/node-libcurl/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/root/.node-gyp/0.12.1/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/root/.node-gyp/0.12.1',
gyp info spawn args '-Dmodule_root_dir=/home/pi/network-app/node_modules/node-libcurl',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.' ]
gyp verb command build []
gyp verb build type Release
gyp verb architecture arm
gyp verb node dev dir /root/.node-gyp/0.12.1
gyp verb which succeeded for make /usr/bin/make
gyp info spawn make
gyp info spawn args [ 'V=1', 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory '/home/pi/network-app/node_modules/node-libcurl/build'
g++ '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/root/.node-gyp/0.12.1/src -I/root/.node-gyp/0.12.1/deps/uv/include -I/root/.node-gyp/0.12.1/deps/v8/include -I../node_modules/nan -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -std=c++11 -O2 -O3 -ffunction-sections -fdata-sections -fno-tree-vrp -fno-omit-frame-pointer -fno-rtti -fno-exceptions -MMD -MF ./Release/.deps/Release/obj.target/node-libcurl/src/node-libcurl.o.d.raw -c -o Release/obj.target/node-libcurl/src/node-libcurl.o ../src/node-libcurl.cc
cc1plus: error: unrecognized command line option ‘-std=c++11’
node-libcurl.target.mk:90: recipe for target 'Release/obj.target/node-libcurl/src/node-libcurl.o' failed
make: *** [Release/obj.target/node-libcurl/src/node-libcurl.o] Error 1
make: Leaving directory '/home/pi/network-app/node_modules/node-libcurl/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1067:12)
gyp ERR! System Linux 3.18.11-v7+
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pi/network-app/node_modules/node-libcurl
gyp ERR! node -v v0.12.1
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
npm verb unsafe-perm in lifecycle true
npm info [email protected] Failed to exec install script
npm verb unlock done using /root/.npm/_locks/node-libcurl-8bfa5c6d35e30f46.lock for /home/pi/network-app/node_modules/node-libcurl
npm verb stack Error: [email protected] install: node tools/retrieve-win-deps && node tools/generate-stubs && node-gyp rebuild
npm verb stack Exit status 1
npm verb stack at EventEmitter. (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:213:16)
npm verb stack at EventEmitter.emit (events.js:110:17)
npm verb stack at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:14:12)
npm verb stack at ChildProcess.emit (events.js:110:17)
npm verb stack at maybeClose (child_process.js:1008:16)
npm verb stack at Process.ChildProcess._handle.onexit (child_process.js:1080:5)
npm verb pkgid [email protected]
npm verb cwd /home/pi/network-app/node_modules
npm ERR! Linux 3.18.11-v7+
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "node-libcurl" "--verbose" "--unsafe-perm"
npm ERR! node v0.12.1
npm ERR! npm v2.5.1
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node tools/retrieve-win-deps && node tools/generate-stubs && node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node tools/retrieve-win-deps && node tools/generate-stubs && node-gyp rebuild'.
npm ERR! This is most likely a problem with the node-libcurl package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node tools/retrieve-win-deps && node tools/generate-stubs && node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls node-libcurl
npm ERR! There is likely additional logging output above.
npm verb exit [ 1, true ]
npm verb unbuild node_modules/node-libcurl
npm info preuninstall [email protected]
npm info uninstall [email protected]
npm verb unbuild rmStuff [email protected] from /home/pi/network-app/node_modules
npm info postuninstall [email protected]
npm verb gentlyRm vacuuming /home/pi/network-app/node_modules/node-libcurl

npm ERR! Please include the following file with any support request:
npm ERR! /home/pi/network-app/node_modules/npm-debug.log

from node-libcurl.

JCMais avatar JCMais commented on July 22, 2024

@pvblicltd you are having another error, update g++.

@aberenyi can you try version 0.4.1?

from node-libcurl.

pvblicltd avatar pvblicltd commented on July 22, 2024

@JCMais - version? (Just installed 4.9)

from node-libcurl.

aberenyi avatar aberenyi commented on July 22, 2024

@JCMais 0.4.1 builds fine with the following warnings:

 CXX(target) Release/obj.target/node-libcurl/src/Curl.o
In file included from ../src/Curl.cc:18:0:
../src/generated-stubs/curlAuth.h:16:1: warning: overflow in implicit constant conversion [-Woverflow]
 };
 ^
../src/generated-stubs/curlAuth.h:16:1: warning: overflow in implicit constant conversion [-Woverflow]

Cheers for the quick fix!

from node-libcurl.

pvblicltd avatar pvblicltd commented on July 22, 2024

I just built fine too - Raspberry pi G++ old :-)- Thanks JC!

from node-libcurl.

JCMais avatar JCMais commented on July 22, 2024

builds fine with the following warnings:

You can ignore those warnings.

@pvblicltd (:

from node-libcurl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.