All I did was install gcc45 the usual way in macports, then put
/opt/local/bin at the front of my PATH variable. I configured deal.ii with
./configure --with-umfpack --with-blas --with-lapack CC=gcc-mp-4.5
CXX=g++-mp-4.5
Then exported the deal.ii lib directory to DYLD_LIBRARY_PATH and compiled.
I did notice some linking to the system libraries though (as opposed to the
macports ones), so I don't know if this is a result of building the macports
compilers with the system compilers, or some improper
behavior/configuration. I am not very knowledgeable about these issues.
Here is the output of otool -L libbase.dylib:
libbase.dylib:
libbase.6.4.pre.dylib (compatibility version 0.0.0, current version
0.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
125.2.0)
/System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
(compatibility version 1.0.0, current version 4.0.0)
libtbb.dylib (compatibility version 0.0.0, current version 0.0.0)
/opt/local/lib/gcc45/libstdc++.6.dylib (compatibility version 7.0.0,
current version 7.14.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version
438.0.0)
/opt/local/lib/gcc45/libgcc_s.1.dylib (compatibility version 1.0.0,
current version 1.0.0)
It is the second to last one that I don't understand, that is, why this
library was linked against the existing libgcc and not just the ones in
/opt/local/lib
Jon
On Tue, Jul 6, 2010 at 9:59 AM, Andrew McBride <[email protected]>wrote:
> just to follow up:
>
> Like Luca I have no problem installing the current svn version of deal.ii
> using gcc (GCC) 4.5.0 20100107 (experimental) from
> http://sourceforge.net/projects/hpc/files/
>
> I would also agree with Jonathan. There is nothing wrong with using the Mac
> standard gcc version 4.2.1 (Apple Inc. build 5659)
> This also works fine for me. You would only consider other options if you
> need fortran support.
>
> I've never been able to get the macports gcc to install. Perhaps, Jonathan,
> if you have any advice on how to do this you could put it on the wiki?
>
> Andrew
>
> On 06 Jul 2010, at 2:17 PM, Jonathan Pitt wrote:
>
> I am using the gcc45 package from macports, and subsequently compiled
> open-mpi 1.4.2 with fortran support. I have two instances of deal.ii
> installed, one with threads using the macports compilers, and one with no
> threads, petsc, and metis all compiled with the MPI drivers. This is on a
> Mac Pro running 10.6.4
>
> Everything seems to be running ok. Are you using the compilers from the
> sourceforge HPC site? I have seen this error before and I believe it was
> with these drivers. I don't think there is anything particularly wrong with
> using the 4.2.1 distributed with the Developer Tools, is there? I was able
> to compile the svn version just fine using those compilers.
>
>
> Output of g++-mp-4.5:
>
> [08:14:13][jsp...@wtmac7:~/prog/lib/deal_threaded] g++-mp-4.5 --version
> g++-mp-4.5 (GCC) 4.5.0
> Copyright (C) 2010 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
>
>
>
>
> On Tue, Jul 6, 2010 at 7:26 AM, Toby D. Young <[email protected]> wrote:
>
>>
>> Francesco,
>>
>> > >
>> /Users/francis/Documents/Research/Programming/FEMProgramming/nompilib/deal.
>> > >II/contrib/tbb/tbb22_20090809oss/./src/tbb/task.cpp:1119:91: error:
>> > > ?init_priority? attribute is not supported on this platform make[6]:
>> ***
>> >
>> > If one of our Mac people has suggestions, please speak up!
>>
>> There is a page on the wiki which deals with compiling dealii on a Mac.
>> http://sourceforge.net/apps/mediawiki/dealii/index.php?title=Mac_OS_X
>>
>> Does option (1) or (2) there help you getting started Francesco?
>>
>> Best,
>> Toby
>>
>> -----
>>
>> Toby D. Young
>> Assistant Professor
>> Philosophy-Physics
>> Polish Academy of Sciences
>> Warszawa, Polska
>>
>> www: http://www.ippt.gov.pl/~tyoung <http://www.ippt.gov.pl/%7Etyoung>
>> skype: stenografia
>>
>> _______________________________________________
>> 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