Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#105 GCC 4.5.2 crash during Scene.c compilation

v1.6.0.0
closed-works-for-me
Thomas Holder
5
2013-03-29
2011-07-26
Edoardo Morandi
No

I noticed that compiling pymol using GCC Ubuntu/Linaro 4.5.2-8ubuntu4 (I'm using Ubuntu) brings to a crash of the compiler. I know that it's a compiler problem, but I've been able to avoid it changing the code just a bit.
The problem is due to nested switches, and I saw that changing just one "switch" to a "if" statement fixes the problem. Maybe it's not necessary to change anything in the repository, but having a known workaround could be useful.
I attach the patch that fixes the problem.

Thanks for your support.
Edoardo Morandi

Discussion

  • layer1/Scene.c patch for GCC workaround

     
    Attachments
  • Thomas Holder
    Thomas Holder
    2013-03-29

    • status: open --> closed-works-for-me
    • assigned_to: Thomas Holder
    • milestone: --> v1.6.0.0
     
  • Thomas Holder
    Thomas Holder
    2013-03-29

    I have no such issues on Linux 64bit with gcc 4.5.4