public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Error making a cross-compiler
@ 2006-02-16 11:09 David Fernandez
  2006-02-16 11:15 ` Ben Elliston
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: David Fernandez @ 2006-02-16 11:09 UTC (permalink / raw)
  To: gcc


	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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Error making a cross-compiler
  2006-02-16 11:09 Error making a cross-compiler David Fernandez
@ 2006-02-16 11:15 ` Ben Elliston
  2006-02-16 14:11 ` DJ Delorie
  2006-02-17  6:45 ` Andris Pavenis
  2 siblings, 0 replies; 4+ messages in thread
From: Ben Elliston @ 2006-02-16 11:15 UTC (permalink / raw)
  To: David Fernandez; +Cc: gcc

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

It would be better to start on the gcc-help mailing list.  Also,
consider looking into using crosstool to assist with building.

Ben

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Error making a cross-compiler
  2006-02-16 11:09 Error making a cross-compiler David Fernandez
  2006-02-16 11:15 ` Ben Elliston
@ 2006-02-16 14:11 ` DJ Delorie
  2006-02-17  6:45 ` Andris Pavenis
  2 siblings, 0 replies; 4+ messages in thread
From: DJ Delorie @ 2006-02-16 14:11 UTC (permalink / raw)
  To: dfernandez; +Cc: gcc


> cc1: error: ../include/sys/version.h: No such file or directory
> 
> 	What I'm doing wrong?. Where should I get the missing header files?.

This is a header that comes with DJGPP's library.  Like most cross
compilers, you have to install part of the runtime package (usually at
least the headers) before you can build gcc's runtime library.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Error making a cross-compiler
  2006-02-16 11:09 Error making a cross-compiler David Fernandez
  2006-02-16 11:15 ` Ben Elliston
  2006-02-16 14:11 ` DJ Delorie
@ 2006-02-17  6:45 ` Andris Pavenis
  2 siblings, 0 replies; 4+ messages in thread
From: Andris Pavenis @ 2006-02-17  6:45 UTC (permalink / raw)
  To: David Fernandez; +Cc: gcc

David Fernandez kirjoitti:
> 	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
>

I have source RPMS of GCC-4.0.2 cross-compiler for DJGPP target 
togethere with ones of needed tools at
	http://ap1.pp.fi/djgpp/gcc/cross-compiler/index.html

Tested on Fedora Core 4, but all perhaps should be OK also for other 
versions

Andris


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-02-17  6:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-16 11:09 Error making a cross-compiler David Fernandez
2006-02-16 11:15 ` Ben Elliston
2006-02-16 14:11 ` DJ Delorie
2006-02-17  6:45 ` Andris Pavenis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).