Re: [MacPorts] #13314: gcc41 fails to build on Mac OS X 10.5 Leopard
#13314: gcc41 fails to build on Mac OS X 10.5 Leopard -------------------------------+-------------------------------------------- Reporter: carnevale@tin.it | Owner: mww@macports.org Type: defect | Status: assigned Priority: Low | Milestone: Port Bugs Component: ports | Version: 1.5.2 Resolution: | Keywords: gcc, Leopard -------------------------------+-------------------------------------------- Comment (by roland@lrde.epita.fr): I managed to compile the whole set of GCC back-ends on Mac OS X 10.5 (Leopard) on Intel (currently, the `Portfile` is configured to compile the C back-end only). Here is a patch against `Portfile` as well as two patches to have GCC 4.1.2 compile again. I had to fix three problems: 1. First, `configure` looks for a version of Texinfo equal or greater than 4.2, but the test is broken (the test doesn't handle Texinfo 4.11, which is the one currently shipped with MacPorts). Attached patch `patch- configure-texinfo` fixes this test. 2. Then, `c++filt`'s interface seems to have changed over time: option `--strip-underscores` is now named `--strip-underscore` (with no 's'), at least in the version provided by Apple in Leopard. Attached file `patch- make-exports.pl-leopard` handles this. 3. Last, the interface of libiconv (1.12) from MacPorts is not the one expected by the GCC being compiled, and some symbols are unresolved. A solution is to force the build system to use the system's library, located in /usr/lib/, rather than the MacPorts' one. Line `configure.args-append --with-libiconv-prefix=/usr` from `Portfile.diff` addresses this. Hope it'll help! -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13314#comment:3> MacPorts </projects/macports> Ports system for Mac OS
participants (1)
-
MacPorts