[M3devel] make-dist vs. $CM3_TARGET/AMD64_DARWIN

Jay K jay.krell at cornell.edu
Sat Aug 8 22:48:24 CEST 2009


I added it to python/pylib.py and I expected CM3_TARGET to override.
The code in python/pylib.py:

elif UName.startswith("darwin"):

    # detect the m3 platform (Darwin runs on ppc32, ppc64, x86, amd64)
    if UNameArchP == "powerpc":
        Host = "PPC_DARWIN"
    elif re.match("i[3456]86", UNameArchP):
        if os.popen("sysctl hw.cpu64bit_capable").read() == "hw.cpu64bit_capable: 1\n":
            Host = "AMD64_DARWIN"
        else:
            Host = "I386_DARWIN"
    elif UNameArchP == "x86-64":
        Host = "AMD64_DARWIN"
    elif UNameArchP == "powerpc64":
        Host = "PPC64_DARWIN"


That was mostly guessing, a few things in sysctl report 64bit stuff, but nothing in uname seems to indicate it.

I guess I'll update sysinfo.sh and defs.sh..yuck.
I opened tickets.

 - Jay

> Date: Sat, 8 Aug 2009 22:44:18 +0200
> From: wagner at elegosoft.com
> To: jay.krell at cornell.edu
> CC: m3devel at elegosoft.com
> Subject: Re: [M3devel] make-dist vs. $CM3_TARGET/AMD64_DARWIN
> 
> Quoting Jay K <jay.krell at cornell.edu>:
> 
> > I tried to make AMD64_DARWIN distribution with:
> >
> > PATH=/cm3.amd64/bin:$PATH CM3CVSUSER=jkrell SHIPRC=y   
> > CM3_TARGET=AMD64_DARWIN ./make-dist.sh
> >
> > I got a bunch of files with I386_DARWIN in their names.
> 
> Have you added support for all those new AMD64 targets to sysinfo.sh?
> I assume you expect CM3_TARGET to override everything, but I'm not sure
> that it will work everywhere.
> 
> You should trace with set -x.
> 
> Olaf
> -- 
> Olaf Wagner -- elego Software Solutions GmbH
>                 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
>     http://www.elegosoft.com | Geschäftsführer: Olaf Wagner | Sitz: Berlin
> Handelregister: Amtsgericht Charlottenburg HRB 77719 | USt-IdNr: DE163214194
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20090808/f33d556a/attachment-0002.html>


More information about the M3devel mailing list