[oe] Fail to build eglibc on testing

Khem Raj raj.khem at gmail.com
Tue Nov 9 04:54:01 UTC 2010


On Mon, Nov 8, 2010 at 7:00 PM, Cui, Dexuan <dexuan.cui at intel.com> wrote:
> Chris Larson wrote:
>> On Mon, Nov 8, 2010 at 7:31 PM, Otavio Salvador
>> <otavio at ossystems.com.br>wrote:
>>
>>> I got this build fail. Anyone knows anything about it?
>>>
>>>> nscd.c:(.text+0x573): undefined reference to `__stack_chk_guard'
>>>> nscd.c:(.text+0x5cd): undefined reference to `__stack_chk_guard'
>>>>
>>> /home/otavio/hacking/ossystems/oe/oetmp-current/work/i586-oe-linux/eglibc-2.12-r15.6+svnr11762/build-i586-oe-linux/nscd/nscd.o:
>>> In function `parse_opt':
>>>> nscd.c:(.text+0x5fc): undefined reference to `__stack_chk_guard'
>>>> nscd.c:(.text+0x8cf): undefined reference to `__stack_chk_guard'
>>>
>>
>>
>> I've run into this before in the past.  Never had time to
>> investigate, but throwing out a "me too" :)
>
> In Sep, when working on Poky side, I happened to meet with the same issue (I think here it's the same issue.:-)
> In my Poky side, it turned out to be a gcc's with_build_sysroot configuration issue:
> http://bugzilla.pokylinux.org/show_bug.cgi?id=366
> http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?id=2a066e7ca90a28d5681c5fa895a29e999ed7c88b
>
> Thought I worked on Poky for several months, I'm new to OE. I hope the above links can help to fix your issue.
>

The fix is good. GCC assumes usr/include here which is wrong assumption when
dir structure is flattened out. However I would have preferred this
to be a patch instead  of a sed script. Let me fix it using a patch
instead for OE.

-Khem




More information about the Openembedded-devel mailing list