Hi everyone,

I changed my computer just a few days ago and I am re-installing dealii on
the new one. The computer is running Ubuntu 11.10 64bit. I want to use p4est
and I follow the installation guide for p4est in the README, that is using
the p4est-setup.sh. After downloaded the 0.3.3.8 package of p4est I ran the
p4est-setup.sh and get the following error message:

==========error message=============
Build FAST version in /home/huyaoyu/Libraries/p4est-build/FAST
/usr/bin/ld:
/home/huyaoyu/Libraries/mpich2-install/lib/libmpich.a(allreduce.o):
relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making
a shared object; recompile with -fPIC
/home/huyaoyu/Libraries/mpich2-install/lib/libmpich.a: could not read
symbols: Bad value
collect2: ld returned 1 exit status
make: *** [src/libsc.la] Error 1
make: *** Waiting for unfinished jobs....
Error: Error in make sc
==========end of message===========

I tried to change the p4est-setup.sh at the following line into:

export CFLAGS_FAST="-O2 -fPIC"

Ran p4est-setup.sh again and got the same error.

I changed the Makefile in p4est-build/FAST/ manually at the line into:

LDFLAGS = -fPIC

Same error again.

I check the make.output file in the p4est-build/FAST/ directory to see if
the additional compile and link flags are there. And they a actually in the
lines they should be.
I think it may have something to do with my MPICH2 setup cause I compiled
MPICH2 myself and made symbolic link in /usr/bin for mpicc, mpif90, etc,
substituting the original ones.

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

Reply via email to