Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] Help: OpenMPI Compilation in Raspberry Pi
From: Jeff Squyres (jsquyres) (jsquyres_at_[hidden])
Date: 2013-01-10 18:38:31


Sadly, none of these solutions worked for me on my RPi:

-----
pi_at_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_at_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_at_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_at_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_at_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_at_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 <bosilca_at_[hidden]>
 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) <jsquyres_at_[hidden]> 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 <openlinuxsource_at_[hidden]> 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
>>> users_at_[hidden]
>>> http://www.open-mpi.org/mailman/listinfo.cgi/users
>>
>>
>> --
>> Jeff Squyres
>> jsquyres_at_[hidden]
>> For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/
>>
>>
>> _______________________________________________
>> users mailing list
>> users_at_[hidden]
>> http://www.open-mpi.org/mailman/listinfo.cgi/users
>
>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users

-- 
Jeff Squyres
jsquyres_at_[hidden]
For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/