This is the mail archive of the gcc-help@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]

Error making a cross-compiler


    Hi there,

    I don't know if this is the right place for questions about the gcc
build/install process. Let me know the right place otherwise.

    I'm trying to compile a cross-compiler from gcc-4.0.2 sources.

    It is configured this way:

/usr/src/redhat/BUILD/gcc-4.0.2/configure --prefix=/usr/local/gcc-msdos
--with-local-prefix=/usr/local/gcc-msdos --enable-checking=release
--disable-threads --disable-libunwind-exceptions
--enable-target-optspace --with-system-zlib --enable-__cxa_atexit
--enable-languages=c,c++ --host=i386-redhat-linux
--target=i686-pc-msdosdjgpp

    But at a point during the make process I've got this:

make
...
make[2]: Entering directory `/root/gcc-build/i686-pc-msdosdjgpp/gcc'
for d in libgcc; do \
  if [ -d $d ]; then true;
else /bin/sh /usr/src/redhat/BUILD/gcc-4.0.2/gcc/../mkinstalldirs $d;
fi; \
done
mkdir -p -- libgcc
if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
/root/gcc-build/i686-pc-msdosdjgpp/gcc/xgcc
-B/root/gcc-build/i686-pc-msdosdjgpp/gcc/
-B/usr/local/gcc-msdos/i686-pc-msdosdjgpp/bin/
-B/usr/local/gcc-msdos/i686-pc-msdosdjgpp/lib/
-isystem /usr/local/gcc-msdos/i686-pc-msdosdjgpp/include
-isystem /usr/local/gcc-msdos/i686-pc-msdosdjgpp/sys-include -O2
-DIN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition  -isystem ./include   -g
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I.
-I/usr/src/redhat/BUILD/gcc-4.0.2/gcc
-I/usr/src/redhat/BUILD/gcc-4.0.2/gcc/.
-I/usr/src/redhat/BUILD/gcc-4.0.2/gcc/../include
-I/usr/src/redhat/BUILD/gcc-4.0.2/gcc/../libcpp/include  -DL_muldi3
-c /usr/src/redhat/BUILD/gcc-4.0.2/gcc/libgcc2.c -o libgcc/./_muldi3.o
cc1: error: ../include/sys/version.h: No such file or directory
make[2]: *** [libgcc/./_muldi3.o] Error 1
make[2]: Leaving directory `/root/gcc-build/i686-pc-msdosdjgpp/gcc'
make[1]: *** [libgcc.a] Error 2
make[1]: Leaving directory `/root/gcc-build/i686-pc-msdosdjgpp/gcc'
make: *** [all-gcc] Error 2


    As far as I can see, both isystem directories don't exist in my
system.

    What I'm doing wrong?. Where should I get the missing header files?.

        
    Thank you in advance.

David.


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