Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node-gyp rebuild error #1476

Closed
DenDix opened this issue Jun 18, 2015 · 20 comments
Closed

node-gyp rebuild error #1476

DenDix opened this issue Jun 18, 2015 · 20 comments

Comments

@DenDix
Copy link

DenDix commented Jun 18, 2015

I received an error when attempting run "npm install" the following is my terminal output:

npm WARN optional dep failed, continuing fsevents@0.3.6

kerberos@0.0.9 install /var/nodes/mykeystone/mendo/node_modules/keystone/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos
(node-gyp rebuild 2> builderror.log) || (exit 0)

bson@0.2.21 install /var/nodes/mykeystone/mendo/node_modules/keystone/node_modules/mongoose/node_modules/mongodb/node_modules/bson
(node-gyp rebuild 2> builderror.log) || (exit 0)

/

cld@2.4.0 install /var/nodes/mykeystone/mendo/node_modules/keystone/node_modules/keystone-utils/node_modules/limax/node_modules/cld
node-gyp rebuild

gyp ERR! build error
gyp ERR! stack Error: not found: make
gyp ERR! stack at F (/usr/lib/node_modules/npm/node_modules/which/which.js:43:28)
gyp ERR! stack at E (/usr/lib/node_modules/npm/node_modules/which/which.js:46:29)
gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/which.js:57:16
gyp ERR! stack at Object.oncomplete (evalmachine.:108:15)
gyp ERR! System Linux 3.13.0-48-generic
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /var/nodes/mykeystone/mendo/node_modules/keystone/node_modules/keystone-utils/node_modules/limax/node_modules/cld
gyp ERR! node -v v0.10.38
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok

npm ERR! cld@2.4.0 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the cld@2.4.0 install script.
npm ERR! This is most likely a problem with the cld package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls cld
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.13.0-48-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! cwd /var/nodes/mykeystone/mendo
npm ERR! node -v v0.10.38
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0

Any ideas?

@webteckie
Copy link
Contributor

@DenDix your host does not have the make tool installed. You need to install it according to the instructions for that host OS.

@DenDix
Copy link
Author

DenDix commented Jun 18, 2015

I am running ubuntu 14.04 LTS on Amazon Web Services. I can search for make tools, but if you could be more explicit as to exactly what I need to install that would be helpful. e.g. "npm install ???". Thanks for your help.

@webteckie
Copy link
Contributor

@DenDix I use the following on CentOS...it may give you a hint as to the equivalent in Ubuntu:

yum -y install gcc gcc-c++ make

@DenDix
Copy link
Author

DenDix commented Jun 18, 2015

Thanks for your help. I intalled make with "sudo apt-get install make". Then I ran "npm install" from my keystonejs project directory. It looks like I'm still missing packages to do the build. I got the following error:

npm WARN optional dep failed, continuing fsevents@0.3.6

kerberos@0.0.9 install /var/nodes/stone/mendo/node_modules/keystone/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos
(node-gyp rebuild 2> builderror.log) || (exit 0)

make: Entering directory /var/nodes/stone/mendo/node_modules/keystone/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build' CXX(target) Release/obj.target/kerberos/lib/kerberos.o make: Leaving directory/var/nodes/stone/mendo/node_modules/keystone/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build'

bson@0.2.21 install /var/nodes/stone/mendo/node_modules/keystone/node_modules/mongoose/node_modules/mongodb/node_modules/bson
(node-gyp rebuild 2> builderror.log) || (exit 0)

make: Entering directory `/var/nodes/stone/mendo/node_modules/keystone/node_modules/mongoose/node_modules/mongodb/node_modules/bson/build'
CXX(target) Release/obj.target/bson/ext/bson.o

make: Leaving directory `/var/nodes/stone/mendo/node_modules/keystone/node_modules/mongoose/node_modules/mongodb/node_modules/bson/build'

cld@2.4.0 install /var/nodes/stone/mendo/node_modules/keystone/node_modules/keystone-utils/node_modules/limax/node_modules/cld
node-gyp rebuild

make: Entering directory /var/nodes/stone/mendo/node_modules/keystone/node_modules/keystone-utils/node_modules/limax/node_modules/cld/build' CXX(target) Release/obj.target/cld-c/deps/cld/internal/cldutil.o make: g++: Command not found make: *** [Release/obj.target/cld-c/deps/cld/internal/cldutil.o] Error 127 make: Leaving directory/var/nodes/stone/mendo/node_modules/keystone/node_modules/keystone-utils/node_modules/limax/node_modules/cld/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Linux 3.13.0-48-generic
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /var/nodes/stone/mendo/node_modules/keystone/node_modules/keystone-utils/node_modules/limax/node_modules/cld
gyp ERR! node -v v0.10.38
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok

npm ERR! cld@2.4.0 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the cld@2.4.0 install script.
npm ERR! This is most likely a problem with the cld package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls cld
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.13.0-48-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! cwd /var/nodes/stone/mendo
npm ERR! node -v v0.10.38
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0

@DenDix
Copy link
Author

DenDix commented Jun 18, 2015

This seems to be relevant in the output:
make: g++: Command not found
Does it mean anything?

@WingedToaster
Copy link
Contributor

Did you maybe just perform a yum update and not reboot afterwards? I just had the same problem and did a reboot and tried npm install after it came back up and it worked like a charm.

@DenDix
Copy link
Author

DenDix commented Jun 18, 2015

"sudo apt-get install g++" did the trick. I can research it, but possibly since I've got someone to ask at the moment, how do I change the port from 3000 to 80, so I can see it on my browser? Regardless, thanks for your help.

@WingedToaster
Copy link
Contributor

sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3000

@DenDix
Copy link
Author

DenDix commented Jun 18, 2015

I was thinking more along the lines of the following:
keystone.set('key', 'value') keystone.set(port, 80)
http://keystonejs.com/docs/configuration/
But when I type this in on the console after starting keystone nothing happens.
I don't really want to mess with my iptables if I can avoid it. I have other things that I run on this server.

@DenDix
Copy link
Author

DenDix commented Jun 18, 2015

I tried putting "PORT=80" in the .env file, following what I read here: https://github.com/JedWatson/keystone-demo , but got a lot of errors. Maybe in .gitignore, comment out "ignore .env file"?

@WingedToaster
Copy link
Contributor

Looks like that's a server environment variable, not a keystone .env...maybe? I've always just rerouted...

try export PORT=80 in the command line and then restart the app.

@medv
Copy link

medv commented Jun 18, 2015

Bit late to the party, but on Ubuntu you should install package build-essential before installing node
sudo apt-get install build-essential
(http://packages.ubuntu.com/precise/build-essential)

As a sidenote, you should really use NVM to sidestep permissions spaghetti related to using sudo interchangeably. You should not need to use sudo to install global npm packages. If anybody comes across this in the future, here's a relevant article https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-an-ubuntu-14-04-server

@ghost
Copy link

ghost commented Jul 3, 2015

I've installed all of the above mentioned packages and am still getting the same error as the OP.. any ideas at all guys? Debug Below:

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:269:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 3.13.0-52-generic
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/user/ocean-wisdom/node_modules/keystone/node_modules/keystone-utils/node_modules/limax/node_modules/cld
gyp ERR! node -v v0.10.25
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok
npm info cld@2.4.3 Failed to exec install script
npm ERR! Linux 3.13.0-52-generic
npm ERR! argv "node" "/usr/local/bin/npm" "install" "--loglevel=info"
npm ERR! node v0.10.25
npm ERR! npm v2.12.1
npm ERR! code ELIFECYCLE

npm ERR! cld@2.4.3 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the cld@2.4.3 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the cld package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls cld
npm ERR! There is likely additional logging output above.
npm info preuninstall cld@2.4.3
npm info uninstall cld@2.4.3
npm info postuninstall cld@2.4.3
npm info preuninstall limax@1.1.0
npm info uninstall limax@1.1.0
npm info postuninstall limax@1.1.0
npm info preuninstall keystone-utils@0.2.0
npm info uninstall keystone-utils@0.2.0
npm info postuninstall keystone-utils@0.2.0
npm info preuninstall keystone@0.3.12
npm info uninstall keystone@0.3.12
npm info postuninstall keystone@0.3.12

npm ERR! Please include the following file with any support request:
npm ERR! /home/user/ocean-wisdom/npm-debug.log

@chuckwilliams37
Copy link

@DBSalvia Ditto!

UPDATE: Looks like it was a RAM issue - I bumped my Ubuntu server from 512MB to 2G RAM and this seems to have solved it.

Looks like cld needs to be revved:
dachev/node-cld#18

UPDATE: Submitted new issue to author:
dachev/node-cld#19

Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty

I confirmed that node-gyp, make, and build-essentials are installed on my cloud9 instance - just for the sake of testing I blew away my node-modules folder at the root of my project and ran "npm install --verbose". The results are as follows:

...
gyp verb cli [ 'node',
gyp verb cli '/home/ubuntu/.nvm/v0.10.35/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli 'rebuild' ]
gyp info using node-gyp@1.0.1
gyp info using node@0.10.35 | linux | x64
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.6\n"
gyp verb get node dir no --target version specified, falling back to host node version: v0.10.35
gyp verb command install [ 'v0.10.35' ]
gyp verb install input version string "v0.10.35"
gyp verb install installing version: 0.10.35
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.10.35
gyp verb build dir attempting to create "build" dir: /home/ubuntu/workspace/housegreening-cms/mean-green-machine/node_modules/keystone/node_modules/keystone-utils/node_modules/limax/node_modules/cld/build
gyp verb build dir "build" dir needed to be created? /home/ubuntu/workspace/housegreening-cms/mean-green-machine/node_modules/keystone/node_modules/keystone-utils/node_modules/limax/node_modules/cld/build
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: /home/ubuntu/workspace/housegreening-cms/mean-green-machine/node_modules/keystone/node_modules/keystone-utils/node_modules/limax/node_modules/cld/build/config.gypi
gyp verb config.gypi checking for gypi file: /home/ubuntu/workspace/housegreening-cms/mean-green-machine/node_modules/keystone/node_modules/keystone-utils/node_modules/limax/node_modules/cld/config.gypi
gyp verb common.gypi checking for gypi file: /home/ubuntu/workspace/housegreening-cms/mean-green-machine/node_modules/keystone/node_modules/keystone-utils/node_modules/limax/node_modules/cld/common.gypi
gyp verb gyp gyp format was not specified; forcing "make"
gyp info spawn python
gyp info spawn args [ '/home/ubuntu/.nvm/v0.10.35/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/ubuntu/workspace/housegreening-cms/mean-green-machine/node_modules/keystone/node_modules/keystone-utils/node_modules/limax/node_modules/cld/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/ubuntu/.nvm/v0.10.35/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/ubuntu/.node-gyp/0.10.35/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/home/ubuntu/.node-gyp/0.10.35',
gyp info spawn args '-Dmodule_root_dir=/home/ubuntu/workspace/housegreening-cms/mean-green-machine/node_modules/keystone/node_modules/keystone-utils/node_modules/limax/node_modules/cld',
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 x64
gyp verb node dev dir /home/ubuntu/.node-gyp/0.10.35
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/ubuntu/workspace/housegreening-cms/mean-green-machine/node_modules/keystone/node_modules/keystone-utils/node_modules/limax/node_modules/cld/build' g++ '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' -I/home/ubuntu/.node-gyp/0.10.35/src -I/home/ubuntu/.node-gyp/0.10.35/deps/uv/include -I/home/ubuntu/.node-gyp/0.10.35/deps/v8/include -I../deps/cld/internal -fPIC -Wall -Wextra -Wno-unused-parameter -pthread -m64 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-tree-sink -fno-omit-frame-pointer -fno-rtti -fno-exceptions -w -std=gnu++98 -MMD -MF ./Release/.deps/Release/obj.target/cld-c/deps/cld/internal/cldutil.o.d.raw -c -o Release/obj.target/cld-c/deps/cld/internal/cldutil.o ../deps/cld/internal/cldutil.cc g++ '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' -I/home/ubuntu/.node-gyp/0.10.35/src -I/home/ubuntu/.node-gyp/0.10.35/deps/uv/include -I/home/ubuntu/.node-gyp/0.10.35/deps/v8/include -I../deps/cld/internal -fPIC -Wall -Wextra -Wno-unused-parameter -pthread -m64 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-tree-sink -fno-omit-frame-pointer -fno-rtti -fno-exceptions -w -std=gnu++98 -MMD -MF ./Release/.deps/Release/obj.target/cld-c/deps/cld/internal/cldutil_shared.o.d.raw -c -o Release/obj.target/cld-c/deps/cld/internal/cldutil_shared.o ../deps/cld/internal/cldutil_shared.cc g++ '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' -I/home/ubuntu/.node-gyp/0.10.35/src -I/home/ubuntu/.node-gyp/0.10.35/deps/uv/include -I/home/ubuntu/.node-gyp/0.10.35/deps/v8/include -I../deps/cld/internal -fPIC -Wall -Wextra -Wno-unused-parameter -pthread -m64 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-tree-sink -fno-omit-frame-pointer -fno-rtti -fno-exceptions -w -std=gnu++98 -MMD -MF ./Release/.deps/Release/obj.target/cld-c/deps/cld/internal/compact_lang_det.o.d.raw -c -o Release/obj.target/cld-c/deps/cld/internal/compact_lang_det.o ../deps/cld/internal/compact_lang_det.cc g++ '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' -I/home/ubuntu/.node-gyp/0.10.35/src -I/home/ubuntu/.node-gyp/0.10.35/deps/uv/include -I/home/ubuntu/.node-gyp/0.10.35/deps/v8/include -I../deps/cld/internal -fPIC -Wall -Wextra -Wno-unused-parameter -pthread -m64 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-tree-sink -fno-omit-frame-pointer -fno-rtti -fno-exceptions -w -std=gnu++98 -MMD -MF ./Release/.deps/Release/obj.target/cld-c/deps/cld/internal/compact_lang_det_hint_code.o.d.raw -c -o Release/obj.target/cld-c/deps/cld/internal/compact_lang_det_hint_code.o ../deps/cld/internal/compact_lang_det_hint_code.cc g++ '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' -I/home/ubuntu/.node-gyp/0.10.35/src -I/home/ubuntu/.node-gyp/0.10.35/deps/uv/include -I/home/ubuntu/.node-gyp/0.10.35/deps/v8/include -I../deps/cld/internal -fPIC -Wall -Wextra -Wno-unused-parameter -pthread -m64 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-tree-sink -fno-omit-frame-pointer -fno-rtti -fno-exceptions -w -std=gnu++98 -MMD -MF ./Release/.deps/Release/obj.target/cld-c/deps/cld/internal/compact_lang_det_impl.o.d.raw -c -o Release/obj.target/cld-c/deps/cld/internal/compact_lang_det_impl.o ../deps/cld/internal/compact_lang_det_impl.cc g++ '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' -I/home/ubuntu/.node-gyp/0.10.35/src -I/home/ubuntu/.node-gyp/0.10.35/deps/uv/include -I/home/ubuntu/.node-gyp/0.10.35/deps/v8/include -I../deps/cld/internal -fPIC -Wall -Wextra -Wno-unused-parameter -pthread -m64 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-tree-sink -fno-omit-frame-pointer -fno-rtti -fno-exceptions -w -std=gnu++98 -MMD -MF ./Release/.deps/Release/obj.target/cld-c/deps/cld/internal/debug.o.d.raw -c -o Release/obj.target/cld-c/deps/cld/internal/debug.o ../deps/cld/internal/debug.cc g++ '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' -I/home/ubuntu/.node-gyp/0.10.35/src -I/home/ubuntu/.node-gyp/0.10.35/deps/uv/include -I/home/ubuntu/.node-gyp/0.10.35/deps/v8/include -I../deps/cld/internal -fPIC -Wall -Wextra -Wno-unused-parameter -pthread -m64 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-tree-sink -fno-omit-frame-pointer -fno-rtti -fno-exceptions -w -std=gnu++98 -MMD -MF ./Release/.deps/Release/obj.target/cld-c/deps/cld/internal/fixunicodevalue.o.d.raw -c -o Release/obj.target/cld-c/deps/cld/internal/fixunicodevalue.o ../deps/cld/internal/fixunicodevalue.cc g++ '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' -I/home/ubuntu/.node-gyp/0.10.35/src -I/home/ubuntu/.node-gyp/0.10.35/deps/uv/include -I/home/ubuntu/.node-gyp/0.10.35/deps/v8/include -I../deps/cld/internal -fPIC -Wall -Wextra -Wno-unused-parameter -pthread -m64 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-tree-sink -fno-omit-frame-pointer -fno-rtti -fno-exceptions -w -std=gnu++98 -MMD -MF ./Release/.deps/Release/obj.target/cld-c/deps/cld/internal/generated_entities.o.d.raw -c -o Release/obj.target/cld-c/deps/cld/internal/generated_entities.o ../deps/cld/internal/generated_entities.cc g++ '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' -I/home/ubuntu/.node-gyp/0.10.35/src -I/home/ubuntu/.node-gyp/0.10.35/deps/uv/include -I/home/ubuntu/.node-gyp/0.10.35/deps/v8/include -I../deps/cld/internal -fPIC -Wall -Wextra -Wno-unused-parameter -pthread -m64 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-tree-sink -fno-omit-frame-pointer -fno-rtti -fno-exceptions -w -std=gnu++98 -MMD -MF ./Release/.deps/Release/obj.target/cld-c/deps/cld/internal/generated_language.o.d.raw -c -o Release/obj.target/cld-c/deps/cld/internal/generated_language.o ../deps/cld/internal/generated_language.cc g++ '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' -I/home/ubuntu/.node-gyp/0.10.35/src -I/home/ubuntu/.node-gyp/0.10.35/deps/uv/include -I/home/ubuntu/.node-gyp/0.10.35/deps/v8/include -I../deps/cld/internal -fPIC -Wall -Wextra -Wno-unused-parameter -pthread -m64 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-tree-sink -fno-omit-frame-pointer -fno-rtti -fno-exceptions -w -std=gnu++98 -MMD -MF ./Release/.deps/Release/obj.target/cld-c/deps/cld/internal/generated_ulscript.o.d.raw -c -o Release/obj.target/cld-c/deps/cld/internal/generated_ulscript.o ../deps/cld/internal/generated_ulscript.cc g++ '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' -I/home/ubuntu/.node-gyp/0.10.35/src -I/home/ubuntu/.node-gyp/0.10.35/deps/uv/include -I/home/ubuntu/.node-gyp/0.10.35/deps/v8/include -I../deps/cld/internal -fPIC -Wall -Wextra -Wno-unused-parameter -pthread -m64 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-tree-sink -fno-omit-frame-pointer -fno-rtti -fno-exceptions -w -std=gnu++98 -MMD -MF ./Release/.deps/Release/obj.target/cld-c/deps/cld/internal/getonescriptspan.o.d.raw -c -o Release/obj.target/cld-c/deps/cld/internal/getonescriptspan.o ../deps/cld/internal/getonescriptspan.cc g++ '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' -I/home/ubuntu/.node-gyp/0.10.35/src -I/home/ubuntu/.node-gyp/0.10.35/deps/uv/include -I/home/ubuntu/.node-gyp/0.10.35/deps/v8/include -I../deps/cld/internal -fPIC -Wall -Wextra -Wno-unused-parameter -pthread -m64 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-tree-sink -fno-omit-frame-pointer -fno-rtti -fno-exceptions -w -std=gnu++98 -MMD -MF ./Release/.deps/Release/obj.target/cld-c/deps/cld/internal/lang_script.o.d.raw -c -o Release/obj.target/cld-c/deps/cld/internal/lang_script.o ../deps/cld/internal/lang_script.cc g++ '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' -I/home/ubuntu/.node-gyp/0.10.35/src -I/home/ubuntu/.node-gyp/0.10.35/deps/uv/include -I/home/ubuntu/.node-gyp/0.10.35/deps/v8/include -I../deps/cld/internal -fPIC -Wall -Wextra -Wno-unused-parameter -pthread -m64 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-tree-sink -fno-omit-frame-pointer -fno-rtti -fno-exceptions -w -std=gnu++98 -MMD -MF ./Release/.deps/Release/obj.target/cld-c/deps/cld/internal/offsetmap.o.d.raw -c -o Release/obj.target/cld-c/deps/cld/internal/offsetmap.o ../deps/cld/internal/offsetmap.cc g++ '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' -I/home/ubuntu/.node-gyp/0.10.35/src -I/home/ubuntu/.node-gyp/0.10.35/deps/uv/include -I/home/ubuntu/.node-gyp/0.10.35/deps/v8/include -I../deps/cld/internal -fPIC -Wall -Wextra -Wno-unused-parameter -pthread -m64 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-tree-sink -fno-omit-frame-pointer -fno-rtti -fno-exceptions -w -std=gnu++98 -MMD -MF ./Release/.deps/Release/obj.target/cld-c/deps/cld/internal/scoreonescriptspan.o.d.raw -c -o Release/obj.target/cld-c/deps/cld/internal/scoreonescriptspan.o ../deps/cld/internal/scoreonescriptspan.cc g++ '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' -I/home/ubuntu/.node-gyp/0.10.35/src -I/home/ubuntu/.node-gyp/0.10.35/deps/uv/include -I/home/ubuntu/.node-gyp/0.10.35/deps/v8/include -I../deps/cld/internal -fPIC -Wall -Wextra -Wno-unused-parameter -pthread -m64 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-tree-sink -fno-omit-frame-pointer -fno-rtti -fno-exceptions -w -std=gnu++98 -MMD -MF ./Release/.deps/Release/obj.target/cld-c/deps/cld/internal/tote.o.d.raw -c -o Release/obj.target/cld-c/deps/cld/internal/tote.o ../deps/cld/internal/tote.cc g++ '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' -I/home/ubuntu/.node-gyp/0.10.35/src -I/home/ubuntu/.node-gyp/0.10.35/deps/uv/include -I/home/ubuntu/.node-gyp/0.10.35/deps/v8/include -I../deps/cld/internal -fPIC -Wall -Wextra -Wno-unused-parameter -pthread -m64 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-tree-sink -fno-omit-frame-pointer -fno-rtti -fno-exceptions -w -std=gnu++98 -MMD -MF ./Release/.deps/Release/obj.target/cld-c/deps/cld/internal/utf8statetable.o.d.raw -c -o Release/obj.target/cld-c/deps/cld/internal/utf8statetable.o ../deps/cld/internal/utf8statetable.cc g++ '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' -I/home/ubuntu/.node-gyp/0.10.35/src -I/home/ubuntu/.node-gyp/0.10.35/deps/uv/include -I/home/ubuntu/.node-gyp/0.10.35/deps/v8/include -I../deps/cld/internal -fPIC -Wall -Wextra -Wno-unused-parameter -pthread -m64 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-tree-sink -fno-omit-frame-pointer -fno-rtti -fno-exceptions -w -std=gnu++98 -MMD -MF ./Release/.deps/Release/obj.target/cld-c/deps/cld/internal/cld_generated_cjk_uni_prop_80.o.d.raw -c -o Release/obj.target/cld-c/deps/cld/internal/cld_generated_cjk_uni_prop_80.o ../deps/cld/internal/cld_generated_cjk_uni_prop_80.cc g++ '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' -I/home/ubuntu/.node-gyp/0.10.35/src -I/home/ubuntu/.node-gyp/0.10.35/deps/uv/include -I/home/ubuntu/.node-gyp/0.10.35/deps/v8/include -I../deps/cld/internal -fPIC -Wall -Wextra -Wno-unused-parameter -pthread -m64 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-tree-sink -fno-omit-frame-pointer -fno-rtti -fno-exceptions -w -std=gnu++98 -MMD -MF ./Release/.deps/Release/obj.target/cld-c/deps/cld/internal/cld2_generated_cjk_compatible.o.d.raw -c -o Release/obj.target/cld-c/deps/cld/internal/cld2_generated_cjk_compatible.o ../deps/cld/internal/cld2_generated_cjk_compatible.cc g++ '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' -I/home/ubuntu/.node-gyp/0.10.35/src -I/home/ubuntu/.node-gyp/0.10.35/deps/uv/include -I/home/ubuntu/.node-gyp/0.10.35/deps/v8/include -I../deps/cld/internal -fPIC -Wall -Wextra -Wno-unused-parameter -pthread -m64 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-tree-sink -fno-omit-frame-pointer -fno-rtti -fno-exceptions -w -std=gnu++98 -MMD -MF ./Release/.deps/Release/obj.target/cld-c/deps/cld/internal/cld_generated_cjk_delta_bi_32.o.d.raw -c -o Release/obj.target/cld-c/deps/cld/internal/cld_generated_cjk_delta_bi_32.o ../deps/cld/internal/cld_generated_cjk_delta_bi_32.cc g++ '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' -I/home/ubuntu/.node-gyp/0.10.35/src -I/home/ubuntu/.node-gyp/0.10.35/deps/uv/include -I/home/ubuntu/.node-gyp/0.10.35/deps/v8/include -I../deps/cld/internal -fPIC -Wall -Wextra -Wno-unused-parameter -pthread -m64 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-tree-sink -fno-omit-frame-pointer -fno-rtti -fno-exceptions -w -std=gnu++98 -MMD -MF ./Release/.deps/Release/obj.target/cld-c/deps/cld/internal/generated_distinct_bi_0.o.d.raw -c -o Release/obj.target/cld-c/deps/cld/internal/generated_distinct_bi_0.o ../deps/cld/internal/generated_distinct_bi_0.cc g++ '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' -I/home/ubuntu/.node-gyp/0.10.35/src -I/home/ubuntu/.node-gyp/0.10.35/deps/uv/include -I/home/ubuntu/.node-gyp/0.10.35/deps/v8/include -I../deps/cld/internal -fPIC -Wall -Wextra -Wno-unused-parameter -pthread -m64 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-tree-sink -fno-omit-frame-pointer -fno-rtti -fno-exceptions -w -std=gnu++98 -MMD -MF ./Release/.deps/Release/obj.target/cld-c/deps/cld/internal/cld2_generated_quad0122.o.d.raw -c -o Release/obj.target/cld-c/deps/cld/internal/cld2_generated_quad0122.o ../deps/cld/internal/cld2_generated_quad0122.cc g++: internal compiler error: Killed (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions. make: *** [Release/obj.target/cld-c/deps/cld/internal/cld2_generated_quad0122.o] Error 4 make: Leaving directory/home/ubuntu/workspace/housegreening-cms/mean-green-machine/node_modules/keystone/node_modules/keystone-utils/node_modules/limax/node_modules/cld/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/ubuntu/.nvm/v0.10.35/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Linux 3.14.13-c9
gyp ERR! command "node" "/home/ubuntu/.nvm/v0.10.35/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/ubuntu/workspace/housegreening-cms/mean-green-machine/node_modules/keystone/node_modules/keystone-utils/node_modules/limax/node_modules/cld
gyp ERR! node -v v0.10.35
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok

npm verb unsafe-perm in lifecycle true
npm info cld@2.4.3 Failed to exec install script
npm verb about to build /home/ubuntu/workspace/housegreening-cms/mean-green-machine/node_modules/keystone/node_modules/keystone-utils/node_modules/limax
npm verb about to build /home/ubuntu/workspace/housegreening-cms/mean-green-machine/node_modules/keystone/node_modules/keystone-utils
npm verb about to build /home/ubuntu/workspace/housegreening-cms/mean-green-machine/node_modules/keystone
npm ERR! cld@2.4.3 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the cld@2.4.3 install script.
npm ERR! This is most likely a problem with the cld package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls cld
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.14.13-c9
npm ERR! command "/home/ubuntu/.nvm/v0.10.35/bin/node" "/home/ubuntu/.nvm/v0.10.35/bin/npm" "install" "--verbose"
npm ERR! cwd /home/ubuntu/workspace/housegreening-cms/mean-green-machine
npm ERR! node -v v0.10.35
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm verb exit [ 1, true ]
npm verb node_modules/keystone/node_modules/keystone-utils/node_modules/limax/node_modules/cld unbuild
npm info preuninstall cld@2.4.3
npm info uninstall cld@2.4.3
npm verb false,/home/ubuntu/workspace/housegreening-cms/mean-green-machine/node_modules,/home/ubuntu/workspace/housegreening-cms/mean-green-machine/node_modules/keystone/node_modules/keystone-utils/node_modules/limax/node_modules unbuild cld@2.4.3
npm info postuninstall cld@2.4.3
npm verb node_modules/keystone/node_modules/keystone-utils/node_modules/limax unbuild
npm info preuninstall limax@1.1.0
npm info uninstall limax@1.1.0
npm verb false,/home/ubuntu/workspace/housegreening-cms/mean-green-machine/node_modules,/home/ubuntu/workspace/housegreening-cms/mean-green-machine/node_modules/keystone/node_modules/keystone-utils/node_modules unbuild limax@1.1.0
npm info postuninstall limax@1.1.0
npm verb node_modules/keystone/node_modules/keystone-utils unbuild
npm info preuninstall keystone-utils@0.2.0
npm info uninstall keystone-utils@0.2.0
npm verb false,/home/ubuntu/workspace/housegreening-cms/mean-green-machine/node_modules,/home/ubuntu/workspace/housegreening-cms/mean-green-machine/node_modules/keystone/node_modules unbuild keystone-utils@0.2.0
npm info postuninstall keystone-utils@0.2.0
npm verb node_modules/keystone unbuild
npm info preuninstall keystone@0.3.12
npm info uninstall keystone@0.3.12
npm verb true,/home/ubuntu/workspace/housegreening-cms/mean-green-machine/node_modules,/home/ubuntu/workspace/housegreening-cms/mean-green-machine/node_modules unbuild keystone@0.3.12
npm info postuninstall keystone@0.3.12
npm ERR! not ok code 0

@ghost
Copy link

ghost commented Jul 6, 2015

@chuckwilliams37 also seemed to be a ram issue for me...

@morenoh149
Copy link
Contributor

@DBSalvia @chuckwilliams37 might want to add a note to https://github.com/keystonejs/keystone/wiki/Deployment-Checklist if this is true

@sachss
Copy link

sachss commented Jul 13, 2015

I am attempting to deploy on an Amazon EC2 t2.small instance with 2GiB of Memory and continue to receive this error. I see this has been closed as a memory issue on the CLD side.

Has anyone successfully resolved this issue on an EC2 instance?

@chuckwilliams37
Copy link

@sachss I was receiving that error until I completely deleted my project node_modules, then installed 'make' and 'node-gyp' and then re-ran 'npm install'.

@sachss
Copy link

sachss commented Jul 15, 2015

Thank you for your responses. The latest Limax build no longer depends on cld, which has removed this issue.

@tmilar
Copy link

tmilar commented Mar 24, 2016

Had this same problem, node version v4.4.0 , npm 3.8.2, Linux Mint 17.3 Cinnamon.

Then installed g++
sudo apt-get install g++

And worked like a charm! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants