Rebuilding libstdcxx using macports on Mountain Lion

I did the unthinkable and upgraded my OS (in my final year of my PhD!). And surprise-surprise, some of my code wouldn’t compile anymore. I figured I needed to rebuild my macports-installed *nix software but ran into problems with gcc45 and libstdcxx. The issue is a ld64 bug, that was fixed using user adrian’s solution (replicated here):

sudo port uninstall ld64
sudo port -v install ld64
sudo port clean libstdcxx
sudo port -d build libstdcxx build.jobs=1
sudo port install libstdcxx

 

3 thoughts on “Rebuilding libstdcxx using macports on Mountain Lion

  1. Thank you for this tip! I ran into the same problem and this fixed it. Could you explain what was going going on and how this fixed it, so that this fix isn’t “black magic” to me? 🙂

    Also, good luck with your last year on the PhD! I’m just starting my first year in my program.

  2. Thank you for this tip! I ran into the same problem and this fixed it. Could you explain what was going going on and how this fixed it, so that this fix isn’t “black magic” to me?

    Also, good luck with your last year on the PhD! I’m just starting my first year in my program.

Leave a Reply