[Top][All Lists]

[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 :         1.1 meg           16 meg 

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

After make clean :     2.9M   664k

The patch to build the pnet is located here

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,

Oh, here is my BUILD TEXT :
0. Upgrade your cygwin:
   run this :
   I use the mirror : 

   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.

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 ./ your implementation of AM_INIT_AUTOMAKE comes from
an old Automake version.  You should recreate
aclocal.m4 with aclocal and run automake again. installing `./ylwrap'
   automake: processing Makefiles another time to fix them up. warning: AC_PROG_LEX invoked multiple times

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

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

this will generate a config.log that you should post if you have any
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
    g++ -g -O2   -o expr_cpp
    In file included from
    from ./
    /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 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
undefined refe
    rence to `yyparse(void*)'
    collect2: ld returned 1 exit status
    make[2]: *** [expr_cpp] Error 1
    make[2]: Leaving directory
    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 ./
   BASH: $ aclocal 
   BASH: $ 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 :
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

Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes

reply via email to

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