As you may remember the previous week I was trying to build deal.II
6.1.0 on Mac OS X (v.10.6.8).
I hade a problem with the gcc v.4.2.1 Apple compiler that is provided
through the XCode package
but when I switched to the v.4.0.1 it did the trick and it was build
without a problem as descibed
below.
I 've tried to use the examples but another problem is appearing on
step-14.
Make is performed without any problem but when trying to run ./step-14
I am getting the following message
(at cycle: 0) many times :
---------------------------------------------------------
An object pointed to by a SmartPointer is being destroyed.
Under normal circumstances, this would abort the program.
However, another exception is being processed at the
moment, so the program will continue to run to allow
this exception to be processed.
---------------------------------------------------------
followed by:
----------------------------------------------------
Exception on processing:
std::bad_cast
Aborting!
----------------------------------------------------
--------------------------------------------------------
An error occurred in line <103> of file <source/subscriptor.cc> in
function
virtual dealii::Subscriptor::~Subscriptor()
The violated condition was:
counter == 0
The name and call sequence of the exception was:
ExcInUse (counter, object_info->name(), infostring)
Additional Information:
Object of class N4Data12Exercise_2_3ILi2EE13RightHandSideE is still
used by 1 other objects.
from Subscriber unknown subscriber
and
Stacktrace:
-----------
#0 3 libbase.g.dylib 0x01e17846
_ZN6dealii11SubscriptorD2Ev + 602: 3 libbase.g.dylib
0x01e17846 _ZN6dealii11SubscriptorD2Ev
#1 4 libbase.g.dylib 0x01d89537
_ZN6dealii8FunctionILi2EED2Ev + 63: 4 libbase.g.dylib
0x01d89537 _ZN6dealii8FunctionILi2EED2Ev
#2 5 libbase.g.dylib 0x01d898f1
_ZN6dealii12ZeroFunctionILi2EED2Ev + 57: 5 libbase.g.dylib
0x01d898f1 _ZN6dealii12ZeroFunctionILi2EED2Ev
#3 6 libbase.g.dylib 0x01d89a0d
_ZN6dealii16ConstantFunctionILi2EED2Ev + 57: 6 libbase.g.dylib
0x01d89a0d _ZN6dealii16ConstantFunctionILi2EED2Ev
#4 7 step-14 0x0001f9e9
_ZN4Data12Exercise_2_3ILi2EE13RightHandSideD1Ev + 57: 7 step-14
0x0001f9e9
_ZN4Data12Exercise_2_3ILi2EE13RightHandSideD1Ev
#5 8 step-14 0x00020d99 __tcf_3 + 29: 8
step-14 0x00020d99 __tcf_3
#6 9 libSystem.B.dylib 0x9292ebff __cxa_finalize +
208: 9 libSystem.B.dylib 0x9292ebff __cxa_finalize
#7 10 libSystem.B.dylib 0x9292eb14 exit + 33: 10
libSystem.B.dylib 0x9292eb14 exit
#8 11 step-14 0x00001ba5 start + 61: 11
step-14 0x00001ba5 start
--------------------------------------------------------
Abort trap
All this week I tried setting different versions in my Mac through Fink
and MacPorts.
Unfortunately NONE of these worked, meaning that I couldn't configure
and then build deal.II
Does anyone has any idea why the above is happening or a way to build
deal.II completely and correctly
on Mac OS X using a gcc version either from Fink or MacPorts (or even a
native one)?
Regards,
G.
Finally!!
I figure out how to build it!!!
I didn't use the macports version but the XCode version.
I just changed the default gcc and g++ version from 4.2 to 4.0
that is also installed.
How to follows:
1)First I removed the symbolik links in /usr/bin/
sudo rm gcc g++
2)Then I created two other links pointing to 4.0
sudo ln -s gcc-4.0 gcc
sudo ln -s g++-4.0 g++
That did the trick!!
I run the configure script without a problem
Exported the variable in path and hopefully I have a working version!
Thank you all for your help!
Regards,
G.
you could try and use the macports version of gcc rather than the
mac
Xcode one. I can't get version 6.1.0 to configure properly but I can
get a lot further than you. The problem I have concerns f77
libraries
(c++ and c are all fine)
./configure CC=/opt/local/bin/gcc-mp-4.5
CXX=/opt/local/bin/g++-mp-4.5 F77=/opt/local/bin/gfortran-mp-4.5
----------------- configuring F77 compilers -----------------
checking for gfortran... /opt/local/bin/gfortran-mp-4.5
F77 compiler is unknown but accepted gcc version
configure: error: No compiler options for F77 compiler
Perhaps you can figure out how to proceed from here.
cheers
Andrew
On 24.09.2011, at 15:58, Georgios Dimitrakakis wrote:
On Sat, 24 Sep 2011 07:17:01 -0500, Wolfgang Bangerth wrote:
------------------ checking compiler flags ------------------
checking for CPU to optimize for... none given or not recognized
checking for consistency of CXXFLAGSG flags... configure: error:
invalid combination of flags!
You need to search through the output in config.log. There should
be
an error
message from the compiler that says what the invalid combination
is.
In general, why would you want to install a version of deal.II
that's that
old?
Best
W.
-------------------------------------------------------------------------
Wolfgang Bangerth email:
[email protected]
www:
http://www.math.tamu.edu/~bangerth/
I 've searched through the config.log and the following error
appears many times
cc1plus: error: unrecognized command line option "-Wno-long-double"
cc1plus: error: unrecognized command line option
"-Wno-ignored-qualifiers"
The last time that it appears it ends somehow like this:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "deal.II"
| #define PACKAGE_TARNAME "deal.II"
| #define PACKAGE_VERSION "6.1.0"
| #define PACKAGE_STRING "deal.II 6.1.0"
| #define PACKAGE_BUGREPORT "[email protected]"
etc. etc.
etc. etc.
| /* end confdefs.h. */
|
| int
| main ()
| {
| ;
| ;
| return 0;
| }
configure:13573: error: invalid combination of flags!
folowed by the cache variables.
I cat attach the config.log if neccessary.
The reason why I want to use this specific version is because
people already have a fully working code
for this version which fails on the newer ones and it will take
them quiet a lot of time to correct and
re-wright it.
Any ideas what should I do?
Regards,
G.
_______________________________________________
dealii mailing list
http://poisson.dealii.org/mailman/listinfo/dealii
_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii
_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii