[Trilinos-Users] [EXTERNAL] PyTrilinos compilation failure on OSX 10.8.5
Bill Spotz
wfspotz at sandia.gov
Mon Apr 7 12:11:38 MDT 2014
Dominique,
I don't know exactly what is happening here. However, when I check the first error, "NOX::Utils::Fill result;", this line is not generated in my python wrapper.
What version of SWIG are you using? I recommend version 2.0.8 for now.
-Bill
On Apr 6, 2014, at 3:24 AM, Dominique Orban <dominique.orban at gmail.com> wrote:
> I'm using clang 425 on OSX 10.8.5. I configure Trilinos using the following cmake flags:
>
> -DBUILD_SHARED_LIBS=ON
> -DTPL_ENABLE_MPI:BOOL=ON
> -DTPL_ENABLE_BLAS=ON
> -DTPL_ENABLE_LAPACK=ON
> -DTPL_ENABLE_Zlib:BOOL=ON
> -DTrilinos_ENABLE_ALL_PACKAGES=ON
> -DTrilinos_ENABLE_ALL_OPTIONAL_PACKAGES=ON
> -DTrilinos_ENABLE_TESTS:BOOL=ON
> -DTrilinos_ENABLE_EXAMPLES:BOOL=ON
> -DTrilinos_VERBOSE_CONFIGURE:BOOL=OFF
> -DZoltan_ENABLE_ULLONG_IDS:Bool=ON
> -DTrilinos_ENABLE_ShyLU:BOOL=ON
> -DTrilinos_ENABLE_Teko:BOOL=ON
> -DTPL_ENABLE_Boost:BOOL=ON
> -DTPL_ENABLE_Netcdf:BOOL=ON
> -DTrilinos_ENABLE_PyTrilinos:BOOL=ON
>
> I get to the 100% mark but compilation fails at that point:
>
> [100%] Building CXX object packages/PyTrilinos/src/CMakeFiles/Pliris.dir/PlirisPYTHON_wrap.cpp.o
>
> /tmp/trilinos-yAyl/trilinos-11.6.1-Source/build/packages/PyTrilinos/src/NOX.__init__PYTHON_wrap.cpp:5802:20: error:
> no matching constructor for initialization of 'NOX::Utils::Fill'
> NOX::Utils::Fill result;
> ^
> /tmp/trilinos-yAyl/trilinos-11.6.1-Source/packages/nox/src/NOX_Utils.H:114:5: note:
> candidate constructor not viable: requires 2 arguments, but 0 were provided
> Fill(int ntimes, char ch) : n(ntimes), c(ch) {};
> ^
> /tmp/trilinos-yAyl/trilinos-11.6.1-Source/packages/nox/src/NOX_Utils.H:111:9: note:
> candidate constructor (the implicit copy constructor) not viable: requires 1
> argument, but 0 were provided
> class Fill {
> ^
> /tmp/trilinos-yAyl/trilinos-11.6.1-Source/build/packages/PyTrilinos/src/NOX.__init__PYTHON_wrap.cpp:6542:19: error:
> no matching constructor for initialization of 'NOX::Utils::Sci'
> NOX::Utils::Sci result;
> ^
> /tmp/trilinos-yAyl/trilinos-11.6.1-Source/packages/nox/src/NOX_Utils.H:127:5: note:
> candidate constructor not viable: requires at least argument 'val', but no
> arguments were provided
> Sci(double val, int precision = -1) : d(val), p(precision) {};
> ^
> /tmp/trilinos-yAyl/trilinos-11.6.1-Source/packages/nox/src/NOX_Utils.H:124:9: note:
> candidate constructor (the implicit copy constructor) not viable: requires 1
> argument, but 0 were provided
> class Sci {
> ^
> /tmp/trilinos-yAyl/trilinos-11.6.1-Source/build/packages/PyTrilinos/src/NOX.__init__PYTHON_wrap.cpp:6573:19: error:
> no matching constructor for initialization of 'NOX::Utils::Sci'
> NOX::Utils::Sci result;
> ^
> /tmp/trilinos-yAyl/trilinos-11.6.1-Source/packages/nox/src/NOX_Utils.H:127:5: note:
> candidate constructor not viable: requires at least argument 'val', but no
> arguments were provided
> Sci(double val, int precision = -1) : d(val), p(precision) {};
> ^
> /tmp/trilinos-yAyl/trilinos-11.6.1-Source/packages/nox/src/NOX_Utils.H:124:9: note:
> candidate constructor (the implicit copy constructor) not viable: requires 1
> argument, but 0 were provided
> class Sci {
> ^
>
> Any ideas?
>
> Thanks,
>
> Dominique
> _______________________________________________
> Trilinos-Users mailing list
> Trilinos-Users at software.sandia.gov
> https://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