gcc46 and Boost

Freddie Witherden freddie at witherden.org
Thu Nov 24 07:10:13 PST 2011

On 23/11/2011 21:24, Ryan Schmidt wrote:
>> b) get macports to recompile boost with gcc46.
> It is not supported to do so, but if you would like to try it, to see if it solves the problem, you would:
> sudo port -ns upgrade --force boost configure.compiler=macports-gcc-4.6

Thanks for the idea.  It appears as if the configure script (or bjam)
adds some Mac specific flags to the compiler command resulting in:

:info:build g++-mp-4.6: error: x86_64: No such file or directory
:info:build g++-mp-4.6: error: unrecognized option '-no-cpp-precomp'
:info:build g++-mp-4.6: error: unrecognized option '-arch'

The -no-cpp-precomp flag should probably be removed -- it has been
silently ignored since Apple GCC 3.3 [1] and so is not needed.  As for
-arch I am not sure.

Anyway, it was worth a try.

Regards, Freddie.

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=409224

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 267 bytes
Desc: OpenPGP digital signature
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20111124/2497a03b/attachment.bin>

More information about the macports-users mailing list