when cross compilling native gcc (host == target, build != host ) sdt.h is looked up in build system's include directory, rather then in sysroot of cross compiler:
in gcc/configure.ac: ... # Test for <sys/sdt.h> on the target. GCC_TARGET_TEMPLATE([HAVE_SYS_SDT_H]) AC_MSG_CHECKING(sys/sdt.h in the target C library) have_sys_sdt_h=no if test -f $target_header_dir/sys/sdt.h; then have_sys_sdt_h=yes AC_DEFINE(HAVE_SYS_SDT_H, 1, [Define if your target C library provides sys/sdt.h]) fi AC_MSG_RESULT($have_sys_sdt_h) ... when target == host $target_header_dir is empty how can I workaround this ?