Details

    • Type: Task
    • Status: Resolved
    • Priority: Critical
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.2.0
    • Fix Version/s: None
    • Component/s: library
    • Security Level: Public
    • Labels:
      None
    • Environment:
      MacOS 10.9.2 - Xcode 5.1

      Description

      Following the python Getting Started guide, the 'pip install couchbase' fails with the following error:

      pip install couchbase
      Downloading/unpacking couchbase
      Downloading couchbase-1.2.0.tar.gz (254kB): 254kB downloaded
      Running setup.py (path:/private/tmp/pip_build_root/couchbase/setup.py) egg_info for package couchbase

      Installing collected packages: couchbase
      Running setup.py install for couchbase
      building 'couchbase._libcouchbase' extension
      cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/exceptions.c -o build/temp.macosx-10.9-intel-2.7/src/exceptions.o
      clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]
      clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
      error: command 'cc' failed with exit status 1
      Complete output from command /usr/bin/python -c "import setuptools, tokenize;_file='/private/tmp/pip_build_root/couchbase/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), __file_, 'exec'))" install --record /tmp/pip-GHEKAF-record/install-record.txt --single-version-externally-managed --compile:
      running install

      running build

      running build_py

      creating build

      creating build/lib.macosx-10.9-intel-2.7

      creating build/lib.macosx-10.9-intel-2.7/couchbase

      copying couchbase/_init_.py -> build/lib.macosx-10.9-intel-2.7/couchbase

      copying couchbase/_bootstrap.py -> build/lib.macosx-10.9-intel-2.7/couchbase

      copying couchbase/_pyport.py -> build/lib.macosx-10.9-intel-2.7/couchbase

      copying couchbase/_version.py -> build/lib.macosx-10.9-intel-2.7/couchbase

      copying couchbase/admin.py -> build/lib.macosx-10.9-intel-2.7/couchbase

      copying couchbase/connection.py -> build/lib.macosx-10.9-intel-2.7/couchbase

      copying couchbase/exceptions.py -> build/lib.macosx-10.9-intel-2.7/couchbase

      copying couchbase/experimental.py -> build/lib.macosx-10.9-intel-2.7/couchbase

      copying couchbase/items.py -> build/lib.macosx-10.9-intel-2.7/couchbase

      copying couchbase/mockserver.py -> build/lib.macosx-10.9-intel-2.7/couchbase

      copying couchbase/result.py -> build/lib.macosx-10.9-intel-2.7/couchbase

      copying couchbase/transcoder.py -> build/lib.macosx-10.9-intel-2.7/couchbase

      copying couchbase/user_constants.py -> build/lib.macosx-10.9-intel-2.7/couchbase

      creating build/lib.macosx-10.9-intel-2.7/couchbase/views

      copying couchbase/views/_init_.py -> build/lib.macosx-10.9-intel-2.7/couchbase/views

      copying couchbase/views/iterator.py -> build/lib.macosx-10.9-intel-2.7/couchbase/views

      copying couchbase/views/params.py -> build/lib.macosx-10.9-intel-2.7/couchbase/views

      creating build/lib.macosx-10.9-intel-2.7/couchbase/iops

      copying couchbase/iops/_init_.py -> build/lib.macosx-10.9-intel-2.7/couchbase/iops

      copying couchbase/iops/base.py -> build/lib.macosx-10.9-intel-2.7/couchbase/iops

      copying couchbase/iops/select.py -> build/lib.macosx-10.9-intel-2.7/couchbase/iops

      creating build/lib.macosx-10.9-intel-2.7/couchbase/async

      copying couchbase/async/_init_.py -> build/lib.macosx-10.9-intel-2.7/couchbase/async

      copying couchbase/async/connection.py -> build/lib.macosx-10.9-intel-2.7/couchbase/async

      copying couchbase/async/events.py -> build/lib.macosx-10.9-intel-2.7/couchbase/async

      copying couchbase/async/view.py -> build/lib.macosx-10.9-intel-2.7/couchbase/async

      creating build/lib.macosx-10.9-intel-2.7/couchbase/tests

      copying couchbase/tests/_init_.py -> build/lib.macosx-10.9-intel-2.7/couchbase/tests

      copying couchbase/tests/base.py -> build/lib.macosx-10.9-intel-2.7/couchbase/tests

      copying couchbase/tests/importer.py -> build/lib.macosx-10.9-intel-2.7/couchbase/tests

      copying couchbase/tests/test_sync.py -> build/lib.macosx-10.9-intel-2.7/couchbase/tests

      creating build/lib.macosx-10.9-intel-2.7/couchbase/tests/cases

      copying couchbase/tests/cases/_init_.py -> build/lib.macosx-10.9-intel-2.7/couchbase/tests/cases

      copying couchbase/tests/cases/admin_t.py -> build/lib.macosx-10.9-intel-2.7/couchbase/tests/cases

      copying couchbase/tests/cases/append_t.py -> build/lib.macosx-10.9-intel-2.7/couchbase/tests/cases

      copying couchbase/tests/cases/arithmetic_t.py -> build/lib.macosx-10.9-intel-2.7/couchbase/tests/cases

      copying couchbase/tests/cases/badargs_t.py -> build/lib.macosx-10.9-intel-2.7/couchbase/tests/cases

      copying couchbase/tests/cases/connection_t.py -> build/lib.macosx-10.9-intel-2.7/couchbase/tests/cases

      copying couchbase/tests/cases/couchbase_t.py -> build/lib.macosx-10.9-intel-2.7/couchbase/tests/cases

      copying couchbase/tests/cases/delete_t.py -> build/lib.macosx-10.9-intel-2.7/couchbase/tests/cases

      copying couchbase/tests/cases/design_t.py -> build/lib.macosx-10.9-intel-2.7/couchbase/tests/cases

      copying couchbase/tests/cases/dupkeys_t.py -> build/lib.macosx-10.9-intel-2.7/couchbase/tests/cases

      copying couchbase/tests/cases/empty_key_t.py -> build/lib.macosx-10.9-intel-2.7/couchbase/tests/cases

      copying couchbase/tests/cases/encodings_t.py -> build/lib.macosx-10.9-intel-2.7/couchbase/tests/cases

      copying couchbase/tests/cases/endure_t.py -> build/lib.macosx-10.9-intel-2.7/couchbase/tests/cases

      copying couchbase/tests/cases/excextra_t.py -> build/lib.macosx-10.9-intel-2.7/couchbase/tests/cases

      copying couchbase/tests/cases/format_t.py -> build/lib.macosx-10.9-intel-2.7/couchbase/tests/cases

      copying couchbase/tests/cases/get_t.py -> build/lib.macosx-10.9-intel-2.7/couchbase/tests/cases

      copying couchbase/tests/cases/iops_t.py -> build/lib.macosx-10.9-intel-2.7/couchbase/tests/cases

      copying couchbase/tests/cases/itemsyntax_t.py -> build/lib.macosx-10.9-intel-2.7/couchbase/tests/cases

      copying couchbase/tests/cases/itertypes_t.py -> build/lib.macosx-10.9-intel-2.7/couchbase/tests/cases

      copying couchbase/tests/cases/itmops_t.py -> build/lib.macosx-10.9-intel-2.7/couchbase/tests/cases

      copying couchbase/tests/cases/lock_t.py -> build/lib.macosx-10.9-intel-2.7/couchbase/tests/cases

      copying couchbase/tests/cases/lockmode_t.py -> build/lib.macosx-10.9-intel-2.7/couchbase/tests/cases

      copying couchbase/tests/cases/misc_t.py -> build/lib.macosx-10.9-intel-2.7/couchbase/tests/cases

      copying couchbase/tests/cases/observe_t.py -> build/lib.macosx-10.9-intel-2.7/couchbase/tests/cases

      copying couchbase/tests/cases/pipeline_t.py -> build/lib.macosx-10.9-intel-2.7/couchbase/tests/cases

      copying couchbase/tests/cases/querystrings_t.py -> build/lib.macosx-10.9-intel-2.7/couchbase/tests/cases

      copying couchbase/tests/cases/results_t.py -> build/lib.macosx-10.9-intel-2.7/couchbase/tests/cases

      copying couchbase/tests/cases/rget_t.py -> build/lib.macosx-10.9-intel-2.7/couchbase/tests/cases

      copying couchbase/tests/cases/set_converters_t.py -> build/lib.macosx-10.9-intel-2.7/couchbase/tests/cases

      copying couchbase/tests/cases/set_t.py -> build/lib.macosx-10.9-intel-2.7/couchbase/tests/cases

      copying couchbase/tests/cases/stats_t.py -> build/lib.macosx-10.9-intel-2.7/couchbase/tests/cases

      copying couchbase/tests/cases/touch_t.py -> build/lib.macosx-10.9-intel-2.7/couchbase/tests/cases

      copying couchbase/tests/cases/transcoder_t.py -> build/lib.macosx-10.9-intel-2.7/couchbase/tests/cases

      copying couchbase/tests/cases/view_iterator_t.py -> build/lib.macosx-10.9-intel-2.7/couchbase/tests/cases

      copying couchbase/tests/cases/view_t.py -> build/lib.macosx-10.9-intel-2.7/couchbase/tests/cases

      creating build/lib.macosx-10.9-intel-2.7/gcouchbase

      copying gcouchbase/_init_.py -> build/lib.macosx-10.9-intel-2.7/gcouchbase

      copying gcouchbase/connection.py -> build/lib.macosx-10.9-intel-2.7/gcouchbase

      copying gcouchbase/iops_gevent0x.py -> build/lib.macosx-10.9-intel-2.7/gcouchbase

      copying gcouchbase/iops_gevent10.py -> build/lib.macosx-10.9-intel-2.7/gcouchbase

      creating build/lib.macosx-10.9-intel-2.7/txcouchbase

      copying txcouchbase/_init_.py -> build/lib.macosx-10.9-intel-2.7/txcouchbase

      copying txcouchbase/connection.py -> build/lib.macosx-10.9-intel-2.7/txcouchbase

      copying txcouchbase/iops.py -> build/lib.macosx-10.9-intel-2.7/txcouchbase

      running build_ext

      building 'couchbase._libcouchbase' extension

      creating build/temp.macosx-10.9-intel-2.7

      creating build/temp.macosx-10.9-intel-2.7/src

      creating build/temp.macosx-10.9-intel-2.7/src/viewrow

      creating build/temp.macosx-10.9-intel-2.7/src/contrib

      creating build/temp.macosx-10.9-intel-2.7/src/contrib/jsonsl

      cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/exceptions.c -o build/temp.macosx-10.9-intel-2.7/src/exceptions.o

      clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]

      clang: note: this will be a hard error (cannot be downgraded to a warning) in the future

      error: command 'cc' failed with exit status 1

      ----------------------------------------
      Cleaning up...
      Command /usr/bin/python -c "import setuptools, tokenize;_file='/private/tmp/pip_build_root/couchbase/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), __file_, 'exec'))" install --record /tmp/pip-GHEKAF-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/tmp/pip_build_root/couchbase
      Storing debug log for failure in /Users/dhaikney/Library/Logs/pip.log

      The following page suggests that Xcode has hardened its treatment of such warnings to turn them into errors: http://kaspermunck.github.io/2014/03/fixing-clang-error/

      Temporary workaround is to set the following flag prior to running pip:
      export ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future

      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        Hide
        mnunberg Mark Nunberg added a comment -

        We don't explicitly manipulate compilation flags anywhere within the python setup scripts. If the -mno-fused-add is popping up, it's an issue with the Python supplied by OS X - which is known to be broken. Python developers are known to avoid the vendor-supplied Python on systems such as Redhat and Mac.

        Please use the Python from homebrew and try again, or apply the workaround. This is not something which can be fixed within the SDK.

        Show
        mnunberg Mark Nunberg added a comment - We don't explicitly manipulate compilation flags anywhere within the python setup scripts. If the -mno-fused-add is popping up, it's an issue with the Python supplied by OS X - which is known to be broken. Python developers are known to avoid the vendor-supplied Python on systems such as Redhat and Mac. Please use the Python from homebrew and try again, or apply the workaround. This is not something which can be fixed within the SDK.

          People

          • Assignee:
            mnunberg Mark Nunberg
            Reporter:
            dhaikney David Haikney
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes