[yocto] Cannot create symlink to 'x86_64-pokysdk-linux' error

Takashi Matsuzawa tmatsuzawa at uievolution.com
Wed May 18 06:25:14 PDT 2016


Hello yocto.
I have been successfully building several yocto based target trees,
but now trying qemux86-64 build and it is causing error.  Familiar
with the below sympthom and maybe you have any suggestion?

I think this begain happening when I did -c populate_sdk, but not sure.
The other targets (including qemux86) is building fine.  I am now
re-building it again after removing downloads, sstate-cache, tmp, etc.

====
ERROR: Error executing a python function in
/home/tmatsuzawa/wk/yocto_x64/wk1/build-root/poky/meta/recipes-devtools/gcc/libgcc_5.2.bb<http://libgcc_5.2.bb/>:

...
Exception: CalledProcessError: Command 'cd
/mnt/sdb1/yocto/dev/tmp/yocto_x64-wk1/work/x86_64-nativesdk-pokysdk-linux/nativesdk-libgcc/5.2.0-r0/sysroot-destdir;
find . -type d -print | tar -cf - -C
/mnt/sdb1/yocto/dev/tmp/yocto_x64-wk1/work/x86_64-nativesdk-pokysdk-linux/nativesdk-libgcc/5.2.0-r0/sysroot-destdir
-p --files-from - --no-recursion | tar -xf - -C
/mnt/sdb1/yocto/dev/tmp/yocto_x64-wk1/sysroots/x86_64-nativesdk-pokysdk-linux'
returned non-zero exit status 2 with output tar:
./opt/poky-agl/1.0+snapshot/sysroots/x86_64-pokysdk-linux/usr/lib/x86_64-poky-linux:
Cannot create symlink to 'x86_64-pokysdk-linux': File exists
tar: ./opt/poky-agl/1.0+snapshot/sysroots/x86_64-pokysdk-linux/usr/lib/x86_64-poky-linux:
Cannot create symlink to 'x86_64-pokysdk-linux': File exists
...
====

I think this is copying files using tar as follows, and in the
copeid-to directory there is already 'x86_64-pokysdk-linux' directory
whereas in copied-from directory it is a symbolic link.  Hence tar
fails.

(coppied-from)
${TMPDIR}/work/x86_64-nativesdk-pokysdk-linux/nativesdk-libgcc/5.2.0-r0/sysroot-destdir
x86_64-poky-linux -> x86_64-pokysdk-linux (symlink)
x86_64-pokysdk-linux (directory)

=>

(copied-to)
${TMPDIR}/sysroots/x86_64-nativesdk-pokysdk-linux
x86_64-poky-linux (directory)
x86_64-pokysdk-linux (directory)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160518/0cbf3c25/attachment.html>


More information about the yocto mailing list