I tried to install multiple toolchains (different cross arch) to the same location, e.g. /home/jzhang/toolchain_installer, the 1st time of ppc was successfully installed. Then 2nd which is for x86, I got the following error: Installing unfs ... Relocating binaries ... Traceback (most recent call last): File "scripts/relocate_sdk_tmp.py", line 187, in <module> f = open(e, "r+b") IOError: [Errno 26] Text file busy: '/home/jzhang/toolchain_installer/sysroots/i686-pokysdk-linux/usr/bin/python2.7' Please note this is a supported usage model.
Created attachment 838 [details] adt tools installer log
the error not met using nightly build 20120919-2 below,install qemuppc and qemux86 toolchain to the same dir "/home/yocto/t1", all install successfully. http://autobuilder.pokylinux.org/nightly/20120919-2/adt_installer-QA/adt_installer.tar.bz2 git info:8ebed883d45ee952bd89d2143e0b0ab8736049b0 git branch: poky/1.3_M5 test env: host: Fedora 17 32 bit host. log as above attachment.
What if you do ppc install first, then change adt_installer.conf for x86 for the 2nd install, that's my failure scenario
(In reply to comment #3) > What if you do ppc install first, then change adt_installer.conf for x86 for > the 2nd install, that's my failure scenario yes, just install ppc first and change adt_installer.conf for x86, install x86 2nd.
(In reply to comment #4) > (In reply to comment #3) > > What if you do ppc install first, then change adt_installer.conf for x86 for > > the 2nd install, that's my failure scenario > > yes, just install ppc first and change adt_installer.conf for x86, install > x86 2nd. contents of /home/yocto/t1 after install (ppc first,x86 2nd): [yocto@yocto t1]$ ls /home/yocto/t1 environment-setup-i586-poky-linux sysroots environment-setup-ppc603e-poky-linux var site-config-i586-poky-linux version-i586-poky-linux site-config-ppc603e-poky-linux version-ppc603e-poky-linux and ppc toolchain may not work normally(for example: can not compile iptables project). x86 toolchain work normally.
Jessica, Installing the SDK with adt installer for all architectures works just fine. Your issue suggests that the python2.7 binary was being used by the system when you tried to run adt_installer again. Is this your case? Were you using the SDK in between adt_installer runs?
I succeeded to reproduce your exact issue by following these steps: - install the SDK for one architecture - open a terminal and run the python2.7 binary in sysroots/x86_64-pokysdk-linux/usr/bin/ - run adt_installer for another architecture Unfortunately I cannot fix this... What I can do, is catch this error and signal the user that the file is used by another process.
Patch sent to the mailing list for review.
Patch merged: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=6bc5925ea962ff68dcfac72c221b2445f71c78aa
Verified.