Ok, I was able to configure and run successfully on my Raspberry Pi with:

    ./configure CCASFLAGS=-march=armv7-a ...

Is that something we should put on a FAQ page?



On Jan 11, 2013, at 7:11 AM, George Bosilca <bosi...@icl.utk.edu> wrote:

> This one belong to arm7 instruction set. Please try one of the following 
> `armv7', `armv7-a', `armv7-r'.
> 
>  George.
> 
> 
> On Jan 11, 2013, at 00:38 , Jeff Squyres (jsquyres) <jsquy...@cisco.com> 
> wrote:
> 
>> Sadly, none of these solutions worked for me on my RPi:
>> 
>> -----
>> pi@raspberrypi ~/openmpi-1.6.3/opal/asm $ make CCASFLAGS=-mcpu=arm1176jzf-s
>> CPPAS  atomic-asm.lo
>> atomic-asm.S: Assembler messages:
>> atomic-asm.S:7: Error: selected processor does not support ARM mode `dmb'
>> atomic-asm.S:15: Error: selected processor does not support ARM mode `dmb'
>> atomic-asm.S:23: Error: selected processor does not support ARM mode `dmb'
>> atomic-asm.S:55: Error: selected processor does not support ARM mode `dmb'
>> atomic-asm.S:70: Error: selected processor does not support ARM mode `dmb'
>> make: *** [atomic-asm.lo] Error 1
>> pi@raspberrypi ~/openmpi-1.6.3/opal/asm $ make CCASFLAGS=-march=armv6zk
>> CPPAS  atomic-asm.lo
>> atomic-asm.S: Assembler messages:
>> atomic-asm.S:7: Error: selected processor does not support ARM mode `dmb'
>> atomic-asm.S:15: Error: selected processor does not support ARM mode `dmb'
>> atomic-asm.S:23: Error: selected processor does not support ARM mode `dmb'
>> atomic-asm.S:55: Error: selected processor does not support ARM mode `dmb'
>> atomic-asm.S:70: Error: selected processor does not support ARM mode `dmb'
>> make: *** [atomic-asm.lo] Error 1
>> pi@raspberrypi ~/openmpi-1.6.3/opal/asm $ make CCASFLAGS=-march=argv6k
>> CPPAS  atomic-asm.lo
>> cc1: error: bad value (argv6k) for -march switch
>> make: *** [atomic-asm.lo] Error 1
>> pi@raspberrypi ~/openmpi-1.6.3/opal/asm $ 
>> -----
>> 
>> Although I'm using a bit different system than the original user cited (I'm 
>> running the latest Raspbian distro):
>> 
>> -----
>> pi@raspberrypi ~/openmpi-1.6.3/opal/asm $ uname -a
>> Linux raspberrypi 3.2.27+ #250 PREEMPT Thu Oct 18 19:03:02 BST 2012 armv6l 
>> GNU/Linux
>> pi@raspberrypi ~/openmpi-1.6.3/opal/asm $ gcc --version
>> gcc (Debian 4.6.3-12+rpi1) 4.6.3
>> -----
>> 
>> On Jan 10, 2013, at 5:39 PM, George Bosilca <bosi...@icl.utk.edu>
>> wrote:
>> 
>>> 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/


Reply via email to