This is the mail archive of the gcc@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: Newbie to creating front ends to gcc (and now also: trying to build gcc 3.0 under DJGPP)


> > Right now I'm trying to understand that tree code.
> >
> > I think I need a simple example of how to create a tree.
> See <http://gcc.gnu.org/readings.html>,
> in particular "Example and Toy compilers for current snapshot".

That one was a broken link...
 
> See also the "Writing a Compiler Front End" chapter of
> "Using, Maintaining and Enhancing COBOL for the GNU Compiler
> Collection (GCC)".

However, this seems very interesting. Thank you!
 
> > I'm running GCC 2.95.3 at the moment as that is what goes with DJGPP. 
> That is quite out-of-date with respect to current sources, unfortunately.
> To save yourself effort, I'd strongly recommend using GCC 3.0 or a recent
> development snapshot.

Maybe that will solve the "too many lines" debugging problem as well? 

> If you're stuck with using Windows, that may make things a little more
> difficult.  I don't know whether 3.0 or recent development snapshots
> work with DJGPP, but I think they probably do work with Cygwin.

Well, if they don't, someone should fix it, right? :) So I gave it a
try. Maybe we can solve this together... 

1) I copied the files to d:/Program/djgpp/gnu/gcc-3.0/. There is already
an installation of DJGPP in d:/program/djgpp. I picked them all from
www.djgpp.com 
2) I created the directory d:/program/djgpp/build, whereto I copied
djbuild.sh and djmake.sh from the gcc-2.953/build.djg directory.
3) I ran djbuild.sh. 
  During configure, I noticed this message:
"configure: warning: No program for building catalogs found -> building
disabled", however the configuration seemed to continue properly. (I
checked the script and it happened because both $MSGFMT and $GMSGFMT
were "msgfmt", but there was no explanation in the script of what
"msgfmt" is, so I gave up there.)
4) I ran djmake.sh. This is a screen dump of its last output:

make.exe[2]: Entering directory
`d:/Program/djgpp/gnu/gcc-3.0/build/gcc/intl'
\gcc -c -DIN_GCC -DLOCALEDIR=\"d:/program/djgpp/share/locale\"
-DGNULOCALEDIR=\"
d:/program/djgpp/share/locale\"
-DLOCALE_ALIAS_PATH=\"d:/program/djgpp/share/loc
ale:.\" -DHAVE_CONFIG_H -I.. -I. -I/Program/djgpp/gnu/gcc-3.0/gcc/intl
-I/Progra
m/djgpp/gnu/gcc-3.0/gcc/lib -I/Program/djgpp/gnu/gcc-3.0/gcc/intl/..
-I/Program/
djgpp/gnu/gcc-3.0/gcc/intl/../config
-I/Program/djgpp/gnu/gcc-3.0/gcc/intl/../..
/include  -g -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -
Wtraditional -pedantic -Wno-long-long 
/Program/djgpp/gnu/gcc-3.0/gcc/intl/intl-
compat.c
make.exe[2]: *** [intl-compat.o] Error -1
make.exe[2]: Leaving directory
`d:/Program/djgpp/gnu/gcc-3.0/build/gcc/intl'
make.exe[1]: *** [intl.all] Error 1
make.exe[1]: Leaving directory `d:/Program/djgpp/gnu/gcc-3.0/build/gcc'
make.exe: *** [all-gcc] Error 2
bash-2.04$

Do you have any idea of how I should continue?

// David


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