I see the problem; I missed updating a variable in my patch.  I verified this 
by just configuring OMPI on my Mac the same way you did (or something close to 
it):

./configure --disable-mpi-fortran CC=clang CXX=clang++ CFLAGS="-Os -w -pipe 
-march=native -Xclang -target-feature -Xclang -aes -Qunused-arguments 
-mmacosx-version-min=10.8 -finline-functions -fno-strict-aliasing -isystem 
/usr/local/include" ...

With my new patch (below), this now works properly -- both -Xclangs are 
preserved. I'll go commit this to the OMPI SVN trunk and bring it over to v1.6 
and v1.7.

Index: opal/config/opal_functions.m4
===================================================================
--- opal/config/opal_functions.m4       (revision 26954)
+++ opal/config/opal_functions.m4       (working copy)
@@ -271,6 +271,17 @@
        ompi_i="`expr $ompi_i + 1`"
     done

+    # Check for special cases where we do want to allow repeated
+    # arguments (per
+    # http://www.open-mpi.org/community/lists/devel/2012/08/11362.php).
+
+    case $val in
+    -Xclang)  
+            ompi_found=0 
+            ompi_i=`expr $ompi_count + 1`
+            ;;
+    esac
+
     # If we didn't find the token, add it to the "array"

     if test "$ompi_found" = "0"; then


On Aug 3, 2012, at 4:03 PM, P. Martin wrote:

> 
> 
> This is the config.log from 1.6.1rc2.  My previous email was
> the config.log from 1.6.0.  Sorry about that.  Also my setup is
> 
> autoconf 2.69
> automake 1.12.2
> libtool 2.4.2
> 
> 
> configure:11649: checking if /usr/bin/clang supports -fno-strict-aliasing
> configure:11665: /usr/bin/clang -c -DNDEBUG -Os -w -pipe -march=native 
> -Xclang -target-feature -Xclang -aes -Qunused-arguments 
> -mmacosx-version-min=10.8 -finline-functions -fno-strict-aliasing -isystem 
> /usr/local/include conftest.c >&5
> configure:11665: $? = 0
> configure:11672: result: yes
> configure:11756: WARNING:  -fno-strict-aliasing has been added to CFLAGS
> configure:11890: checking if /usr/bin/clang supports __builtin_expect
> configure:11907: /usr/bin/clang -o conftest -DNDEBUG -Os -w -pipe 
> -march=native -Xclang -Xclang -aes -Qunused-arguments 
> -mmacosx-version-min=10.8 -finline-functions -fno-strict-aliasing -isystem 
> /usr/local/include -L/usr/local/lib conftest.c  >&5
> error: unknown argument: '-Xclang'
> configure:11907: $? = 1
> configure: failed program was:
> 
> 
> _______________________________________________
> devel mailing list
> de...@open-mpi.org
> http://www.open-mpi.org/mailman/listinfo.cgi/devel
> _______________________________________________
> devel mailing list
> de...@open-mpi.org
> http://www.open-mpi.org/mailman/listinfo.cgi/devel


-- 
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