[Mono-dev] Q: difficulties with build for armv5

Ran Shalit ranshalit at gmail.com
Wed Sep 21 15:27:33 UTC 2016


On Wed, Sep 21, 2016 at 5:43 PM, Alex Rønne Petersen <alex at alexrp.com> wrote:
> Hi,
>
> Mono should just compile out of the box for ARMv5.
>
> What problem are you seeing?
>
> Regards,
> Alex
>

Hi,

This is what I did:
1.
CC=arm-none-linux-gnueabi-gcc CFLAGS="-march=armv5te -mtune=arm926ej-s
-mfloat-abi=soft"  ./autogen.sh --host=arm-none-linux-gnueabi
--disable-mcs-build

(not sure if it correct to give  -mfloat-abi=soft" )

2.
And then in "make" it fails as following:

....
 CC     libmonoruntimesgen_static_la-sgen-tarjan-bridge.lo
  CC     libmonoruntimesgen_static_la-sgen-toggleref.lo
  CC     libmonoruntimesgen_static_la-sgen-stw.lo
  CC     libmonoruntimesgen_static_la-sgen-mono.lo
  CCLD   libmonoruntimesgen-static.la
  CC     pedump.o
  CCLD   pedump
./.libs/libmonoruntime.a(libmonoruntime_la-assembly.o): In function
`InterlockedIncrement':
../../mono/utils/atomic.h:234: undefined reference to `__sync_add_and_fetch_4'
./.libs/libmonoruntime.a(libmonoruntime_la-assembly.o): In function
`InterlockedDecrement':
../../mono/utils/atomic.h:239: undefined reference to `__sync_sub_and_fetch_4'
./.libs/libmonoruntime.a(libmonoruntime_la-cominterop.o): In function
`InterlockedDecrement':
../../mono/utils/atomic.h:239: undefined reference to `__sync_sub_and_fetch_4'

Regards,
Ran

> On Wed, Sep 21, 2016 at 4:18 PM, Ran Shalit <ranshalit at gmail.com> wrote:
>> Hello,
>>
>> We encounter difficulties building mono for armv5.
>> I would like to ask if is it possible, and if yes - which version and
>> configure flags should we use ?
>>
>> Thank you!
>> Ran
>> _______________________________________________
>> Mono-devel-list mailing list
>> Mono-devel-list at lists.dot.net
>> http://lists.dot.net/mailman/listinfo/mono-devel-list


More information about the Mono-devel-list mailing list