Wind River Support Network

HomeDefectsLIN5-4930
Fixed

LIN5-4930 : "ERROR: Function failed: nettools_do_patch_v2" occurs during building project after invoking configure with --enable-reconfig option

Created: Dec 16, 2013    Updated: Dec 19, 2017
Resolved Date: Dec 30, 2013
Found In Version: 5.0.1
Fix Version: 5.0.1.11
Severity: Severe
Applicable for: Wind River Linux 5
Component/s: Build & Config

Description

"ERROR: Function failed: nettools_do_patch_v2" occurs during building project after invoking configure with --enable-reconfig option.

Steps to Reproduce

1. Create a new project with the following configure command. In this case, the following command is invoked in the directory /home/WindRiver/workspace/qemuarma9/.

$WIND_LINUX_CONFIGURE --enable-board=qemuarma9 --enable-kernel=standard --enable-rootfs=glibc-std --with-sstate-dir=/home/WindRiver/workspace/sscache --enable-ccache=yes --with-ccache-dir=/home/WindRiver/workspace/ccache

2. Add packages with the following commands.

make -C build gdb.addpkg
make -C build ntp.addpkg
make -C build syslog-ng.addpkg
make -C build tnftp.addpkg
make -C build openssh.addpkg


3. Build the project with make command, and this build successfully finishes.

4. Reconfigure the project with the following command.

$WIND_LINUX_CONFIGURE --enable-board=qemuarma9 --enable-kernel=standard --enable-rootfs=glibc-std --enable-bootimage=tar.gz --enable-reconfig

5. Build the project with make command, and this build fails with the following error message.


OE Build Configuration:
BB_VERSION        = "1.17.1"
TARGET_ARCH       = "arm"
TARGET_OS         = "linux-gnueabi"
MACHINE           = "qemuarma9"
DISTRO            = "wrlinux"
DISTRO_VERSION    = "5.0.1.9"
TUNE_FEATURES     = "armv7a vfp neon thumb cortexa9"
TARGET_FPU        = "vfp-neon"
wrlinux           = "LB34_5.0.1_RCPL0009:414a585b42c0b402c4db450b8c269431d3c14bf8"
wrlcompat         = "LB34_5.0.1_RCPL0009:01bd350808c8b4522f2d5dd82b34fbd5167b5115"
wr-toolchain      = "LB34_5.0.1_RCPL0009:c7ea07ce317c6dff773a0b709fbac640fdc26d2b"
meta              = "LB34_5.0.1_RCPL0009:7ca447035bbdb78fa0e6663d359acb72828750a5"
oe-core-dl        
meta-downloads    = "<unknown>:<unknown>"
wr-kernel         = "LB34_5.0.1_RCPL0009:7f3bd5ea00b6e919d6a983e20230c96dbbd38527"
qemuarma9         = "LB34_5.0.1_RCPL0009:ea77aa4de567462b54cab83168e3b8ff20b137af"
wr-base           = "LB34_5.0.1_RCPL0009:23a2ca5703364246c21b43f8f23976b37d891cff"
wr-features       = "LB34_5.0.1_RCPL0009:38b1e6bf050821135d0550b69c83c70b690e8aba"
wr-tools-profile  = "LB34_5.0.1_RCPL0009:8d3c3f0f95b2a548d78c6190f6bd49175ab1c998"
wr-tools-debug    = "LB34_5.0.1_RCPL0009:318891b9f6cc09531f02a3b70d507239780dace6"
meta-networking   = "LB34_5.0.1_RCPL0009:76d7f62467130675a3f1828c87e290268862bf0a"
meta-webserver    = "LB34_5.0.1_RCPL0009:dd620548e005ee45b9af856d25dc615358731c09"
wr-prebuilts      
local             = "<unknown>:<unknown>"

NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: validating kernel configuration
[non-hardware (2)]: meta/cfg/standard/qemuarma9/specified_non_hdw.cfg
   This BSP sets config options that are possibly non-hardware related.

NOTE: [kconfig] clean configuration. No Warnings or Errors found.
ERROR: Function failed: nettools_do_patch_v2 (see /home/WindRiver/workspace/qemuarma9/bitbake_build/tmp/work/armv7a-vfp-neon-wrs-linux-gnueabi/net-tools-1.60-23-r4/temp/do_patch/log.do_patch.28145 for further information)
ERROR: Logfile of failure stored in: /home/WindRiver/workspace/qemuarma9/bitbake_build/tmp/work/armv7a-vfp-neon-wrs-linux-gnueabi/net-tools-1.60-23-r4/temp/do_patch/log.do_patch.28145
Log data follows:
| DEBUG: Executing python function do_patch
| DEBUG: Executing shell function nettools_do_patch_v2
| Removing patch patches/change-return-value-of-netstat-s-command.patch
| Restoring netstat.c
| 
| No patches applied
| No patch removed
| WARNING: /home/WindRiver/workspace/qemuarma9/bitbake_build/tmp/work/armv7a-vfp-neon-wrs-linux-gnueabi/net-tools-1.60-23-r4/temp/do_patch/run.do_patch.nettools_do_patch_v2.28145:108 exit 2 from
|   QUILT_PATCHES=/home/WindRiver/workspace/qemuarma9/bitbake_build/tmp/work/armv7a-vfp-neon-wrs-linux-gnueabi/net-tools-1.60-23-r4/net-tools-1.60/debian/patches quilt pop -a
| DEBUG: Python function do_patch finished
| ERROR: Function failed: nettools_do_patch_v2 (see /home/WindRiver/workspace/qemuarma9/bitbake_build/tmp/work/armv7a-vfp-neon-wrs-linux-gnueabi/net-tools-1.60-23-r4/temp/do_patch/log.do_patch.28145 for further information)
ERROR: Task 1542 (/home/WindRiver/workspace/qemuarma9/layers/oe-core/meta/recipes-extended/net-tools/net-tools_1.60-23.bb, do_patch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1938 tasks of which 861 didn't need to be rerun and 1 failed.
No currently running tasks (1938 of 3546)

Summary: 1 task failed:
  /home/WindRiver/workspace/qemuarma9/layers/oe-core/meta/recipes-extended/net-tools/net-tools_1.60-23.bb, do_patch
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
make: *** [export/qemuarma9-glibc-std-standard-dist.tar.gz] Error 1

Other Downloads


Live chat
Online