#22203: gcc42 installation problem on snow leopard (while installing opendx) ---------------------------------------+------------------------------------ Reporter: comp.softmatter@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: gcc42 ---------------------------------------+------------------------------------ Comment(by lowell@…): I ran into a similar issue installing GNUstep a couple of hours ago; initially, I'd run into a similar problem, but I found a, um, "fix". It's rather inelegant and it isn't recommended, but I'm going to share anyways. First, '''`sudo port install gcc43`'''. When installing GNUstep, the first port built is `gnustep-make`. The Portfile specifies `port:gcc42` for `depends_lib` and `macports-gcc-4.2` for `configure.compiler`. I changed them to `port:gcc43` & `macports- gcc-4.3`, respectively. Next, the remaining GNUstep ports are still going to look for `g++` and friends in the 4.2 paths, so I symlinked them: {{{ sudo ln -s /opt/local/bin/g++-mp-4.3 /opt/local/bin/g++-mp-4.2 sudo ln -s /opt/local/bin/gcc-mp-4.3 /opt/local/bin/gcc-mp-4.2 sudo ln -s /opt/local/bin/gccbug-mp-4.3 /opt/local/bin/gccbug-mp-4.2 sudo ln -s /opt/local/bin/gcj-mp-4.3 /opt/local/bin/gcj-mp-4.2 sudo ln -s /opt/local/bin/gcov-mp-4.3 /opt/local/bin/gcov-mp-4.2 sudo ln -s /opt/local/bin/gfortran-mp-4.3 /opt/local/bin/gfortran-mp-4.2 sudo ln -s /opt/local/include/gcc43 /opt/local/include/gcc42 sudo ln -s /opt/local/lib/gcc43 /opt/local/lib/gcc42 sudo ln -s /opt/local/lib/gcc43/gcc/x86_64-apple-darwin10/4.3.4 /opt/local/lib/gcc43/gcc/x86_64-apple-darwin10/4.2.4 }}} Now, '''`sudo port install gnustep-core gnustep-base gnustep-back`''' works! This is where you can invoke '''`sudo port install`''' on whatever project needed `gcc42` and wasn't working. Obviously, if the project uses any of the changes between 4.2.x and 4.3.x, this isn't going to work - ''and problems may not be immediately evident''. Again, not recommended. I've been following GNUstep since 2007 and have failed trying to install it on many occasions - inside and outside of MacPorts, during that timeframe. This post is for those that are in a similar situation & state of frustration at the ever-changing list of reasons a project refuses to build; you don't care anymore and are willing to open a whole 'nother can of worms just to get past the same failed build phase every time. -- Ticket URL: <http://trac.macports.org/ticket/22203#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS