[Trilinos-Users] Compiling Trilinos

Heroux, Mike MHeroux at CSBSJU.EDU
Mon Sep 15 08:05:04 MDT 2014


Erno,

Try defining EPETRA_ADDRESS64BIT.  This should fix the problem.  Add "-D
EPETRA_ADDRESS64BIT" to both the Fortran and C++ compiler flags list.

Mike

On 9/15/14, 12:24 AM, "Sajo, Erno" <Erno_Sajo at uml.edu> wrote:

>Hello,
>
>I am installing the Sandia code SCEPTRE, which uses Trilinos, on Mac OSX
>10.8 and 10.9 platforms. I have been able to successfully build it using
>CMake (although it worked only via the GUI rather than the command line),
>but the final compilation aborts with the following error message:
>
>[ 15%] Building CXX object
>packages/epetra/src/CMakeFiles/epetra.dir/Epetra_Fortran_wrappers.cpp.o
>In file included from
>/Applications/Opt/trilinos-11.4.3-Source/packages/epetra/src/Epetra_Fortra
>n_wrappers.cpp:43:
>/Applications/Opt/trilinos-11.4.3-Source/packages/epetra/src/Epetra_C_wrap
>pers.cpp:72:12: error: cast from
>      pointer to smaller type 'EPETRA_OBJECT_PTR' (aka 'int') loses
>information
>    return((EPETRA_OBJECT_PTR ) comm_);
>           ^~~~~~~~~~~~~~~~~~~~~~~~~~
>
>This error repeats 11 times (the number of times as EPETRA_OBJECT_PTR is
>invoked.) It seems that this is a type mismatch problem, but I am not
>sufficiently familiar with the code as to attempt to debug it. It also
>may be possible that the compiler I am using is less tolerant to this
>type of error. The compiler is GNU gcc 4.2.1 (i686-apple-darwin). In the
>above example, trillions-11.4.3 release is used, but the same problem
>exists in using release 11.10.2.
>
>I would very much appreciate any advice you can give.
>
>Thank you and best regards,
>
>Erno Sajo
>Professor
>Department of Physics
>University of Massachusetts Lowell
>erno_sajo at uml.edu
>(978) 934-3288
>
>_______________________________________________
>Trilinos-Users mailing list
>Trilinos-Users at software.sandia.gov
>https://software.sandia.gov/mailman/listinfo/trilinos-users



More information about the Trilinos-Users mailing list