Bug 2975

Summary: Cannot install Qt toolchain for crownbay platform on x86_64 host
Product: [Yocto Project Subprojects] ADT Reporter: Aditya Gandhi <aditya>
Component: adtAssignee: Jessica <jessica.zhang>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: alexandru.c.georgescu, liang.li2, poky.adt.watcher, poky.watcher, sgw
Version: 1.2   
Target Milestone: 1.3 M4   
Hardware: x86   
OS: x86   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Aditya Gandhi 2012-08-20 21:55:31 UTC
I used git to get yocto/poky sources and meta-intel too, I built an umodifed qt-demo-image and the toolchain using bitbake meta-toolchain-qte.

I get the following error.

~/build/poky/build/tmp/deploy/sdk$ sudo ./poky-eglibc-x86_64-i586-toolchain-qte-1.2+snapshot-20120820.sh 

[sudo] password for inforcecomputing: 
Enter target directory for Poky SDK (default: /opt/poky/1.2+snapshot): 
You are about to install Poky SDK to "/opt/poky/1.2+snapshot". Proceed[Y/n]?
Extracting SDK...done
Setting it up..../poky-eglibc-x86_64-i586-toolchain-qte-1.2+snapshot-20120820.sh: line 48: /opt/poky/1.2+snapshot/environment-setup-core2-poky-linux: Permission denied

SDK could not be set up. Relocate script failed. Abort!
inforcecomputing@inforcecomputing-PRIMERGY-TX100-S3:~/build/poky/build/tmp/deploy/sdk$ 

I changed permission for /opt/poky/1.2+snapshot/environment-setup-core2-poky-linux by chmod +x, while it is being unpacked in a new terminal.

This is what I get: 


inforcecomputing@inforcecomputing-PRIMERGY-TX100-S3:~/build/poky/build/tmp/deploy/sdk$ sudo ./poky-eglibc-x86_64-i586-toolchain-qte-1.2+snapshot-20120820.sh Enter target directory for Poky SDK (default: /opt/poky/1.2+snapshot): 
You are about to install Poky SDK to "/opt/poky/1.2+snapshot". Proceed[Y/n]?Y
Extracting SDK...done
Setting it up..../poky-eglibc-x86_64-i586-toolchain-qte-1.2+snapshot-20120820.sh: line 48: /opt/poky/1.2+snapshot/environment-setup-core2-poky-linux: Permission denied
SDK could not be set up. Relocate script failed. Abort!
inforcecomputing@inforcecomputing-PRIMERGY-TX100-S3:~/build/poky/build/tmp/deploy/sdk$ sudo ./poky-eglibc-x86_64-i586-toolchain-qte-1.2+snapshot-20120820.sh Enter target directory for Poky SDK (default: /opt/poky/1.2+snapshot): 
You are about to install Poky SDK to "/opt/poky/1.2+snapshot". Proceed[Y/n]?
Extracting SDK...done
Setting it up...done
rm: cannot remove `/opt/poky/1.2+snapshot/sysroots/core2-poky-linux/usr/share/qtopia/relocate_sdk.py': No such file or directory
SDK has been successfully set up and is ready to be used.

But even after this, my environmental variables are not set on ubuntu 10.10 terminal, I have to copy paste the script in the shell to set variables. 
 
After which, I still cannot run qmake, it gives permission error when trying to run, all ownership and permissions look correct

root@inforcecomputing-PRIMERGY-TX100-S3:/opt/poky/1.2+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin# ls -lrt qma*
-rwxr-xr-x 1 root root 4553424 2012-08-17 16:55 qmake2
lrwxrwxrwx 1 root root       6 2012-08-20 14:48 qmake -> qmake2
root@inforcecomputing-PRIMERGY-TX100-S3:/opt/poky/1.2+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin# qmake
bash: /opt/poky/1.2+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin/qmake: Permission denied
root@inforcecomputing-PRIMERGY-TX100-S3:/opt/poky/1.2+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin#
Comment 1 liang li 2012-08-21 08:13:02 UTC
this not met when using poky master newest(commit id:7c40daab587306da25c8d8f566392ee1f57bbef4)
---------------
sudo ./poky-eglibc-x86_64-i586-toolchain-qte-1.2+snapshot-20120821.sh
[sudo] password for liangli: 
sudo: ./poky-eglibc-x86_64-i586-toolchain-qte-1.2+snapshot-20120821.sh: command not found
---------------
chmod +x poky-eglibc-x86_64-i586-toolchain-qte-1.2+snapshot-20120821.sh
---------------
sudo ./poky-eglibc-x86_64-i586-toolchain-qte-1.2+snapshot-20120821.sh 
Enter target directory for Poky SDK (default: /opt/poky/1.2+snapshot): 
You are about to install Poky SDK to "/opt/poky/1.2+snapshot". Proceed[Y/n]?y
Extracting SDK...done
Setting it up...done
SDK has been successfully set up and is ready to be used.
---------------
qmake can run.

---------------
the "poky-eglibc-x86_64-i586-toolchain-qte-1.2+snapshot-20120821.sh" is from "tmp/deploy/sdk" suddir of the build dir in which run "bitbake meta-toolchain-qte".
build host: ubuntu 11.10 x86_64
Comment 2 Saul Wold 2012-08-22 17:24:55 UTC
Aditya, can you please verify with the latest master?  Thanks
Comment 3 Aditya Gandhi 2012-08-23 17:50:02 UTC
(In reply to comment #2)
> Aditya, can you please verify with the latest master?  Thanks

Saul, I have been trying to build it but getting a few error's like:

| ERROR: Function failed: do_configure (see /home/inforcecomputing/build/poky/build/tmp/work/x86_64-nativesdk-pokysdk-linux/qt4-tools-nativesdk-4.8.1-r11.1/temp/log.do_configure.21167 for further information)

will get back to you when the build is complete! 

Aditya
Comment 4 Jessica 2012-09-04 18:11:51 UTC
Aditya,

Any update?
Comment 5 Aditya Gandhi 2012-09-04 18:20:46 UTC
Hi Jessica,

After the last git pull I was able to install the tool chain! 

Thank You,

Aditya

(In reply to comment #4)
> Aditya,
> 
> Any update?
Comment 6 Jessica 2012-09-04 18:31:48 UTC
update per last comment from Aditya
Comment 7 Alexandru Georgescu 2012-09-25 12:56:00 UTC
Verified with e5c3513ca8abb21eb5e9b8c19d1b9199b14ae07c