generic-poky/meta/recipes-devtools/gcc
Robert Yang e53c8719ba gcc-source.inc: fix STAMPCLEAN to avoid race issue
Fixed race issue when build more than one gcc-source and inherit
rm_work, for example:
$ bitbake gcc-source-4.9.2 gcc-source-5.1.0

File "/path/to/bitbake/lib/bb/build.py", line 512, in exec_task
  return _exec_task(fn, task, d, quieterr)
File "/path/to/bitbake/lib/bb/build.py", line 489, in _exec_task
  make_stamp(task, localdata)
File "/path/to/bitbake/lib/bb/build.py", line 599, in make_stamp
  os.unlink(name)
OSError: [Errno 2] No such file or directory: '/path/to/tmp/stamps/work-shared/gcc-4.9.2-r0.do_rm_work_all.02cf1ed9b79d4edb0a51d3b913b7f9ba'

This is because make_stamp() uses glob.glob() to remove the old stamps
before create the new one, when gcc-source-5.1.0 removes gcc-4.9.2-r0's
stamp, we may get the error.

We can't use deltask do_rm_work_all as do_rm_work since it is a
recrdeptask, otherwise:
ERROR: Command execution failed: Traceback (most recent call last):
  File "/path/to/bitbake/lib/bb/command.py", line 102, in runAsyncCommand
    commandmethod(self.cmds_async, self, options)
  File "/path/to/bitbake/lib/bb/command.py", line 324, in generateDotGraph
    command.cooker.generateDotGraphFiles(pkgs_to_build, task)
  File "/path/to/bitbake/lib/bb/cooker.py", line 847, in generateDotGraphFiles
    depgraph = self.generateTaskDepTreeData(pkgs_to_build, task)
  File "/path/to/bitbake/lib/bb/cooker.py", line 672, in generateTaskDepTreeData
    rq.rqdata.prepare()
  File "/path/to/bitbake/lib/bb/runqueue.py", line 587, in prepare
    generate_recdeps(dep)
  File "/path/to/bitbake/lib/bb/runqueue.py", line 575, in generate_recdeps
    add_resolved_dependencies([taskData.tasks_fnid[t]], tasknames, newdeps)
TypeError: list indices must be integers, not NoneType

Update STAMPCLEAN to contain ${PV} to fix the problem.

