This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Toy Front End
- From: Tim Josling <tej at melbpc dot org dot au>
- To: khalidaggag at hotmail dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 24 Jun 2002 06:14:53 +1000
- Subject: Toy Front End
- Organization: Melbourne PC User Group
> Hello,
>
> I am interested in building a new frontend for gcc. To start out I am trying
> to compile Michael Meeks' modified toy frontend with
> GCC 3.1.1 (http://primates.ximian.com/~michael/toy-3.1.1.tar.gz), I get some
> strange
> errors:-
>
> gcc -c -DIN_GCC -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
> -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H
> -DGENERATOR_FILE -I. -I. -I.././../GCCSRC/gcc -I.././../GCCSRC/gcc/.
> -I.././../GCCSRC/gcc/config -I.././../GCCSRC/gcc/../include
> .././../GCCSRC/gcc/print-rtl.c -o print-rtl.o
> In file included from .././../GCCSRC/gcc/print-rtl.c:30:
> ../../GCCSRC/gcc/tree.h:332:24: tree-check.h: No such file or directory
> make[1]: *** [print-rtl.o] Error 1
> make[1]: Leaving directory `/home/khalid/Compiler/GCC/GCCOBJ/gcc'
> make: *** [all-gcc] Error 2
>
> I checked to see if this "tree-check.h" file exists and i didnt find it. I
> cant understand how
> the "tree.h" file includes a file that doesnt actually exits. Can anyone
> help
> me please, thanx alot.
>
> Khalid Aggag
>
Probably the version of toy you downloaded no longer works with that version
of GCC.
You are probably better off to use treelang, which is a replacement for toy
but which is kept up to date. At this stage you will need to download it as
part of the GCC source tree using cvs, to get the latest version of the main
source tree branch.
Then follow the instructions for building GCC, making sure to include treelang
in the --enable-languages= parameter of the configure statement.
You can email me if you have any problems. Try and follow the instructions
carefully.
Tim Josling