[oe] [meta-oe][PATCH 2/2] mariadb: disable thumb on armv5

Kang Kai Kai.Kang at windriver.com
Tue Aug 29 03:00:46 UTC 2017


On 2017年08月29日 02:17, Andre McCurdy wrote:
> On Mon, Aug 28, 2017 at 6:59 AM,  <kai.kang at windriver.com> wrote:
>> From: Kai Kang <kai.kang at 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 at 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.

OK. Thanks. V2 will be sent.

--Kai

>
>>   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 at lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-devel


-- 
Regards,
Neil | Kai Kang




More information about the Openembedded-devel mailing list