This is the mail archive of the crossgcc@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: building gcc-2.95 for linux -> m68k-elf


Try this:

cd gcc-2.95
ln -s ../newlib-1.8.1/newlib newlib

Then add the --with-newlib flag when you configure. The build process will detect the existence of newlib, and copy the required header files into the build directory, and then use them. There is no need to pre-install the files. They will get
installed when you install gcc (newlib gets installed with it).


Eric Smith wrote:

> I'm trying to build 2.95 as a linux -> m68k-elf cross-compiler with newlib.
> I configured it like:
>
>   ../gcc-2.95/configure --target=m68k-elf --prefix=/usr/local --with-gnu-as \
>   --with-gnu-ld --enable-languages=c++ --with-newlib
>
> It fails when it tries to build libiberty for the target.  I thought that was
> a host-only thing?  Is it really supposed to get built for the target?
> Here's the tail end of the log:
>
> make[1]: Leaving directory `/home/eric/gnu/gcc-2.95-m68k-elf/gcc'
> make[1]: Entering directory `/home/eric/gnu/gcc-2.95-m68k-elf/m68k-elf/libiberty'
> test x"no" != xyes || \
>   /home/eric/gnu/gcc-2.95-m68k-elf/gcc/xgcc -B/home/eric/gnu/gcc-2.95-m68k-elf/gcc/ -B/usr/local/m68k-elf/bin/ -c -DHAVE_CONFIG_H -g -O2 -I. -I../../../gcc-2.95/libiberty/../include   ../../../gcc-2.95/libiberty/choose-temp.c -o pic/choose-temp.o
> /home/eric/gnu/gcc-2.95-m68k-elf/gcc/xgcc -B/home/eric/gnu/gcc-2.95-m68k-elf/gcc/ -B/usr/local/m68k-elf/bin/ -c -DHAVE_CONFIG_H -g -O2 -I. -I../../../gcc-2.95/libiberty/../include  ../../../gcc-2.95/libiberty/choose-temp.c
> ../../../gcc-2.95/libiberty/choose-temp.c:29: stdio.h: No such file or directory
> ../../../gcc-2.95/libiberty/choose-temp.c:30: sys/types.h: No such file or directory
> make[1]: *** [choose-temp.o] Error 1
> make[1]: Leaving directory `/home/eric/gnu/gcc-2.95-m68k-elf/m68k-elf/libiberty'
> make: *** [all-target-libiberty] Error 2
>
> I tried copying the newlib includes into /usr/local/m68k-elf/include, but
> that didn't help.  Are they supposed to be somewhere else?
>
> Thanks!
> Eric
> _______________________________________________
> New CrossGCC FAQ: http://www.objsw.com/CrossGCC
> _______________________________________________
> To remove yourself from the crossgcc list, send
> mail to crossgcc-request@cygnus.com with the
> text 'unsubscribe' (without the quotes) in the
> body of the message.

_______________________________________________
New CrossGCC FAQ: http://www.objsw.com/CrossGCC
_______________________________________________
To remove yourself from the crossgcc list, send
mail to crossgcc-request@cygnus.com with the
text 'unsubscribe' (without the quotes) in the
body of the message.

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