[M3devel] building packages from source from cvs

Hendrik Boom hendrik at topoi.pooq.com
Thu May 17 01:55:49 CEST 2012


On Wed, May 16, 2012 at 05:15:26PM -0400, Hendrik Boom wrote:
> On Wed, May 16, 2012 at 08:24:52PM +0000, Jay K wrote:
> > 
> > Your CVS tree is maybe incomplete or out of date? Try this:
> >    cd m3-sys   
> >    rm -rf m3cc  
> >    cvs -z3 upd -dAP m3cc   
> >    cd m3cc   
> >    cm3  
> 
> I wsn't using the CVS tree.  I was using 
> cm3-src-all-5.8.6-REL.tgz, downloaded from 
> http://modula3.elegosoft.com/cm3/releng/download.html.
> 
> Maybe your instructions apply only to a still-newer source 
> tree.
> 
> >  
> > 
> > Or just checkout a whole new tree.
> 
> That's what I'll do.  Is the current head in good 
> enough shape?

Just checked out a whole new source tree.

cd scripts/python
./upgrade.py

and got 1504 lines of messages (yes, I saved them this time) ending with:

configure: creating ./config.status
config.status: creating Makefile
cd . && make  MAKE=make  AUTOCONF=: AUTOMAKE=: LEX='touch lex.yy.c' MAKEINFO=: c
onfigure-host
cd . && make  MAKE=make  AUTOCONF=: AUTOMAKE=: LEX='touch lex.yy.c' MAKEINFO=: configure-host
mkdir -p -- ./gcc
Configuring in ./gcc
configure: creating cache ./config.cache
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking LIBRARY_PATH variable... contains current directory
configure: error: 
*** LIBRARY_PATH shouldn't contain the current directory when
*** building gcc. Please change the environment variable
*** and run configure again.
make: *** [configure-gcc] Error 1
"/farhome/hendrik/cm3/cm3/m3-sys/m3cc/src/m3makefile", line 281: quake runtime error: exit 2: cd . && make  MAKE=make  AUTOCONF=: AUTOMAKE=: LEX='touch lex.yy.c' MAKEINFO=: configure-host

--procedure--  -line-  -file---
exec               --  <builtin>
m3cc_Run          281  /farhome/hendrik/cm3/cm3/m3-sys/m3cc/src/m3makefile
include_dir       475  /farhome/hendrik/cm3/cm3/m3-sys/m3cc/src/m3makefile
                    5  /farhome/hendrik/cm3/cm3/m3-sys/m3cc/AMD64_LINUX/m3make.args

Fatal Error: package build failed
 *** execution of [<function _BuildGlobalFunction at 0x7f70063d6848>, <function _ShipFunction at 0x7f70063d68c0>] failed ***
hendrik at april:~/cm3/cm3/scripts/python$ 


I'm not out of the woods yet.

By the way, the LIBRARY_PATH in the shell from which I ran upgrade.py
was 

hendrik at april:~/cm3/cm3/scripts/python$ echo $LIBRARY_PATH
:/usr/local/Gambit-C/lib
hendrik at april:~/cm3/cm3/scripts/python$ 

and seems to have nothing to do with anything, 
so I'll have to investigate further.

-- hendrik



More information about the M3devel mailing list