Bug 12714 - cmake says rootfs cross toolchain is broken
Summary: cmake says rootfs cross toolchain is broken
Status: RESOLVED FIXED
Alias: None
Product: Eclipse Plugin
Classification: Yocto Project Subprojects
Component: eclipse-plugin (show other bugs)
Version: 5.99
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.6 M4
Assignee: Chin Huat Ang
QA Contact: Toaster default assignee
URL:
Whiteboard:
Depends on:
Blocks: 12682
  Show dependency tree
 
Reported: 2018-04-26 01:06 UTC by Chin Huat Ang
Modified: 2018-10-02 02:28 UTC (History)
6 users (show)

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


Attachments
SDK toolchain cmake error (1.98 KB, text/x-log)
2018-04-26 01:09 UTC, Chin Huat Ang
no flags Details
build directory toolchain cmake error (1.76 KB, text/x-log)
2018-04-26 01:09 UTC, Chin Huat Ang
no flags Details

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