[Trilinos-Users] Cmake not recognizing cygwin mpi compilers

Hogan Jr, Roy E rehogan at sandia.gov
Mon Jun 24 15:39:29 MDT 2013


Hello Jim,

Thank you for your reply.  I am using Open MPI  1.7.1 built on Cygwin...

% which mpicc
/usr/bin/mpicc
% /usr/bin/mpicc --version
gcc (GCC) 4.5.3
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

A bit more info..

% mpicc --ver
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-cygwin/4.5.3/lto-wrapper.exe
Target: i686-pc-cygwin
Configured with: /gnu/gcc/releases/respins/4.5.3-3/gcc4-4.5.3-3/src/gcc-4.5.3/configure --srcdir=/gnu/gcc/releases/respins/4.5.3-3/gcc4-4.5.3-3/src/gcc-4.5.3 --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --datadir=/usr/share --localstatedir=/var --sysconfdir=/etc --datarootdir=/usr/share --docdir=/usr/share/doc/gcc4 -C --datadir=/usr/share --infodir=/usr/share/info --mandir=/usr/share/man -v --with-gmp=/usr --with-mpfr=/usr --enable-bootstrap --enable-version-specific-runtime-libs --libexecdir=/usr/lib --enable-static --enable-shared --enable-shared-libgcc --disable-__cxa_atexit --with-gnu-ld --with-gnu-as --with-dwarf2 --disable-sjlj-exceptions --enable-languages=ada,c,c++,fortran,java,lto,objc,obj-c++ --enable-graphite --enable-lto --enable-java-awt=gtk --disable-symvers --enable-libjava --program-suffix=-4 --enable-libgomp --enable-libssp --enable-libada --enable-threads=posix --with-arch=i686 --with-tune=generic --enable-libgcj-sublibs CC=gcc-4 CXX=g++-4 CC_FOR_TARGET=gcc-4 CXX_FOR_TARGET=g++-4 GNATMAKE_FOR_TARGET=gnatmake GNATBIND_FOR_TARGET=gnatbind --with-ecj-jar=/usr/share/java/ecj.jar
Thread model: posix
gcc version 4.5.3 (GCC)
%

I am beginning to  wonder if it is a protection issue with Cygwin or an issue with cmake.   It appears that cmake is not finding the mpi compilers/wrappers.

Thank you for your help..

Roy
Roy E. Hogan
Thermal and Fluid Processes Department
Sandia National Laboratories
PO Box 5800, MS-0836
Albuquerque, NM 87185-0836
505-845-9585
rehogan at sandia.gov<mailto:rehogan at sandia.gov>


From: Willenbring, James M
Sent: Monday, June 24, 2013 3:04 PM
To: Hogan Jr, Roy E; Trilinos-Users at software.sandia.gov
Subject: RE: Cmake not recognizing cygwin mpi compilers

Roy,

What is the output you get for

/usr/bin/mpicc --version

-- Check for working C compiler: /usr/bin/mpicc
CMake Error: your C compiler: "/usr/bin/mpicc" was not found.   Please set CMAKE_C_COMPILER to a valid compiler path or name.

The output from cmake seems to indicate that mpicc is not located at /usr/bin/mpicc

What version of MPI is installed on your machine?

Jim


From: trilinos-users-bounces at software.sandia.gov<mailto:trilinos-users-bounces at software.sandia.gov> [mailto:trilinos-users-bounces at software.sandia.gov] On Behalf Of Hogan Jr, Roy E
Sent: Sunday, June 23, 2013 3:33 PM
To: Trilinos-Users at software.sandia.gov<mailto:Trilinos-Users at software.sandia.gov>
Subject: [Trilinos-Users] Cmake not recognizing cygwin mpi compilers

Greetings,

I've been trying to build Trilinos on Cygwin without any luck.  It appears to me that Cmake is not finding the "mpi" wrappers/compilers.    I am attaching the build script (do-configure-testing), the captured screen output (do-configure-testing.log), and the CMakeCache.txt files.  I have tried to specify these directly, but it did not work either.

I would appreciate any suggestions.

Thanks,

Roy Hogan

Roy E. Hogan
Thermal and Fluid Processes Department
Sandia National Laboratories
PO Box 5800, MS-0836
Albuquerque, NM 87185-0836
505-845-9585
rehogan at sandia.gov<mailto:rehogan at sandia.gov>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20130624/464c5f6e/attachment.html 


More information about the Trilinos-Users mailing list