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

 

About these ads
3 comments
  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. Manuel Zubieta said:

    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.

  3. alisanta said:

    thanks for the information.
    Building libstdcxx is really painful :(

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: