[M3devel] m3cgc1: fatal error: *** bad M3CG version stamp (0x100), expected 0x110

Jay K jay.krell at cornell.edu
Tue Jun 2 09:11:44 CEST 2015


John, this and your other problems should all be fixed now.
I was able to reproduce them mostly.I didn't actually reproduce the cvsup problem, but I see in the log you did set CM3, and I did test with that, and hit the cm3cg version mismatch, and the problem is pretty clear -- my mistake.

See: https://github.com/modula3/cm3/commit/a149d4b5e715d89b076c92e0b41d74f9b5ff56e4  https://github.com/modula3/cm3/commit/769784562d0e45b968e515c1412ed9247ec050ef  https://github.com/modula3/cm3/commit/a0e44b08e687a8bba677c299ffa459993525944c 

Thank you for your patience and diligence.
I am able to start with I386_DARWIN 5.8.6 and either upgrade.py && make-dist.py or skip right to make-dist.py.There was an additional problem skipping right to make-dist.py that I fixed, at least for Darwin.
I don't use any of the .sh files -- I don't want to read/maintain/learn that programming language as I suspect it isn't particularly good.
 - Jay


From: jay.krell at cornell.edu
To: adacore at marino.st
CC: m3devel at elegosoft.com
Subject: RE: [M3devel] m3cgc1: fatal error: *** bad M3CG version stamp (0x100), expected 0x110
Date: Mon, 1 Jun 2015 14:38:44 +0000




Sorry, multiple mistakes there by me.

 
 But I think I see the problem maybe.
 
 
 See it is always running mech/construction/mech/ptrees/default/lang/modula3/work/bootstrap/bin/cm3 ? 
 
 
 and never 

 
 /mech/construction/mech/ptrees/default/lang/modula3/work/intermediate/compiler_with_{previous,self}/bin/{cm3,cm3cg} ?
Do you have $CM3 set? Don't do that.

 
It is supposed to be updating $PATH as it goes and finding cm3 and maybe cm3cg from there.
But an environment variable CM3 will break it.
https://github.com/modula3/cm3/blob/master/scripts/python/make-dist.py
the function Setup
That should print more, and maybe run and print the output of "where/which cm3" and "where/which cm3cg".
 
 
and:
https://github.com/modula3/cm3/blob/master/scripts/python/pylib.py:
 CM3 = ConvertPathForPython(getenv("CM3")) or "cm3"
 CM3 = SearchPath(CM3)
 
 
I really just need to get and try your automation.
You've made it available already? 
I'll have FreeBSD running locally "soon"..
 
 
The right request by me would be to set PATH and CM3_INSTALL appropriately as make-dist.py would and
run just building cvsup with -commands -verbose. Can you see how to do that?
 
 

 - Jay


 
> Date: Mon, 1 Jun 2015 11:44:02 +0200
> From: adacore at marino.st
> To: jay.krell at cornell.edu
> CC: m3devel at elegosoft.com
> Subject: Re: [M3devel] m3cgc1: fatal error: *** bad M3CG version stamp (0x100), expected 0x110
> 
> On 6/1/2015 11:29, Jay K wrote:
> > can you do like:
> >  export
> > PATH=$STAGE/cm3-all-AMD64_FREEBSD-d5.10.0-FreeBSD10.1-20150601/bin/:$PATH
> >  cd
> > /mech/construction/mech/ptrees/default/lang/modula3/work/cm3-8c1b86a/m3-tools/cvsup/suplib
> > 
> >  cm3 -commands -verbose
> >  cm3 -commands -verbose realclean
> >  cm3 -commands -verbose build
> 
> It did not like "realclean" or "build":
> http://leaf.dragonflybsd.org/~marino/cvsupcmd.log
> 
> John
 		 	   		   		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20150602/e0a722e5/attachment-0002.html>


More information about the M3devel mailing list