dotgnu-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[DotGNU]CVS building instructions for PNET and TREE for CYGWIN


From: James Michael DuPont
Subject: [DotGNU]CVS building instructions for PNET and TREE for CYGWIN
Date: Mon, 15 Jul 2002 03:39:51 -0700 (PDT)

There seems to be quite an interest in using 
cygwin for pnet. I have been supporting some people via email with
build problems, and Gopal has requested a prebuilt cygwin, so here it
is : 

On that note,
Maybe this would be a good time to make me a member of 
of the pnet project on savannah, my member id is mdupont.

I could then upload the files there for pnet.

I have been able to do my development under debian and cywin with no
real problems, just little annoyances.
For the benefit of the list i have created a step by step instructions
for building under cygwin and have posted the results to the net :

They are available here :
http://introspector.sf.net/dotgnu/treecc.tar.gz         1.1 meg
http://introspector.sf.net/dotgnu/pnet.tar.gz           16 meg 

Woah, those are big!
so I clean them for you if you want to build yourself : 

After make clean :
http://introspector.sf.net/dotgnu/pnet-clean.tar.gz     2.9M
http://introspector.sf.net/dotgnu/treecc-clean.tar.gz   664k


The patch to build the pnet is located here
http:/introspector.sf.net/dotgnu/mdupont-020515.patch

I dont know how to install this into a dir, like the deb fakeroot.

here are the MD5s :
2a4b7ee143df70423573fdef5de43b07 *pnet-clean.tar.gz
35e90fa47a7cf71bc08d351c69619153 *pnet.tar.gz
811940d6b8bd646035c2a0b845a39295 *treecc-clean.tar.gz
6fda1593152a52790adf8a5647a55ca1 *treecc.tar.gz
4ba4117fc902d9bd4405ab09f41b77b7 *mdupont-020515.patch

Happy hacking,
mike

Oh, here is my BUILD TEXT :
--------------------------------------------------------------------
http://introspector.sourceforge.net/dotgnu/build.txt
--------------------------------------------------------------------
0. Upgrade your cygwin:
   run this : http://www.cygwin.com/setup.exe
   I use the mirror : programming.ccp14.ac.uk 

   i have installed 
     automake       : 1.6.1-1     
     automake-devel : 1.6.2-1
     gcc            : 3.1.1-2 but it should work with 2.95.3-5
     autoconf       : 2.53a-1 
     autoconf-devel : 2.53a-1 
     bison          : 1.35-1 
     cvs            : 1.11.0-1
     w32api         : 1.5-1   NOTE THAT I HAD TO INSTALL THE SRC to get the
libgc running.
    
ALSO NOTE THAT I DO NOT HAVE THE VC7 ENVIRONMENT VARS set!!!!

1. Get the sources 
   BASH: $ cvs
-d:pserver:address@hidden:/cvsroot/dotgnu-pnet login
for the password just hit "ENTER".
   BASH: $ cvs
-d:pserver:address@hidden:/cvsroot/dotgnu-pnet co treecc
   BASH: $ cvs
-d:pserver:address@hidden:/cvsroot/dotgnu-pnet co pnet

2. Configure the sources
goto the treecc directory.
   BASH: $ sh ./auto_gen.sh
   configure.in:3: your implementation of AM_INIT_AUTOMAKE comes from
an
   configure.in:3: old Automake version.  You should recreate
aclocal.m4
   configure.in:3: with aclocal and run automake again.
   configure.in: installing `./ylwrap'
   automake: processing Makefiles another time to fix them up.
   configure.in:28: warning: AC_PROG_LEX invoked multiple times

So, you need to run aclocal now
   BASH: $ aclocal 
and then 
   BASH: $ sh ./auto_gen.sh

Ok, so you are ready to configure
   BASH: $ ./configure

this will generate a config.log that you should post if you have any
problems.
If you do have a problem, you should diff the config.log against the
one that I will post.

next you make treecc   
BASH: $ make

You will get a problem compiling the c++ example:
    make[2]: Entering directory
`/cygdrive/c/development/dotgnu/treecc/examples'
    g++ -g -O2    expr_cpp.cc   -o expr_cpp
    In file included from
/usr/include/c++/3.1.1/backward/iostream.h:31,
    from ./expr_cpp.tc:48:
    /usr/include/c++/3.1.1/backward/backward_warning.h:32:2: warning:
#warning This
    file includes at least one deprecated or antiquated header. Please
consider usin
    g one of the 32 headers found in section 17.4.1.2 of the C++
standard. Examples
    include substituting the <X> header for the <X.h> header for C++
includes, or <s
    stream> instead of the deprecated header <strstream.h>. To disable
this warning
    use -Wno-deprecated.
    /cygdrive/d/DOCUME~1/mdupont/LOCALS~1/Temp/ccgQsp9b.o: In function
`main':
    /cygdrive/c/development/dotgnu/treecc/examples/./expr_cpp.tc:462:
undefined refe
    rence to `yyparse(void*)'
    collect2: ld returned 1 exit status
    make[2]: *** [expr_cpp] Error 1
    make[2]: Leaving directory
`/cygdrive/c/development/dotgnu/treecc/examples'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/cygdrive/c/development/dotgnu/treecc'
    make: *** [all] Error 2

So we will fix the c++ example, for some reason the makefile is funny:
BASH: $ make expr_cpp.o gram_cpp.o scan_cpp.o
BASH: $ gcc -o expr_cpp.exe expr_cpp.o gram_cpp.o scan_cpp.o -lstdc++
Then we are done with treecc
so we install it for the pleasure of easy usage!
BASH: $ make install

............... NOW FOR THE PNET!!!
Same procedure, in fast forward:
   BASH: $ sh ./auto_gen.sh
   BASH: $ aclocal 
   BASH: $ sh ./auto_gen.sh
   BASH: $ ./configure
   BASH: $ make
   BASH: $ make install

Hmmm The garbage collector lib is going crazy.
We need to change mark.c to tell it not to think it is using some crazy
microsoft extension.
I dont know enough about the config system, so here is my quick hack :
  #ifndef_CYGWIN_TYPES_H 
  #endif 
this is used to determine if we are in cywin, I am sure there is a
better way... 
but I dont know.



=====
James Michael DuPont
http://introspector.sourceforge.net/

__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com


reply via email to

[Prev in Thread] Current Thread [Next in Thread]