This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
--with-sysroot demands /usr/include?
- From: Daniel Kegel <dank at kegel dot com>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 12 Jan 2004 12:48:59 -0800
- Subject: --with-sysroot demands /usr/include?
I'm still flailing around a bit switching to --with-sysroot (needed to
generate a working x86 -> x86_64 cross toolchain). I had thought that
perhaps I could put my include files in $sys_root/include
(as opposed to $sys_root/usr/include), but when I try this, building
the final gcc blows up with the error
The directory that should contain system headers does not exist:
/opt/crosstool/x86_64-unknown-linux-gnu/gcc-3.3-20040105-glibc-2.3.2/x86_64-unknown-linux-gnu/sys-root/usr/include
make[1]: *** [stmp-fixinc] Error 1
make[1]: Leaving directory `/home/dkegel/wk/crosstool-0.26-pre2/build/x86_64-unknown-linux-gnu/gcc-3.3-20040105-glibc-2.3.2/build-gcc-core/gcc'
make: *** [all-gcc] Error 2
I couldn't see any way to tell gcc's configure where to look
inside the sysroot for include files. Is it true that one
simply must put the include files in $sys_root/usr/include when
using --with-sysroot, or did I miss something obvious?
Thanks,
Dan