Trouble compiling with gcc 4.8 on 10.5 PowerPC

Ryan Schmidt ryandesign at macports.org
Mon Mar 19 16:09:19 UTC 2018


On Mar 18, 2018, at 08:32, Andreas Falkenhahn wrote:

> There's just one little problem remaining: I cannot use gcc-ar-mp-6 because
> it reports the following error: "Cannot find plugin liblto_plugin.so".
> So I just use the "ar" that came with Xcode and it worked fine but maybe
> gcc-ar-mp-6 should be fixed.

Looks like this ticket:

https://trac.macports.org/ticket/38551

> Another question: How can I make my program compatible with 10.4? I currently
> compile on my G5 system which has 10.5 installed. When I try to run the
> program on a G4 10.4 system I get a symbol import error from /usr/lib/libstdc++.6.dylib.
> Do I have to install macports-gcc-6 on the 10.4 system in order to be able
> to run my program on 10.4 or is there anything else that needs to be taken care
> of?

Setting MACOSX_DEPLOYMENT_TARGET=10.4 is all that you're supposed to have to do for that. But you do have to have that set at the time that you compile not just your program but also all of the libraries that you're using and distributing.

The default value of MACOSX_DEPLOYMENT_TARGET on Mac OS X 10.5 and later is the major OS version number, so e.g. on 10.5 the default MACOSX_DEPLOYMENT_TARGET is 10.5. On Mac OS X 10.1 through 10.4, the default value is 10.1.



More information about the macports-users mailing list