This warnings comes if the size of a function frame is larger than length
byte.
It is recommended to choose 2048 as default warning threshold for 64bit
architecture.
Can you please try to increase FRAME_WARN size to 2048 or larger.
CONFIG_FRAME_WARN=2048

Thanks,
Akshay


On Mon, Dec 16, 2019 at 8:37 PM Jimmy <[email protected]> wrote:

> Hi, all
>
> I am trying to build an Android kernel (branch
> android-msm-wahoo-4.4-pie-qpr2) with kasan&kcov enabled using android-llvm
> toolchain. I modified build.config to:
>
> ARCH=arm64
> BRANCH=android-msm-wahoo-4.4
> CC=clang
> CLANG_TRIPLE=aarch64-linux-gnu-
> CROSS_COMPILE=aarch64-linux-android-
> CROSS_COMPILE_ARM32=arm-linux-androideabi-
> DEFCONFIG=wahoo_defconfig
> EXTRA_CMDS=''
> KERNEL_DIR=private/msm-google
> POST_DEFCONFIG_CMDS="check_defconfig && update_kasan_config"
>
> function update_kasan_config() {
>     ${KERNEL_DIR}/scripts/config --file ${OUT_DIR}/.config \
>          -e CONFIG_KASAN \
>          -e CONFIG_KASAN_INLINE \
>          -e CONFIG_TEST_KASAN \
>          -e CONFIG_KCOV \
>          -e CONFIG_SLUB \
>          -e CONFIG_SLUB_DEBUG \
>          -e CONFIG_SLUB_DEBUG_ON \
>          -d CONFIG_SLUB_DEBUG_PANIC_ON \
>          -d CONFIG_KASAN_OUTLINE \
>          -d CONFIG_KERNEL_LZ4 \
>          -d CONFIG_RANDOMIZE_BASE
>     (cd ${OUT_DIR} && \
>      make O=${OUT_DIR} $archsubarch CROSS_COMPILE=${CROSS_COMPILE}
> olddefconfig)
> }
> CLANG_PREBUILT_BIN=prebuilts-master/clang/host/linux-x86/clang-4691093/bin/
>
> LINUX_GCC_CROSS_COMPILE_PREBUILTS_BIN=prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin
>
> LINUX_GCC_CROSS_COMPILE_ARM32_PREBUILTS_BIN=prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin
> LZ4_PREBUILTS_BIN=prebuilts-master/misc/linux-x86/lz4
> DTC_PREBUILTS_BIN=prebuilts-master/misc/linux-x86/dtc
> LIBUFDT_PREBUILTS_BIN=prebuilts-master/misc/linux-x86/libufdt
> FILES="
> arch/arm64/boot/dtbo.img
> arch/arm64/boot/Image.lz4-dtb
> vmlinux
> System.map
> "
> IN_KERNEL_MODULES=1
> STOP_SHIP_TRACEPRINTK=1
> UNSTRIPPED_MODULES="
> wlan.ko
> "
>
> However, when I tried to build the kernel using build/build.sh, I got
> several errors as follows:
>
> aosp-kernel/private/msm-google/drivers/misc/qcom/qdsp6v2/audio_hwacc_effects.c:538:13:
> error:
>       stack frame size of 2144 bytes in function
> 'audio_effects_compat_ioctl'
>       [-Werror,-Wframe-larger-than=]
>
>
> aosp-kernel/private/msm-google/drivers/media/platform/msm/camera_v2/pproc/cpp/msm_cpp.c:4018:13:
> error:
>       stack frame size of 3200 bytes in function
> 'msm_cpp_subdev_fops_compat_ioctl'
>       [-Werror,-Wframe-larger-than=]
>
> I have done some searching, but could not find the answer.
> Could someone help me with this? Thanks in advance!
>
> Best,
> Jimmy
>
> --
> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Building" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-building/dcf4556c-69e9-485c-9d4c-a4e8119c3165%40googlegroups.com
> <https://groups.google.com/d/msgid/android-building/dcf4556c-69e9-485c-9d4c-a4e8119c3165%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/CAEQtK3enXhGHGOweHLhA0xxb3s_Lk6zjUt%3DFcjJEASCf62kqiQ%40mail.gmail.com.

Reply via email to