[oe] Building with gcc-4.6 is not working

Marcin Juszkiewicz marcin.juszkiewicz at linaro.org
Thu Feb 21 12:05:33 UTC 2013


Hi

OE moved some time ago to gcc-4.7 as default. But for some
builds I need to use older version which is now in
meta-openembedded/toolchain-layer.
But such builds fail for both gcc-linaro-4.6 and gcc-4.6:

NOTE: Executing RunQueue Tasks
ERROR: Error executing a python function in
/tmp/del/oe46/meta-linaro/recipes-devtools/gcc/gcc-cross-initial_linaro-4.6.bb:
CalledProcessError: Command 'tar -cf - -C
/tmp/del/oe46/build/tmp-eglibc/work/armv7ahf-vfp-neon-oe-linux-gnueabi/gcc-cross-initial/linaro-4.6-r5/pkgdata
-ps . | tar -xf - -C
/tmp/del/oe46/build/tmp-eglibc/pkgdata/armv7ahf-vfp-neon-oe-linux-gnueabi'
returned non-zero exit status 2 with output tar:
/tmp/del/oe46/build/tmp-eglibc/work/armv7ahf-vfp-neon-oe-linux-gnueabi/gcc-cross-initial/linaro-4.6-r5/pkgdata:
Cannot chdir: No such file or directory
tar: Error is not recoverable: exiting now
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors


ERROR: The stack trace of python calls that resulted in this
exception/failure was:
ERROR:   File "sstate_task_postfunc", line 10, in <module>
ERROR: ERROR:   File "sstate_task_postfunc", line 4, in sstate_task_postfunc
ERROR: ERROR:   File "sstate.bbclass", line 76, in sstate_install
ERROR: ERROR:   File
"/tmp/del/oe46/openembedded-core/meta/lib/oe/path.py", line 85, in copytree
ERROR:     check_output(cmd, shell=True, stderr=subprocess.STDOUT)
ERROR: ERROR:   File
"/tmp/del/oe46/openembedded-core/meta/lib/oe/path.py", line 155, in
check_output
ERROR:     raise CalledProcessError(retcode, cmd, output=output)
ERROR: ERROR: The code that was being executed was:
ERROR:      0006:        bb.build.exec_func(intercept, d)
ERROR:      0007:    sstate_package(shared_state, d)
ERROR:      0008:
ERROR:      0009:
ERROR:  *** 0010:sstate_task_postfunc(d)
ERROR:      0011:
ERROR: [From file: 'sstate_task_postfunc', lineno: 10, function: <module>]
ERROR:      0001:
ERROR:      0002:def sstate_task_postfunc(d):
ERROR:      0003:    shared_state = sstate_state_fromvars(d)
ERROR:  *** 0004:    sstate_install(shared_state, d)
ERROR:      0005:    for intercept in shared_state['interceptfuncs']:
ERROR:      0006:        bb.build.exec_func(intercept, d)
ERROR:      0007:    sstate_package(shared_state, d)
ERROR:      0008:
ERROR: [From file: 'sstate_task_postfunc', lineno: 4, function:
sstate_task_postfunc]
ERROR:      0072:    f.close()
ERROR:      0073:
ERROR:      0074:    # Run the actual file install
ERROR:      0075:    for state in ss['dirs']:
ERROR:  *** 0076:        oe.path.copytree(state[1], state[2])
ERROR:      0077:
ERROR:      0078:    for postinst in (d.getVar('SSTATEPOSTINSTFUNCS',
True) or '').split():
ERROR:      0079:        bb.build.exec_func(postinst, d)
ERROR:      0080:
ERROR: [From file: 'sstate.bbclass', lineno: 76, function: sstate_install]
ERROR: Function failed: sstate_task_postfunc
ERROR: Logfile of failure stored in:
/tmp/del/oe46/build/tmp-eglibc/work/armv7ahf-vfp-neon-oe-linux-gnueabi/gcc-cross-initial/linaro-4.6-r5/temp/log.do_packagedata.1989
ERROR: Task 9
(/tmp/del/oe46/meta-linaro/recipes-devtools/gcc/gcc-cross-initial_linaro-4.6.bb,
do_packagedata) failed with exit code '1'
NOTE: Tasks Summary: Attempted 206 tasks of which 205 didn't need to be
rerun and 1 failed.
No currently running tasks (204 of 211)

Summary: 1 task failed:

/tmp/del/oe46/meta-linaro/recipes-devtools/gcc/gcc-cross-initial_linaro-4.6.bb,
do_packagedata

12:40 hrw at puchatek:build$ cat
tmp-eglibc/work/armv7ahf-vfp-neon-oe-linux-gnueabi/gcc-cross-initial/linaro-4.6-r5/temp/log.task_order
do_fetch (29286): log.do_fetch.29286
do_populate_lic (7366): log.do_populate_lic.7366
do_configure (8396): log.do_configure.8396
do_compile (10582): log.do_compile.10582
do_install (1146): log.do_install.1146
do_packagedata (1706): log.do_packagedata.1706
do_populate_sysroot (1707): log.do_populate_sysroot.1707
do_packagedata (1989): log.do_packagedata.1989

But when I do same build with gcc-linaro-4.7 task order is different:

aarch64-oe-linux/ x86_64-linux/     12:46 hrw at puchatek:build$ cat
tmp-eglibc/work/aarch64-oe-linux/gcc-cross-initial/linaro-4.7-r9/temp/log.task_order
do_cleansstate (3000): log.do_cleansstate.3000
do_fetch (3632): log.do_fetch.3632
do_configure (4335): log.do_configure.4335
do_populate_lic (4336): log.do_populate_lic.4336
do_compile (5923): log.do_compile.5923
do_install (29169): log.do_install.29169
do_populate_sysroot (29707): log.do_populate_sysroot.29707


How to solve the problem?





More information about the Openembedded-devel mailing list