Another build error

Hi, I keep getting this build failed with this error.

ERROR: Task (/home/webos/build-webos/meta-webosose/meta-webos/recipes-webos/nodejs-module-webos/nodejs-module-webos-dynaload.bb:do_configure) failed with exit code ‘1’

any ideas?

Check the log file that was created (I assume it would be in /home/webos/build-webos/BUILD/work/raspberrypi-3-webos-linux-gnueabi/nodejs-module-webos-dynaload/3.0.2-1-r4/temp for you and then look for log.do_configure.XXXXX). If it complaints about common.gypi not being found, go to the path where it expected to find it, and delete the entire .node-gyp directory. Then try to build it again. There is no need to delete the build artifacts.

1 Like

@futurejones Please remove entire .node-gyp directory as @Vipeax mentioned.

1 Like

Done that and now running another build. :grinning:

Thanks I’ll try that.

That fixed it! :sweat_smile: now for some testing :face_with_monocle:

I’m running with Ubuntu 16.04 x64 here (have been with Yocto/OE builds for past years). I needed to install NodeJS 6.11.2 at my end to get it to eventually build:

sudo npm install -g n and then sudo n 6.11.2

Removing the .node-gyp directory didn’t do the trick for me somehow.

Is the OPs error message related to this one that I got?

ERROR: nodejs-module-webos-dynaload-3.0.2-1-r4 do_configure: Function failed: do_configure (log file is located at /home/USER/build-webos/BUILD/work/raspberrypi3-webos-linux-gnueabi/nodejs-module-webos-dynaload/3.0.2-1-r4/temp/log.do_configure.15232)
ERROR: Logfile of failure stored in: /home/USER/build-webos/BUILD/work/raspberrypi3-webos-linux-gnueabi/nodejs-module-webos-dynaload/3.0.2-1-r4/temp/log.do_configure.15232
Log data follows:
| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Python function sysroot_cleansstate finished
| DEBUG: Executing shell function do_configure
| gyp info it worked if it ends with ok
| gyp info using node-gyp@0.12.2
| gyp info using node@6.11.2 | linux | x64
| gyp info spawn python
| gyp info spawn args [ '/home/USER/build-webos/BUILD/sysroots/x86_64-linux/usr/lib/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/USER/build-webos/BUILD/work/raspberrypi3-webos-linux-gnueabi/nodejs-module-webos-dynaload/3.0.2-1-r4/git/build/config.gypi',
| gyp info spawn args '-I',
| gyp info spawn args '/home/USER/build-webos/BUILD/sysroots/x86_64-linux/usr/lib/node_modules/node-gyp/addon.gypi',
| gyp info spawn args '-I',
| gyp info spawn args '/home/USER/.node-gyp/6.11.2/common.gypi',
| gyp info spawn args '-Dlibrary=shared_library',
| gyp info spawn args '-Dvisibility=default',
| gyp info spawn args '-Dnode_root_dir=/home/USER/.node-gyp/6.11.2',
| gyp info spawn args '-Dmodule_root_dir=/home/USER/build-webos/BUILD/work/raspberrypi3-webos-linux-gnueabi/nodejs-module-webos-dynaload/3.0.2-1-r4/git',
| gyp info spawn args '--depth=.',
| gyp info spawn args '--generator-output',
| gyp info spawn args 'build',
| gyp info spawn args '-Goutput_dir=.' ]
| (node:15329) DeprecationWarning: child_process: options.customFds option is deprecated. Use options.stdio instead.
| gyp: /home/USER/.node-gyp/6.11.2/common.gypi not found (cwd: /home/USER/build-webos/BUILD/work/raspberrypi3-webos-linux-gnueabi/nodejs-module-webos-dynaload/3.0.2-1-r4/git) while reading includes of binding.gyp
| gyp ERR! configure error
| gyp ERR! stack Error: `gyp` failed with exit code: 1
| gyp ERR! stack at ChildProcess.onCpExit (/home/USER/build-webos/BUILD/sysroots/x86_64-linux/usr/lib/node_modules/node-gyp/lib/configure.js:337:16)
| gyp ERR! stack at emitTwo (events.js:106:13)
| gyp ERR! stack at ChildProcess.emit (events.js:191:7)
| gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
| gyp ERR! System Linux 4.4.0-116-generic
| gyp ERR! command "/home/USER/build-webos/BUILD/sysroots/x86_64-linux/usr/bin/node" "/home/USER/build-webos/BUILD/sysroots/x86_64-linux/usr/bin/node-gyp" "--arch" "arm" "configure"
| gyp ERR! cwd /home/USER/build-webos/BUILD/work/raspberrypi3-webos-linux-gnueabi/nodejs-module-webos-dynaload/3.0.2-1-r4/git
| gyp ERR! node -v v6.11.2
| gyp ERR! node-gyp -v v0.12.2
| gyp ERR! not ok
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_configure (log file is located at /home/USER/build-webos/BUILD/work/raspberrypi3-webos-linux-gnueabi/nodejs-module-webos-dynaload/3.0.2-1-r4/temp/log.do_configure.15232)
ERROR: Task (/home/USER/build-webos/meta-webosose/meta-webos/recipes-webos/nodejs-module-webos/nodejs-module-webos-dynaload.bb:do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 4556 tasks of which 11 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 54.269089221954346 seconds
NOTE: Build completion summary:
NOTE:   do_populate_sysroot: 0.0% sstate reuse(0 setscene, 357 scratch)
NOTE:   do_package_qa: 0.0% sstate reuse(0 setscene, 209 scratch)
NOTE:   do_package: 0.0% sstate reuse(0 setscene, 214 scratch)
NOTE:   do_packagedata: 0.0% sstate reuse(0 setscene, 213 scratch)
NOTE:   do_package_write_ipk: 0.0% sstate reuse(0 setscene, 209 scratch)
NOTE:   do_populate_lic: 0.0% sstate reuse(0 setscene, 432 scratch)

Summary: 1 task failed:
  /home/USER/build-webos/meta-webosose/meta-webos/recipes-webos/nodejs-module-webos/nodejs-module-webos-dynaload.bb:do_configure
Summary: There were 9 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

I followed the instructions and even bought a new 250gb hard drive just for 14.04 for this build, but I am unsure if my result will lead to a working image.

Looks like it could be the same error.
Have you tried deleting the .node-gyp directory? (note: “.node-gyp” not “node-gyp” don’t forget the “.”)

I will try that now. How far back in the instructions do I need to backtrack for that?

First remove the .node-gyp dir

$ rm -rf /home/USER/.node-gyp

Then run the build command again

$ make webos-image

3 Likes

OKay, thanks! Will do.

@futurejones’s suggestion works in this time.
I fixed the bug internally and release it soon. Thanks

Great, it did succeed, with just some warning about bitbake being deprecated.

Thanks guys and gals.

I entered the $ rm -rf /home/USER/.node-gyp command, but an error occurs in image build. :smiling_face_with_tear:

The development environment is Ubuntu 18.04.