Bug 12714

Summary: cmake says rootfs cross toolchain is broken
Product: [Yocto Project Subprojects] Eclipse Plugin Reporter: Chin Huat Ang <chin.huat.ang>
Component: eclipse-pluginAssignee: Chin Huat Ang <chin.huat.ang>
Status: RESOLVED FIXED QA Contact: Toaster default assignee <toaster>
Severity: normal    
Priority: Medium+ CC: bluelightning, randy.macleod, richard.purdie, tim.orling, yp.ep.watcher, yp.watcher
Version: 5.99   
Target Milestone: 2.6 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know
Bug Depends on:    
Bug Blocks: 12682    
Attachments:
Description Flags
SDK toolchain cmake error
none
build directory toolchain cmake error none

Description Chin Huat Ang 2018-04-26 01:06:15 UTC
Configure Yocto Project SDK preference based on instructions from https://wiki.yoctoproject.org/wiki/TipsAndTricks/RunningEclipseAgainstBuiltImage#Alternatively.2C_Downloading_what_we_need_for_Qemux86

I tried 2.5 M3 rc1 SDK toolchain and sato-sdk rootfs, autotools project compiles fine but cmake project refuses to compile saying that the compiler is broken.
Comment 1 Chin Huat Ang 2018-04-26 01:09:06 UTC
Created attachment 4286 [details]
SDK toolchain cmake error
Comment 2 Chin Huat Ang 2018-04-26 01:09:36 UTC
Created attachment 4287 [details]
build directory toolchain cmake error
Comment 3 Richard Purdie 2018-04-26 07:50:19 UTC
The key error is:

/opt/yocto-releases/2.5_M3.rc1/core-image-sato-sdk-qemux86/MY_QEMU_ROOTFS/usr/bin/make: /lib/i386-linux-gnu/libc.so.6: version `GLIBC_2.27' not found (required by /opt/yocto-releases/2.5_M3.rc1/core-image-sato-sdk-qemux86/MY_QEMU_ROOTFS/usr/bin/make)

This should have been fixed by http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=5350ee317740751f2417c1794dd39d3880347dbf, could you confirm that was in the version of M3 you're testing? I can't remember whether this was in M3 rc1 or not.
Comment 4 Chin Huat Ang 2018-05-18 01:08:14 UTC
It appears that the error was caused by misconfigured cmake toolchain which led to toolchain (make, gcc, etc.) from OECORE_TARGET_SYSROOT being executed on SDK machine.

https://lists.yoctoproject.org/pipermail/eclipse-yocto/2018-May/000150.html
Comment 5 Randy MacLeod 2018-09-13 15:09:06 UTC
Is this fixed now?
Comment 6 Chin Huat Ang 2018-10-02 02:28:41 UTC
I no longer see the error message on 2.5.1 and 2.6 M2 SDKs.