This is the mail archive of the crossgcc@sourceware.cygnus.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more infromation.


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

Re: Compiling GCC 2.95.1 for m68k-coff Cross Compiler


Guy Préfontaine wrote:
> 
> I need help. This is the compilation error :
> 
> CC="/home/Compile/build-gcc/gcc/xgcc -B/home/Compile/build-gcc/gcc/
> -B/usr/gnu/m68k-coff/bin/ -I. -I../../../gcc/libio"; export CC; \
    xxxxxxxxxxxxxxxxxxxxxx

 So your build directory is '/home/Compile/build-gcc' and your final
install directory for binutils, libs and headers is '/usr/gnu/m68k-coff'...

> dummy.c:1: sys/types.h: No such file or directory
> dummy.c:8: stdio.h: No such file or directory
> dummy.c:9: time.h: No such file or directory
> dummy.c:10: signal.h: No such file or directory
> 
> Copy include directory in /home/Compile/build-gcc/m68k-coff
> Doesn't work

 According the previous selections of yours, you should copy the target
headers to your final '/usr/gnu/m68k-coff/include', not to the (temporary)
build-directory. GCC searches the headers from the final install-directory.
(the binutils should be found even without the '-B/usr/gnu/m68k-coff/bin/')

Please see with :

  /home/Compile/build-gcc/gcc/xgcc -print-search-dirs

which are the search directories for the subprograms and libraries,
the include-search paths will follow these somehow, just replace the 'bin'
and 'lib' in them with 'include'...

Cheers, Kai



------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


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