I also got the same error message as Andrew did when I tried to compile with 
gcc4.5 
referred by Luca. I think Andrew is facing the same problem now as I did. 
Please 
let us know if you find a solution.

Thanks.

Khalid



________________________________
From: Andrew McBride <[email protected]>
To: Wolfgang Bangerth <[email protected]>
Cc: khalid ashraf <[email protected]>; [email protected]
Sent: Sun, April 4, 2010 9:32:19 AM
Subject: Re: [deal.II] Exception on processing: std::bad_cast

Hi all,

Yes it looks like a similar problem to what was discussed previously and that 
was settled with changing the compiler to the 4.5 experimental as suggested by 
Luca. 

In an attempt to see if I could help, I updated my version of deal.II to the 
latest and downloaded the latest version of the hpc compiler that Luca 
suggested previously (and that was working fine) from 
http://sourceforge.net/projects/hpc/ (i see that gcc was updated on Jan 15 
2010) 
When I try and compile deal.II now I get the following error:

=====deal.II====1d====debug======MT== fe/fe_values.cc
source/fe/fe_values.cc: In constructor 
‘dealii::internal::FEValuesViews::Cache<dim, spacedim>::Cache(const 
dealii::FEValuesBase<dim, spacedim>&) [with int dim = 1, int spacedim = 1]’:
source/fe/fe_values.cc:1486:31:   instantiated from ‘dealii::FEValuesBase<dim, 
spacedim>::FEValuesBase(unsigned int, unsigned int, dealii::UpdateFlags, const 
dealii::Mapping<dim, spacedim>&, const dealii::FiniteElement<dim, spacedim>&) 
[with int dim = 1, int spacedim = 1]’
source/fe/fe_values.cc:3941:16:   instantiated from here
source/fe/fe_values.cc:1057:4: error: no type named ‘ScalarView’ in ‘class 
dealii::FEValuesViews::Scalar<1>’
source/fe/fe_values.cc:1057:4: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.

I know this is not the problem Khalid is referring to, but it is related to mac 
compiling issues. I will have a look at Khalid's problem as soon as I have a 
working deal.II again :)

Kind regards
Andrew

Am 04 Apr 2010 um 5:14 PM schrieb Wolfgang Bangerth:

> 
>> my compiler version is gcc 4.2.1
>> sofar tredd the following things
>> 1. tried the 4.5 version referred in previous mail, but it seems to
>> cause other compilation errors. 2. Changed dynamic_cast to static_cast
>> in fe_system.cc but still get the same exception. I wonder why it
>> doesn't give a reference to the file or line number from where the
>> exception is being thrown.
> 
> To me this all sounds like an installation problem with the compiler. 
> Nobody seems to have had this problem before.
> 
> Maybe one of our Mac people can help, who knows.
> 
> W>
> 
> -- 
> -------------------------------------------------------------------------
> Wolfgang Bangerth                email:            [email protected]
>                                 www: http://www.math.tamu.edu/~bangerth/
> 
> _______________________________________________
> dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii


      
_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii

Reply via email to