A little bit of google shows that this is a known issue. ldrex and strex are 
not included in the default instruction set gcc uses (arm6). One has to add the 
compile flag "-march=argv6k" to successfully compiles.

  George.

PS: For more info: 
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=9&t=4256&start=250


On Jan 10, 2013, at 16:20 , Jeff Squyres (jsquyres) <jsquy...@cisco.com> wrote:

> Mmmm.  Let's rope in our ARM expert here...
> 
> Leif, do you know what the issue is here?
> 
> 
> On Jan 3, 2013, at 4:28 AM, Lee Eric <openlinuxsou...@gmail.com> wrote:
> 
>> Hi,
>> 
>> I am going to compile OpenMPI 1.6.3 in Raspberry Pi and encounter following 
>> errors.
>> 
>> make[2]: Entering directory `/root/openmpi-1.6.3/opal'
>>  CC     class/opal_bitmap.lo
>>  CC     class/opal_free_list.lo
>>  CC     class/opal_hash_table.lo
>>  CC     class/opal_list.lo
>>  CC     class/opal_object.lo
>> /tmp/ccniCtj0.s: Assembler messages:
>> /tmp/ccniCtj0.s:83: Error: selected processor does not support ARM mode 
>> `ldrex r3,[r1]'
>> /tmp/ccniCtj0.s:86: Error: selected processor does not support ARM mode 
>> `strex r4,r0,[r1]'
>> make[2]: *** [class/opal_object.lo] Error 1
>> make[2]: Leaving directory `/root/openmpi-1.6.3/opal'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory `/root/openmpi-1.6.3/opal'
>> make: *** [all-recursive] Error 1
>> 
>> Can anyone have any idea to fix that issue?
>> 
>> I'm using Fedora 17 rootfs and kernel version is "Linux fedora-arm 3.6.11+ 
>> #1 PREEMPT Wed Jan 2 15:14:23 CST 2013 armv6l armv6l armv6l GNU/Linux".
>> 
>> Thanks.
>> 
>> Eric Lee
>> _______________________________________________
>> users mailing list
>> us...@open-mpi.org
>> http://www.open-mpi.org/mailman/listinfo.cgi/users
> 
> 
> -- 
> Jeff Squyres
> jsquy...@cisco.com
> For corporate legal information go to: 
> http://www.cisco.com/web/about/doing_business/legal/cri/
> 
> 
> _______________________________________________
> users mailing list
> us...@open-mpi.org
> http://www.open-mpi.org/mailman/listinfo.cgi/users


Reply via email to