Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Kang Kai <Kai.Kang@windriver.com>
To: Fathi Boudra <fathi.boudra@linaro.org>
Cc: openembedded-core <openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 9/9] perf: disable libunwind support for aarch64
Date: Tue, 23 Sep 2014 17:13:16 +0800	[thread overview]
Message-ID: <542139AC.9050201@windriver.com> (raw)
In-Reply-To: <CAGNsrLDiRpTjOxhpppTxe8H8UJUrLxxnxxKaZq4MXuAV+HMJDQ@mail.gmail.com>

On 2014年09月23日 16:23, Fathi Boudra wrote:
> On 23 September 2014 09:11, Kang Kai <Kai.Kang@windriver.com> wrote:
>> On 2014年09月23日 00:01, Fathi Boudra wrote:
>>> On 19 September 2014 12:21, Kai Kang <kai.kang@windriver.com> wrote:
>>>> Disable libunwind support of perl for aarch aarch64 that libunwind
>>>> doesn't support aarch64.
>>> typo:
>>> perl -> perf
>>> aarch -> arch
>>>
>>> Otherwise, the patch doesn't seems correct. libunwind supports aarch64
>>> since libunwind 1.1 (you need to build with --enable-debug-frame).
>>
>> When do configure, it fails with:
>>
>> | checking for ELF helper width... configure: error: Unknown ELF target:
>> aarch64
>>
>> It could be fixed by patching configure.ac:
>>
>> --- configure.ac.orig   2014-09-23 13:30:23.415975656 +0800
>> +++ configure.ac        2014-09-23 13:30:47.991976326 +0800
>> @@ -137,7 +137,7 @@
>>   AC_MSG_CHECKING([for ELF helper width])
>>   case "${target_arch}" in
>>   (arm|hppa|ppc32|x86|sh) use_elf32=yes; AC_MSG_RESULT([32]);;
>> -(ia64|ppc64|x86_64)    use_elf64=yes; AC_MSG_RESULT([64]);;
>> +(aarch64|ia64|ppc64|x86_64)    use_elf64=yes; AC_MSG_RESULT([64]);;
>>   (mips)                 use_elfxx=yes; AC_MSG_RESULT([xx]);;
>>   *)                     AC_MSG_ERROR([Unknown ELF target: ${target_arch}])
>>   esac
>>
>> And then it fails with do compile either:
>>
>> | ../include/libunwind.h:25:3: error: #error "Unsupported arch"
>>
>> In include/libunwind.h.in, it checks arch and include header accordingly.
>> For aarch64, it lacks arch check and header file libunwind-arm64.h or
>> libunwind-aarch64.h.
>
> right, we've upstreamed aarch64 support but it hasn't been released in 1.1.
> we need the following patches:
> http://git.savannah.gnu.org/gitweb/?p=libunwind.git;a=commitdiff;h=ac6c0a6535975f1dc2da6e4e2766614baac2a14a
> http://git.savannah.gnu.org/gitweb/?p=libunwind.git;a=commitdiff;h=2cb00c1eaca437e41556ad5512149508fcc7cb82

Thanks , I'll try them.

--Kai

>
>> Thanks,
>> Kai
>>
>>
>>
>>>> Signed-off-by: Kai Kang <kai.kang@windriver.com>
>>>> ---
>>>>    meta/recipes-kernel/perf/perf-features.inc | 1 +
>>>>    1 file changed, 1 insertion(+)
>>>>
>>>> diff --git a/meta/recipes-kernel/perf/perf-features.inc
>>>> b/meta/recipes-kernel/perf/perf-features.inc
>>>> index 2dbbb47..7de35f3 100644
>>>> --- a/meta/recipes-kernel/perf/perf-features.inc
>>>> +++ b/meta/recipes-kernel/perf/perf-features.inc
>>>> @@ -1,4 +1,5 @@
>>>>    PERF_FEATURES_ENABLE ?= "perf-scripting perf-tui perf-libunwind"
>>>> +PERF_FEATURES_ENABLE_remove_aarch64 = "perf-libunwind"
>>>>
>>>>    def perf_feature_enabled(feature, trueval, falseval, d):
>>>>        """
>>>> --
>>>> 1.9.1
>>>>
>>>> --
>>>> _______________________________________________
>>>> Openembedded-core mailing list
>>>> Openembedded-core@lists.openembedded.org
>>>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>>>
>>
>> --
>> Regards,
>> Neil | Kai Kang
>


-- 
Regards,
Neil | Kai Kang



  reply	other threads:[~2014-09-23  9:13 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-19  9:21 [PATCH 0/9] V3: Add machine qemuaarch64 Kai Kang
2014-09-19  9:21 ` [PATCH 1/9] linux-yocto: depend on libgcc for aarch64 Kai Kang
2014-09-19  9:21 ` [PATCH 2/9] Add machine qemuarm64 Kai Kang
2014-09-19  9:21 ` [PATCH 3/9] gcc-4.9: redefine default library install directory Kai Kang
2014-09-19  9:21 ` [PATCH 4/9] libatomics-ops: add aarch64 target iniitial support Kai Kang
2014-09-19  9:21 ` [PATCH 5/9] qt4-native: add aarch64 support Kai Kang
2014-09-19  9:21 ` [PATCH 6/9] qt4: " Kai Kang
2014-09-19  9:21 ` [PATCH 7/9] qt4-embedded: disable webkit Kai Kang
2014-09-19  9:21 ` [PATCH 8/9] libpng: add neon option for aarch64 Kai Kang
2014-09-19  9:21 ` [PATCH 9/9] perf: disable libunwind support " Kai Kang
2014-09-22 16:01   ` Fathi Boudra
2014-09-23  6:11     ` Kang Kai
2014-09-23  8:23       ` Fathi Boudra
2014-09-23  9:13         ` Kang Kai [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-09-16 15:06 [PATCH 0/9] V2: Add machine qemuaarch64 Kai Kang
2014-09-16 15:06 ` [PATCH 9/9] perf: disable libunwind support for aarch64 Kai Kang
2014-09-18  7:07   ` Khem Raj
2014-09-18  9:38     ` Kang Kai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=542139AC.9050201@windriver.com \
    --to=kai.kang@windriver.com \
    --cc=fathi.boudra@linaro.org \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox