[M3devel] cm3 on snow leopard?

Jay K jay.krell at cornell.edu
Mon Dec 13 09:23:31 CET 2010


Do all Darwin/x86 assemblers accept -arch flag? I don't know.
e.g. 10.4? I might bring such a system back online....
Do all Darwin assemblers accept -arch? I doubt it.

 - Jay

> From: hosking at cs.purdue.edu
> Date: Sun, 12 Dec 2010 15:19:15 -0500
> To: mika at async.caltech.edu
> CC: m3devel at elegosoft.com
> Subject: Re: [M3devel] cm3 on snow leopard?
> 
> My config file has:
> 
>   SYSTEM_ASM="as"
> ...
>   return try_exec ("@" & SYSTEM_ASM, "-arch", "i386", "-q", source, "-o", object
> 
> Works fine for me on Snow Leopard.
> 
> Antony Hosking | Associate Professor | Computer Science | Purdue University
> 305 N. University Street | West Lafayette | IN 47907 | USA
> Office +1 765 494 6001 | Mobile +1 765 427 5484
> 
> 
> 
> 
> On Dec 11, 2010, at 5:19 PM, Mika Nystrom wrote:
> 
> > Hello m3devel,
> > 
> > I just tried to install CM3 from cm3-I386_DARWIN-REL.deb on a new MacBook
> > Air, but it seems I have the wrong assembler?
> > 
> > I had to force dpkg to override the architecture on install (it was expecting
> > i386, I think, and my machine identified itself as being "i386-darwin"?)
> > 
> > Here are some details...
> > 
> > [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
> > 
> > compiling an empty Main.m3 yields:
> > 
> > [HAL:~/test/src] mika% /usr/local/cm3/bin/cm3 -keep -commands
> > --- building in ../I386_DARWIN ---
> > 
> > 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
> > 
> > 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 => 1
> > assembler failed assembling: Main.ms
> > rm Main.mo
> > exhale prog.mx
> > rm prog.manifest
> > 
> > compilation failed => not building program "prog"
> > Fatal Error: package build failed
> > 
> > [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; root:xnu-1504.9.17~1/RELEASE_I386 i386
> > [HAL:~/test/src] mika% as -v
> > Apple Inc version cctools-782~33, GNU assembler version 1.38
> > 
> > 
> > I have XCode installed.
> > 
> > [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-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
> > Thread model: posix
> > gcc version 4.2.1 (Apple Inc. build 5664)
> > [HAL:~/test/src] mika% which gcc
> > /usr/bin/gcc
> > 
> > 
> > I must be doing something very obviously wrong (obviously to someone on this list, right??)
> > 
> >     Mika
> 
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20101213/d97389ba/attachment-0002.html>


More information about the M3devel mailing list