(From OE-Core rev: 9099d46a46ee511d1b7e496472c5b973e8e8feaf)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-06-11 23:59:18 +01:00
..
gcc-4.8 gcc-4.8: Upgrade 4.8.2 -> 4.8.4 2015-04-08 10:53:31 +01:00
gcc-4.9 gcc-4.9, gcc-5: Use variable SYSTEMLIBS_DIR instead of hardcoding it for aarch64 2015-05-09 22:26:44 +01:00
gcc-5.1 gcc5: Add back g++ sysroot patch 2015-05-14 11:43:56 +01:00
gcc-4.8.inc gcc-4.8: Upgrade 4.8.2 -> 4.8.4 2015-04-08 10:53:31 +01:00
gcc-4.9.inc gcc-4.9, gcc-5: Use variable SYSTEMLIBS_DIR instead of hardcoding it for aarch64 2015-05-09 22:26:44 +01:00
gcc-5.1.inc gcc5: Add back g++ sysroot patch 2015-05-14 11:43:56 +01:00
gcc-common.inc gcc: Rework shared work 2014-12-03 12:23:56 +00:00
gcc-configure-common.inc gcc-configure-common.inc: remove ac_cv_path_SED 2015-02-08 08:00:25 +00:00
gcc-cross-canadian.inc gcc-cross-canadian: Enable stripping and packaging of binaries 2015-03-20 23:56:06 +00:00
gcc-cross-canadian_4.8.bb gcc-cross-canadian: Merge 4.7 and 4.8 recipes into common include 2013-08-23 16:20:12 +01:00
gcc-cross-canadian_4.9.bb gcc: Add 4.9 recipes 2014-05-06 17:59:15 +01:00
gcc-cross-canadian_5.1.bb gcc: Add 5 recipes 2015-05-09 22:26:44 +01:00
gcc-cross-initial.inc gcc: poison default sysroot path 2014-10-30 13:01:21 +00:00
gcc-cross-initial_4.8.bb gcc-4.8: Add recipes 2013-04-22 14:45:04 +01:00
gcc-cross-initial_4.9.bb gcc: Add 4.9 recipes 2014-05-06 17:59:15 +01:00
gcc-cross-initial_5.1.bb gcc: Add 5 recipes 2015-05-09 22:26:44 +01:00
gcc-cross.inc gcc: Fix intermittent failures during configure 2014-11-09 10:21:20 +00:00
gcc-cross_4.8.bb gcc-cross: Fold common configuration into gcc-cross.inc 2013-08-23 16:20:12 +01:00
gcc-cross_4.9.bb gcc: Add 4.9 recipes 2014-05-06 17:59:15 +01:00
gcc-cross_5.1.bb gcc: Add 5 recipes 2015-05-09 22:26:44 +01:00
gcc-crosssdk-initial.inc binutils/gcc/gdb: Add TARGET_ARCH to PN for all cross recipes 2014-04-30 16:39:06 +01:00
gcc-crosssdk-initial_4.8.bb gcc-cross-initial: Fold common configuration into gcc-cross-initial.inc 2013-08-23 16:20:12 +01:00
gcc-crosssdk-initial_4.9.bb gcc: Add 4.9 recipes 2014-05-06 17:59:15 +01:00
gcc-crosssdk-initial_5.1.bb gcc: Add 5 recipes 2015-05-09 22:26:44 +01:00
gcc-crosssdk.inc binutils/gcc/gdb: Add TARGET_ARCH to PN for all cross recipes 2014-04-30 16:39:06 +01:00
gcc-crosssdk_4.8.bb gcc-4.8: Add recipes 2013-04-22 14:45:04 +01:00
gcc-crosssdk_4.9.bb gcc: Add 4.9 recipes 2014-05-06 17:59:15 +01:00
gcc-crosssdk_5.1.bb gcc: Add 5 recipes 2015-05-09 22:26:44 +01:00
gcc-multilib-config.inc gcc: Fix gcc-multilib-config comparison 2014-08-02 09:26:17 +01:00
gcc-runtime.inc gcc-runtime: Remove libgfortran data from receipe 2015-01-23 11:36:31 +00:00
gcc-runtime_4.8.bb gcc-*-runtime.inc: Fold configuration into gcc-runtime.inc 2013-08-23 16:20:13 +01:00
gcc-runtime_4.9.bb gcc: Add 4.9 recipes 2014-05-06 17:59:15 +01:00
gcc-runtime_5.1.bb gcc: Add 5 recipes 2015-05-09 22:26:44 +01:00
gcc-sanitizers.inc gcc-sanitizers: check gcc-build-internal before link 2015-02-15 21:58:25 +00:00
gcc-sanitizers_4.8.bb gcc-sanitizers: Enable GCC sanitizers 2015-01-23 11:36:29 +00:00
gcc-sanitizers_4.9.bb gcc-sanitizers: Enable GCC sanitizers 2015-01-23 11:36:29 +00:00
gcc-sanitizers_5.1.bb gcc: Add 5 recipes 2015-05-09 22:26:44 +01:00
gcc-shared-source.inc gcc-shared-source: Add PV to PN 2015-04-30 23:04:12 +01:00
gcc-source.inc gcc-source.inc: fix STAMPCLEAN to avoid race issue 2015-06-11 23:59:18 +01:00
gcc-source_4.8.bb gcc: Rework shared work 2014-12-03 12:23:56 +00:00
gcc-source_4.9.bb gcc: Rework shared work 2014-12-03 12:23:56 +00:00
gcc-source_5.1.bb gcc: Add 5 recipes 2015-05-09 22:26:44 +01:00
gcc-target.inc gcc-5: fix installed-vs-shipped 2015-05-14 11:43:56 +01:00
gcc_4.8.bb gcc-4.8: temporary disable thumb 2013-09-22 12:19:32 +01:00
gcc_4.9.bb gcc: Add 4.9 recipes 2014-05-06 17:59:15 +01:00
gcc_5.1.bb gcc: Add 5 recipes 2015-05-09 22:26:44 +01:00
libgcc-common.inc gcc/libgcc-common.inc: Add missing 'fakeroot' to two tasks 2015-01-29 15:36:47 +00:00
libgcc-initial.inc libgcc-initial: Correctly reflect libgcc LICENSE 2015-04-30 23:04:12 +01:00
libgcc-initial_4.8.bb gcc-cross-initial: Separate out libgcc-initial 2014-04-25 17:19:18 +01:00
libgcc-initial_4.9.bb gcc: Add 4.9 recipes 2014-05-06 17:59:15 +01:00
libgcc-initial_5.1.bb gcc: Add 5 recipes 2015-05-09 22:26:44 +01:00
libgcc.inc libgcc: remove libgcov-dev from PACKAGES 2015-04-21 07:20:26 +01:00
libgcc_4.8.bb libgcc: Move common code to libgcc.inc 2013-08-23 16:20:13 +01:00
libgcc_4.9.bb gcc: Add 4.9 recipes 2014-05-06 17:59:15 +01:00
libgcc_5.1.bb gcc: Add 5 recipes 2015-05-09 22:26:44 +01:00
libgfortran.inc gcc: poison default sysroot path 2014-10-30 13:01:21 +00:00
libgfortran_4.8.bb gcc: Allow fortran to build successfully in 4.8 2013-12-05 14:24:43 +00:00
libgfortran_4.9.bb gcc: Add 4.9 recipes 2014-05-06 17:59:15 +01:00
libgfortran_5.1.bb gcc: Add 5 recipes 2015-05-09 22:26:44 +01:00