-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem building the atomic gem #43
Comments
I get this too; it's the fault of the latest clang that comes with Xcode 5.1. But I have no idea what to do about it. |
I have an xcode 5.1 update in process...will try to reproduce on my end once that happens. |
Thank you! |
+1 for this, unable to build on latest Mavericks with latest Xcode. |
This is a red flag:
When you run
Now bunder uses the correct gem binary, which doesn't pass unknown arguments to clang. |
@richardcalahan I didn't run Also, I got this error wtih system ruby and with 2.1. |
Here's a comparison of the output from Clang Error
No Clang Error
|
Also, using the system ruby, the error was originating from: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin13/rbconfig.rb Removing the references to the clang flag No, it might not be very old, but ruby 2.0.x does use deprecated flags. |
The solution offered by @richardcalahan is the only one that actually worked for me. |
+1 for the solution by @richardcalahan. Odd though when I use bundler, it uses system Ruby to compile vs the one I compiled in ~/.rubies. I'm using chruby. |
I'm getting this error message when trying to get the atomic gem -- looks like it might be a problem with GCC (which was part of the last pull request). Any ideas how to fix this?
checking for libkern/OSAtomic.h... yes
creating Makefile
make "DESTDIR="
compiling atomic_reference.c
atomic_reference.c:57:59: warning: incompatible pointer types passing 'void *' to parameter of type 'volatile int64_t *' (aka 'volatile long long *') [-Wincompatible-pointer-types]
if (OSAtomicCompareAndSwap64(expect_value, new_value, &DATA_PTR(self))) {
^~~~~~~~~~~~~~~
/usr/include/libkern/OSAtomic.h:507:93: note: passing argument to parameter '__theValue' here
bool OSAtomicCompareAndSwap64( int64_t __oldValue, int64_t __newValue, volatile int64_t *__theValue );
^
1 warning generated.
linking shared-object atomic_reference.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: ** [atomic_reference.bundle] Error 1
The text was updated successfully, but these errors were encountered: