Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-799

Mesos python egg is faulty on OS X Mavericks

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.17.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      Mac OS X Mavericks, GCC 4.7 & 4.8

      Description

      The Python framework test (and I suspect other Python frameworks) breaks on OS X Mavericks. From a quick study, this is what I found:

      1) The chosen compiler in $(CC) is not propagated in src/Makefile.am to setup.py during python binding compilation.

      2) When compiler is chosen, compiler flags in distutils are picked up from the ones used to compile Python (which most likely was clang). The effect of this is hard to pick up; Clang is able to bundle both 32bit and 64bit executable into one with multiple "-arch" flags. AFAIK GCC picks only one architecture (the last one) which in this case leaves a 32bit image only, which then is incompatible with the other binaries.

      Distutil can be configured by setting environment variables to overwrite for example linker and compiler flags. LDSHARED and CCSHARED are some, but additional need to be set to deal with the 32bit/64bit bundle issue.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                nnielsen Niklas Quarfot Nielsen
                Reporter:
                nnielsen Niklas Quarfot Nielsen
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: