cucumber-attic / gherkin2

A fast Gherkin parser in Ragel (The parser behind Cucumber)
MIT License
382 stars 221 forks source link

Build error on OS X 10.9.2 (unknown argument: '-multiply_definedsuppress') #302

Open maciejtrybilo opened 10 years ago

maciejtrybilo commented 10 years ago

When installing the gem the build fails with:

linking shared-object gherkin_lexer_ar.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: *** [gherkin_lexer_ar.bundle] Error 1
WooD1k commented 10 years ago

Experiencing same issue

maciejtrybilo commented 10 years ago

Ok, this in fact can be solved by rebuilding ruby on your machine. Gems pick up the build settings from the ruby build and some unused flags can trickle through. See https://github.com/davidfstr/rdiscount/issues/115

johnnonolan commented 10 years ago

Yep I've just encountered this.

JashaadGaines commented 10 years ago

I experienced the same issue when upgrading to Xcode 5.1 ( iOS 7.1 ). We ended up downgrading back to iOS 7.0 to get the functional tests running again. Hope this is fixed soon so that we can start using iOS 7.1.

ghost commented 10 years ago

I had the same issue...

You can resolve it by downgrading the level from error to warning using this command :

$ sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install gherkin

(see there for details : http://bruteforce.gr/bypassing-clang-error-unknown-argument.html)