I can confirm that this bug exists; using f2py with a Fortran code linked with libgomp exposes the bug.
I fixed by adding the attached dpatch file to the source .dep (apt-get source gcc-4.2) patch directory, including the file in rules.patch, and building a new set of packages from source. I am not sure if this works universally, but the dpatch is based on the gcc patch posted above by James, so it should work in general. This patch is supposed to be applied for gcc 4.3.0, but this at least fixes the bug for gcc 4.2.3. Josh Finkbeiner ** Attachment added: "gcc-shared-openmp.dpatch" http://launchpadlibrarian.net/15984607/gcc-shared-openmp.dpatch -- Please apply libgomp patch to GCC for Hardy Heron https://bugs.launchpad.net/bugs/235070 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs