Issue #10710 has been updated by Stefan Kaes.


the problem is that the compiler accepts the warning flag but fails to compile a piece of code as soon as it tries to emit some warning.

~~~
configure:7495: checking whether -Wno-packed-bitfield-compat is accepted as CFLAGS
configure:7518: gcc -c -g -O2  -Wno-packed-bitfield-compat  conftest.c >&5
configure:7518: $? = 0
configure:7533: result: yes
~~~


----------------------------------------
Bug #10710: can't compile ruby 2.2.0 with gcc versions older than 4.4.0
https://bugs.ruby-lang.org/issues/10710#change-50882

* Author: Stefan Kaes
* Status: Feedback
* Priority: Normal
* Assignee: Nobuyoshi Nakada
* Category: build
* Target version: 
* ruby -v: 2.2.0
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
compilation stops because gcc before 4.4.0 does not support the flag -Wno-packed-bitfield-compat.

patch can be found here: https://github.com/skaes/rvm-patchsets/blob/master/patches/ruby/2.2.0/railsexpress/05-fix-packed-bitfield-compat-warning-for-older-gccs.patch

---Files--------------------------------
05-fix-packed-bitfield-compat-warning-for-older-gccs.patch (760 Bytes)


-- 
https://bugs.ruby-lang.org/