Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-748

ruby gem bson_ext does not install with XCode 5.1

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • 12_01_17
    • Affects Version/s: None
    • Component/s: BSON
    • Labels:
      None
    • Environment:
      Apple LLVM version 5.1 (clang-503.0.38) (based on LLVM 3.4svn)
      Target: x86_64-apple-darwin13.1.0

      Get an error with unknown argument 'multiply_definedsuppress'. Xcode has been recently changed to fail when given unknown arguments. For more information please refer to the following

      http://bruteforce.gr/bypassing-clang-error-unknown-argument.html

      Complied successfully are using the following workaround

      `ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install bson_ext`

      compiling bson_buffer.c
      compiling cbson.c
      compiling encoding_helpers.c
      linking shared-object bson_ext/cbson.bundle
      clang: error: unknown argument: '-multiply_definedsuppress' [-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
      make: *** [cbson.bundle] Error 1

      make failed, exit code 2

            Assignee:
            emily.stolfo Emily Stolfo
            Reporter:
            trengrj John Trengrove
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: