the uclibc recipe in recipes-core needs the following patch for gcc 5.x http://git.buildroot.org/buildroot/tree/package/uclibc/0.9.33.2/0071-Fix-libgcc_s_resume-issue.patch?id=6c7f3b28e694da032a80cc5f55ef124f2c6e81ee
Even with that patch uclibc doesn't build for me using gcc5: | /data/poky-master/tmp/work/core2-64-poky-linux-uclibc/uclibc/0.9.33+gitAUTOINC+ca1c74d67d-r9/git/libc/sysdeps/linux/x86_64/brk.c:27: undefined reference to `__stack_chk_guard' | /data/poky-master/tmp/work/core2-64-poky-linux-uclibc/uclibc/0.9.33+gitAUTOINC+ca1c74d67d-r9/git/libc/sysdeps/linux/x86_64/brk.c:44: undefined reference to `__stack_chk_fail' Did I do something bad (I just did TCLIBC=uclibc), or are there other patches needed too?
I am stuck with an old kernel version (3.10.70), because I have to use some binary blob drivers. Therefore, some modifications had been necessary in order to build for my set-top box I didn't need any further patches. This is my uclibc config. https://github.com/neutrino-hd/meta-neutrino/tree/master/recipes-custom/uclibc/uclibc The local.conf i am using is this one https://github.com/neutrino-hd/meta-coolstream/blob/master/example/local.conf Please consider the fact that I am not a real developer and only do this for fun Is UCLIBC_HAS_SSP set in your uclibc config? I will try this out with a clean yocto build as soon as i find some time
I tried to reproduce your error message and startet with a clean jethro branch. I only changed to tclibc = "uclibc" in local.conf and was able to build uclibc for machine "qemux86" without errors. Then i pulled in meta-raspberrypi, because it is very close to the architecture i am building for and stumbled across the same errors i had, when i first tried to build uclibc for my machine. So i used the uclibc.bbappend posted above and was able to complete the build for machine "raspberrypi2" (fix-libgcc_s_resume-issue.patch was also needed) The patch seems only be needed for arm architecture or at least for armv7a
Khem posted a series to make uclibc work with current master.
Fixed as of oe-core 5c515a1c7a86c510b6ae4f99c5b2e20d52622543.
Thanks for the fix
Verified on master fc45deac89ef63ca1c44e763c38ced7dfd72cbe1 for passing the UTMP error I added UCLIBC_HAS_UTMP=y /meta/recipes-core/uclibc/uclibc-git/uClibc.distro