<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Do all Darwin/x86 assemblers accept -arch flag? I don't know.<br>e.g. 10.4? I might bring such a system back online....<br>Do all Darwin assemblers accept -arch? I doubt it.<br><br> - Jay<br><br>> From: hosking@cs.purdue.edu<br>> Date: Sun, 12 Dec 2010 15:19:15 -0500<br>> To: mika@async.caltech.edu<br>> CC: m3devel@elegosoft.com<br>> Subject: Re: [M3devel] cm3 on snow leopard?<br>> <br>> My config file has:<br>> <br>>   SYSTEM_ASM="as"<br>> ...<br>>   return try_exec ("@" & SYSTEM_ASM, "-arch", "i386", "-q", source, "-o", object<br>> <br>> Works fine for me on Snow Leopard.<br>> <br>> Antony Hosking | Associate Professor | Computer Science | Purdue University<br>> 305 N. University Street | West Lafayette | IN 47907 | USA<br>> Office +1 765 494 6001 | Mobile +1 765 427 5484<br>> <br>> <br>> <br>> <br>> On Dec 11, 2010, at 5:19 PM, Mika Nystrom wrote:<br>> <br>> > Hello m3devel,<br>> > <br>> > I just tried to install CM3 from cm3-I386_DARWIN-REL.deb on a new MacBook<br>> > Air, but it seems I have the wrong assembler?<br>> > <br>> > I had to force dpkg to override the architecture on install (it was expecting<br>> > i386, I think, and my machine identified itself as being "i386-darwin"?)<br>> > <br>> > Here are some details...<br>> > <br>> > [HAL:~/test/src] mika% /usr/local/cm3/bin/cm3 -version<br>> > Critical Mass Modula-3 version 5.8.6<br>> >  last updated: 2010-04-11<br>> >  compiled: 2010-07-14 21:27:23<br>> >  configuration: /usr/local/cm3/bin/cm3.cfg<br>> >  host: I386_DARWIN<br>> >  target: I386_DARWIN<br>> > <br>> > compiling an empty Main.m3 yields:<br>> > <br>> > [HAL:~/test/src] mika% /usr/local/cm3/bin/cm3 -keep -commands<br>> > --- building in ../I386_DARWIN ---<br>> > <br>> > cd ../I386_DARWIN<br>> > rm .M3SHIP<br>> > rm .M3OVERRIDES<br>> > inhale prog.mx<br>> > inhale /usr/local/cm3/pkg/m3core/I386_DARWIN/libm3core.a<br>> > inhale /usr/local/cm3/pkg/libm3/I386_DARWIN/libm3.a<br>> > <br>> > new source -> compiling Main.m3<br>> > m3front ../src/Main.m3 -w1<br>> > /usr/local/cm3//bin/cm3cg -funwind-tables -fPIC -gstabs+ -m32 -quiet -fno-reorde<br>> > r-blocks Main.mc -o Main.ms<br>> > echo "rep movsl" | as -o /dev/null 2> /dev/null<br>> > as Main.ms -o Main.mo<br>> > Main.ms:15:suffix or operands invalid for `push'<br>> >  assemble => 1<br>> > assembler failed assembling: Main.ms<br>> > rm Main.mo<br>> > exhale prog.mx<br>> > rm prog.manifest<br>> > <br>> > compilation failed => not building program "prog"<br>> > Fatal Error: package build failed<br>> > <br>> > [HAL:~/test/src] mika% uname -a<br>> > Darwin HAL.local 10.5.0 Darwin Kernel Version 10.5.0: Fri Nov  5 23:20:39 PDT 2010; root:xnu-1504.9.17~1/RELEASE_I386 i386<br>> > [HAL:~/test/src] mika% as -v<br>> > Apple Inc version cctools-782~33, GNU assembler version 1.38<br>> > <br>> > <br>> > I have XCode installed.<br>> > <br>> > [HAL:~/test/src] mika% gcc -v<br>> > Using built-in specs.<br>> > Target: i686-apple-darwin10<br>> > Configured with: /var/tmp/gcc/gcc-5664~89/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1<br>> > Thread model: posix<br>> > gcc version 4.2.1 (Apple Inc. build 5664)<br>> > [HAL:~/test/src] mika% which gcc<br>> > /usr/bin/gcc<br>> > <br>> > <br>> > I must be doing something very obviously wrong (obviously to someone on this list, right??)<br>> > <br>> >     Mika<br>> <br>                                          </body>
</html>