Bug 11222 - [eclipse] C compiler cannot create executables when reconfiguring project
Summary: [eclipse] C compiler cannot create executables when reconfiguring project
Status: VERIFIED INVALID
Alias: None
Product: Eclipse Plugin
Classification: Yocto Project Subprojects
Component: eclipse-plugin (show other bugs)
Version: 2.3
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.4 M3
Assignee: brian avery
QA Contact: oscar lopez arandas
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-03-23 00:02 UTC by Libertad
Modified: 2017-10-26 14:51 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments
CONFIGURATION LOG (36.59 KB, text/x-log)
2017-03-23 00:02 UTC, Libertad
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Libertad 2017-03-23 00:02:55 UTC
Created attachment 3661 [details]
CONFIGURATION LOG

STATUS: FAILED
BUILD: 2.3 M3: rc1-6e20b31d5d17133e0fca086e12a0ad06ab5c4cc8
ENVIRONMENT: Neon on  Debian 4.3.5-1~bpo8+1
STEPS TO REPRODUCE: 

1. Launch a QEMU of target enviroment.(Reference to case "ADT - Launch qemu by eclipse")

2. Select File -> New -> Project.
    ---Double click C/C++.
    ---Click C or C++ Project to create the project.
    ---Expand Yocto ADT Project.
    ---Select Hello World ANSI C++ Autotools Project.
    ---Put a name in the Project name. Do not use hyphens as part of the name. 
    ---Click Next.
    ---Add information in the Author and Copyright notice fields.
    ---Click Finish.
    ---If the "open perspective" prompt appears, click "Yes" so that you open the C/C++ perspective.

3. In the Project Explorer window, right click the  project -> Reconfigure project.

4. In the Project Explorer window, right click the  project -> Build project.

-------NOTE-----

Used the following files from the autobuilder. 

wget http://autobuilder.yoctoproject.org/pub/releases/yocto-2.3_M3.rc1/toolchain/x86_64/poky-glibc-x86_64-core-image-sato-i586-toolchain-2.2+snapshot.sh

wget http://autobuilder.yoctoproject.org/pub/releases/yocto-2.3_M3.rc1/machines/qemu/qemux86/bzImage-qemux86.bin

wget http://autobuilder.yoctoproject.org/pub/releases/yocto-2.3_M3.rc1/machines/qemu/qemux86/core-image-sato-qemux86-20170314211112.rootfs.tar.gz
---------------------------------------------------



EXPECTED OUTCOME:  Under the Project files, a new folder appears called Binaries. This indicates that the compilation have been successful and the project binary have been created.

Build succeed and the console outputs "Hello world", you can also check the output on target.

RESULT: 
configure:3287: error: in `/home/libby/workspace/yocto379':
configure:3289: error: C compiler cannot create executables
See `config.log' for more details

REPRODUCIBILITY: I have done this over 5 times each time erasing all my environment and installing again.
Comment 1 brian avery 2017-07-30 13:31:08 UTC
Moving to M3
Comment 2 brian avery 2017-08-23 00:39:22 UTC
wget http://autobuilder.yoctoproject.org/pub/releases/yocto-2.3_M3.rc1/machines/qemu/qemux86/core-image-sato-qemux86-20170314211112.rootfs.tar.gz

is incorrect!!!

 When using the Eclipse plugin to build, you MUST download the sato-sdk image.  The other images lack the necessary files for both building and debugging.

The image is used by the plugin not just to run and debug, but it is also used for the sysroot components like crtbegin.o.

If I do the same as described in the bug but with the sato-sdk image. It works fine.
Comment 3 oscar lopez arandas 2017-10-26 14:51:30 UTC
following the same steps mentioned just lowering the image core-image-sato-sdk-qemux86-date-rootfs-tar-bz2) It works fine.

wget autobuilder.yoctoproject.org/pub/releases/<yocto-version>/machines/qemu/qemux86/qemu (ex: core-image-sato-sdk-qemux86-date-rootfs-tar-bz2)