Repository navigation
Fix ruby.h behaviour in old compilers: __builtin_choose_expr is different before 4.8.5 - #1778
silviofdez wants to merge 1 commit into
Conversation
…fferent behavior befor gcc 4.8.5
|
Not tested but seemingly related GCC bug that was fixed in 4.9. |
|
@silviofdez Can you file this issue with our tracker? |
|
I don't reproduce this with Maybe yum update gcc can solve this. |
|
Ticket open on Redmine: https://bugs.ruby-lang.org/issues/14221 @hsbt |
|
@nurse I update our environment to Centos 7.4 and gcc 4.8.5-16 and still getting the same error. Both systems and gcc are affected by @shyouhei bug the compiler will error: |
|
I understand this issue is because the compiler which is used to build ruby (and config.h) is different from gcc 4.8.x which is now using to build nokogiri. |
|
98bddfe fixes this issue |
When trying to install some native gems in a ruby-25-rc1 compiled using 4.8.5 (Centos 7 or Ubuntu 14.04) you get this error related to new functions in
ruby.hThis patch just check GCC version and
undefthe conflicting part.