Bug 7029 - Cannot configure Hello World ANSI C Autotools Project
Summary: Cannot configure Hello World ANSI C Autotools Project
Status: RESOLVED FIXED
Alias: None
Product: Eclipse Plugin
Classification: Yocto Project Subprojects
Component: eclipse-plugin (show other bugs)
Version: 1.6.1
Hardware: All x86_64
: Medium normal
Target Milestone: 1.8
Assignee: Scott Rifenbark
QA Contact: Mihail Stanciu
URL:
Whiteboard: 16 January 2015: RESOLVED
Depends on:
Blocks:
 
Reported: 2014-12-04 00:48 UTC by Henry Bruce
Modified: 2015-01-16 17:54 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Done (doc changes complete)


Attachments
Image showing installed software (107.90 KB, image/png)
2014-12-04 00:48 UTC, Henry Bruce
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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