MacOs - Segfault after "import ptools"

Asked by Alex Tek on 2012-06-21

Hello,

I just compiled ptools on MacOS 10.6 (Snow Leopard) but when testing or just importing ptools in a python shell I get a segmentation fault without more explanation.

Any idea to find the origin of the problem ?

Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
PTools Edit question
Assignee:
No assignee Edit question
Solved by:
Alex Tek
Solved:
2012-06-25
Last query:
2012-06-25
Last reply:
2012-06-22
sfiorucci (sfiorucci) said : #1

Hi Alex,

I Hope I can help you... I'm not an expert of the mac world.
Can you describe a bit more your config?
version of compiler/lib/codes (gcc, python, boost, scons, gccxml, ...). Did you compile prerequesites from sources or did you install binaries?

Best,
Sebastien.

Alex Tek (alex-tek) said : #2

Hi Sebastien,

Thank you for your response. I compiled from sources.

Actually I found a solution (Adrien gave me a hint as well). My python installation is a big mess and the compilation and execution were not using the same library. Forcing the good version in the SConstruct script resolved the problem.

For information, I had to add the -m64 flag for the fortran compiler as MacOS 10.6 is 64 bits by default.

Best,
Alex

Alex Tek (alex-tek) said : #3

I just realized I may have cause a misunderstanding : the -m64 flag was not related to the problem. It is a common trouble on Macos.

Cheers,
Alex