palabos on kubuntu 11.10 64 bit

Dear all,

I have some problems with installing Palabos on both Ubuntu and Kubuntu 11.10. I have the new version of Palabos 1.0r1. I get this erroe message:

hedvig@ubuntu:~/program/palabos-v1.0r1/pythonic/examples$ ./cavity2d.py
Traceback (most recent call last):
File “./cavity2d.py”, line 13, in
from pypal import *
File “…/src/pypal/init.py”, line 1, in
import blocks
File “…/src/pypal/blocks.py”, line 40, in
import plb
File “…/src/pypal/plb/init.py”, line 2, in
import core
File “…/src/pypal/plb/core.py”, line 25, in
_core = swig_import_helper()
File “…/src/pypal/plb/core.py”, line 21, in swig_import_helper
_mod = imp.load_module(’_core’, fp, pathname, description)
ImportError: dynamic module does not define init function (init_core)

This what I have done:

sudo apt-get install g++

sudo apt-get install swig mpi-default-bin mpi-default-dev python-numpy python-scipy python-matplotlib python-setuptools python2.7-dev libcr-dev mpich2 mayavi2
sudo easy_install mpi4py
cd ~/program
tar xfz ~/tmp/palabos-v0.7r3.tgz
cd palabos-v0.7r3/pythonic/src
export PALABOS_ROOT=/home/hedvig/program/palabos-v1.0r1

make
cd …/examples
./cavity2d.py

Please help me.

All the best, Hedvig

Hi,

Some lines in the procedure you outlined refer to Palabos v0.7 and, some to Palabos v1.0. Is that maybe the reason for the problem you’re having?

Cheers,
Jonas

Hi Jonas,

Thank you for your reply. I made a typo here in the forum. tar xfz ~/tmp/palabos-v1.0r1.tgz was what I wrote in the terminal.

Any other thoughts?

/Hedvig

Dear Hedvig,

we just tried the pythonic part of Palabos on the latest Ubuntu (11.10) and we had the same issue.

This is due to the fact that a gcc flag has changed it’s default value. For the sake of completness the full explanation is there: http://www.gentoo.org/proj/en/qa/asneeded.xml

This will be corrected in our next release.

To correct it please modifiy the file

$PALABOS_ROOT/pythonic/src/postprocess

and replace

gcc

by

gcc -Wl,--no-as-needed

Best

Thank you! This helped me.

All the best,
Hedvig

Dear all,

On my ubuntu 11.10 the problem was the same and after having replaced (all the) gcc by gcc -Wl,–no-as-needed in the file “postprocess” and re-compiled pythonic with “make” in the pythonic/src/ directory, now I have a segmentation fault on cavity2d.py :

simon@simon:~/sciences/palabos-v1.0r1/pythonic/examples$ ./cavity2d.py
[simon:12275] *** Process received signal ***
[simon:12275] Signal: Segmentation fault (11)
[simon:12275] Signal code: Address not mapped (1)
[simon:12275] Failing at address: 0x44000074
[simon:12275] [ 0] [0xbe940c]
[simon:12275] [ 1] /usr/lib/libmpi.so.0(MPI_Comm_rank+0x66) [0xc61e66]
[simon:12275] [ 2] /home/simon/sciences/palabos-v1.0r1//lib/libplb_mpi.so(_ZN3plb6global10MpiManager4initEi+0x3c) [0x105a96c]
[simon:12275] [ 3] /home/simon/sciences/palabos-v1.0r1//lib/libplb_mpi.so(_ZN3plb6global10MpiManager4initEv+0x23) [0x105a9c3]
[simon:12275] [ 4] /home/simon/sciences/palabos-v1.0r1//lib/libplb_mpi.so(_ZN3plb7plbInitEv+0x33) [0x106fa63]
[simon:12275] [ 5] /home/simon/sciences/palabos-v1.0r1//pythonic/src//lib/libswig_core.so(+0x10080) [0x497080]
[simon:12275] [ 6] /usr/bin/python(PyEval_EvalFrameEx+0x2d3) [0x80f77c3]
[simon:12275] [ 7] /usr/bin/python(PyEval_EvalCodeEx+0x154) [0x80fd804]
[simon:12275] [ 8] /usr/bin/python(PyEval_EvalCode+0x57) [0x80fe177]
[simon:12275] [ 9] /usr/bin/python(PyImport_ExecCodeModuleEx+0xc2) [0x8111e32]
[simon:12275] [10] /usr/bin/python() [0x811204f]
[simon:12275] [11] /usr/bin/python() [0x8113c0f]
[simon:12275] [12] /usr/bin/python() [0x8112cb9]
[simon:12275] [13] /usr/bin/python() [0x8112ff2]
[simon:12275] [14] /usr/bin/python() [0x81136a9]
[simon:12275] [15] /usr/bin/python(PyImport_ImportModuleLevel+0x21) [0x8113d21]
[simon:12275] [16] /usr/bin/python() [0x80f5b0f]
[simon:12275] [17] /usr/bin/python(PyObject_Call+0x51) [0x805dc31]
[simon:12275] [18] /usr/bin/python(PyEval_CallObjectWithKeywords+0x3e) [0x80f704e]
[simon:12275] [19] /usr/bin/python(PyEval_EvalFrameEx+0x2326) [0x80f9816]
[simon:12275] [20] /usr/bin/python(PyEval_EvalCodeEx+0x154) [0x80fd804]
[simon:12275] [21] /usr/bin/python(PyEval_EvalCode+0x57) [0x80fe177]
[simon:12275] [22] /usr/bin/python(PyImport_ExecCodeModuleEx+0xc2) [0x8111e32]
[simon:12275] [23] /usr/bin/python() [0x811204f]
[simon:12275] [24] /usr/bin/python() [0x8112cb9]
[simon:12275] [25] /usr/bin/python() [0x8112ff2]
[simon:12275] [26] /usr/bin/python() [0x81136a9]
[simon:12275] [27] /usr/bin/python(PyImport_ImportModuleLevel+0x21) [0x8113d21]
[simon:12275] [28] /usr/bin/python() [0x80f5b0f]
[simon:12275] [29] /usr/bin/python(PyObject_Call+0x51) [0x805dc31]
[simon:12275] *** End of error message ***
Erreur de segmentation

Best,
Simon