Bug 3201

Summary: cannot build Hello World Ansi C project using standalone Toolchain for ARM and X86
Product: [Yocto Project Subprojects] ADT Reporter: Alexandru Georgescu <alexandru.c.georgescu>
Component: adtAssignee: Laurentiu Palcu <laurentiu.palcu>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: alexandru.damian, ioanax.grigoropol, jessica.zhang, poky.adt.watcher, poky.watcher
Version: 1.3   
Target Milestone: 1.3   
Hardware: x86   
OS: Multiple   
Whiteboard: (merged)
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---
Bug Depends on: 3161    
Bug Blocks:    
Attachments:
Description Flags
config log
none
clutter config log none

Description Alexandru Georgescu 2012-10-01 12:33:27 UTC
Created attachment 861 [details]
config log

Steps to reproduce:
1. Download toolchain and Sysroot and extract them in a specified location different than the default one.
2. Created a headless Eclipse build and use the eclipse-plugin from above.
3. Configure Yocto Project Settings with Sysroot, toolchain, installed in step1.
4. Create a Hello World Ansi C Autottools Project.
5. Reconfigure Project and then Build.


Expected results
5. Reconfigure and Build is successful.

Actual results
5. In Problems pane (in Eclipse) I have the following errors:

Description	Resource	Path	Location	Type
make: *** No rule to make target `all'.			 	C/C++ Problem


I have attached the config.log file from the project.

This is related with bug #3161
Comment 1 Alexandru Georgescu 2012-10-01 14:22:45 UTC
The same happennes for ARM in the following Project types:
C Projects: GTK project, Clutter
C++ Projects: autotools, Clutter


For X86 projects:
C Projects:    Autotools, clutter, GTK
C++ Projects:  Autotools, Clutter
Comment 2 Alexandru Georgescu 2012-10-01 14:30:53 UTC
The bug is related with #3161
Comment 3 Jessica 2012-10-01 21:00:53 UTC
Hi Alex,

What is your host, from the email, seems your host is 32bit Fedora 17?  And based on the email, your target are x86 and arm?  Please clarify for this detailed info so people can further triage the issue.

Also, can you give the url that you downloaded the toolchain and rootfs file?

Thanks,
Jessica
Comment 4 Jessica 2012-10-01 21:44:56 UTC
Hi Alex,

I've downloaded the sato sdk image(x86-64 and ppc) for my sysroot and cross toolchain for i686-x86-64 and i686-ppc, here're the URLs that I download things:

http://downloads.yoctoproject.org/autobuilder-images/nightly/20120930-1/toolchain/i686/

http://downloads.yoctoproject.org/autobuilder-images/nightly/20120930-1/machines/qemu/qemux86-64/

http://downloads.yoctoproject.org/autobuilder-images/nightly/20120930-1/machines/qemu/qemuppc/

I have my sysroots go to /home/jzhang/qemux86-64 and /home/jzhang/qemuppc and my toolchains go to /home/jzhang/test_toolchain (both arches) and when I created a hello world ansi c project eclipse, first I test the i686-x86_64 combinatin then I switch to i686-ppc, everything was reconfigure and built fine.

So can you give it a try?
Comment 5 Alexandru Georgescu 2012-10-02 13:10:15 UTC
(In reply to comment #3)
> Hi Alex,
> 
> What is your host, from the email, seems your host is 32bit Fedora 17?  And
> based on the email, your target are x86 and arm?  Please clarify for this
> detailed info so people can further triage the issue.
> 
> Also, can you give the url that you downloaded the toolchain and rootfs file?
> 
> Thanks,
> Jessica

Hi Jessica,
Sorry for the late response.I have tested with the following:

Download: http://autobuilder.yoctoproject.org/pub/nightly/20120926-1
poky: 718eb85806e080d0b165344b272e531ef19421eb
meta-qt3: 8730326c902e6fb256b5dea77a6dde28d813c424
eclipse-poky: c88444d96958324e7dda9bd496977be3369aea1e

I have tested on ARM and x86 aswell, and only on Fedora 17 32bit host.
Comment 6 Alexandru Georgescu 2012-10-02 13:15:33 UTC
(In reply to comment #5)
> (In reply to comment #3)
> > Hi Alex,
> > 
> > What is your host, from the email, seems your host is 32bit Fedora 17?  And
> > based on the email, your target are x86 and arm?  Please clarify for this
> > detailed info so people can further triage the issue.
> > 
> > Also, can you give the url that you downloaded the toolchain and rootfs file?
> > 
> > Thanks,
> > Jessica
> 
> Hi Jessica,
> Sorry for the late response.I have tested with the following:
> 
> Download: http://autobuilder.yoctoproject.org/pub/nightly/20120926-1
> poky: 718eb85806e080d0b165344b272e531ef19421eb
> meta-qt3: 8730326c902e6fb256b5dea77a6dde28d813c424
> eclipse-poky: c88444d96958324e7dda9bd496977be3369aea1e
> 
> I have tested on ARM and x86 aswell, and only on Fedora 17 32bit host.

Using the same commit, i have built the sdk using bitbake: bitbake meta-ide-support and added them to Eclipse.
It seems that using them the Autotools project have errors too.
Comment 7 Jessica 2012-10-02 18:18:43 UTC
Alex,

I've tested the 926 built toolchain on my Ubuntu12.04 32bit machine and it still works.  Is it possible that you find a Ubuntu 32bit machine to test it again?  Don't build the toolchain yourself, just download the toolchain from the URL that you give me, really want to compare apple to apple here...

Ioana,

Is it possible that you also do some test as well, really want to see some consistency of the behavior either work or not work.

Thanks,
Jessica
Comment 8 Radu Moisan 2012-10-03 08:07:14 UTC
This should work. Laurentiu sent a patch for it a while back.
Comment 9 Alexandru Georgescu 2012-10-03 11:52:46 UTC
(In reply to comment #7)
> Alex,
> 
> I've tested the 926 built toolchain on my Ubuntu12.04 32bit machine and it
> still works.  Is it possible that you find a Ubuntu 32bit machine to test it
> again?  Don't build the toolchain yourself, just download the toolchain from
> the URL that you give me, really want to compare apple to apple here...
> 
> Ioana,
> 
> Is it possible that you also do some test as well, really want to see some
> consistency of the behavior either work or not work.
> 
> Thanks,
> Jessica

Hi Jessica,
I am very sorry for the late response. I have tried again, on a Ubuntu 11.10 32bit machine (this was the only Ubuntu 32bit I could find here). 

Building a x86_64 autotools C project failed using the links you provided http://downloads.yoctoproject.org/autobuilder-images/nightly/20120930-1/toolchain/i686/.


I will verify again in the following fullpass that will begin tommorow, which should have the fixes from Radu and Laurentiu.

Thanks,
Alex.
Comment 10 Alexandru Georgescu 2012-10-04 11:07:43 UTC
Created attachment 869 [details]
clutter config log

I have retested with the 1.3_M5.rc3 build.

I still have errors on Fedora 17 32bit. Please see attached the config.log for a Clutter C project.
Comment 11 Alexandru Georgescu 2012-10-04 11:11:39 UTC
tested again using the default install path: /opt/poky/1.3. 
Same issue.
Comment 12 Laurentiu Palcu 2012-10-05 11:51:34 UTC
Root cause: 32bit cross-canadian and nativesdk packages didn't have RPATHs relocated because the building machine had a chrpath version <0.14.
Comment 13 Alexandru Georgescu 2012-10-15 11:19:00 UTC
Verified.
Tested with RC4: c9de24d3f4845251b01e2eab0aeeb7472badc5bb