#35141: py*-scipy + gcc45: ___ieee_divdc3 symbol not found --------------------------------+-------------------------------- Reporter: andre.dos.anjos@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Resolution: | Keywords: Port: py26-scipy | --------------------------------+-------------------------------- Comment (by wimmer@…): Let me note that I get the same problem for python 2.7 on OSX 10.8 when I install from source using "port install -s py27-scipy", instead of installing the prebuilt version. I looked into the problem, and figured out that the problem is due to the fact that scipy compiles all code with the macports gcc/gfortran, but when building the shared library object spline.so links with clang - hence the symbol {{{___ieee_divdc3}}} which is specific to gcc is not found. In fact, clang is used for all modules based on C-code (not Fortran code). You can see this in the attached build.log. I have no idea what why that does not happen in the prebuilt package. Presumably there is something different in the build environment. It's always tricky how python chooses the compiler it uses to compile stuff (usually, it would like to use the same compiler as it is compiled with itself, which is clang). With scipy/numpy it's even more tricky, and I didn't figure out yet how to change the compiler for the linkage ... (setting LDSHARED breaks stuff in the Fortran compilation) -- Ticket URL: <https://trac.macports.org/ticket/35141#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X