[M3devel] Stuck on adding new cm3 target (AMD64_DRAGONFLY)

Jay K jay.krell at cornell.edu
Sun Jan 19 12:35:54 CET 2014


C:\dev2\cm3.2>findstr /s /i /p /c:"unrecognized target machine" *m3
m3-sys\cm3\src\Builder.m3:      Msg.FatalError (NIL, "unrecognized target machin
e: TARGET = ", s.target);
 
 
 Please don't bother with the last release. 
 Please use the current CVS version. 
 And please use the C backend.
 Did you edit m3-sys/m3middle/src/Target.i3 and possibly Target.m3?
 
 
 Please use this as a guide for files to consider changing:
 C:\dev2\cm3.2>findstr /m /s /i /p freebsd m3makefile
m3-comm\udp\test\src\m3makefile
m3-libs\libm3\src\os\POSIX\m3makefile
m3-libs\m3core\src\float\m3makefile
m3-libs\m3core\src\thread\m3makefile
m3-libs\m3core\src\thread\PTHREAD\m3makefile
m3-libs\m3core\src\unix\m3makefile
m3-sys\m3cc\src\m3makefile
m3-sys\m3gdb\src\m3makefile
m3-tools\cvsup\suplib\src\FreeBSD\m3makefile
m3-tools\cvsup\suplib\src\m3makefile
m3-tools\cvsup\suptcp\src\POSIX\m3makefile
 
C:\dev2\cm3.2>findstr /m /s /i /p freebsd *.c
  m3-libs\libm3\src\uid\POSIX\getMID.c  
  m3-libs\libm3\src\uid\POSIX\MachineIDPosixC.c 
  m3-libs\m3core\src\Csupport\Common\s_lroundl.c 
 m3-libs\m3core\src\float\C99\FloatModeC.c 
   m3-libs\m3core\src\runtime\common\RTProcessC.c  
  m3-libs\m3core\src\runtime\POSIX\RTSignalC.c   
  m3-libs\m3core\src\thread\POSIX\ThreadPosixC.c 
  m3-libs\m3core\src\thread\PTHREAD\ThreadFreeBSD.c 
  m3-libs\m3core\src\thread\PTHREAD\ThreadOpenBSD.c 
  m3-libs\m3core\src\thread\PTHREAD\ThreadPThreadC.c 
  m3-libs\m3core\src\unix\Common\Uin.c
  m3-libs\patternmatching\src\libglob\fnmatch.c 

 
esp. m3core and libm3.
 
 
 If we are sure of the name "AMD64_DRAGONFLY" I can go ahead and do it for you.
 But I realize there is much value in me NOT doing it. 
 I thought maybe AMD64_DBSD or DFLYBSD, but DRAGFLY is ok. 
 
 
 - Jay

 
> Date: Sun, 19 Jan 2014 11:03:27 +0100
> From: adacore at marino.st
> To: m3devel at elegosoft.com
> Subject: [M3devel] Stuck on adding new cm3 target (AMD64_DRAGONFLY)
> 
> Hi all,
> 
> I've been trying to port cm3 to DragonFly x86-64.
> I'm able to build cm3cg on DragonFly, and use it to build libraries
> (e.g. libm3core) that were targeted for AMD64_FREEBSD.
> 
> However, when I set the HOST to AMD64_FREEBSD and TARGET to
> AMD64_DRAGONFLY, I get the following error, "Fatal Error: unrecognized
> target machine: TARGET = AMD64_DRAGONFLY" (context below)
> 
> =========================================================
> > /work/lang/modula3/work/modula3-5.8.6/scripts/pkgmap.sh -c "/work/lang/modula3/work/stage/usr/local/bin/cm3 -build -DROOT='/work/lang/modula3/work/modula3-5.8.6' -DCM3_VERSION_TEXT='5.8.6' -DCM3_VERSION_NUMBER='050806' -DCM3_LAST_CHANGED='2010-04-11' -DROOT='/work/lang/modula3/work/modula3-5.8.6' -DCM3VERSION='5.8.6' -DCM3VERSIONNUM='050806' -DCM3LASTCHANGED='2010-04-11' $RARGS " m3core
> > ROOT        = /work/lang/modula3/work/modula3-5.8.6
> > CM3_ROOT    = /work/lang/modula3/work/modula3-5.8.6
> > M3GDB       = yes
> > M3OSTYPE    = POSIX
> > TARGET      = AMD64_DRAGONFLY
> > GCC_BACKEND = yes
> > INSTALLROOT = /work/lang/modula3/work/stage/usr/local
> > PKGSDB      = /work/lang/modula3/work/modula3-5.8.6/scripts/PKGS
> > GREP        = egrep
> > GMAKE       = gmake
> > TMPDIR      = /var/tmp
> > EXE         = 
> > SL          = /
> > TAR         = tar
> > CM3ROOT     = /work/lang/modula3/work/modula3-5.8.6
> > CM3VERSION  = 5.8.6
> > CM3VERSIONNUM = 050806
> > CM3LASTCHANGED = 2010-04-11
> > FIND = /usr/bin/find
> > EGREP = egrep
> > === package m3-libs/m3core ===
> >  +++ /work/lang/modula3/work/stage/usr/local/bin/cm3 -build -DROOT='/work/lang/modula3/work/modula3-5.8.6' -DCM3_VERSION_TEXT='5.8.6' -DCM3_VERSION_NUMBER='050806' -DCM3_LAST_CHANGED='2010-04-11' -DROOT='/work/lang/modula3/work/modula3-5.8.6' -DCM3VERSION='5.8.6' -DCM3VERSIONNUM='050806' -DCM3LASTCHANGED='2010-04-11' $RARGS  +++
> > --- building in AMD64_DRAGONFLY ---
> > 
> > ignoring ../src/m3overrides
> > 
> > 
> > Fatal Error: unrecognized target machine: TARGET = AMD64_DRAGONFLY
> > 
> >  *** execution of /work/lang/modula3/work/stage/usr/local/bin/cm3 -build -DROOT='/work/lang/modula3/work/modula3-5.8.6' -DCM3_VERSION_TEXT='5.8.6' -DCM3_VERSION_NUMBER='050806' -DCM3_LAST_CHANGED='2010-04-11' -DROOT='/work/lang/modula3/work/modula3-5.8.6' -DCM3VERSION='5.8.6' -DCM3VERSIONNUM='050806' -DCM3LASTCHANGED='2010-04-11' $RARGS  failed ***
> > *** [assembler-code] Error code 1
> 
> =========================================================
> 
> I thought I added all the target definitions but apparently I've missed
> something.  I also realize the current repo looks a lot different, but I
> wanted to use the last official release.
> 
> I've attached a concatenated file of patches showing what I've changed.
>  Could somebody suggest what data is missing that causes the error above?
> 
> Regards,
> John
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20140119/013940cc/attachment-0002.html>


More information about the M3devel mailing list