[Trilinos-Users] make tests fails on franklin

Ben Cowan benc at txcorp.com
Wed Dec 10 17:19:31 MST 2008


Attempting to build the tests for Trilinos 9.0.1 fails with a compile  
error on the Franklin supercomputer at NERSC. I'm using the PGI 7.2.4  
compilers, and configuring with the line

${sourcedir}/configure --prefix=${installdir} --enable-mpi \
     --disable-default-packages --enable-ml --enable-amesos --enable- 
aztecoo \
     --enable-epetra --enable-epetraext --enable-triutils --enable- 
anasazi \
     --enable-ifpack --enable-galeri \
     --with-gnumake CXX=CC CC=cc F77=ftn \
     CPPFLAGS="-DMPICH_IGNORE_CXX_SEEK" CXXFLAGS="-fast" CFLAGS="- 
fast" \
     FFLAGS="-fast"

Building the libraries with "make" works OK, but when I run "make  
tests" I get a compiler error.  The compile command line generated by  
make is

CC -DHAVE_CONFIG_H -I. -I../../src -I/u0/b/benc/source/trilinos-9.0.1/ 
packages/teuchos/test/MemoryManagement  -I/u0/b/benc/build/trilinos/ 
packages/teuchos/src -I/u0/b/benc/source/trilinos-9.0.1/packages/ 
teuchos/src -DMPICH_IGNORE_CXX_SEEK  -fast -c -o Array_test.o `test -f  
'/u0/b/benc/source/trilinos-9.0.1/packages/teuchos/test/ 
MemoryManagement/Array_test.cpp' || echo '/u0/b/benc/source/ 
trilinos-9.0.1/packages/teuchos/test/MemoryManagement/'`/u0/b/benc/ 
source/trilinos-9.0.1/packages/teuchos/test/MemoryManagement/ 
Array_test.cpp

And the first error (of 3) is:

"/opt/pgi/7.2.4/linux86-64/7.2-4/include/CC/stl/_construct.h", line  
91: error:
           no instance of overloaded
           "Teuchos::ArrayView<T>::operator new [with T=int]" matches  
the
           argument list
             argument types are: (unsigned long,  
Teuchos::ArrayView<int> *)
       _STLP_PLACEMENT_NEW (__p) _T1(__value);
       ^
           detected during:
             instantiation of "void std::_Construct(_T1 *, const _T2  
&) [with
                       _T1=Teuchos::ArrayView<int>,
                       _T2=Teuchos::ArrayView<int>]" at line 199 of
                       "/opt/pgi/7.2.4/linux86-64/7.2-4/include/CC/stl/ 
_uninitia
                       lized.h"
             instantiation of "_ForwardIter
                       std::__uninitialized_fill_n(_ForwardIter,  
_Size, const
                       _Tp &, const std::__false_type &) [with
                       _ForwardIter=Teuchos::ArrayView<int> *,  
_Size=unsigned
                       long, _Tp=Teuchos::ArrayView<int>]" at line 211  
of
                       "/opt/pgi/7.2.4/linux86-64/7.2-4/include/CC/stl/ 
_uninitia
                       lized.h"
             instantiation of "_ForwardIter
                       std::uninitialized_fill_n(_ForwardIter, _Size,  
const _Tp
                       &) [with _ForwardIter=Teuchos::ArrayView<int> *,
                       _Size=unsigned long,  
_Tp=Teuchos::ArrayView<int>]" at
                       line 204 of
                       "/opt/pgi/7.2.4/linux86-64/7.2-4/include/CC/stl/ 
_vector.h
                       "
             instantiation of "std::vector<_Tp,
                       _Alloc>::vector(std::vector<_Tp,  
_Alloc>::size_type,
                       const _Tp &, const std::vector<_Tp,
                       _Alloc>::allocator_type &) [with
                       _Tp=Teuchos::ArrayView<int>,
                        
_Alloc=std::allocator<Teuchos::ArrayView<int>>]" at line
                       639 of
                       "/u0/b/benc/source/trilinos-9.0.1/packages/ 
teuchos/src/Te
                       uchos_Array.hpp"
             instantiation of
                        
"Teuchos::Array<T>::Array(Teuchos::Array<T>::size_type,
                       const Teuchos::Array<T>::value_type &) [with
                       T=Teuchos::ArrayView<int>]" at line 286 of
                       "/u0/b/benc/source/trilinos-9.0.1/packages/ 
teuchos/test/M
                       emoryManagement/Array_test.cpp"
             instantiation of "bool testArray<T>(int,  
Teuchos::FancyOStream &)
                       [with T=int]"

Any ideas on a fix/workaround?  I'm cc'ing NERSC consulting since I'm  
not sure whether this is a Trilinos problem or something with the  
compiler.  The tests built OK on my Mac OS X (10.5.5) machine.

Thanks,
Ben




More information about the Trilinos-Users mailing list