[Trilinos-Users] Trilinos build error with gcc-4.6.1

Bill Spotz wfspotz at sandia.gov
Fri Jul 15 11:09:57 MDT 2011


Epetra.i is the correct place to add the #include statement.  You will want to do it between the "%{" and "%}", which is where you put code that you want SWIG to directly insert into the generated wrapper file.

-Bill 

On Jul 15, 2011, at 8:44 AM, Perschbacher, Brent M wrote:

> Hello John and Martin,
>  The issues with gcc 4.6 are known and we have fixed a number of them in
> our development branch. Specifically the issue with missing cstddef includes
> is a known change for gcc and has been cleaned up in pretty much all
> packages. I can't speak for PyTrilinos as our 4.6 testing doesn't currently
> build that package(and I don't specifically recall fixing anything in
> PyTrilinos), but that is something which I will look into before we release.
> 
> John, the EpetraPYTHON_wrap.cpp I'm sure is created by PyTrilinos. I don't
> know PyTrilinos or swig all that well, but I've found an Epetra.i file in
> pytrilinos/src that looks like it is used by swig to generate an
> "EpetraPYTHON_wrap.h", according to the pytrilinos/src/Cmakelists.txt
> anyway. I would assume it is also used for or related to generating the
> corresponding cpp file as well.
> 
> Brent 
> 
> On 7/15/11 8:02 AM, "John R Cary" <cary at colorado.edu> wrote:
> 
>> Thanks, Martin.  This worked.
> 
> I still have a bit of a problem in that
> I am
>> trying to generate a pre-configure patch.
> Looks like the generated file,
>> EpetraPYTHON_wrap.cpp,
> also needs to be patched.
> 
> Can anyone tell me what this
>> is generated from so that
> I can insert this line in the appropriate code
>> fragment?
> 
> Thx...John
> 
> On 7/15/11 6:28 AM, Martin Vymazal wrote:
>> Hi
>> John,
>> 
>>  what helps me to remove compilation errors with gcc 4.6 is
>> adding
>> 
>>  #include<cstddef>
>> 
>> to all source files that don't compile.
>> (Typically, gcc 4.6 complains about not
>> recognizing ptrdiff_t). Go carefully
>> through the error output and find the first
>> error message from the compiler.
>> Add the above line to the file which triggered
>> the error. Then try to
>> recompile. If you're getting more errors, repeat the
>> procedure.
>> 
>>  Hope
>> this helps,
>> 
>>   Martin
>> 
>> 
>> 
>> 
>> On Friday 15 July 2011 06:00:46 John R
>> Cary wrote:
>>> Lots of items like below.
>>> 
>>> Trilinos-10.6.4.
>>> 
>>> 
>> Thx....John Cary
>>> 
>>> 
>> /scr_verus/cary/vorpalall/builds/trilinos-10.6.4/packages/teuchos/src/Teu>>
>> chos_CTimeMonitor.cpp: In function Œint Teuchos_startTimer(char*,
>>> 
>> int)¹:/scr_verus/cary/vorpalall/builds/trilinos-10.6.4/packages/teuchos/src/
>> 
>>> Teuchos_CT imeMonitor.cpp:48:23: error: Œ{anonymous}::TimerArray_t¹ has
>> no
>>> member named
>>> 
>> Œsize¹/scr_verus/cary/vorpalall/builds/trilinos-10.6.4/packages/teuchos/src/
>> 
>>> Teuchos_CT imeMonitor.cpp:51:3: error: Œ{anonymous}::TimerArray_t¹ has no
>>> 
>> member named Œsize¹
>>> 
>> /scr_verus/cary/vorpalall/builds/trilinos-10.6.4/packages/teuchos/src/Teucho
>> 
>>> s_CTimeMonitor.cpp:51:3: error: Œ{anonymous}::TimerArray_t¹ has no member
>>> 
>> named Œsiz
>>>>>> 
>>> In file included from
>> /scr_verus/cary/vorpalall/builds/trilinos-10.6.4/pa
>>> 
>> ckages/teuchos/src/Teuchos_TableFormat.hpp:37:0,                 from
>>> 
>> /scr_verus/cary/vorpalall/builds/trilinos-10.6.4/packages/teuchos/src/Teucho
>> 
>>> s_PerformanceMonitorBase.hpp:42, from
>>> 
>> /scr_verus/cary/vorpalall/builds/trilinos-10.6.4/packages/teuchos/src/Teucho
>> 
>>> s_TimeMonitor.hpp:46, from
>>> 
>> /scr_verus/cary/vorpalall/builds/trilinos-10.6.4/packages/
>>> 
>> teuchos/src/Teuchos_CTimeMonitor.cpp:30:/scr_verus/cary/vorpalall/builds/tri
>> 
>>> linos-10.6.4/packages/teuchos/src/Teuchos_Ta bleColumn.hpp: In member
>>> 
>> function Œint Teuchos::TableColumn::numRows()
>>> 
>> const¹:/scr_verus/cary/vorpalall/builds/trilinos-10.6.4/packages/teuchos/sr
>>> 
>> c/Teuchos_TableColumn.hpp:64:39: error: Œconst class
>>> 
>> Teuchos::Array<Teuchos::RCP<Teuchos::Ta
>>> bleEntry>  >¹ has no member named
>> Œsize¹Building C object
>>> packages/zoltan/siMPI
>>> 
>>> 
>>> 
>> _______________________________________________
>>> Trilinos-Users mailing
>> list
>>> Trilinos-Users at software.sandia.gov
>>> 
>> http://software.sandia.gov/mailman/listinfo/trilinos-users
>> 
>> 
>> 
>> _______________________________________________
>> Trilinos-Users mailing
>> list
>> Trilinos-Users at software.sandia.gov
>> 
>> http://software.sandia.gov/mailman/listinfo/trilinos-users
>> 
> 
> 
> 
> ______________
>> _________________________________
> Trilinos-Users mailing
>> list
> Trilinos-Users at software.sandia.gov
> http://software.sandia.gov/mailman/lis
>> tinfo/trilinos-users
> 
> 
> 
> _______________________________________________
> Trilinos-Users mailing list
> Trilinos-Users at software.sandia.gov
> http://software.sandia.gov/mailman/listinfo/trilinos-users

** Bill Spotz                                              **
** Sandia National Laboratories  Voice: (505)845-0170      **
** P.O. Box 5800                 Fax:   (505)284-0154      **
** Albuquerque, NM 87185-0370    Email: wfspotz at sandia.gov **








More information about the Trilinos-Users mailing list