[M3devel] cm3 on snow leopard?

Jay K jay.krell at cornell.edu
Sun Dec 12 10:51:06 CET 2010







oh, oops, I didn't realize release was so far behind, duh. :)


It reads, AMD64_DARWIN:


SYSTEM_ASM = "/usr/libexec/gcc/darwin/x86_64/as"
if not FileExists(SYSTEM_ASM)
    SYSTEM_ASM = "as"
end


I386_DARWIN:

proc configure_assembler() is
    if defined("SYSTEM_ASM")
        return
    end
    local a = try_exec("@echo \"rep movsl\" | as -o /dev/null 2> /dev/null")
    % write("a is " & a & CR)
    if equal(a, 0)
        SYSTEM_ASM = "as"
        % write(SYSTEM_ASM & " works" & CR)
        return
    end
    % write("as does not work" & CR)
    if FileExists("/cctools-698.1/usr/bin/as")
        SYSTEM_ASM = "/cctools-698.1/usr/bin/as"
        % write("using " & SYSTEM_ASM & ", which is presumed to work" & CR)
        return
    end
    error("as does not work (does not recognize \"rep movsl\"), please upgrade to "
        & "cctools-698.1 or newer and install to /cctools-698.1")
    %
    % another good option is probably to put an assembler next to cm3cg
    %
end


I have since changed m3cc to work with the older assembler. :)
(The gcc folks might have also, but I did so differently.)


 - Jay


