This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH]. Fix HAVE_SYS_SDT_H for cross-compilation
- From: Bill Schmidt <wschmidt at linux dot vnet dot ibm dot com>
- To: christian dot bruel at st dot com
- Cc: jakub at redhat dot com, gcc-patches at gcc dot gnu dot org, antonb at au1 dot ibm dot com
- Date: Thu, 22 Aug 2013 09:39:48 -0500
- Subject: Re: [PATCH]. Fix HAVE_SYS_SDT_H for cross-compilation
Hi Christian and Jakub,
I'm curious whether there was ever any resolution for:
http://gcc.gnu.org/ml/gcc-patches/2012-12/msg01124.html.
We've encountered what appears to be the same issue internally when
building a cross for powerpc64le-linux-gnu:
/scratch/tmp/anton/toolchain/build/src/gcc/libgcc/unwind-dw2.c:41:21:
fatal error: sys/sdt.h: No such file or directory
#include <sys/sdt.h>
The gcc configure is looking at the build machine header files, instead
of the installed headers for the host we're building. We can work
around this with a build-sysroot, but it seems that shouldn't be
necessary. Thoughts?