[M3devel] more cm3cg on Raspberry Pi

Jay K jay.krell at cornell.edu
Sat Oct 19 04:33:21 CEST 2013


Oh, sorry, here are things to try

edit m3-sys/m3cc/src/platforms.quake
look for ARMEL_LINUX, change the right hand side to arm-linux-gnueabihf

and/or in src/m3makefile, you want to add -with-hard-float or -with-hardfloat..no, wait, from your other mail:

 And, really, the guide here is what you showed for gcc: 

 Configured with: ../src/configure  
    -v \ 
    ...  
    --with-arch=armv6  
    --with-fpu=vfp 
    --with-float=hard  
    --target=arm-linux-gnueabihf 

 One/some/all of those are relevant. 
 You might as well go ahead and throw them all in for now. 

 Hey -- isn't that C backend convenient? :) 


 - Jay

----------------------------------------
> To: jay.krell at cornell.edu
> CC: m3devel at elegosoft.com
> Subject: more cm3cg on Raspberry Pi
> Date: Fri, 18 Oct 2013 18:26:02 -0700
> From: mika at async.caltech.edu
>
> After setting up for soft float, I got a lot of these warnings/errors...
>
> new source -> compiling RTHeapInfo.m3
> RTHeapInfo.ms: Assembler messages:
> RTHeapInfo.ms:859: rdhi, rdlo and rm must all be different
> RTHeapInfo.ms:907: rdhi, rdlo and rm must all be different
> RTHeapInfo.ms:927: rdhi, rdlo and rm must all be different
> new source -> compiling RTHeapMap.i3
>
> This is with the following configuration:
>
> in /usr/local/cm3 I have the C-generating compiler installed. It seems to mostly work, as discussed.
>
> Then I run boot2.sh
>
> boot.sh finally ends with the following output, which doesn't look quite right:
>
> == package /big/home2/mika/2/cm3-cvs/cm3/m3-sys/mklib ==
>
> +++ /usr/local/cm3/bin/cm3 -build -DROOT=/big/home2/mika/2/cm3-cvs/cm3 +++
> --- building in ARMEL_LINUX ---
>
> ignoring ../src/m3overrides
>
> new source -> compiling Main.m3
> -> linking mklib
> ==> /big/home2/mika/2/cm3-cvs/cm3/m3-sys/mklib done
>
> +++ /usr/local/cm3/bin/cm3 -ship -DROOT=/big/home2/mika/2/cm3-cvs/cm3 +++
> --- shipping from ARMEL_LINUX ---
>
> . => /usr/local/cm3/pkg/mklib/ARMEL_LINUX
> .M3EXPORTS .M3WEB
> ../src => /usr/local/cm3/pkg/mklib/src
> Main.m3
> . => /usr/local/cm3/bin
> mklib
> ==> /big/home2/mika/2/cm3-cvs/cm3/m3-sys/mklib done
>
> /big/home2/mika/2/cm3-cvs/cm3/m3-sys/m3cggen/ARMEL_LINUX/m3cggen> /big/home2/mika/2/cm3-cvs/cm3/m3-sys/m3cc/gcc/gcc/m3cg/m3cg.h
> mkdir -p /usr/local/cm3/bin
> cp -Pv /big/home2/mika/2/cm3-cvs/cm3/m3-sys/cm3/ARMEL_LINUX/cm3 /usr/local/cm3/bin/cm3
> Traceback (most recent call last):
> File "./upgrade.py", line 72, in <module>
> reload(pylib) # compiler host type may have changed and need to recompute stuff
> File "/big/home2/mika/2/cm3-cvs/cm3/scripts/python/pylib.py", line 650, in <module>
> if Host.endswith("_NT") or Host == "NT386":
> AttributeError: 'NoneType' object has no attribute 'endswith'
> raspberrypi:/big/home2/mika/2/cm3-cvs/cm3/scripts/python#
>
> Mika 		 	   		  


More information about the M3devel mailing list