All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andre McCurdy <armccurdy@gmail.com>
To: Kang Kai <kai.kang@windriver.com>
Cc: openembeded-devel <openembedded-devel@lists.openembedded.org>
Subject: Re: [meta-oe][PATCH 2/2] mariadb: disable thumb on armv5
Date: Mon, 28 Aug 2017 11:17:33 -0700	[thread overview]
Message-ID: <CAJ86T=Xg+-=EJXT-_3+wQnu3NM58rpdeVHh1Fw=CLvRkhGs1Ug@mail.gmail.com> (raw)
In-Reply-To: <20170828135913.7508-2-kai.kang@windriver.com>

On Mon, Aug 28, 2017 at 6:59 AM,  <kai.kang@windriver.com> wrote:
> From: Kai Kang <kai.kang@windriver.com>
>
> Disable thumb on armv5 for mariadb which causes link error:
>
> | libsql.a(mysqld.cc.o): In function `test_if_case_insensitive(char const*) [clone .constprop.28]':
> | /usr/src/debug/mariadb/5.5.57-r0/mariadb-5.5.57/sql/mysqld.cc:8276:(.text.unlikely+0xbe):
> | relocation truncated to fit: R_ARM_THM_CALL against symbol `fn_format' defined
> | in .glue_7 section in linker stubs
> | /usr/src/debug/mariadb/5.5.57-r0/mariadb-5.5.57/sql/mysqld.cc:8278:(.text.unlikely+0xd0):
> | relocation truncated to fit: R_ARM_THM_CALL against symbol `fn_format' defined
> | in .glue_7 section in linker stubs
> | /usr/src/debug/mariadb/5.5.57-r0/mariadb-5.5.57/sql/mysqld.cc:8285:(.text.unlikely+0x150):
> | relocation truncated to fit: R_ARM_THM_CALL against symbol
> | `sql_print_warning(char const*, ...)' defined in .glue_7 section in linker stubs
>
> Signed-off-by: Kai Kang <kai.kang@windriver.com>
> ---
>  meta-oe/recipes-support/mysql/mariadb.inc | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/meta-oe/recipes-support/mysql/mariadb.inc b/meta-oe/recipes-support/mysql/mariadb.inc
> index 32e3eaa6d..03cded637 100644
> --- a/meta-oe/recipes-support/mysql/mariadb.inc
> +++ b/meta-oe/recipes-support/mysql/mariadb.inc
> @@ -82,6 +82,8 @@ EXTRA_OECMAKE = "-DWITH_EMBEDDED_SERVER=ON \
>                   -DCAT_EXECUTABLE=`which cat` \
>                   -DCMAKE_AR:FILEPATH=${AR}"
>
> +ARM_INSTRUCTION_SET_armv5 = "arm"

For Thumb1 build issues, normal approach is to over-ride
ARM_INSTRUCTION_SET for both armv4 and armv5. Even though you may not
be able to test armv4 it's almost certain to hit the same issue.

>  do_configure_append() {
>      # handle distros with different values of ${libexecdir}
>      libexecdir2=`echo ${libexecdir} | sed -e 's+/usr/++g'`
> --
> 2.14.1
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel


  reply	other threads:[~2017-08-28 18:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-28 13:59 [meta-oe][PATCH 1/2] krb5: fix CVE-2017-11368 kai.kang
2017-08-28 13:59 ` [meta-oe][PATCH 2/2] mariadb: disable thumb on armv5 kai.kang
2017-08-28 18:17   ` Andre McCurdy [this message]
2017-08-29  3:00     ` Kang Kai
2017-08-30  9:30 ` [meta-oe][PATCH 1/2] krb5: fix CVE-2017-11368 Kang Kai
2017-08-30  9:40   ` Martin Jansa
2017-08-30  9:53     ` 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='CAJ86T=Xg+-=EJXT-_3+wQnu3NM58rpdeVHh1Fw=CLvRkhGs1Ug@mail.gmail.com' \
    --to=armccurdy@gmail.com \
    --cc=kai.kang@windriver.com \
    --cc=openembedded-devel@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 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.