All of lore.kernel.org
 help / color / mirror / Atom feed
* uclibc elfutils
@ 2012-02-27 16:35 John Toomey
  2012-02-27 17:07 ` Khem Raj
  0 siblings, 1 reply; 3+ messages in thread
From: John Toomey @ 2012-02-27 16:35 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 1446 bytes --]

Hello all,

I'm having some difficulty building elfutils (required by gdb) and I 
think its relating to the fact that im using uclibc.

    NOTE: package elfutils-0.148-r5: task do_compile: Started
    ERROR: Function failed: do_compile (see
    /tmp/work/i586-poky-linux-uclibc/elfutils-0.148-r5/temp/log.do_compile.14653
    for further information)
    ERROR: Logfile of failure stored in:
    /tmp/work/i586-poky-linux-uclibc/elfutils-0.148-r5/temp/log.do_compile.14653
    Log data follows:
    | DEBUG: SITE files ['endian-little', 'bit-32', 'ix86-common',
    'common-linux', 'common-uclibc', 'i586-linux-uclibc', 'common']
    | NOTE: make -j 24 -C libelf
    | make: Entering directory
    `/tmp/work/i586-poky-linux-uclibc/elfutils-0.148-r5/elfutils-0.148/libelf'
    ...
    | elf_error.c:56:21: fatal error: libintl.h: No such file or directory
    | compilation terminated.
    | make: *** [elf_error.o] Error 1
    | make: *** Waiting for unfinished jobs....
    | make: Leaving directory
    `/tmp/work/i586-poky-linux-uclibc/elfutils-0.148-r5/elfutils-0.148/libelf'
    | ERROR: oe_runmake failed
    NOTE: package elfutils-0.148-r5: task do_compile: Failed
    ERROR: Task 218
    ([path]/poky/meta/recipes-devtools/elfutils/elfutils_0.148.bb,
    do_compile) failed with exit code '1'

The build works if I switch to eglibc. Can anyone help me figure out 
what might cause this?

Regards
John

[-- Attachment #2: Type: text/html, Size: 1824 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: uclibc elfutils
  2012-02-27 16:35 uclibc elfutils John Toomey
@ 2012-02-27 17:07 ` Khem Raj
  2012-02-28 13:38   ` John Toomey
  0 siblings, 1 reply; 3+ messages in thread
From: Khem Raj @ 2012-02-27 17:07 UTC (permalink / raw)
  To: John Toomey; +Cc: yocto

On Mon, Feb 27, 2012 at 8:35 AM, John Toomey
<john.toomey@linux.intel.com> wrote:
> Hello all,
>
> I'm having some difficulty building elfutils (required by gdb) and I think
> its relating to the fact that im using uclibc.

Yes elfutils has some glibc kinship unfortunately which is hard to untangle.
However gdb does not need elfutils in fact. please cherry-pick
following commit from oe-core master

commit 8330205eeb605354c139605618255940e3b312d4
Author: Khem Raj <raj.khem@gmail.com>
Date:   Fri Jan 20 17:07:42 2012 -0800

    gdb-common: Drop elfutils from DEPENDS

    Signed-off-by: Khem Raj <raj.khem@gmail.com>


>
> NOTE: package elfutils-0.148-r5: task do_compile: Started
> ERROR: Function failed: do_compile (see
> /tmp/work/i586-poky-linux-uclibc/elfutils-0.148-r5/temp/log.do_compile.14653
> for further information)
> ERROR: Logfile of failure stored in:
> /tmp/work/i586-poky-linux-uclibc/elfutils-0.148-r5/temp/log.do_compile.14653
> Log data follows:
> | DEBUG: SITE files ['endian-little', 'bit-32', 'ix86-common',
> 'common-linux', 'common-uclibc', 'i586-linux-uclibc', 'common']
> | NOTE: make -j 24 -C libelf
> | make: Entering directory
> `/tmp/work/i586-poky-linux-uclibc/elfutils-0.148-r5/elfutils-0.148/libelf'
> ...
> | elf_error.c:56:21: fatal error: libintl.h: No such file or directory
> | compilation terminated.
> | make: *** [elf_error.o] Error 1
> | make: *** Waiting for unfinished jobs....
> | make: Leaving directory
> `/tmp/work/i586-poky-linux-uclibc/elfutils-0.148-r5/elfutils-0.148/libelf'
> | ERROR: oe_runmake failed
> NOTE: package elfutils-0.148-r5: task do_compile: Failed
> ERROR: Task 218
> ([path]/poky/meta/recipes-devtools/elfutils/elfutils_0.148.bb, do_compile)
> failed with exit code '1'
>
> The build works if I switch to eglibc. Can anyone help me figure out what
> might cause this?
>
> Regards
> John
>
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: uclibc elfutils
  2012-02-27 17:07 ` Khem Raj