> To: jay.krell at cornell.edu
> CC: m3devel at async.caltech.edu
> Subject: Re: [M3devel] cm3 on snow leopard? 
> Date: Sun, 12 Dec 2010 01:34:36 -0800
> From: mika at async.caltech.edu
> 
> Thanks, Jay.
> 
> I wasn't able to use your Darwin.config (remember, I'm installing
> from the release .deb)---there seem to have been too many changes to
> these files for me to be able to sort it all out.  However, I figured
> out how to do a "quick and dirty" from your email.
> 
> This fixed it for me:
> 
> if not defined("SYSTEM_ASM")
>   SYSTEM_ASM="/usr/libexec/gcc/darwin/i386/as"
> end
> 
> Now to check on all the other problems.
> 
>     Mika
> 
> Jay K writes:
> >--_1377ed26-bb42-4722-b430-c9bf3b1b287d_
> >Content-Type: text/plain; charset="Windows-1252"
> >Content-Transfer-Encoding: quoted-printable
> >
> >
> >I'm more sympathetic to using the already installed C compiler
> >to drive the assembler=2C than to build the current gcc driver.
> >
> >
> >You can see on Darwin we already probe around fairly aggressively
> >for a C compiler that can be told the target:
> >
> >Darwin.common:
> >
> >
> >proc configure_c_compiler() is
> >
> >  if defined("SYSTEM_CC")
> >    return
> >  end
> >
> >  %
> >  % older compiler doesn't like -m32 or -arch
> >  %
> >  % gcc -c -m32 -x c /dev/null
> >  % cc1: error: invalid option =91m32=92
> >  %
> >  % fPIC is not usually needed here.
> >  % It is the default for Apple gcc and left
> >  % here in case user is using a self-built FSF gcc.
> >  %
> >
> >  SYSTEM_CC =3D "gcc -gstabs+ -fPIC"
> >  local m =3D " -m" & {"32BITS":"32"=2C"64BITS":"64"}{WORD_SIZE}
> >  local arch =3D " -arch " & DarwinArch
> >  if not equal(try_exec("@" & SYSTEM_CC & m & " -c -x c /dev/null -o /dev/n=
> >ull 2>&1 | fgrep \"cc1: error: invalid option \\\`32'\" >/dev/null")=2C 0)
> >    SYSTEM_CC =3D SYSTEM_CC & m
> >  end
> >  if not equal(try_exec("@" & SYSTEM_CC & arch & " -c -x c /dev/null -o /de=
> >v/null 2>&1 | fgrep \"cc1: error: unrecognized command line option \\\\\"-a=
> >rch\\\\\"\" >/dev/null")=2C 0)
> >    SYSTEM_CC =3D SYSTEM_CC & arch
> >  end
> >  %write("SYSTEM_CC is " & SYSTEM_CC)
> >end
> >
> >
> >Most likely if we merely set SYSTEM_ASM =3D SYSTEM_CC & "-x assembler"
> >it'll work well.
> >Maybe only in this else case:
> >
> >
> >proc configure_assembler() is
> >  if defined("SYSTEM_ASM")
> >    return
> >  end
> >  SYSTEM_ASM =3D "/usr/libexec/gcc/darwin/" & DarwinArch & "/as"
> >  if not FileExists(SYSTEM_ASM)
> >      SYSTEM_ASM =3D "as" <<=3D=3D here
> >  end
> >end
> >
> >
> >All this is addressed by autoconf and/or a C-generating backend.....
> >
> >
> > - Jay
> >
> >
> >
> >
> >
> >
> >From: jay.krell at cornell.edu
> >To: mika at async.caltech.edu=3B m3devel at elegosoft.com
> >Date: Sun=2C 12 Dec 2010 05:26:37 +0000
> >Subject: Re: [M3devel] cm3 on snow leopard?
> >
> >
> >
> >
> >
> >
> >
> >
> >I'm rudely (but helpfully) ignoring your details and giving some of mine.
> >
> >I though what is supposed to happen=2C specifically on Darwin=2C is the ass=
> >embly code is supposed to indicate an architecture.
> >
> >jbook2:m3core jay$ CM3_TARGET=3DI386_DARWIN M3CONFIG=3D/cm3/bin/config/I386=
> >_DARWIN cm3 -keep
> >^C
> >
> >jbook2:m3core jay$ CM3_TARGET=3DAMD64_DARWIN M3CONFIG=3D/cm3/bin/config/AMD=
> >64_DARWIN cm3 -keep
> >^C
> >
> >head */RTHooks.ms
> >
> >but no.
> >
> >But then this:
> >
> >jbook2:m3core jay$ CM3_TARGET=3DAMD64_DARWIN M3CONFIG=3D/cm3/bin/config/AMD=
> >64_DARWIN cm3 -keep -commands
> >--- building in AMD64_DARWIN ---
> >
> >..
> >/usr/libexec/gcc/darwin/x86_64/as RTAllocator.ms -o RTAllocator.mo
> >
> >CM3_TARGET=3DI386_DARWIN M3CONFIG=3D/cm3/bin/config/I386_DARWIN cm3 -keep -=
> >commands
> >
> >...
> >/usr/libexec/gcc/darwin/i386/as Ctypes.is -o Ctypes.io
> >
> >i386 vs. x86_64.
> >
> >Darwin.common:
> >proc configure_assembler() is
> >  if defined("SYSTEM_ASM")
> >    return
> >  end
> >  SYSTEM_ASM =3D "/usr/libexec/gcc/darwin/" & DarwinArch & "/as"
> >  if not FileExists(SYSTEM_ASM)
> >      SYSTEM_ASM =3D "as"
> >  end
> >end
> >
> >
> >jbook2:m3core jay$ grep DarwinArch /dev2/cm3/m3-sys/cminstall/src/config-no=
> >-install/*
> >/dev2/cm3/m3-sys/cminstall/src/config-no-install/AMD64_DARWIN:DarwinArch =
> >=3D "x86_64"
> >/dev2/cm3/m3-sys/cminstall/src/config-no-install/ARM_DARWIN:DarwinArch =3D =
> >"armv6" % ?
> >/dev2/cm3/m3-sys/cminstall/src/config-no-install/Darwin.common:  SYSTEM_ASM=
> > =3D "/usr/libexec/gcc/darwin/" & DarwinArch & "/as"
> >/dev2/cm3/m3-sys/cminstall/src/config-no-install/Darwin.common:  local arch=
> > =3D " -arch " & DarwinArch
> >/dev2/cm3/m3-sys/cminstall/src/config-no-install/Darwin.common:      arch =
> >=3D " -arch_only " & DarwinArch & " "
> >/dev2/cm3/m3-sys/cminstall/src/config-no-install/I386_DARWIN:DarwinArch =3D=
> > "i386"
> >/dev2/cm3/m3-sys/cminstall/src/config-no-install/PPC64_DARWIN:DarwinArch =
> >=3D "ppc64"
> >/dev2/cm3/m3-sys/cminstall/src/config-no-install/PPC_DARWIN:DarwinArch =3D =
> >"ppc"
> >
> >?
> >cm3 -commands?
> >
> >find /usr/lib | grep /as$
> >find /usr/libexec | grep /as$
> >
> >
> >Maybe the path changed? Has a version? or is there is only i686-apple-darwi=
> >n9=2C powerpc-apple-darwin9?
> >
> >I should look into getting the architecture into the assembly code though a=
> >nd just running "as"=2C esp. on newer hosts.
> >
> > - Jay
> >
> >
> >From: jay.krell at cornell.edu
> >To: mika at async.caltech.edu=3B m3devel at elegosoft.com
> >Date: Sun=2C 12 Dec 2010 00:59:18 +0000
> >Subject: Re: [M3devel] cm3 on snow leopard?
> >
> >
> >
> >
> >
> >
> >
> >
> >I admit I'm still using Leopard.
> >
> > - Jay
> >
> >
> >
> >> To: m3devel at elegosoft.com
> >> Date: Sat=2C 11 Dec 2010 14:19:02 -0800
> >> From: mika at async.caltech.edu
> >> Subject: [M3devel] cm3 on snow leopard?
> >>=20
> >> Hello m3devel=2C
> >>=20
> >> I just tried to install CM3 from cm3-I386_DARWIN-REL.deb on a new MacBook
> >> Air=2C but it seems I have the wrong assembler?
> >>=20
> >> I had to force dpkg to override the architecture on install (it was expec=
> >ting
> >> i386=2C I think=2C and my machine identified itself as being "i386-darwin=
> >"?)
> >>=20
> >> Here are some details...
> >>=20
> >> [HAL:~/test/src] mika% /usr/local/cm3/bin/cm3 -version
> >> Critical Mass Modula-3 version 5.8.6
> >>   last updated: 2010-04-11
> >>   compiled: 2010-07-14 21:27:23
> >>   configuration: /usr/local/cm3/bin/cm3.cfg
> >>   host: I386_DARWIN
> >>   target: I386_DARWIN
> >>=20
> >> compiling an empty Main.m3 yields:
> >>=20
> >> [HAL:~/test/src] mika% /usr/local/cm3/bin/cm3 -keep -commands
> >> --- building in ../I386_DARWIN ---
> >>=20
> >> cd ../I386_DARWIN
> >> rm .M3SHIP
> >> rm .M3OVERRIDES
> >> inhale prog.mx
> >> inhale /usr/local/cm3/pkg/m3core/I386_DARWIN/libm3core.a
> >> inhale /usr/local/cm3/pkg/libm3/I386_DARWIN/libm3.a
> >>=20
> >> new source -> compiling Main.m3
> >> m3front ../src/Main.m3 -w1
> >> /usr/local/cm3//bin/cm3cg -funwind-tables -fPIC -gstabs+ -m32 -quiet -fno=
> >-reorde
> >> r-blocks Main.mc -o Main.ms
> >> echo "rep movsl" | as -o /dev/null 2> /dev/null
> >> as Main.ms -o Main.mo
> >> Main.ms:15:suffix or operands invalid for `push'
> >>   assemble =3D> 1
> >> assembler failed assembling: Main.ms
> >> rm Main.mo
> >> exhale prog.mx
> >> rm prog.manifest
> >>=20
> >> compilation failed =3D> not building program "prog"
> >> Fatal Error: package build failed
> >>=20
> >> [HAL:~/test/src] mika% uname -a
> >> Darwin HAL.local 10.5.0 Darwin Kernel Version 10.5.0: Fri Nov  5 23:20:39=
> > PDT 2010=3B root:xnu-1504.9.17~1/RELEASE_I386 i386
> >> [HAL:~/test/src] mika% as -v
> >> Apple Inc version cctools-782~33=2C GNU assembler version 1.38
> >>=20
> >>=20
> >> I have XCode installed.
> >>=20
> >> [HAL:~/test/src] mika% gcc -v
> >> Using built-in specs.
> >> Target: i686-apple-darwin10
> >> Configured with: /var/tmp/gcc/gcc-5664~89/src/configure --disable-checkin=
> >g --enable-werror --prefix=3D/usr --mandir=3D/share/man --enable-languages=
> >=3Dc=2Cobjc=2Cc++=2Cobj-c++ --program-transform-name=3D/^[cg][^.-]*$/s/$/-4=
> >.2/ --with-slibdir=3D/usr/lib --build=3Di686-apple-darwin10 --program-prefi=
> >x=3Di686-apple-darwin10- --host=3Dx86_64-apple-darwin10 --target=3Di686-app=
> >le-darwin10 --with-gxx-include-dir=3D/include/c++/4.2.1
> >> Thread model: posix
> >> gcc version 4.2.1 (Apple Inc. build 5664)
> >> [HAL:~/test/src] mika% which gcc
> >> /usr/bin/gcc
> >>=20
> >>=20
> >> I must be doing something very obviously wrong (obviously to someone on t=
> >his list=2C right??)
> >>=20
> >>      Mika
> > 		 	   		  =
> >
> >--_1377ed26-bb42-4722-b430-c9bf3b1b287d_
> >Content-Type: text/html; charset="Windows-1252"
> >Content-Transfer-Encoding: quoted-printable
> >
> ><html>
> ><head>
> ><style><!--
> >.hmmessage P
> >{
> >margin:0px=3B
> >padding:0px
> >}
> >body.hmmessage
> >{
> >font-size: 10pt=3B
> >font-family:Tahoma
> >}
> >--></style>
> ></head>
> ><body class=3D'hmmessage'>
> >I'm more sympathetic to using the already installed C compiler<br>to drive =
> >the assembler=2C than to build the current gcc driver.<br><br><br>You can s=
> >ee on Darwin we already probe around fairly aggressively<br>for a C compile=
> >r that can be told the target:<br><br>Darwin.common:<br><br><br>proc config=
> >ure_c_compiler() is<br><br>&nbsp=3B if defined("SYSTEM_CC")<br>&nbsp=3B&nbs=
> >p=3B&nbsp=3B return<br>&nbsp=3B end<br><br>&nbsp=3B %<br>&nbsp=3B % older c=
> >ompiler doesn't like -m32 or -arch<br>&nbsp=3B %<br>&nbsp=3B % gcc -c -m32 =
> >-x c /dev/null<br>&nbsp=3B % cc1: error: invalid option =91m32=92<br>&nbsp=
> >=3B %<br>&nbsp=3B % fPIC is not usually needed here.<br>&nbsp=3B % It is th=
> >e default for Apple gcc and left<br>&nbsp=3B % here in case user is using a=
> > self-built FSF gcc.<br>&nbsp=3B %<br><br>&nbsp=3B SYSTEM_CC =3D "gcc -gsta=
> >bs+ -fPIC"<br>&nbsp=3B local m =3D " -m" &amp=3B {"32BITS":"32"=2C"64BITS":=
> >"64"}{WORD_SIZE}<br>&nbsp=3B local arch =3D " -arch " &amp=3B DarwinArch<br=
> >>&nbsp=3B if not equal(try_exec("@" &amp=3B SYSTEM_CC &amp=3B m &amp=3B " -=
> >c -x c /dev/null -o /dev/null 2&gt=3B&amp=3B1 | fgrep \"cc1: error: invalid=
> > option \\\`32'\" &gt=3B/dev/null")=2C 0)<br>&nbsp=3B&nbsp=3B&nbsp=3B SYSTE=
> >M_CC =3D SYSTEM_CC &amp=3B m<br>&nbsp=3B end<br>&nbsp=3B if not equal(try_e=
> >xec("@" &amp=3B SYSTEM_CC &amp=3B arch &amp=3B " -c -x c /dev/null -o /dev/=
> >null 2&gt=3B&amp=3B1 | fgrep \"cc1: error: unrecognized command line option=
> > \\\\\"-arch\\\\\"\" &gt=3B/dev/null")=2C 0)<br>&nbsp=3B&nbsp=3B&nbsp=3B SY=
> >STEM_CC =3D SYSTEM_CC &amp=3B arch<br>&nbsp=3B end<br>&nbsp=3B %write("SYST=
> >EM_CC is " &amp=3B SYSTEM_CC)<br>end<br><br><br>Most likely if we merely se=
> >t SYSTEM_ASM =3D SYSTEM_CC &amp=3B "-x assembler"<br>it'll work well.<br>Ma=
> >ybe only in this else case:<br><br><br>proc configure_assembler() is<br>&nb=
> >sp=3B if defined("SYSTEM_ASM")<br>&nbsp=3B&nbsp=3B&nbsp=3B return<br>&nbsp=
> >=3B end<br>&nbsp=3B SYSTEM_ASM =3D "/usr/libexec/gcc/darwin/" &amp=3B Darwi=
> >nArch &amp=3B "/as"<br>&nbsp=3B if not FileExists(SYSTEM_ASM)<br>&nbsp=3B&n=
> >bsp=3B&nbsp=3B&nbsp=3B&nbsp=3B SYSTEM_ASM =3D "as" &lt=3B&lt=3B=3D=3D here<=
> >br>&nbsp=3B end<br>end<br><br><br>All this is addressed by autoconf and/or =
> >a C-generating backend.....<br><br><br>&nbsp=3B- Jay<br><br><br><br><br><br=
> >><br><hr id=3D"stopSpelling">From: jay.krell at cornell.edu<br>To: mika at async.=
> >caltech.edu=3B m3devel at elegosoft.com<br>Date: Sun=2C 12 Dec 2010 05:26:37 +=
> >0000<br>Subject: Re: [M3devel] cm3 on snow leopard?<br><br>
> >
> ><meta http-equiv=3D"Content-Type" content=3D"text/html=3B charset=3Dunicode=
> >">
> ><meta name=3D"Generator" content=3D"Microsoft SafeHTML">
> ><style>
> >.ExternalClass .ecxhmmessage P
> >{padding:0px=3B}
> >.ExternalClass body.ecxhmmessage
> >{font-size:10pt=3Bfont-family:Tahoma=3B}
> >
> ></style>
> >
> >
> >I'm rudely (but helpfully) ignoring your details and giving some of mine.<b=
> >r><br>I though what is supposed to happen=2C specifically on Darwin=2C is t=
> >he assembly code is supposed to indicate an architecture.<br><br>jbook2:m3c=
> >ore jay$ CM3_TARGET=3DI386_DARWIN M3CONFIG=3D/cm3/bin/config/I386_DARWIN cm=
> >3 -keep<br>^C<br><br>jbook2:m3core jay$ CM3_TARGET=3DAMD64_DARWIN M3CONFIG=
> >=3D/cm3/bin/config/AMD64_DARWIN cm3 -keep<br>^C<br><br>head */RTHooks.ms<br=
> >><br>but no.<br><br>But then this:<br><br>jbook2:m3core jay$ CM3_TARGET=3DA=
> >MD64_DARWIN M3CONFIG=3D/cm3/bin/config/AMD64_DARWIN cm3 -keep -commands<br>=
> >--- building in AMD64_DARWIN ---<br><br>..<br>/usr/libexec/gcc/darwin/x86_6=
> >4/as RTAllocator.ms -o RTAllocator.mo<br><br>CM3_TARGET=3DI386_DARWIN M3CON=
> >FIG=3D/cm3/bin/config/I386_DARWIN cm3 -keep -commands<br><br>...<br>/usr/li=
> >bexec/gcc/darwin/i386/as Ctypes.is -o Ctypes.io<br><br>i386 vs. x86_64.<br>=
> ><br>Darwin.common:<br>proc configure_assembler() is<br>&nbsp=3B if defined(=
> >"SYSTEM_ASM")<br>&nbsp=3B&nbsp=3B&nbsp=3B return<br>&nbsp=3B end<br>&nbsp=
> >=3B SYSTEM_ASM =3D "/usr/libexec/gcc/darwin/" &amp=3B DarwinArch &amp=3B "/=
> >as"<br>&nbsp=3B if not FileExists(SYSTEM_ASM)<br>&nbsp=3B&nbsp=3B&nbsp=3B&n=
> >bsp=3B&nbsp=3B SYSTEM_ASM =3D "as"<br>&nbsp=3B end<br>end<br><br><br>jbook2=
> >:m3core jay$ grep DarwinArch /dev2/cm3/m3-sys/cminstall/src/config-no-insta=
> >ll/*<br>/dev2/cm3/m3-sys/cminstall/src/config-no-install/AMD64_DARWIN:Darwi=
> >nArch =3D "x86_64"<br>/dev2/cm3/m3-sys/cminstall/src/config-no-install/ARM_=
> >DARWIN:DarwinArch =3D "armv6" % ?<br>/dev2/cm3/m3-sys/cminstall/src/config-=
> >no-install/Darwin.common:&nbsp=3B SYSTEM_ASM =3D "/usr/libexec/gcc/darwin/"=
> > &amp=3B DarwinArch &amp=3B "/as"<br>/dev2/cm3/m3-sys/cminstall/src/config-=
> >no-install/Darwin.common:&nbsp=3B local arch =3D " -arch " &amp=3B DarwinAr=
> >ch<br>/dev2/cm3/m3-sys/cminstall/src/config-no-install/Darwin.common:&nbsp=
> >=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B arch =3D " -arch_only " &amp=3B DarwinA=
> >rch &amp=3B " "<br>/dev2/cm3/m3-sys/cminstall/src/config-no-install/I386_DA=
> >RWIN:DarwinArch =3D "i386"<br>/dev2/cm3/m3-sys/cminstall/src/config-no-inst=
> >all/PPC64_DARWIN:DarwinArch =3D "ppc64"<br>/dev2/cm3/m3-sys/cminstall/src/c=
> >onfig-no-install/PPC_DARWIN:DarwinArch =3D "ppc"<br><br>?<br>cm3 -commands?=
> ><br><br>find /usr/lib | grep /as$<br>find /usr/libexec | grep /as$<br>
> ><br>Maybe the path changed? Has a version? or is there is only i686-apple-d=
> >arwin9=2C powerpc-apple-darwin9?<br><br>I should look into getting the arch=
> >itecture into the assembly code though and just running "as"=2C esp. on new=
> >er hosts.<br><br>&nbsp=3B- Jay<br><br><br><hr id=3D"ecxstopSpelling">From: =
> >jay.krell at cornell.edu<br>To: mika at async.caltech.edu=3B m3devel at elegosoft.co=
> >m<br>Date: Sun=2C 12 Dec 2010 00:59:18 +0000<br>Subject: Re: [M3devel] cm3 =
> >on snow leopard?<br><br>
> >
> >
> >
> ><style>
> >.ExternalClass .ecxhmmessage P
> >{padding:0px=3B}
> >.ExternalClass body.ecxhmmessage
> >{font-size:10pt=3Bfont-family:Tahoma=3B}
> ></style>
> >
> >
> >I admit I'm still using Leopard.<br><br>&nbsp=3B- Jay<br><br><br><br>&gt=3B=
> > To: m3devel at elegosoft.com<br>&gt=3B Date: Sat=2C 11 Dec 2010 14:19:02 -080=
> >0<br>&gt=3B From: mika at async.caltech.edu<br>&gt=3B Subject: [M3devel] cm3 o=
> >n snow leopard?<br>&gt=3B <br>&gt=3B Hello m3devel=2C<br>&gt=3B <br>&gt=3B =
> >I just tried to install CM3 from cm3-I386_DARWIN-REL.deb on a new MacBook<b=
> >r>&gt=3B Air=2C but it seems I have the wrong assembler?<br>&gt=3B <br>&gt=
> >=3B I had to force dpkg to override the architecture on install (it was exp=
> >ecting<br>&gt=3B i386=2C I think=2C and my machine identified itself as bei=
> >ng "i386-darwin"?)<br>&gt=3B <br>&gt=3B Here are some details...<br>&gt=3B =
> ><br>&gt=3B [HAL:~/test/src] mika% /usr/local/cm3/bin/cm3 -version<br>&gt=3B=
> > Critical Mass Modula-3 version 5.8.6<br>&gt=3B   last updated: 2010-04-11<=
> >br>&gt=3B   compiled: 2010-07-14 21:27:23<br>&gt=3B   configuration: /usr/l=
> >ocal/cm3/bin/cm3.cfg<br>&gt=3B   host: I386_DARWIN<br>&gt=3B   target: I386=
> >_DARWIN<br>&gt=3B <br>&gt=3B compiling an empty Main.m3 yields:<br>&gt=3B <=
> >br>&gt=3B [HAL:~/test/src] mika% /usr/local/cm3/bin/cm3 -keep -commands<br>=
> >&gt=3B --- building in ../I386_DARWIN ---<br>&gt=3B <br>&gt=3B cd ../I386_D=
> >ARWIN<br>&gt=3B rm .M3SHIP<br>&gt=3B rm .M3OVERRIDES<br>&gt=3B inhale prog.=
> >mx<br>&gt=3B inhale /usr/local/cm3/pkg/m3core/I386_DARWIN/libm3core.a<br>&g=
> >t=3B inhale /usr/local/cm3/pkg/libm3/I386_DARWIN/libm3.a<br>&gt=3B <br>&gt=
> >=3B new source -&gt=3B compiling Main.m3<br>&gt=3B m3front ../src/Main.m3 -=
> >w1<br>&gt=3B /usr/local/cm3//bin/cm3cg -funwind-tables -fPIC -gstabs+ -m32 =
> >-quiet -fno-reorde<br>&gt=3B r-blocks Main.mc -o Main.ms<br>&gt=3B echo "re=
> >p movsl" | as -o /dev/null 2&gt=3B /dev/null<br>&gt=3B as Main.ms -o Main.m=
> >o<br>&gt=3B Main.ms:15:suffix or operands invalid for `push'<br>&gt=3B   as=
> >semble =3D&gt=3B 1<br>&gt=3B assembler failed assembling: Main.ms<br>&gt=3B=
> > rm Main.mo<br>&gt=3B exhale prog.mx<br>&gt=3B rm prog.manifest<br>&gt=3B <=
> >br>&gt=3B compilation failed =3D&gt=3B not building program "prog"<br>&gt=
> >=3B Fatal Error: package build failed<br>&gt=3B <br>&gt=3B [HAL:~/test/src]=
> > mika% uname -a<br>&gt=3B Darwin HAL.local 10.5.0 Darwin Kernel Version 10.=
> >5.0: Fri Nov  5 23:20:39 PDT 2010=3B root:xnu-1504.9.17~1/RELEASE_I386 i386=
> ><br>&gt=3B [HAL:~/test/src] mika% as -v<br>&gt=3B Apple Inc version cctools=
> >-782~33=2C GNU assembler version 1.38<br>&gt=3B <br>&gt=3B <br>&gt=3B I hav=
> >e XCode installed.<br>&gt=3B <br>&gt=3B [HAL:~/test/src] mika% gcc -v<br>&g=
> >t=3B Using built-in specs.<br>&gt=3B Target: i686-apple-darwin10<br>&gt=3B =
> >Configured with: /var/tmp/gcc/gcc-5664~89/src/configure --disable-checking =
> >--enable-werror --prefix=3D/usr --mandir=3D/share/man --enable-languages=3D=
> >c=2Cobjc=2Cc++=2Cobj-c++ --program-transform-name=3D/^[cg][^.-]*$/s/$/-4.2/=
> > --with-slibdir=3D/usr/lib --build=3Di686-apple-darwin10 --program-prefix=
> >=3Di686-apple-darwin10- --host=3Dx86_64-apple-darwin10 --target=3Di686-appl=
> >e-darwin10 --with-gxx-include-dir=3D/include/c++/4.2.1<br>&gt=3B Thread mod=
> >el: posix<br>&gt=3B gcc version 4.2.1 (Apple Inc. build 5664)<br>&gt=3B [HA=
> >L:~/test/src] mika% which gcc<br>&gt=3B /usr/bin/gcc<br>&gt=3B <br>&gt=3B <=
> >br>&gt=3B I must be doing something very obviously wrong (obviously to some=
> >one on this list=2C right??)<br>&gt=3B <br>&gt=3B      Mika<br> 	
> >	 	   		  =
> ></body>
> ></html>=
> >
> >--_1377ed26-bb42-4722-b430-c9bf3b1b287d_--
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20101212/f315e111/attachment-0002.html>


More information about the M3devel mailing list