#40173: R build failure on OS X 10.8.4 building qdCocoa ---------------------+--------------------------- Reporter: one@… | Owner: kjell.konis@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: haspatch Port: R | ---------------------+--------------------------- Comment (by kjell.konis@…): Replying to [comment:11 jeremyhu@…]:
You're setting the compiler to /usr/bin/gcc which may not exist. You should instead use the default compiler for objc and change the ones you want (per my post, which I referenced above).
You are using the c++ compiler from macports-gcc-XX which results in incompatibilities when trying to mix generated code with code built with the host's toolchains.
Hi Jeremy, For your first point, I would rather be using `xcrun -find gcc` but I don't know how to get that to work in the Portfile so I hard coded it instead. This is something I am meaning to fix. For your second point, R should not be using the host's toolchains. R keeps track of the tools used to build it and uses those to build its packages. Since R is fundamentally a computer algebra system, I think it is best if all parts of it get compiled by the same compiler family (I do make one exception for an Objective C file related only to Quartz graphics). Mixing gfortran with the Xcode C compiler du jour just seems like it's inviting something bad to happen. Kjell -- Ticket URL: <https://trac.macports.org/ticket/40173#comment:14> MacPorts <http://www.macports.org/> Ports system for OS X