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

Martin Vymazal martin.vymazal at vki.ac.be
Fri Jul 15 06:28:13 MDT 2011


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
> e’
> 
> 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




More information about the Trilinos-Users mailing list