Hello, I want to add *-sanitize* option to my application. I performed following changes. I see that *gcc-sanitize* target is pulled and compiled by application is not linking the correct files. I am trying to use this target: meta/recipes-devtools/gcc/gcc-sanitizers_13.2.bb Am I missing some changes to include this target for my app.
*+++ b/meta-ibm/recipes-phosphor/mboxd/mboxd_%.bbappend* +FULL_OPTIMIZATION:append=" -Og -fsanitize=address,undefined " +TARGET_CPPFLAGS:append=" -O0 " *+++ b/meta-ibm/recipes-phosphor/images/obmc-phosphor-image.bbappend* -OBMC_IMAGE_EXTRA_INSTALL:append:p10bmc = " mboxd" +OBMC_IMAGE_EXTRA_INSTALL:append:p10bmc = " mboxd mboxd-src mboxd-dbg libasan libubsan" *I am getting following errors in the mbox configure.* openbmc/build/p10bmc/tmp/work/armv7ahf-vfpv4d16-openbmc-linux-gnueabi/mboxd/1.0+git/recipe-sysroot-native/usr/bin/arm-openbmc-linux-gnueabi/../../libexec/arm-openbmc-linux-gnueabi/gcc/arm-openbmc-linux-gnueabi/13.2.0/ld: cannot find libasan_preinit.o: No such file or directory openbmc/build/p10bmc/tmp/work/armv7ahf-vfpv4d16-openbmc-linux-gnueabi/mboxd/1.0+git/recipe-sysroot-native/usr/bin/arm-openbmc-linux-gnueabi/../../libexec/arm-openbmc-linux-gnueabi/gcc/arm-openbmc-linux-gnueabi/13.2.0/ld: cannot find -lasan: No such file or directory openbmc/build/p10bmc/tmp/work/armv7ahf-vfpv4d16-openbmc-linux-gnueabi/mboxd/1.0+git/recipe-sysroot-native/usr/bin/arm-openbmc-linux-gnueabi/../../libexec/arm-openbmc-linux-gnueabi/gcc/arm-openbmc-linux-gnueabi/13.2.0/ld: cannot find -lubsan: No such file or directory collect2: error: ld returned 1 exit status configure:4101: $? = 1 configure:4142: result: no configure: failed program was: I appreciate your help! Thanks & Regards, Ninad Palsule
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#64312): https://lists.yoctoproject.org/g/yocto/message/64312 Mute This Topic: https://lists.yoctoproject.org/mt/109684927/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-