Fixes #3008: CMR README update for Studio on Ubuntu and abort configure on the usage of gccfss v1.4 v1.4.5
authorjsquyres
Fri Feb 10 22:55:59 2012 +0000 (16 months ago)
branchv1.4
changeset 193967126c5135381
parent 19395 ecc6f76fce16
child 19398 c237dd757bef
Fixes #3008: CMR README update for Studio on Ubuntu and abort configure on the usage of gccfss

Custom patch from ticket
README
config/ompi_check_vendor.m4
     1.1 --- a/README	Fri Feb 10 22:50:55 2012 +0000
     1.2 +++ b/README	Fri Feb 10 22:55:59 2012 +0000
     1.3 @@ -244,6 +244,18 @@
     1.4    Therefore  the make install fails.  So we suggest that one should
     1.5    use CXX=CC, which works, instead of CXX=sunCC.
     1.6  
     1.7 +- If one tries to build OMPI on Ubuntu with Solaris Studio using the C++
     1.8 +  compiler and the -m32 option, you might see a warning:
     1.9 +
    1.10 +    CC: Warning: failed to detect system linker version, falling back to
    1.11 +     custom linker usage
    1.12 +
    1.13 +  Then the build will fail.  One can overcome this error by either 
    1.14 +  setting LD_LIBRARY_PATH to the location of the 32 bit libraries (most
    1.15 +  likely /lib32), or giving LDFLAGS="-L/lib32 -R/lib32" to the configure
    1.16 +  command.  Officially, Solaris Studio is not supported on Ubuntu Linux
    1.17 +  distributions, so additional problems might be incurred.
    1.18 +
    1.19  - icc-9.1 and icc-10.0 fail to build atomics on IA64.  However,
    1.20    gcc is fine on IA64.  So, these older versions of icc are no
    1.21    longer supported on IA64.
     2.1 --- a/config/ompi_check_vendor.m4	Fri Feb 10 22:50:55 2012 +0000
     2.2 +++ b/config/ompi_check_vendor.m4	Fri Feb 10 22:55:59 2012 +0000
     2.3 @@ -10,6 +10,7 @@
     2.4  dnl                         University of Stuttgart.  All rights reserved.
     2.5  dnl Copyright (c) 2004-2005 The Regents of the University of California.
     2.6  dnl                         All rights reserved.
     2.7 +dnl Copyright (c) 2012      Oracle and/or its affiliates. All rigths reserved.
     2.8  dnl $COPYRIGHT$
     2.9  dnl 
    2.10  dnl Additional copyrights may follow
    2.11 @@ -105,7 +106,25 @@
    2.12      # GNU
    2.13      AS_IF([test "$ompi_check_compiler_vendor_result" = "unknown"],
    2.14            [OMPI_IFDEF_IFELSE([__GNUC__], 
    2.15 -               [ompi_check_compiler_vendor_result="gnu"])])
    2.16 +               [ompi_check_compiler_vendor_result="gnu"
    2.17 +
    2.18 +               # We do not support gccfss as a compiler, so die if 
    2.19 +               # someone tries to use it.  gccfss (gcc 
    2.20 +               # for SPARC Systems) is a compiler that is no longer 
    2.21 +               # supported by Oracle, and it has some major flaws
    2.22 +               # that prevents it from actually compiling OMPI code. 
    2.23 +               # So if we detect it, we automatically bail.
    2.24 +
    2.25 +               if ($CC --version | grep gccfss) >/dev/null 2>&1; then
    2.26 +                   AC_MSG_RESULT([gccfss])
    2.27 +                   AC_MSG_WARN([Detected gccfss being used to compile Open MPI.])
    2.28 +                   AC_MSG_WARN([Because of several issues, Open MPI does not support])
    2.29 +                   AC_MSG_WARN([the gccfss compiler.  Please use a different compiler.])
    2.30 +                   AC_MSG_WARN([If you didn't think you used gccfss, you may want to])
    2.31 +                   AC_MSG_WARN([check to see if the compiler you think you used is])
    2.32 +                   AC_MSG_WARN([actually a link to gccfss.])
    2.33 +                   AC_MSG_ERROR([Cannot continue])
    2.34 +               fi])])
    2.35  
    2.36      # Borland Turbo C
    2.37      AS_IF([test "$ompi_check_compiler_vendor_result" = "unknown"],