MacOs - Segfault after "import ptools"

Asked by Alex Tek

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:
Last query:
Last reply:
Revision history for this message
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.

Revision history for this message
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

Revision history for this message
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