Bug 7029

Summary: Cannot configure Hello World ANSI C Autotools Project
Product: [Yocto Project Subprojects] Eclipse Plugin Reporter: Henry Bruce <henry.bruce>
Component: eclipse-pluginAssignee: Scott Rifenbark <srifenbark>
Status: RESOLVED FIXED QA Contact: Mihail Stanciu <stanciux.mihail>
Severity: normal    
Priority: Medium CC: alexandru.c.georgescu, ioanax.grigoropol, srifenbark, yp.ep.watcher, yp.watcher
Version: 1.6.1   
Target Milestone: 1.8   
Hardware: All   
OS: x86_64   
Whiteboard: 16 January 2015: RESOLVED
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Done (doc changes complete)
Attachments:
Description Flags
Image showing installed software none

Description Henry Bruce 2014-12-04 00:48:31 UTC
Created attachment 2281 [details]
Image showing installed software

Host system in Ubuntu 14.04.
Following instructions as per http://www.yoctoproject.org/docs/1.6.1/dev-manual/dev-manual.html#adt-eclipse.
Using Yocto SDK built for intel-corei7-64
Installed required software. See attachment eclipse-installed-software.png
Successfuly created Yocto Project ADT Autotools Project "Hello World ANSI C Autotools Project"
When invoking Project->Reconfigure I see "C Compiler cannot create executables" error

Description                            Resource	     Location      Type
in `/home/hbruce/workspace/hello':	hello		-1	Configure Problem
C compiler cannot create executables	hello		-1	Configure Problem
Comment 1 Henry Bruce 2014-12-05 23:43:59 UTC
This turned out to be a documentation bug. 

In http://www.yoctoproject.org/docs/1.6.1/dev-manual/dev-manual.html#adt-eclipse
section 4.2.2.1.4.1. "Configuring the Cross-Compiler Options", contains a subsection

"Specify the Sysroot Location: This location is where the root filesystem for the target hardware resides. If you used the ADT Installer script and accepted the default installation directory, then the location is /opt/poky/1.6.1."

The location should read /opt/poky/1.6.1/sysroots
Comment 2 Scott Rifenbark 2015-01-16 17:54:26 UTC
Hi, 

I have added "sysroots" to the end of this path.  Note that the change will be visible in the 1.8 release of the documentation.  You can see the change here:

http://www.yoctoproject.org/docs/1.8/dev-manual/dev-manual.html#configuring-the-cross-compiler-options

Thanks, 
Scott