This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Configuring: with-sysroot without-headers
- From: "Matwey V. Kornilov" <matwey dot kornilov at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Sat, 19 Oct 2013 18:23:51 +0400
- Subject: Configuring: with-sysroot without-headers
- Authentication-results: sourceware.org; auth=none
Hi,
I am trying to compile cross (gcc version: 4.8.2, target: avr), and
there is gap in my education. What is the real purpose of --with-sysroot
and --with-build-sysroot?
When I use ./configure without --with-build-sysroot --with-sysroot
--without-headers then everything looks to be compiled fine.
When I use ./configure --with-sysroot=/usr/avr
--with-build-sysroot=/usr/avr --without-headers (which should do the
same for my opinion), I got an error with the message "The directory
that should contain system headers does not exist". Why does
--without-headers not act as I expect? I will populate
/usr/avr/usr/include with avrlibc later (should I?), but now I want not
to use target headers (I have not got yet the cross to compile avr-libc).