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]

Re: [Q]Cross-compiler



Unfortunately, I do not remember all the details of building a
  cross-compiler. (It is something end up doing only once every six
  months or so.) 

Please send questions like this to gcc-help@gcc.gnu.org; I do not know
  everything,  and I usually read gcc-help anyway.

So my only answer to your question is:
  http://gcc.gnu.org/install/index.html
  and http://www.objsw.com/CrossGCC/

On Mon, 8 May 2000, [utf-8] 하정희 wrote:

> I'm glad to meet you 
> Let me introduce myself. I am Korean student
>  
> Nowadays, I try to make Cross-Compiler for sparc-sun but, that was very difficult since errors
>  
> target=sparc-sun            
> host=i686-pc-linux-gnu        
>  
> Cross-compiler
>  
> my directory is 
>  
> /home/alohajh/bar
>                        /binutils-2.9.1
>                        /build-binutils
>                        /build-gcc
>                        /build-gdb
>                        /gcc-2.95.2
>                        /objdir
>  
> first , I made native compiler
>  
> cd objdir
> ../gcc-2.95.2/configure
> make bootstrap       ----OK
>  
> second, 
> 1) install binutils
> target=sparc-sun
> prefix=/home/alohajh/bar     =>alohajh is my id.
> i=$prefix/bin
> cd build-binutils
> ../binutils-2.9.1/configure --target=$target --prefix=$prefix -v --with-headers=/usr/include
> make all install    -----OK
>  
> 2) install gcc for sparc-sun
> cd build-gcc
> ../gcc-2.95.2/configure --target=$target --prefix=$prefix -v --with-headers=/usr/include

I have always built gcc in an object directory that is separate from the
  source. Also, I remember needing --with-libs={target system libs} the
  last time I built a cross compiler. 

> make all install    -----Erros

and I remember running 'make cross', and *not* 'make all'. The details are
  in the two links above.


>  
> Error lists are..
>  
> after compiling during 10 minutes
>  
> _fixtfdi
> _floatdixf
> _fixunsxfsi
> _fixfdi
> _fixunstfdi
> _floatditf
> __gcc_bcmp
> _varargs
> __dummy
> _eprintf
> _bb
> _shtab
> _clear_cache
> _trampoline
> __main
> Infile included from  ../../gcc-2.95.2/gcc/libgcc2.c:2820
> ../../gcc-2.95.2/gcc/gbl-ctors.h:46: conflicting types for 'on_exit'
> /usr/include/stdlib.h:514: previous declaration of 'on_exit'
> make[3] : ***[libgcc2.a]Error1
> make[3] : Leaving directory '/home/alohajh/build-gcc/gcc'
> make[2] : ***[stmp-multilib-sub]Error2
> make[2] : Leaving directory '/home/alohajh/build-gcc/gcc'
> make[1] : ***[stmp-multilib]Error1
> make[1] : Leaving directory '/home/alohajh/build-gcc/gcc'
> make : ***[all-gcc]Error2
> ________________________________________________________
> 3) Newlib ---- not yet
> 4) GDB ---- not yet
> ________________________________________________________|
>  
> How can I handle 2)'s erros
>  
> Let me to wating your answer mail....
> If you can tell me something more about it i would appreciate it a lot. 
>  
> Thank you......
> 
> 


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