[Trilinos-Users] Trilinos Compilation Error on Linux

John T. Foster jfoster at austin.utexas.edu
Mon Jun 6 13:55:40 EDT 2016


Sai,

What does mpicxx -show return? It should be wrapping icpc.

JTF
​

On Mon, Jun 6, 2016 at 12:47 PM, Heroux, Mike <MHeroux at csbsju.edu> wrote:

> It looks like you are compiling C++ with a C compiler.  This will not work.
>
>
>
> Mike
>
>
>
> *From: *Trilinos-Users <trilinos-users-bounces at trilinos.org> on behalf of
> Sai P Uppati <uppatis at utexas.edu>
> *Date: *Monday, June 6, 2016 at 10:26 AM
> *To: *"John T. Foster" <jfoster at austin.utexas.edu>
> *Cc: *Roscoe Bartlett <rabartl at sandia.gov>, Trilinos Users <
> trilinos-users at trilinos.org>
> *Subject: *Re: [Trilinos-Users] [EXTERNAL] Trilinos Compilation Error on
> Linux
>
>
>
> I didn't notice before I think, but I'm getting other errors as well,
> besides the one I showed. Examples include:
>
>
>
> [  0%] Building C object
> packages/seacas/libraries/chaco/CMakeFiles/chaco.dir/assign/assign_out.c.o
>
> In file included from
> /home/de566876/source_codes/Trilinos/packages/kokkos/core/src/KokkosExp_View.hpp(53),
>
>                  from
> /home/de566876/source_codes/Trilinos/packages/kokkos/core/src/Kokkos_View.hpp(2104),
>
>                  from
> /home/de566876/source_codes/Trilinos/packages/kokkos/core/src/Kokkos_Parallel.hpp(52),
>
>                  from
> /home/de566876/source_codes/Trilinos/packages/kokkos/core/src/Kokkos_Serial.hpp(52),
>
>                  from
> /home/de566876/source_codes/Trilinos/packages/kokkos/core/src/Kokkos_Core.hpp(53),
>
>                  from
> /home/de566876/source_codes/Trilinos/packages/kokkos/core/src/impl/KokkosExp_SharedAlloc.cpp(44):
>
> /home/de566876/source_codes/Trilinos/packages/kokkos/core/src/Kokkos_HostSpace.hpp(160):
> *error*: invalid type for defaulted constructor
>
>     HostSpace( HostSpace && rhs ) = default ;
>
>     ^
>
>
>
> In file included from
> /home/de566876/source_codes/Trilinos/packages/kokkos/core/src/KokkosExp_View.hpp(53),
>
>                  from
> /home/de566876/source_codes/Trilinos/packages/kokkos/core/src/Kokkos_View.hpp(2104),
>
>                  from
> /home/de566876/source_codes/Trilinos/packages/kokkos/core/src/Kokkos_Parallel.hpp(52),
>
>                  from
> /home/de566876/source_codes/Trilinos/packages/kokkos/core/src/Kokkos_Serial.hpp(52),
>
>                  from
> /home/de566876/source_codes/Trilinos/packages/kokkos/core/src/Kokkos_Core.hpp(53),
>
>                  from
> /home/de566876/source_codes/Trilinos/packages/kokkos/core/src/impl/KokkosExp_SharedAlloc.cpp(44):
>
> /home/de566876/source_codes/Trilinos/packages/kokkos/core/src/Kokkos_HostSpace.hpp(162):
> *error*: invalid type for defaulted assignment operator
>
>     HostSpace & operator = ( HostSpace && ) = default ;
>
>                 ^
>
>
>
> In file included from
> /home/de566876/source_codes/Trilinos/packages/kokkos/core/src/KokkosExp_View.hpp(55),
>
>                  from
> /home/de566876/source_codes/Trilinos/packages/kokkos/core/src/Kokkos_View.hpp(2104),
>
>                  from
> /home/de566876/source_codes/Trilinos/packages/kokkos/core/src/Kokkos_Parallel.hpp(52),
>
>                  from
> /home/de566876/source_codes/Trilinos/packages/kokkos/core/src/Kokkos_Serial.hpp(52),
>
>                  from
> /home/de566876/source_codes/Trilinos/packages/kokkos/core/src/Kokkos_Core.hpp(53),
>
>                  from
> /home/de566876/source_codes/Trilinos/packages/kokkos/core/src/impl/KokkosExp_SharedAlloc.cpp(44):
>
> /home/de566876/source_codes/Trilinos/packages/kokkos/core/src/Kokkos_ExecPolicy.hpp(259):
> *error*: invalid type for defaulted constructor
>
>     RangePolicy(RangePolicy&&) = default;
>
>     ^
>
>
>
> Is this also a compiler issue? The error with the netcdf.h with the
> comment beginning with "//" is still there as well. Any idea what the
> problem could be?
>
>
>
> Sai
>
>
>
>
>
> On Mon, Jun 6, 2016 at 9:25 AM, Sai P Uppati <uppatis at utexas.edu> wrote:
>
> Ross, sorry I misunderstood. John, thanks for that clarification. It looks
> like I was using
>
>
>
> icc version 15.0.1 (gcc version 4.7.3 compatibility)
>
>
>
> And I changed to
>
>
>
> icc version 16.0.2 (gcc version 4.4.7 compatibility)
>
>
>
> Both of them are having the same issue.
>
>
>
> Sai
>
>
>
>
>
>
>
> On Mon, Jun 6, 2016 at 8:48 AM, John T. Foster <jfoster at austin.utexas.edu>
> wrote:
>
> Sai,
>
> mpicc and mpicxx are just wrappers on the underlying compilers which are
> most likely some version of gcc. You can see the full compiler and linker
> command with mpicc -show. If the underlying compiler is in fact gcc, you
> can see the version with gcc -v.
>
> JTF
>
>>
>
>
> On Mon, Jun 6, 2016 at 8:20 AM, Sai P Uppati <uppatis at utexas.edu> wrote:
>
> Hi Ross,
>
>
>
> It looks like I'm using mpicc, mpicxx compilers from the OpemMPI 1.6.5
> version. Are these too old for compiling the latest version of Trilinos?
>
>
>
> Sai
>
>
>
> On Sat, Jun 4, 2016 at 9:15 PM, Bartlett, Roscoe A <rabartl at sandia.gov>
> wrote:
>
> Looks like your C compiler is not accepting C99 code.  C89 does not accept
> // as a comment.  What C compiler are you using?
>
> -Ross
> ------------------------------
>
> *From:* Trilinos-Users <trilinos-users-bounces at trilinos.org> on behalf of
> Sai P Uppati <uppatis at utexas.edu>
> *Sent:* Saturday, June 4, 2016 5:37:29 PM
> *To:* trilinos-users at trilinos.org; trilinos-users at software.sandia.gov
> *Subject:* [EXTERNAL] [Trilinos-Users] Trilinos Compilation Error on Linux
>
>
>
> Hi,
>
>
>
> I'm trying to compile Trilinos (latest version: GitHub version) on a Linux
> Red Hat distribution, and I'm getting a compilation error regarding
> netcdf.h:
>
>
>
> Building C object
> packages/seacas/libraries/supes/CMakeFiles/supes.dir/ext_lib/exmemy.c.o
>
> /home/de566876/source_codes/Trilinos/packages/seacas/libraries/exodus/src/ex_close.c(50):
> warning #14: extra text after expected end of preprocessing directive
>
>   #include "exodusII.h"     // for ex_err, exerrval, etc
>
>                             ^
>
>
>
> In file included from
> /home/de566876/source_codes/Trilinos/packages/seacas/libraries/exodus/include/exodusII.h(46),
>
>                  from
> /home/de566876/source_codes/Trilinos/packages/seacas/libraries/exodus/src/ex_add_attr.c(35):
>
> /home/de566876/projects/netcdf/include/netcdf.h(1951): error: expected a
> declaration
>
>     //EXTERNL int nc_finalize();
>
>     ^
>
>
>
> [  5%] In file included from
> /home/de566876/source_codes/Trilinos/packages/seacas/libraries/exodus/include/exodusII.h(46),
>
>                  from
> /home/de566876/source_codes/Trilinos/packages/seacas/libraries/exodus/src/ex_close.c(50):
>
> /home/de566876/projects/netcdf/include/netcdf.h(1951): error: expected a
> declaration
>
>     //EXTERNL int nc_finalize();
>
>     ^
>
>
>
> Does this error have to do with the netcdf build (version 4.4.0, which
> passed all the tests in the test suite by the way)?
>
>
>
> Sincerely,
>
> Sai Uppati
>
>
>
>
>
> [image: mage removed by sender.]ᐧ
>
>
>
>
>
> _______________________________________________
> Trilinos-Users mailing list
> Trilinos-Users at trilinos.org
> https://trilinos.org/mailman/listinfo/trilinos-users
>
>
>
>
>
>
>
> _______________________________________________
> Trilinos-Users mailing list
> Trilinos-Users at trilinos.org
> https://trilinos.org/mailman/listinfo/trilinos-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://trilinos.org/pipermail/trilinos-users/attachments/20160606/41d80060/attachment-0001.html>


More information about the Trilinos-Users mailing list