@ 2012-02-28 13:38   ` John Toomey
  0 siblings, 0 replies; 3+ messages in thread
From: John Toomey @ 2012-02-28 13:38 UTC (permalink / raw)
  To: Khem Raj; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 2857 bytes --]

On 27/02/2012 17:07, Khem Raj wrote:
> On Mon, Feb 27, 2012 at 8:35 AM, John Toomey
> <john.toomey@linux.intel.com>  wrote:
>> Hello all,
>>
>> I'm having some difficulty building elfutils (required by gdb) and I think
>> its relating to the fact that im using uclibc.
> Yes elfutils has some glibc kinship unfortunately which is hard to untangle.
> However gdb does not need elfutils in fact. please cherry-pick
> following commit from oe-core master
>
> commit 8330205eeb605354c139605618255940e3b312d4
> Author: Khem Raj<raj.khem@gmail.com>
> Date:   Fri Jan 20 17:07:42 2012 -0800
>
>      gdb-common: Drop elfutils from DEPENDS
>
>      Signed-off-by: Khem Raj<raj.khem@gmail.com>
>
>
>> NOTE: package elfutils-0.148-r5: task do_compile: Started
>> ERROR: Function failed: do_compile (see
>> /tmp/work/i586-poky-linux-uclibc/elfutils-0.148-r5/temp/log.do_compile.14653
>> for further information)
>> ERROR: Logfile of failure stored in:
>> /tmp/work/i586-poky-linux-uclibc/elfutils-0.148-r5/temp/log.do_compile.14653
>> Log data follows:
>> | DEBUG: SITE files ['endian-little', 'bit-32', 'ix86-common',
>> 'common-linux', 'common-uclibc', 'i586-linux-uclibc', 'common']
>> | NOTE: make -j 24 -C libelf
>> | make: Entering directory
>> `/tmp/work/i586-poky-linux-uclibc/elfutils-0.148-r5/elfutils-0.148/libelf'
>> ...
>> | elf_error.c:56:21: fatal error: libintl.h: No such file or directory
>> | compilation terminated.
>> | make: *** [elf_error.o] Error 1
>> | make: *** Waiting for unfinished jobs....
>> | make: Leaving directory
>> `/tmp/work/i586-poky-linux-uclibc/elfutils-0.148-r5/elfutils-0.148/libelf'
>> | ERROR: oe_runmake failed
>> NOTE: package elfutils-0.148-r5: task do_compile: Failed
>> ERROR: Task 218
>> ([path]/poky/meta/recipes-devtools/elfutils/elfutils_0.148.bb, do_compile)
>> failed with exit code '1'
>>
>> The build works if I switch to eglibc. Can anyone help me figure out what
>> might cause this?
>>
>> Regards
>> John
>>
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>>
Hi Raj

Thank you for your reply - this seems to have resolved my issue.

Can you let me know if there is a correct way to build gdbserver into my 
target? I have tried a few things and none of them seem to work. THIS 
<http://www.yoctoproject.org/docs/1.1/poky-ref-manual/poky-ref-manual.html#platdev-gdb-remotedebug-launch-gdbserver>page 
suggests that there should be a gdbserver package but it doesn seem to 
exist when I try to include it. Including 'gdb' on its own doesnt seem 
to put gdbserver on the target. Also - i have tried EXTRA_IMAGE_FEATURES 
= "tools-debug" in local.conf but that breaks everything as it depends 
on X11 which I am not using.

Regards,
John


[-- Attachment #2: Type: text/html, Size: 3784 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-02-28 13:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-27 16:35 uclibc elfutils John Toomey
2012-02-27 17:07 ` Khem Raj
2012-02-28 13:38   ` John Toomey

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.