-
-
Notifications
You must be signed in to change notification settings - Fork 331
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
Warning at breakpoint.c:281 in 2.2.0 causes compilation to fail #26
Comments
my RbConfig::MAKEFILE_CONFIG['CC'] == "/usr/local/bin/gcc-4.2" which points to apple-gcc42 installed with homebrew |
Hi, thanks for reporting this. This was probably introduced in e602dda, since which we don't override default compiler flags anymore. Probably your compiler has those warnings enabled and mine hasn't... I enforced those warnings to not be checked anymore in dc08c35. I think that should fix it. Please give it a try and if it works I'll release a new version of byebug. |
I had the same problem. Now I'm getting this with 2.2.1 via
I'm on XCode 4.6.3, ruby 2.0.0-p247. |
Hi @teeparham, could you try my last commit and see if it fixes the problem? If it doesn't fix it I think I'll just revert e602dda until I'm able to properly test this kind of stuff through cross-compilation or through buying a lot of machines.... :) |
Thanks! Yes - that worked: # success:
$ git checkout master
# 725fbafdd2667f
$ rake install
byebug 2.2.1 built to pkg/byebug-2.2.1.gem.
byebug (2.2.1) installed.
# previous install failed:
$ git checkout c49d3f19cdc
HEAD is now at c49d3f1... Prepare for 2.2.1 release
$ rake build
byebug 2.2.1 built to pkg/byebug-2.2.1.gem.
$ gem install pkg/byebug-2.2.1.gem
# ...
make "DESTDIR="
compiling breakpoint.c
compiling byebug.c
cc1: warnings being treated as errors
byebug.c: In function ‘clear_tracepoints’:
byebug.c:425: warning: implicit conversion shortens 64-bit value into a 32-bit value
make: *** [byebug.o] Error 1
`` |
Sweet! I just released 2.2.2 and now I'm crossing fingers and hoping there are not further issues related to this one... |
Nobody reported anymore issues and @teeparham confired this works, so I'm closing this. @bartocc or anyone, feel free to reopen if this is still biting you. |
I can't install 2.2.0 on OS X 10.8.5, XCode 4.6.3 because of a warning caused in breakpoint.c:281
I believe I can find a flag to avoid treating warnings as errors and have the ext compile, but I'd be great if this warning were fixed.
If it involves too much refactoring to remove self from the method signature, then maybe just adding a dumb line with
self
could be a workaround ?The text was updated successfully, but these errors were encountered: