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

Olaf Wagner wagner at elego.de
Fri May 29 18:02:23 CEST 2015


On Fri, 29 May 2015 17:30:05 +0200
John Marino <adacore at marino.st> wrote:

> > I'll make a final test with an older bootstrap archive from opencm3.net
> > later.
> 
> It might work -- as long as you have older gmp, mpfr, etc.  I found the
> problem with those bootstrap is they were dynamically linked to
> libraries that don't exist anymore.

Surprisingly, that went very well without any problem :-)
[...]
Critical Mass Modula-3 version d5.10.0
  last updated: 2015-05-21
  compiled: 2015-05-29 15:50:50
  configuration: /usr/ports/lang/modula3/work/bootstrap/bin/cm3.cfg
  host: AMD64_FREEBSD
  target: AMD64_FREEBSD

Modula-3 backend (GCC) version 4.7.1 (x86_64-unknown-freebsd8.4)
	compiled by GNU C version 4.2.1 20070831 patched [FreeBSD], GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
create config directory /usr/ports/lang/modula3/work/bootstrap/bin/config
new config files copied/generated in /usr/ports/lang/modula3/work/bootstrap/bin/cm3.cfg, /usr/ports/lang/modula3/work/bootstrap/bin/config

Let's see what I have and did:

% uname -a
FreeBSD luthien.iceflower.in-berlin.de 8.4-STABLE FreeBSD 8.4-STABLE #0 r268069: Tue Jul  1 23:12:27 CEST 2014     root at luthien:/src/obj/src/sys/GENERIC  amd64

Current Code Base form Github:
% wget --no-check-certificate https://codeload.github.com/modula3/cm3/tar.gz

Old CM3 5.8.6 archive from www.opencm3.net:
% wget --no-check-certificate http://www.opencm3.net/releng/cm3-bin-core-AMD64_FREEBSD-5.8.6-REL.tgz

I unpacked the system.tgz archive contained in the cm3-bin-core archive
into a bootstrap directory and set some path:

% echo $PATH
/usr/ports/lang/modula3/work/bootstrap/bin:/home/wagner/bin:/usr/local/dcvs/bin:/usr/local/cm3/bin:/bin:/usr/bin:/usr/local/bin:/usr/contrib/bin:/usr/gnu/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/sbin:/sbin:/sbin:/usr/sbin
% echo $LD_LIBRARY_PATH 
/usr/ports/lang/modula3/work/bootstrap/lib

I had to fake libgmp.so.8 by making a link to libgmp.so.10 for the old cm3cg:
% sudo ln -s /usr/local/lib/libgmp.so /usr/local/lib/libgmp.so.8

% cd cm3-8c1b86a/
% ./scripts/upgrade.sh 

I didn't apply any patches.

I can repeat everything and send you the log, or you could even
get a login on that machine to have a look around. Let me know what
you need.

I hope this helps,

Olaf
-- 
Olaf Wagner -- elego Software Solutions GmbH -- http://www.elegosoft.com 
               Gustav-Meyer-Allee 25 / Gebäude 12, 13355 Berlin, Germany
phone: +49 30 23 45 86 96  mobile: +49 177 2345 869  fax: +49 30 23 45 86 95
Geschäftsführer: Olaf Wagner | Sitz: Berlin
Handelregister: Amtsgericht Charlottenburg HRB 77719 | USt-IdNr: DE163214194
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20150529/6ad3681e/attachment-0002.sig>


More information about the M3devel mailing list