Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Zookeeper >> mail # dev >> Compile for ARM


Copy link to this message
-
Re: Compile for ARM
I have not seen this issue but please do consider submitting a patch.
https://cwiki.apache.org/confluence/display/ZOOKEEPER/HowToContribute

Patrick

On Thu, Oct 10, 2013 at 11:46 AM, Niklas Molin <[EMAIL PROTECTED]> wrote:
> Hi.
>
> I just downloaded version 3.4.5 to compile on a Freescale (ARM).
> I got an error when it tried to compile the assembly code:
> Error: bad instruction `lock xaddl r1,[r0,#0]'
> And this seems to be from the file mt_adaptor.c
>
> I saw in the function fetch_and_add(...) that is was using inline assembly
> code and that seems to have been the problem.
>
> I saw in an earlier patch for the zookeeper that in the file
> /test/ThreadingUtil.cc there was a similar problem and it was fixed by
> "replace" the assembly code with a call to __sync_fetch_and_add instead
> (when __GNUC__ is defined).
> Seems to compile okay when I do the same patch in the mt_adaptor.c
>
> Has someone else seen this compiler error?
>
> Thanks,
> Niklas
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB