← Back to team overview

dolfin team mailing list archive

Re: Problems with MTL

 

Since fpermissive downgrades some errors to warnings, they are not lost. But that won't work with warnings as errors...

Building without mtl and fpermissive will detect problems in other code.

It's not about the newest standard, it's about whatever standard in in use when compiling.

Martin

Den 21. okt. 2011 kl. 09:40 skrev Anders Logg <logg@xxxxxxxxx>:

> Would it be possible to add -fpermissive only in the case when MTL4 is
> detected?
> 
> And would that somehow lead to a risk that bad code (not following the
> latest C++ standard) would slip into DOLFIN unnoticed? Perhaps not if
> the buildbot runs with and without MTL4?
> 
> --
> Anders
> 
> 
> On Fri, Oct 21, 2011 at 09:22:39AM +0200, Martin Alnæs wrote:
>> Looks like a correction w.r.t. the C++ standard, and adding -fpermissive should allow this non-standard feature.
>> 
>> Martin
>> 
>> Den 20. okt. 2011 kl. 23:33 skrev Anders Logg <logg@xxxxxxxxx>:
>> 
>>> On Thu, Oct 20, 2011 at 10:50:40PM +0200, Johannes Ring wrote:
>>>> On Thu, Oct 20, 2011 at 10:35 PM, Anders Logg <logg@xxxxxxxxx> wrote:
>>>>> On Thu, Oct 20, 2011 at 09:38:37PM +0200, Andre Massing wrote:
>>>>>> -----BEGIN PGP SIGNED MESSAGE-----
>>>>>> Hash: SHA1
>>>>>> 
>>>>>> On 10/20/2011 09:14 PM, Anders Logg wrote:
>>>>>>> DOLFIN is not able to find MTL4 on my machine. I usually don't
>>>>>>> care but need it to run some of the new unit tests for the book.
>>>>>>> 
>>>>>>> I have set MTL4_DIR to the Dorsal installation directory
>>>>>>> (installed just a couple of days ago) and that directory contains
>>>>>>> 
>>>>>>> include/boost/numeric/mtl/
>>>>>>> 
>>>>>>> with lots of stuff.
>>>>>>> 
>>>>>>> Any ideas what may go wrong or how to debug it?
>>>>>> 
>>>>>> Unfortunately no ideas, but I can confirm the same behavior on my
>>>>>> machine (Ubuntu 11.10).
>>>>> 
>>>>> ok. Is anyone else able to run MTL4 on Ubuntu 11.10?
>>>> 
>>>> What is the output from CMake when you configure DOLFIN? If it is the
>>>> test program that fails, take a look in CMakeFiles/CMakeError.log for
>>>> the error message.
>>> 
>>> Looks like it's GCC "problem" (newer GCC more picky):
>>> 
>>> /usr/bin/c++    -DMTL4_TEST_RUNS -DMTL_HAS_BLAS
>>> -I/home/logg/scratch/fenics/include    -o
>>> CMakeFiles/cmTryCompileExec.dir/src.cxx.o -c
>>> /home/logg/scratch/src/dolfin/work/build/CMakeFiles/CMakeTmp/src.cxx
>>> In file included from
>>> /home/logg/scratch/fenics/include/boost/numeric/mtl/vector/vec_vec_asgn_expr.hpp:21:0,
>>>                from
>>>                /home/logg/scratch/fenics/include/boost/numeric/mtl/vector/all_vec_expr.hpp:22,
>>>                from
>>>                /home/logg/scratch/fenics/include/boost/numeric/mtl/vector/dense_vector.hpp:29,
>>>                from
>>>                /home/logg/scratch/fenics/include/boost/numeric/mtl/vectors.hpp:16,
>>>                from
>>>                /home/logg/scratch/fenics/include/boost/numeric/mtl/types.hpp:16,
>>>                from
>>>                /home/logg/scratch/fenics/include/boost/numeric/mtl/mtl.hpp:16,
>>>                from /home/logg/scratch/src/dolfin/work/build/CMakeFiles/CMakeTmp/src.cxx:3:
>>> /home/logg/scratch/fenics/include/boost/numeric/mtl/vector/vec_vec_aop_expr.hpp:149:42:
>>> fel: referensen "first" kan inte deklareras "mutable" [-fpermissive]
>>> In file included from
>>> /home/logg/scratch/fenics/include/boost/numeric/mtl/vector/vec_scal_times_asgn_expr.hpp:19:0,
>>>                from
>>>                /home/logg/scratch/fenics/include/boost/numeric/mtl/vector/all_vec_expr.hpp:25,
>>>                from
>>>                /home/logg/scratch/fenics/include/boost/numeric/mtl/vector/dense_vector.hpp:29,
>>>                from
>>>                /home/logg/scratch/fenics/include/boost/numeric/mtl/vectors.hpp:16,
>>>                from
>>>                /home/logg/scratch/fenics/include/boost/numeric/mtl/types.hpp:16,
>>>                from
>>>                /home/logg/scratch/fenics/include/boost/numeric/mtl/mtl.hpp:16,
>>>                from /home/logg/scratch/src/dolfin/work/build/CMakeFiles/CMakeTmp/src.cxx:3:
>>> /home/logg/scratch/fenics/include/boost/numeric/mtl/vector/vec_scal_aop_expr.hpp:102:41:
>>> fel: referensen "first" kan inte deklareras "mutable" [-fpermissive]
>>> make[1]: *** [CMakeFiles/cmTryCompileExec.dir/src.cxx.o] Fel 1
>>> make[1]: Lämnar katalogen
>>> "/home/logg/scratch/src/dolfin/work/build/CMakeFiles/CMakeTmp"
>>> make: *** [cmTryCompileExec/fast] Fel 2
>>> 


References