Bug 2055

Summary: ADT-installer failed to install PPC Target architectures.
Product: [Yocto Project Subprojects] ADT Reporter: Hongna Xu <hongnax.xu>
Component: adtAssignee: Lianhao Lu <lianhao.lu>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: jiajun.xu, liang.li2, lianhao.lu, poky.adt.watcher, poky.watcher, richard.purdie, sgw, yi.zhao
Version: 1.2   
Target Milestone: 1.2 M4   
Hardware: x86   
OS: ppc   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Hongna Xu 2012-03-05 07:32:06 UTC
ADT-install's script search the name of environment for ppc named: /opt/poky/1.1+snapshot/environment-setup-ppc*, but in /opt/poky/1.1+snapshot, its name is environment-setup-powerpc-poky-linux, so it report No such file or directory Error.

Branch: 1.2_M3
CommitId: 320558f494c618f53e0c773db3ea0109476e8359
Comment 3 Hongna Xu 2012-03-30 05:32:07 UTC
In /opt/poky/1.1+snapshot,the environment file return back to environment-setup-ppc603e-poky-linux, and adt-installer script search environment-setup-powerpc*, so  i will reopen it.
Comment 4 Hongna Xu 2012-03-30 05:34:41 UTC
(In reply to comment #3)
> In /opt/poky/1.1+snapshot,the environment file return back to
> environment-setup-ppc603e-poky-linux, and adt-installer script search
> environment-setup-powerpc*, so  i will reopen it.

tree/branch: poky/1.2_M4
commintID:4d9f4d6ac25f39fe6d5491d05c7a26195bab648b

ADT-installer location:http://autobuilder.pokylinux.org/pub/nightly/20120328-1/adt_installer/adt_installer.tar.bz2
Comment 5 Lianhao Lu 2012-03-30 05:49:39 UTC
Seems a recent commit changed the value back,
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=39c2e33c39aff2acf6c30ddb66bb9ee208eecb0b
Comment 8 liang li 2012-03-31 10:53:04 UTC
the error happend on 1.2 M4 RC1 from:
http://autobuilder.pokylinux.org/pub/nightly/20120328-1/adt_installer/adt_installer.tar.bz2

when run "adt-installer" to install qemuppc toolchain,error met below:

./adt_installer 

#########################################################################
# Welcome to Yocto Application Developement Tools (ADT) Installer
#
# Host Machine:				x86_64
# OS info:				3.1.9-1.4-desktop
# Yocto ADT version to be installed:	
# supported target architectures:	x86 x86_64 arm ppc mips
# supported target root_fs images:	minimal minimal-dev sato sato-dev sato-sdk lsb lsb-dev lsb-sdk
#########################################################################

Systemwide installation. Installation will occur under /opt/poky/1.1+snapshot

############################################################################
# Your system installation configurations from adt_installer.conf
############################################################################
# Cross toolchains:		ppc
# Install Qemu:			Y
# Install NFS utilities:	Y

##############################################################################
# Your rootfs image(s) and target sysroot selections from adt_installer.conf
##############################################################################
# Target architecture:		ppc
# Root_fs images:		minimal sato-sdk
# Target sysroot image:		sato-sdk
# Target sysroot loc:		/home/yocto/test-yocto/ppc


############################################################################

There're two ways you can do installation: silent mode or interactive mode. To choose silent mode, which means you opt for the system to override the existing data under the specified installation directories without prompting for your confirmation. Please be cautious with this selection which may trigger your losing data. With the interactive mode, you have to closely monitor the installation process, since it will prompt you each step it needs to override some existing data. To choose silent mode, please enter [S], for interactive mode, please enter [I] or [X] to exit the installation.
[ADT_INST] Please enter your selections here:
......
Target sysroot location: /home/yocto/test-yocto/ppc, already exists! If you continue installation, this folder will be re-created.
[ADT_INST] Do you want to continue installation? Please enter Y/N:
Y
Creating directory /home/yocto/test-yocto/ppc...
Extracting rootfs: core-image-sato-sdk-qemuppc.tar.bz2, using pseudo...
Updating environment script with target sysroot location.
ls: cannot access /opt/poky/1.1+snapshot/environment-setup-powerpc*: 没有那个文件或目录
[ADT_INST] Error: Failed to find environment script for arch: ppc

ppc toolchain install failed.
Comment 9 Lianhao Lu 2012-03-31 13:10:08 UTC
Please see latest fix in comment #7. It should be included in RC2. You may tweak the script according to that fix to work around it in RC1.

(In reply to comment #8)
> the error happend on 1.2 M4 RC1 from:
> http://autobuilder.pokylinux.org/pub/nightly/20120328-1/adt_installer/adt_installer.tar.bz2
> when run "adt-installer" to install qemuppc toolchain,error met below:
> ./adt_installer 
> ls: cannot access /opt/poky/1.1+snapshot/environment-setup-powerpc*: 没有那个文件或目录
> [ADT_INST] Error: Failed to find environment script for arch: ppc
> ppc toolchain install failed.
Comment 10 liang li 2012-04-01 01:53:17 UTC
(In reply to comment #9)
> Please see latest fix in comment #7. It should be included in RC2. You may
> tweak the script according to that fix to work around it in RC1.
> 
> (In reply to comment #8)
> > the error happend on 1.2 M4 RC1 from:
> > http://autobuilder.pokylinux.org/pub/nightly/20120328-1/adt_installer/adt_installer.tar.bz2
> > when run "adt-installer" to install qemuppc toolchain,error met below:
> > ./adt_installer 
> > ls: cannot access /opt/poky/1.1+snapshot/environment-setup-powerpc*: 没有那个文件或目录
> > [ADT_INST] Error: Failed to find environment script for arch: ppc
> > ppc toolchain install failed.

thanks your confirmation, I have used that patch, it works and ppc toolchain can install successfully after that.
Comment 11 Hongna Xu 2012-04-09 02:56:09 UTC
Verify the bug as fixed on 1.2_M4 rc2 with commit 27aa5489fb40d99c58bb2a4bbf2311e2c502a091,tree/branch: poky/1.2_M4
Comment 12 liang li 2012-04-10 05:36:39 UTC
the error is not met on 1.2 M4 RC2 both on these hosts :opensuse 12.1 x86_64, fedora 16 i686,ubuntu 11.10 x86_64. PPC toolchain can be built successfully using ADT-installer from:
http://autobuilder.yoctoproject.org/pub/nightly/20120405-1/adt_installer/adt_installer.tar.bz2

git info:27aa5489fb40d99c58bb2a4bbf2311e2c502a091 
git branch: 1.2_M4