[#67346] Future of test suites for Ruby — Charles Oliver Nutter <headius@...>

I'll try to be brief so we can discuss all this. tl;dr: RubySpec is

19 messages 2015/01/05

[ruby-core:67461] [ruby-trunk - Bug #10710] can't compile ruby 2.2.0 with gcc versions older than 4.4.0

From: stkaes@...
Date: 2015-01-09 09:41:30 UTC
List: ruby-core #67461
Issue #10710 has been updated by Stefan Kaes.


here's the build output:

~~~
[email protected]:~/src/ruby-2.2.0 $ make
	CC =3D gcc
	LD =3D ld
	LDSHARED =3D gcc -shared
	CFLAGS =3D -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -=
Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-var=
iable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimpli=
cit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-com=
pat -std=3Diso9899:1999  -fPIC=20
	XCFLAGS =3D -D_FORTIFY_SOURCE=3D2 -fstack-protector -fno-strict-overflow -=
fvisibility=3Dhidden -DRUBY_EXPORT
	CPPFLAGS =3D   -I. -I.ext/include/x86_64-linux -I./include -I.
	DLDFLAGS =3D -Wl,-soname,libruby.so.2.2  -fstack-protector=20=20
	SOLIBS =3D -lpthread -lrt -lgmp -ldl -lcrypt -lm=20=20
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion=3D'Debian 4.3.2-1.1'=
 --with-bugurl=3Dfile:///usr/share/doc/gcc-4.3/README.Bugs --enable-languag=
es=3Dc,c++,fortran,objc,obj-c++ --prefix=3D/usr --enable-shared --with-syst=
em-zlib --libexecdir=3D/usr/lib --without-included-gettext --enable-threads=
=3Dposix --enable-nls --with-gxx-include-dir=3D/usr/include/c++/4.3 --progr=
am-suffix=3D-4.3 --enable-clocale=3Dgnu --enable-libstdcxx-debug --enable-o=
bjc-gc --enable-mpfr --enable-cld --enable-checking=3Drelease --build=3Dx86=
_64-linux-gnu --host=3Dx86_64-linux-gnu --target=3Dx86_64-linux-gnu
Thread model: posix
gcc version 4.3.2 (Debian 4.3.2-1.1)=20
compiling main.c
compiling dmydln.c
compiling miniinit.c
compiling miniprelude.c
copying dummy probes.h
compiling array.c
compiling bignum.c
bignum.c: In function =E2=80=98rb_absint_numwords=E2=80=99:
bignum.c:3370: warning: =E2=80=98nlz_bits=E2=80=99 may be used uninitialize=
d in this function
At top level:
cc1: error: unrecognized command line option "-Wno-packed-bitfield-compat"
make: *** [bignum.o] Error 1
~~~

----------------------------------------
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-50884

* Author: Stefan Kaes
* Status: Feedback
* Priority: Normal
* Assignee: Nobuyoshi Nakada
* Category: build
* Target version:=20
* 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-p=
acked-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)


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

In This Thread

Prev Next