[M3devel] more cm3cg on Raspberry Pi
Jay K
jay.krell at cornell.edu
Sat Oct 19 05:04:45 CEST 2013
Debian has an armhf port, which suggests ARMHF_LINUX for us.
But their armhf port requires v7. Raspberry Pi is v6.
It wouldn't be great if their armhf binaries didn't work where our armhf_linux was meant.
So we'd want to call it armhfv6_linux, armv6hf_linux or armv6hfvfp_linux or somesuch.
For now I suggest repurposing ARMEL_LINUX as v6/hf/vfp, until/unless we get users of older arm_linux systems.
I'll do this shortly.
- Jay
----------------------------------------
> From: jay.krell at cornell.edu
> To: mika at async.caltech.edu
> Date: Sat, 19 Oct 2013 02:33:21 +0000
> CC: m3devel at elegosoft.com
> Subject: Re: [M3devel] more cm3cg on Raspberry Pi
>
> 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