This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

--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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]