This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Compiling GCC for linux with no /usr/include
- From: "Casey Allen Shobe" <cshobe at osss dot net>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 28 Oct 2004 12:40:25 -0400 (EDT)
- Subject: Compiling GCC for linux with no /usr/include
Greetings all,
I'm attempting to build GCC on a custom linux system that does not feature
a /usr directory. Specifically, this means it does not have /usr/include,
but rather /include. I'm running into an error, which I'm able to
workaround, but looking for a way to compile cleanly as I'd like to
automate this process, and stop if there are any unexpected errors.
I've tried the following configure arguments:
--prefix= --exec-prefix= --bindir=/bin --sbindir=/bin --libdir=/lib
--libexecdir=/libexec --datadir=/share --localstatedir=/var
--includedir=/include --oldincludedir=/include --infodir=/share/info
--mandir=/share/man --sysconfdir=/etc/gcc --enable-shared --disable-static
--with-slibdir=/lib --enable-threads=posix --enable-__cxa_atexit
--enable-clocale=gnu --enable-languages=c,c++
However, when issuing a make command following this, I get an error,
specifically:
chmod 755 ../fixinc.sh
make[2]: Leaving directory `/share/src/gcc/build/gcc/fixinc'
The directory that should contain system headers does not exist:
/usr/include
make[1]: *** [stmp-fixinc] Error 1
make[1]: Leaving directory `/share/src/gcc/build/gcc'
make: *** [all-gcc] Error 2
I found by looking at gcc/Makefile that I could workaround this problem
with 'cd gcc; make NATIVE_SYSTEM_HEADER_DIR=/include; cd ..; make
I found that trying 'make NATIVE_SYSTEM_HEADER_DIR=/include' in the root
of the build directory does not work, and I cannot precompile the gcc
directory using the manual variable setting since it does not exist until
I run the 'make' command which fails the first time.
I would like to find a way to cleanly compile gcc without any errors. Any
advice is greatly appreciated!
--
Casey Allen Shobe | http://casey.allen.shobe.info
cshobe@osss.net | ICQ: 1494523 | AIM: SomeLinuxGuy