[Kirkstone] lib32-gcc-sanitizers build failed for Multilib ARM

Gaurang Shastri <[email protected]>
Newsgroups org.yoctoproject.lists.meta-arm,org.yoctoproject.lists.yocto
Message-ID <CAE_REAsGjqy43TvYmVsmfKyPe74isegRV2=c4K=vJsJD8a_o=g@mail.gmail.com>
Hi Team,

I am trying to build toolchain with AARCH64/ARM32 multilib support.

My configuration part of toolchain is as follows:
==

DEFAULTTUNE = "cortexa72"

require conf/machine/include/arm/armv8a/tune-cortexa72.inc


# multilib support

require conf/multilib.conf

MULTILIBS = "multilib:lib32"

DEFAULTTUNE:virtclass-multilib-lib32 = "armv7athf-neon"

==


With this when I tried to build "meta-toolchain", if fails with following
error messages:

==

|
../../../../../../../../../work-shared/gcc-11.4.0-r0/gcc-11.4.0/libsanitizer/sanitizer_common/sanitizer_li

nux.cpp: In fu

nction '__sanitizer::uptr __sanitizer::GetKernelAreaSize()':


|
../../../../../../../../../work-shared/gcc-11.4.0-r0/gcc-11.4.0/libsanitizer/sanitizer_common/sanitizer_linux.cpp:1024:1

: error: r7 cannot be used in 'asm' here


|  1024 | }

|       | ^

*|
../../../../../../../../../work-shared/gcc-11.4.0-r0/gcc-11.4.0/libsanitizer/sanitizer_common/sanitizer_linux.cpp:1024:1:
error: r7 cannot be used in 'asm' here*

| make[2]: Leaving directory
'/b/workspace/yocto/build/tmp/work/armv7at2hf-neon-pokymllib32-linux-gnueabi/lib32-gcc-sanitizers/11.4.0-r0/gcc-11.4.0/build.arm-pokymllib32-linux-gnueabi.arm-pokymllib32-linux-gnueabi/arm-pokymllib32-linux-gnueabi/libsanitizer/sanitizer_common'

| make[2]: *** [Makefile:617: sanitizer_linux.lo] Error 1

| make[1]: Leaving directory
'/b/workspace/yocto/build/tmp/work/armv7at2hf-neon-pokymllib32-linux-gnueabi/lib32-gcc-sanitizers/11.4.0-r0/gcc-11.4.0/build.arm-pokymllib32-linux-gnueabi.arm-pokymllib32-linux-gnueabi/arm-pokymllib32-linux-gnueabi/libsanitizer'

| make[1]: *** [Makefile:531: all-recursive] Error 1

| make: *** [Makefile:418: all] Error 2

| ERROR: oe_runmake failed

==

Is this a known issue? Is multilib supported for ARM64/32 combination? Or
do I need to use seperate machine/toolchain configuration for ARM32 build?

Regards,

Gaurang Shastri
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.