1

I'm trying to install C++11 on 10.6.8, following this macports guide

Unfortunatley the guide fails when I get to step 7: Rebuild cctools and ld64 to use the newer version of llvm:

sudo port -v -n upgrade --force --enforce-variants cctools -llvm34 +llvm40

fails with the error messsage:

In file included from /usr/include/limits.h:64:

/usr/include/machine/limits.h:10:2: error: architecture not supported

#error architecture not supported

/usr/include/machine/limits.h is:

/* This is the `system' limits.h, independent of any particular
   compiler.  GCC provides its own limits.h which can be found in
   /usr/lib/gcc, although it is not very informative.
   This file is public domain.  */
#if defined (__i386__) || defined(__x86_64__)
#include <i386/limits.h>
#elif defined (__arm__)
#include <arm/limits.h>
#else
#error architecture not supported
#endif

 

/opt/local/etc/macports/macports.conf contains:

# CPU architecture to target. Supported values are "ppc", "ppc64",
# "i386", and "x86_64". Defaults to:
# - OS X 10.5 and earlier: "ppc" on PowerPC, otherwise "i386".
# - OS X 10.6 and later: "x86_64" on Intel 64, otherwise "i386".
#build_arch             i386

and

# Space-delimited list of CPU architectures to target when building
# universal. Defaults to "i386 ppc" on Mac OS X 10.5 and earlier,
# "x86_64 i386" on Mac OS X 10.6 through macOS 10.13, and "x86_64" on
# macOS 10.14 and later (the 10.14 SDK is not universal).
#universal_archs        x86_64 i386

Does anyone have a working method to install C++11 on 10.6.8?

  • What processor do you have intel or PPC? What does uname -a show? – Mark Jun 16 at 13:59
  • And what is around line 10 of /usr/include/machine/limits.h – Mark Jun 16 at 14:04
  • @Mark, Snow Leopard only supports machines with Intel CPUs. – user3439894 Jun 16 at 14:26
  • Ok but still need the other info – Mark Jun 16 at 14:51
  • @Mark updated with limits.h, thanks! – Scottmeup Jun 16 at 15:10

You must log in to answer this question.

Browse other questions tagged .