[meta-freescale] missing c++ library

PAPARO Nino (MM) nino.paparo at magnetimarelli.com
Thu Jul 25 08:52:27 PDT 2013


Hi,
I solved the issue by crosscompiling on the Host machine the npm modules I needed.
Regards,

Nino Paparo

From: meta-freescale-bounces at yoctoproject.org [mailto:meta-freescale-bounces at yoctoproject.org] On Behalf Of PAPARO Nino (MM)
Sent: Thursday, July 18, 2013 3:44 PM
To: meta-freescale at yoctoproject.org
Subject: [meta-freescale] missing c++ library

Hi,
I'm trying to compile nodejs can module on the sabrelite imx6, I managed to have a working nodejs server but I keep having issues with libc and stdlib.h

As stated below:


command : npm install -g can



make: Entering directory `/usr/lib/node_modules/can/build'

  CXX(target) Release/obj.target/can/src/raw.o

../src/raw.cc:21:20: fatal error: stdlib.h: No such file or directory

compilation terminated.

make: *** [Release/obj.target/can/src/raw.o] Error 1

make: Leaving directory `/usr/lib/node_modules/can/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:25)

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 Linux 3.0.35-1.1.0+g2dc5560

gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build"

gyp ERR! cwd /usr/lib/node_modules/can

gyp ERR! node -v v0.8.18

gyp ERR! node-gyp -v v0.8.2

gyp ERR! not ok



> can at 1.2.2<mailto:can at 1.2.2> preuninstall /usr/lib/node_modules/can

> rm -rf build/*



npm ERR! can at 1.2.2<mailto:can at 1.2.2> preinstall: `node-gyp configure && node-gyp build`

npm ERR! `sh "-c" "node-gyp configure && node-gyp build"` failed with 1

npm ERR!

npm ERR! Failed at the can at 1.2.2<mailto:can at 1.2.2> preinstall script.

npm ERR! This is most likely a problem with the can package,

npm ERR! not with npm itself.

npm ERR! Tell the author that this fails on your system:

npm ERR!     node-gyp configure && node-gyp build

npm ERR! You can get their info via:

npm ERR!     npm owner ls can

npm ERR! There is likely additional logging output above.



npm ERR! System Linux 3.0.35-1.1.0+g2dc5560

npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "-g" "can"

npm ERR! cwd /home/root

npm ERR! node -v v0.8.18

npm ERR! npm -v 1.2.2

npm ERR! code ELIFECYCLE

npm ERR!

npm ERR! Additional logging details can be found in:

npm ERR!     /home/root/npm-debug.log

npm ERR! not ok code 0

Which packaged should I bitbake and install to solve the missing library issue?

Regards,


____________________________________________________________
Nino Paparo
Specialist Engineer - TEORESI, Inc.
Software Engineer
Magneti Marelli Electronic Systems USA L.L.C.

[cid:image001.png at 01CE892D.6EE50700]    nino.paparo at magnetimarelli.com<mailto:nino.paparo at magnetimarelli.com>
[cid:image001.png at 01CE892D.6EE50700]    n.paparo at teoresi.us<mailto:n.paparo at teoresi.us>

Teoresi, Inc. is a Teoresi Group company

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20130725/d394275f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 206 bytes
Desc: image001.png
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20130725/d394275f/attachment.png>


More information about the meta-freescale mailing list