-
Notifications
You must be signed in to change notification settings - Fork 97
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-expat build error #60
Comments
I get a similar failure. Maybe I'm causing the error. I'm just giving node.js a test spin and don't know my way around. Base System Node Version Expat version 2.0.1 build error log snippet: gmake: Entering directory `/usr/home/jjm/src/node_modules/node-expat/build' |
+1, different config on Mac OSX
gyp http GET http://nodejs.org/dist/v0.8.14/node-v0.8.14.tar.gz npm ERR! System Darwin 12.2.1 |
try running |
after npm cache clean my node-gyp went from 0.8.3 to 0.8.4, but node-expat install failed with same type of "file format not recognized" message. [ ~/src]$ npm install node-expat
npm WARN package.json application-name@0.0.1 No README.md file found!
npm http GET https://registry.npmjs.org/node-expat
npm http 200 https://registry.npmjs.org/node-expat
npm http GET https://registry.npmjs.org/node-expat/-/node-expat-2.0.0.tgz
npm http 200 https://registry.npmjs.org/node-expat/-/node-expat-2.0.0.tgz
> node-expat@2.0.0 install /usr/home/jim/src/node_modules/node-expat
> node-gyp rebuild
gmake: Entering directory `/usr/home/jim/src/node_modules/node-expat/build'
CC(target) Release/obj.target/expat/deps/libexpat/lib/xmlparse.o
CC(target) Release/obj.target/expat/deps/libexpat/lib/xmltok.o
CC(target) Release/obj.target/expat/deps/libexpat/lib/xmlrole.o
AR(target) Release/obj.target/deps/libexpat/libexpat.a
CXX(target) Release/obj.target/node_expat/node-expat.o
SOLINK_MODULE(target) Release/obj.target/node_expat.node
/usr/bin/ld:Release/obj.target/deps/libexpat/libexpat.a: file format not recognized; treating as linker script
/usr/bin/ld:Release/obj.target/deps/libexpat/libexpat.a:1: syntax error
gmake: *** [Release/obj.target/node_expat.node] Error 1
gmake: Leaving directory `/usr/home/jim/src/node_modules/node-expat/build'
gyp ERR! build error
gyp ERR! stack Error: `gmake` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/home/jim/src/node_modules/node-gyp/lib/build.js:255:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:99:17)
gyp ERR! stack at Process._handle.onexit (child_process.js:678:10)
gyp ERR! System FreeBSD 9.1-RELEASE
gyp ERR! command "node" "/usr/home/jim/src/node_modules/.bin/node-gyp" "rebuild"
gyp ERR! cwd /usr/home/jim/src/node_modules/node-expat
gyp ERR! node -v v0.8.18
gyp ERR! node-gyp -v v0.8.4
gyp ERR! not ok
npm ERR! node-expat@2.0.0 install: `node-gyp rebuild`
npm ERR! `sh "-c" "node-gyp rebuild"` failed with 1
npm ERR!
npm ERR! Failed at the node-expat@2.0.0 install script.
npm ERR! This is most likely a problem with the node-expat 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 node-expat
npm ERR! There is likely additional logging output above.
npm ERR! System FreeBSD 9.1-RELEASE
npm ERR! command "node" "/usr/local/bin/npm" "install" "node-expat"
npm ERR! cwd /usr/home/jim/src
npm ERR! node -v v0.8.18
npm ERR! npm -v 1.2.4
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /usr/home/jim/src/npm-debug.log
npm ERR! not ok code 0 |
Ping @TooTallNate (#48) |
Can someone include the |
Does this help you help me? [jjm@nakamura ~/Jay/src]$ export v=1
[jjm@nakamura ~/Jay/src]$ npm -d install node-expat
npm info it worked if it ends with ok
npm info using npm@1.2.4
npm info using node@v0.8.20
npm info trying registry request attempt 1 at 21:16:22
npm http GET https://registry.npmjs.org/node-expat
npm http 304 https://registry.npmjs.org/node-expat
npm info install node-expat@2.0.0 into /usr/home/jjm/Jay/src
npm info installOne node-expat@2.0.0
npm info /usr/home/jjm/Jay/src/node_modules/node-expat unbuild
npm info preinstall node-expat@2.0.0
npm info build /usr/home/jjm/Jay/src/node_modules/node-expat
npm info linkStuff node-expat@2.0.0
npm info install node-expat@2.0.0
> node-expat@2.0.0 install /usr/home/jjm/Jay/src/node_modules/node-expat
> node-gyp rebuild
gyp info it worked if it ends with ok
gyp info using node-gyp@0.8.4
gyp info using node@0.8.20 | freebsd | x64
gyp info spawn python
gyp info spawn args [ '/usr/home/jjm/Jay/src/node_modules/node-gyp/gyp/gyp',
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 '/usr/home/jjm/Jay/src/node_modules/node-expat/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/home/jjm/Jay/src/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/jjm/.node-gyp/0.8.20/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/home/jjm/.node-gyp/0.8.20',
gyp info spawn args '-Dmodule_root_dir=/usr/home/jjm/Jay/src/node_modules/node-expat',
gyp info spawn args '--depth=.',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.' ]
gyp gmake: Entering directory `/usr/home/jjm/Jay/src/node_modules/node-expat/build'
info spawn gmake
CC(target) Release/obj.target/expat/deps/libexpat/lib/xmlparse.o
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
CC(target) Release/obj.target/expat/deps/libexpat/lib/xmltok.o
CC(target) Release/obj.target/expat/deps/libexpat/lib/xmlrole.o
AR(target) Release/obj.target/deps/libexpat/libexpat.a
CXX(target) Release/obj.target/node_expat/node-expat.o
SOLINK_MODULE(target) Release/obj.target/node_expat.node
/usr/bin/ld:Release/obj.target/deps/libexpat/libexpat.a: file format not recognized; treating as linker script
/usr/bin/ld:Release/obj.target/deps/libexpat/libexpat.a:1: syntax error
gmake: *** [Release/obj.target/node_expat.node] Error 1
gmake: Leaving directory `/usr/home/jjm/Jay/src/node_modules/node-expat/build'
gyp ERR! build error
gyp ERR! stack Error: `gmake` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/home/jjm/Jay/src/node_modules/node-gyp/lib/build.js:255:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:99:17)
gyp ERR! stack at Process._handle.onexit (child_process.js:678:10)
gyp ERR! System FreeBSD 9.1-RELEASE
gyp ERR! command "node" "/usr/home/jjm/Jay/src/node_modules/.bin/node-gyp" "rebuild"
gyp ERR! cwd /usr/home/jjm/Jay/src/node_modules/node-expat
gyp ERR! node -v v0.8.20
gyp ERR! node-gyp -v v0.8.4
gyp ERR! not ok
npm info node-expat@2.0.0 Failed to exec install script
npm info /usr/home/jjm/Jay/src/node_modules/node-expat unbuild
npm info preuninstall node-expat@2.0.0
npm info uninstall node-expat@2.0.0
npm info postuninstall node-expat@2.0.0
npm ERR! node-expat@2.0.0 install: `node-gyp rebuild`
npm ERR! `sh "-c" "node-gyp rebuild"` failed with 1
npm ERR!
npm ERR! Failed at the node-expat@2.0.0 install script.
npm ERR! This is most likely a problem with the node-expat 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 node-expat
npm ERR! There is likely additional logging output above.
npm ERR! System FreeBSD 9.1-RELEASE
npm ERR! command "node" "/usr/local/bin/npm" "-d" "install" "node-expat"
npm ERR! cwd /usr/home/jjm/Jay/src
npm ERR! node -v v0.8.20
npm ERR! npm -v 1.2.4
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /usr/home/jjm/Jay/src/npm-debug.log
npm ERR! not ok code 0 |
It needs to be |
Sorry, I redo with V=1. [jjm@rocky ~/src]$ export V=1
[jjm@rocky ~/src]$npm install -d node-expat
npm info it worked if it ends with ok
npm info using npm@1.2.4
npm info using node@v0.8.20
npm info trying registry request attempt 1 at 15:08:31
npm http GET https://registry.npmjs.org/node-expat
npm http 304 https://registry.npmjs.org/node-expat
npm info install node-expat@2.0.0 into /usr/home/jjm/src
npm info installOne node-expat@2.0.0
npm info /usr/home/jjm/src/node_modules/node-expat unbuild
npm info preinstall node-expat@2.0.0
npm info build /usr/home/jjm/src/node_modules/node-expat
npm info linkStuff node-expat@2.0.0
npm info install node-expat@2.0.0
> node-expat@2.0.0 install /usr/home/jjm/src/node_modules/node-expat
> node-gyp rebuild
gyp info it worked if it ends with ok
gyp info using node-gyp@0.8.4
gyp info using node@0.8.20 | freebsd | ia32
gyp info spawn python
gyp info spawn args [ '/usr/home/jjm/src/node_modules/node-gyp/gyp/gyp',
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 '/usr/home/jjm/src/node_modules/node-expat/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/home/jjm/src/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/jjm/.node-gyp/0.8.20/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/home/jjm/.node-gyp/0.8.20',
gyp info spawn args '-Dmodule_root_dir=/usr/home/jjm/src/node_modules/node-expat',
gyp info spawn args '--depth=.',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.' ]
gypgmake: Entering directory `/usr/home/jjm/src/node_modules/node-expat/build'
info spawn gmake
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
cc '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DPIC' '-DHAVE_EXPAT_CONFIG_H' '-DNDEBUG' -I/home/jjm/.node-gyp/0.8.20/src -I/home/jjm/.node-gyp/0.8.20/deps/uv/include -I/home/jjm/.node-gyp/0.8.20/deps/v8/include -I../deps/libexpat -I../deps/libexpat/lib -fPIC -Wall -pthread -m32 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-tree-sink -MMD -MF ./Release/.deps/Release/obj.target/expat/deps/libexpat/lib/xmlparse.o.d.raw -c -o Release/obj.target/expat/deps/libexpat/lib/xmlparse.o ../deps/libexpat/lib/xmlparse.c
cc '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DPIC' '-DHAVE_EXPAT_CONFIG_H' '-DNDEBUG' -I/home/jjm/.node-gyp/0.8.20/src -I/home/jjm/.node-gyp/0.8.20/deps/uv/include -I/home/jjm/.node-gyp/0.8.20/deps/v8/include -I../deps/libexpat -I../deps/libexpat/lib -fPIC -Wall -pthread -m32 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-tree-sink -MMD -MF ./Release/.deps/Release/obj.target/expat/deps/libexpat/lib/xmltok.o.d.raw -c -o Release/obj.target/expat/deps/libexpat/lib/xmltok.o ../deps/libexpat/lib/xmltok.c
cc '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DPIC' '-DHAVE_EXPAT_CONFIG_H' '-DNDEBUG' -I/home/jjm/.node-gyp/0.8.20/src -I/home/jjm/.node-gyp/0.8.20/deps/uv/include -I/home/jjm/.node-gyp/0.8.20/deps/v8/include -I../deps/libexpat -I../deps/libexpat/lib -fPIC -Wall -pthread -m32 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-tree-sink -MMD -MF ./Release/.deps/Release/obj.target/expat/deps/libexpat/lib/xmlrole.o.d.raw -c -o Release/obj.target/expat/deps/libexpat/lib/xmlrole.o ../deps/libexpat/lib/xmlrole.c
rm -f Release/obj.target/deps/libexpat/libexpat.a && ar crsT Release/obj.target/deps/libexpat/libexpat.a Release/obj.target/expat/deps/libexpat/lib/xmlparse.o Release/obj.target/expat/deps/libexpat/lib/xmltok.o Release/obj.target/expat/deps/libexpat/lib/xmlrole.o
g++ '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/jjm/.node-gyp/0.8.20/src -I/home/jjm/.node-gyp/0.8.20/deps/uv/include -I/home/jjm/.node-gyp/0.8.20/deps/v8/include -I../deps/libexpat -I../deps/libexpat/lib -fPIC -Wall -pthread -m32 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-tree-sink -fno-rtti -fno-exceptions -MMD -MF ./Release/.deps/Release/obj.target/node_expat/node-expat.o.d.raw -c -o Release/obj.target/node_expat/node-expat.o ../node-expat.cc
lockf ./Release/linker.lock g++ -shared -pthread -rdynamic -m32 -Wl,-soname=node_expat.node -o Release/obj.target/node_expat.node -Wl,--start-group Release/obj.target/node_expat/node-expat.o Release/obj.target/deps/libexpat/libexpat.a -Wl,--end-group
/usr/bin/ld:Release/obj.target/deps/libexpat/libexpat.a: file format not recognized; treating as linker script
/usr/bin/ld:Release/obj.target/deps/libexpat/libexpat.a:1: syntax error
gmake: *** [Release/obj.target/node_expat.node] Error 1
gmake: Leaving directory `/usr/home/jjm/src/node_modules/node-expat/build'
gyp ERR! build error
gyp ERR! stack Error: `gmake` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/home/jjm/src/node_modules/node-gyp/lib/build.js:255:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:99:17)
gyp ERR! stack at Process._handle.onexit (child_process.js:678:10)
gyp ERR! System FreeBSD 9.1-RELEASE
gyp ERR! command "node" "/usr/home/jjm/src/node_modules/.bin/node-gyp" "rebuild"
gyp ERR! cwd /usr/home/jjm/src/node_modules/node-expat
gyp ERR! node -v v0.8.20
gyp ERR! node-gyp -v v0.8.4
gyp ERR! not ok
npm info node-expat@2.0.0 Failed to exec install script
npm info /usr/home/jjm/src/node_modules/node-expat unbuild
npm info preuninstall node-expat@2.0.0
npm info uninstall node-expat@2.0.0
npm info postuninstall node-expat@2.0.0
npm ERR! node-expat@2.0.0 install: `node-gyp rebuild`
npm ERR! `sh "-c" "node-gyp rebuild"` failed with 1
npm ERR!
npm ERR! Failed at the node-expat@2.0.0 install script.
npm ERR! This is most likely a problem with the node-expat 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 node-expat
npm ERR! There is likely additional logging output above.
npm ERR! System FreeBSD 9.1-RELEASE
npm ERR! command "node" "/usr/local/bin/npm" "install" "-d" "node-expat"
npm ERR! cwd /usr/home/jjm/src
npm ERR! node -v v0.8.20
npm ERR! npm -v 1.2.4
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /usr/home/jjm/src/npm-debug.log
npm ERR! not ok code 0 |
Maybe this is more helpful? [jjm@rocky ~/src]$ export V=1
[jjm@rocky ~/src]$ node-gyp rebuild
gyp info it worked if it ends with ok
gyp info using node-gyp@0.8.4
gyp info using node@0.8.20 | freebsd | ia32
gyp info spawn python
gyp info spawn args [ '/usr/local/lib/node_modules/node-gyp/gyp/gyp',
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 '/usr/home/jjm/src/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/local/lib/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/jjm/.node-gyp/0.8.20/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/home/jjm/.node-gyp/0.8.20',
gyp info spawn args '-Dmodule_root_dir=/usr/home/jjm/src',
gyp info spawn args '--depth=.',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.' ]
gyp: binding.gyp not found (cwd: /usr/home/jjm/src) while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/node-gyp/lib/configure.js:416:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:99:17)
gyp ERR! stack at Process._handle.onexit (child_process.js:678:10)
gyp ERR! System FreeBSD 9.1-RELEASE
gyp ERR! command "node" "/usr/local/bin/node-gyp" "rebuild"
gyp ERR! cwd /usr/home/jjm/src
gyp ERR! node -v v0.8.20
gyp ERR! node-gyp -v v0.8.4
gyp ERR! not ok |
Same error using node 0.8.21, npm 1.2.12. [jjm@rocky:~/src] export V=1 && npm -d install node-expat
npm info it worked if it ends with ok
npm info using npm@1.2.12
npm info using node@v0.8.21
npm info trying registry request attempt 1 at 10:27:14
npm http GET https://registry.npmjs.org/node-expat
npm http 304 https://registry.npmjs.org/node-expat
npm info install node-expat@2.0.0 into /usr/home/jjm/src
npm info installOne node-expat@2.0.0
npm info /usr/home/jjm/src/node_modules/node-expat unbuild
npm info preinstall node-expat@2.0.0
npm info build /usr/home/jjm/src/node_modules/node-expat
npm info linkStuff node-expat@2.0.0
npm info install node-expat@2.0.0
> node-expat@2.0.0 install /usr/home/jjm/src/node_modules/node-expat
> node-gyp rebuild
gyp info it worked if it ends with ok
gyp info using node-gyp@0.8.4
gyp info using node@0.8.21 | freebsd | ia32
gyp info spawn python
gyp info spawn args [ '/usr/home/jjm/src/node_modules/node-gyp/gyp/gyp',
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 '/usr/home/jjm/src/node_modules/node-expat/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/home/jjm/src/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/jjm/.node-gyp/0.8.21/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/home/jjm/.node-gyp/0.8.21',
gyp info spawn args '-Dmodule_root_dir=/usr/home/jjm/src/node_modules/node-expat',
gyp info spawn args '--depth=.',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.' ]
gmake: Entering directory `/usr/home/jjm/src/node_modules/node-expat/build'
gyp cc '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DPIC' '-DHAVE_EXPAT_CONFIG_H' '-DNDEBUG' -I/home/jjm/.node-gyp/0.8.21/src -I/home/jjm/.node-gyp/0.8.21/deps/uv/include -I/home/jjm/.node-gyp/0.8.21/deps/v8/include -I../deps/libexpat -I../deps/libexpat/lib -fPIC -Wall -pthread -m32 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-tree-sink -MMD -MF ./Release/.deps/Release/obj.target/expat/deps/libexpat/lib/xmlparse.o.d.raw -c -o Release/obj.target/expat/deps/libexpat/lib/xmlparse.o ../deps/libexpat/lib/xmlparse.c
info spawn gmake
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
cc '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DPIC' '-DHAVE_EXPAT_CONFIG_H' '-DNDEBUG' -I/home/jjm/.node-gyp/0.8.21/src -I/home/jjm/.node-gyp/0.8.21/deps/uv/include -I/home/jjm/.node-gyp/0.8.21/deps/v8/include -I../deps/libexpat -I../deps/libexpat/lib -fPIC -Wall -pthread -m32 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-tree-sink -MMD -MF ./Release/.deps/Release/obj.target/expat/deps/libexpat/lib/xmltok.o.d.raw -c -o Release/obj.target/expat/deps/libexpat/lib/xmltok.o ../deps/libexpat/lib/xmltok.c
cc '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DPIC' '-DHAVE_EXPAT_CONFIG_H' '-DNDEBUG' -I/home/jjm/.node-gyp/0.8.21/src -I/home/jjm/.node-gyp/0.8.21/deps/uv/include -I/home/jjm/.node-gyp/0.8.21/deps/v8/include -I../deps/libexpat -I../deps/libexpat/lib -fPIC -Wall -pthread -m32 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-tree-sink -MMD -MF ./Release/.deps/Release/obj.target/expat/deps/libexpat/lib/xmlrole.o.d.raw -c -o Release/obj.target/expat/deps/libexpat/lib/xmlrole.o ../deps/libexpat/lib/xmlrole.c
rm -f Release/obj.target/deps/libexpat/libexpat.a && ar crsT Release/obj.target/deps/libexpat/libexpat.a Release/obj.target/expat/deps/libexpat/lib/xmlparse.o Release/obj.target/expat/deps/libexpat/lib/xmltok.o Release/obj.target/expat/deps/libexpat/lib/xmlrole.o
g++ '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/jjm/.node-gyp/0.8.21/src -I/home/jjm/.node-gyp/0.8.21/deps/uv/include -I/home/jjm/.node-gyp/0.8.21/deps/v8/include -I../deps/libexpat -I../deps/libexpat/lib -fPIC -Wall -pthread -m32 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-tree-sink -fno-rtti -fno-exceptions -MMD -MF ./Release/.deps/Release/obj.target/node_expat/node-expat.o.d.raw -c -o Release/obj.target/node_expat/node-expat.o ../node-expat.cc
lockf ./Release/linker.lock g++ -shared -pthread -rdynamic -m32 -Wl,-soname=node_expat.node -o Release/obj.target/node_expat.node -Wl,--start-group Release/obj.target/node_expat/node-expat.o Release/obj.target/deps/libexpat/libexpat.a -Wl,--end-group
/usr/bin/ld:Release/obj.target/deps/libexpat/libexpat.a: file format not recognized; treating as linker script
/usr/bin/ld:Release/obj.target/deps/libexpat/libexpat.a:1: syntax error
gmake: *** [Release/obj.target/node_expat.node] Error 1
gmake: Leaving directory `/usr/home/jjm/src/node_modules/node-expat/build
gyp ERR! build error
gyp ERR! stack Error: `gmake` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/home/jjm/src/node_modules/node-gyp/lib/build.js:255:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:99:17)
gyp ERR! stack at Process._handle.onexit (child_process.js:678:10)
gyp ERR! System FreeBSD 9.1-RELEASE
gyp ERR! command "node" "/usr/home/jjm/src/node_modules/.bin/node-gyp" "rebuild"
gyp ERR! cwd /usr/home/jjm/src/node_modules/node-expat
gyp ERR! node -v v0.8.21
gyp ERR! node-gyp -v v0.8.4
gyp ERR! not ok
npm info node-expat@2.0.0 Failed to exec install script
npm info /usr/home/jjm/src/node_modules/node-expat unbuild
npm info preuninstall node-expat@2.0.0
npm info uninstall node-expat@2.0.0
npm info postuninstall node-expat@2.0.0
npm ERR! node-expat@2.0.0 install: `node-gyp rebuild`
npm ERR! `sh "-c" "node-gyp rebuild"` failed with 1
npm ERR!
npm ERR! Failed at the node-expat@2.0.0 install script.
npm ERR! This is most likely a problem with the node-expat 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 node-expat
npm ERR! There is likely additional logging output above.
npm ERR! System FreeBSD 9.1-RELEASE
npm ERR! command "node" "/usr/local/bin/npm" "-d" "install" "node-expat"
npm ERR! cwd /usr/home/jjm/src
npm ERR! node -v v0.8.21
npm ERR! npm -v 1.2.12
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /usr/home/jjm/src/npm-debug.log
npm ERR! not ok code 0 |
Hi, Same problem here on an Odroid X2 running Linaro.
Hope this helps |
facing the same issue in centos |
Have you made sure that you have the local libexpat dev files. I got this error and then simply install the -dev package for libexpat for successingtons!
|
i don't have aptitude. With NPM, i get - 'libexpat1-dev' is not in the npm On Thu, Apr 25, 2013 at 3:10 AM, Stewart Robinson
|
how about |
@stewsnooze, thank you a lot! This helped me on Ubuntu. |
@javias for you it'll be |
Base system
CentOS 5.8 (Linux 2.6.18-308.4.1.el5)
Python 2.7.3
Node version
node-gyp 0.8.3
npm 1.2.2
node 0.8.7
RPM expat version
expat.i386-1.95.8-11.el5_8
expat.x86_64-1.95.8-11.el5_8
expat-devel.i386-1.95.8-11.el5_8
expat-devel.x86_64-1.95.8-11.el5_8
build error log
please help...
The text was updated successfully, but these errors were encountered: