Hi, The current libsanitizer changes to the trunk breaks nightly PowerPC builds (ppc64 & e600). Is it a known issue? Should I open a bug for this? /local/nightly/build/opt/freescale/NLAppc64/obj_gcc/./gcc/xgcc -shared-libgcc -B/local/nightly/build/opt/freescale/NLAppc64/obj_gcc/./gcc -nostdinc++ -L/local/nightly/build/opt/freescale/NLAppc64/obj_gcc/powerpc64-unknown-linux-gnu/libstdc++-v3/src -L/local/nightly/build/opt/freescale/NLAppc64/obj_gcc/powerpc64-unknown-linux-gnu/libstdc++-v3/src/.libs -L/local/nightly/build/opt/freescale/NLAppc64/obj_gcc/powerpc64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -B/local/nightly/build//opt/freescale/gcc-4.10.x-Nppc64-linux/ppc64-linux/powerpc64-unknown-linux-gnu/bin/ -B/local/nightly/build//opt/freescale/gcc-4.10.x-Nppc64-linux/ppc64-linux/powerpc64-unknown-linux-gnu/lib/ -isystem /local/nightly/build//opt/freescale/gcc-4.10.x-Nppc64-linux/ppc64-linux/powerpc64-unknown-linux-gnu/include -isystem /local/nightly/build//opt/freescale/gcc-4.10.x-Nppc64-linux/ppc64-linux/powerpc64-unknown-linux-gnu/sys-include -D_GNU_SOURCE -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DASAN_HAS_EXCEPTIONS=1 -DASAN_FLEXIBLE_MAPPING_AND_OFFSET=0 -DASAN_NEEDS_SEGV=1 -I. -I../../../../src_gcc/libsanitizer/asan -I.. -I ../../../../src_gcc/libsanitizer/include -I ../../../../src_gcc/libsanitizer -Wall -W -Wno-unused-parameter -Wwrite-strings -pedantic -Wno-long-long -fPIC -fno-builtin -fno-exceptions -fno-rtti -fomit-frame-pointer -funwind-tables -fvisibility=hidden -Wno-variadic-macros -I../../libstdc++-v3/include -I../../libstdc++-v3/include/powerpc64-unknown-linux-gnu -I../../../../src_gcc/libsanitizer/../libstdc++-v3/libsupc++ -g -O2 -D_GNU_SOURCE -MT asan_linux.lo -MD -MP -MF .deps/asan_linux.Tpo -c ../../../../src_gcc/libsanitizer/asan/asan_linux.cc -fPIC -DPIC -o .libs/asan_linux.o ../../../../src_gcc/libsanitizer/asan/asan_linux.cc:209:3: error: #error "Unsupported arch" Source: src_gcc/libsanitizer/asan/asan_linux.cc (line 209) Function: void GetPcSpBp(void *context, uptr *pc, uptr *sp, uptr *bp) { It seems the check for PowerPC target macro has been removed in the above mentioned function. --- ../../../../src_gcc/libsanitizer/asan/asan_linux.cc (revision 210742) +++ ../../../../src_gcc/libsanitizer/asan/asan_linux.cc (revision 210743) .. .. -# elif defined(__powerpc__) || defined(__powerpc64__) +# endif +#elif defined(__sparc__) ucontext_t *ucontext = (ucontext_t*)context; - *pc = ucontext->uc_mcontext.regs->nip; - *sp = ucontext->uc_mcontext.regs->gpr[PT_R1]; - // The powerpc{,64}-linux ABIs do not specify r31 as the frame - // pointer, but GCC always uses r31 when we need a frame pointer. - *bp = ucontext->uc_mcontext.regs->gpr[PT_R31]; -# elif defined(__sparc__) - ucontext_t *ucontext = (ucontext_t*)context; .. .. Related commit: 210743 (libsanitizer merge from upstream r209283) Regards, Rohit