Nasser,

> The issue in that case is that I cannot compile Metis without an
> additional step compared to your instructions, I remove the declarations
> in proto.h but also have to remove the implementation of log2() from
> util.c. Without doing both of these things Metis will not *compile* on my
> system (the newest release of Ubuntu 9.10, which literally was just
> released). Only after doing these two modification to the Metis source
> will it compile, but then I get the linking error for __log2 when I try
> to link example 17.

I am sure you have the steps in the wrong order; as Wolfgang pointed out.
Let's take one step back, to take two steps forward. Maybe try this:

(1) Download metis 4.0.

(2) Compile metis. *as it is*. Change nothing.

(3) Download and compile PETSc. Make sure you specify the compilers
correctly and --with-language=C++. Choose PETSc-3.0.0-p8 to be safe.

(4) Now, you can safely comment out the lines:
void drand48()
double srand48(long)
int log2(int)
in the Metis file Lib/proto.h

(5) Configure and compile your dealii. Make sure all of your compilers
match to (1) and (3).

Take a look here:
http://www-dimat.unipv.it/heltai/wikideal/index.php/Deal.II_Questions_and_Answers#Is_there_a_sure-fire_way_to_compile_dealii_with_PETSc.3F

(I will update that page when I have time, which should be soon).

This really should work for you. If not, let me know, I have also an
Ubuntu 8 machine I can try to verify this on.

Best,
        Toby

-----

Toby D. Young
Assistant Professor
Philosophy-Physics
Polish Academy of Sciences
Warszawa, Polska

www:   http://www.ippt.gov.pl/~tyoung
skype: stenografia

On Thu, 29 Oct 2009, Nasser Mohieddin Abukhdeir wrote:

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

Reply via email to