gcc version mismatches

Kyle Husmann kyle.husmann at gmail.com
Wed Nov 16 18:40:19 PST 2011


Hi all,

I'm wondering if it is possible to build the entire macports tree with
a custom gcc version. (I would like to use gcc44). Here's why I think
I need to do this:

I've installed octave-devel from the macports tree, which uses gcc44.
I have have some programs (outside of macports) that link against
liboctave. Some of these work, others of these fail with malloc errors
("pointer being freed was not allocated"). When running these programs
with DYLD_PRINT_LIBRARIES, I found that both
/opt/local/lib/gcc44/libstdc++.6.dylib AND /usr/lib/libstdc++.6.dylib
are being loaded. This doesn't seem like a good thing because the
version of libstdc++ shipped by apple isn't necessarily compatible
with gcc's, and I think it could very well be the source of these
problems.

So, the only solution I can think of is to recompile EVERYTHING with
gcc44. Is this possible?

Thanks,
Kyle


More information about the macports-users mailing list