Can you send the output of "make V=1"? That will show the exact command line that is being used to build that file.
> On May 29, 2015, at 2:17 PM, Jeff Layton <layto...@att.net> wrote: > > George, > > I changed my configure command to be: > > ./configure CCASFLAGS=-march=native > > and I get an error while running configure: > > ... > *** Assembler > checking dependency style of gcc -std=gnu99... gcc3 > checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B > checking the name lister (/usr/bin/nm -B) interface... BSD nm > checking for fgrep... /bin/grep -F > checking if need to remove -g from CCASFLAGS... no > checking whether to enable smp locks... yes > checking if .proc/endp is needed... no > checking directive for setting text section... .text > checking directive for exporting symbols... .globl > checking for objdump... objdump > checking if .note.GNU-stack is needed... yes > checking suffix for labels... : > checking prefix for global symbol labels... none > configure: error: Could not determine global symbol label prefix > > > Not sure why configure failed at this point. > > Thanks! > > Jeff > > >> As you are not cross-compiling I would expect gcc to use the right assembly >> by default. What is happening is you force the native mode (-march=native) ? >> >> George. >> >> >> On Fri, May 29, 2015 at 10:09 AM, Jeff Layton <layto...@att.net> wrote: >> On 05/29/2015 09:35 AM, Jeff Layton wrote: >>> Gilles, >>> >>> oops - yes, CFLAGS. But I also saw this posting: >>> >>> https://www.open-mpi.org/community/lists/users/2013/01/21111.php >>> >>> where CCASFLAGS is used (I assume because for asm). I'm trying >>> this flag when I configure Open MPI. >> >> I tried using the CCASFLAGS flag from the above link and it didn't work. The >> error >> now reads: >> >> Making all in mca/memory/linux >> make[2]: Entering directory >> '/work/pi/src/openmpi-1.8.5/opal/mca/memory/linux' >> CC memory_linux_component.lo >> CC memory_linux_ptmalloc2.lo >> CC memory_linux_munmap.lo >> CC malloc.lo >> /tmp/cc7g4mWi.s: Assembler messages: >> /tmp/cc7g4mWi.s:948: Error: selected processor does not support ARM mode >> `dmb' >> Makefile:1694: recipe for target 'malloc.lo' failed >> make[2]: *** [malloc.lo] Error 1 >> make[2]: Leaving directory '/work/pi/src/openmpi-1.8.5/opal/mca/memory/linux' >> Makefile:2149: recipe for target 'all-recursive' failed >> make[1]: *** [all-recursive] Error 1 >> make[1]: Leaving directory '/work/pi/src/openmpi-1.8.5/opal' >> Makefile:1698: recipe for target 'all-recursive' failed >> make: *** [all-recursive] Error 1 >> >> >> I used the configure flag CCASFLAGS=-march=armv7-a >> >> Not sure if that is correct or not. I'm guessing I'm using the wrong >> architecture for the Pi 2. Suggestions? >> >> Thanks! >> >> Jeff >> >> >> >>> >>> Thanks! >>> >>> Jeff >>> >>> >>>> Jeff, >>>> >>>> shall I assume you made a typo and wrote CCFLAGS instead of CFLAGS ? >>>> >>>> also, can you double check the flags are correctly passed to the assembler >>>> with >>>> cd opal/asm >>>> make -n atomic-asm.lo >>>> >>>> Cheers, >>>> >>>> Gilles >>>> >>>> On Friday, May 29, 2015, Jeff Layton <layto...@att.net> wrote: >>>> Good morning, >>>> >>>> I'm building OpenMPI from source on a Raspberry Pi 2 and >>>> I've hit an error. The error is: >>>> >>>> make[2]: Entering directory '/work/pi/src/openmpi-1.8.5/opal/asm' >>>> 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' >>>> atomic-asm.S:86: Error: selected processor does not support ARM mode >>>> `ldrexd r4,r5,[r0]' >>>> atomic-asm.S:91: Error: selected processor does not support ARM mode >>>> `strexd r1,r6,r7,[r0]' >>>> atomic-asm.S:107: Error: selected processor does not support ARM mode >>>> `ldrexd r4,r5,[r0]' >>>> atomic-asm.S:112: Error: selected processor does not support ARM mode >>>> `strexd r1,r6,r7,[r0]' >>>> atomic-asm.S:115: Error: selected processor does not support ARM mode `dmb' >>>> atomic-asm.S:130: Error: selected processor does not support ARM mode >>>> `ldrexd r4,r5,[r0]' >>>> atomic-asm.S:135: Error: selected processor does not support ARM mode `dmb' >>>> atomic-asm.S:136: Error: selected processor does not support ARM mode >>>> `strexd r1,r6,r7,[r0]' >>>> Makefile:1608: recipe for target 'atomic-asm.lo' failed >>>> make[2]: *** [atomic-asm.lo] Error 1 >>>> make[2]: Leaving directory '/work/pi/src/openmpi-1.8.5/opal/asm' >>>> Makefile:2149: recipe for target 'all-recursive' failed >>>> make[1]: *** [all-recursive] Error 1 >>>> make[1]: Leaving directory '/work/pi/src/openmpi-1.8.5/opal' >>>> Makefile:1698: recipe for target 'all-recursive' failed >>>> make: *** [all-recursive] Error 1 >>>> >>>> >>>> I was doing some googling and I saw where I need to specify >>>> CCFLAGS when I run configure but I want to make 100% sure >>>> I have the right arguments. Can anyone help? >>>> >>>> Thanks! >>>> >>>> Jeff >>>> >>>> P.S. I'd rather build OpenMPI from source rather than use the pre-built >>>> packages in the Raspbian repository. >>>> >> > > _______________________________________________ > users mailing list > us...@open-mpi.org > Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/users > Link to this post: > http://www.open-mpi.org/community/lists/users/2015/05/26987.php -- Jeff Squyres jsquy...@cisco.com For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/