Date: Thu, 29 Apr 2010 00:03:47 +0300 From: Kostik Belousov <kostikbel@gmail.com> To: Alexey Shuvaev <shuvaev@physik.uni-wuerzburg.de> Cc: Roman Divacky <rdivacky@freebsd.org>, freebsd-current@freebsd.org, Dima Panov <fluffy@freebsd.org> Subject: Re: Ruby w/clang (Was: Re: [CFT]: ClangBSD is selfhosting, we need testers now) Message-ID: <20100428210347.GD2391@deviant.kiev.zoral.com.ua> In-Reply-To: <20100428203241.GA38859@wep4035.physik.uni-wuerzburg.de> References: <20100416160818.GA69460@freebsd.org> <201004282007.25568.fluffy@freebsd.org> <20100428121637.GA61412@roberto-al.eurocontrol.fr> <201004290240.26848.fluffy@freebsd.org> <20100428203241.GA38859@wep4035.physik.uni-wuerzburg.de>
next in thread | previous in thread | raw e-mail | index | archive | help
--HWvPVVuAAfuRc6SZ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Wed, Apr 28, 2010 at 10:32:41PM +0200, Alexey Shuvaev wrote:
> On Thu, Apr 29, 2010 at 02:40:24AM +1100, Dima Panov wrote:
> > On Wednesday 28 April 2010 23:16:38 Ollivier Robert wrote:
> > > According to Dima Panov:
> > > > while building lang/ruby18:
> > > Which options to you use?
> > >=20
> > > _OPTIONS_READ=3Druby+oniguruma-1.8.7.248_1,1
> > > WITHOUT_ONIGURUMA=3Dtrue
> > > WITH_RDOC=3Dtrue
> > > WITHOUT_DEBUG=3Dtrue
> > >=20
> > > I notice your ruby is compiling w/o any -On, try with -O at least?
> >=20
> > same here. also on 1.8.7.249 snapshot.
> >=20
> > ar rcu libruby18-static.a array.o bignum.o class.o compar.o dir.o =
dln.o enum.o =20
> > enumerator.o error.o eval.o file.o gc.o hash.o inits.o io.o mar=
shal.o math.o =20
> > numeric.o object.o pack.o parse.o process.o prec.o random.o rang=
e.o re.o regex.o =20
> > ruby.o signal.o sprintf.o st.o string.o struct.o time.o util.o =
variable.o =20
> > version.o dmyext.o
> > clang -I/usr/include -O2 -fno-strict-aliasing -pipe -std=3Dgnu89 -fPIC=
-DRUBY_EXPORT -I.=20
> > -I. -I/usr/include -c main.c
> > clang -I/usr/include -O2 -fno-strict-aliasing -pipe -std=3Dgnu89 -fPIC=
-DRUBY_EXPORT -L. =20
> > -rpath=3D/usr/lib:/usr/local/lib -pthread -rdynamic -pthread main.o l=
ibruby18-static.a -
> > lrt -lcrypt -lm -L/usr/lib -rpath=3D/usr/lib:/usr/local/lib -pthread =
-o miniruby
> > ./lib/fileutils.rb:1437: [BUG] unexpected local variable assignment
> > ruby 1.8.7 (2010-01-10 patchlevel 249) [amd64-freebsd9]
> >=20
> > *** Signal 6
> >=20
> > Stop in /tmp/usr/ports/lang/ruby18/work/ruby-1.8.7-p249.
> > *** Error code 1
> >=20
> >=20
> > _OPTIONS_READ=3Druby-1.8.7.249,1
> > WITHOUT_ONIGURUMA=3Dtrue
> > WITH_RDOC=3Dtrue
> > WITHOUT_DEBUG=3Dtrue
> >=20
> >=20
> > >=20
> > > > clang -I/usr/include -pipe -g -g -std=3Dgnu89 -fPIC -DRUBY_EXPO=
RT -I.
> > > > -I. -I/usr/include -c main.c
> > > > clang -I/usr/include -pipe -g -g -std=3Dgnu89 -fPIC -DRUBY_EXPO=
RT -L.=20
> > > > - rpath=3D/usr/lib:/usr/local/lib -pthread -rdynamic -pthread main=
.o=20
> > > > libruby18-static.a -lrt -lcrypt -lm -L/usr/lib=20
> > > > -rpath=3D/usr/lib:/usr/local/lib -pthread -o miniruby
> > > > ./lib/fileutils.rb:1429: fu_same? is not a class/module (TypeError)
> > > >=20
> > > > from ./mkconfig.rb:11:in `require'
> > > > from ./mkconfig.rb:11
> > > >=20
> > > > *** Error code 1
> > >=20
> > > Interesting, using a fairly recent clang snapshot from trunk, I get a=
sig11
> > > :(
> >=20
> >=20
> > Ruby is bad?
> >=20
> For the record, ruby compilation also fails with base gcc inside
> i386 ports tinderbox on amd64-CURRENT host:
>=20
> [snip]
> cc -I/usr/include -O2 -pipe -fno-strict-aliasing -fPIC -DRUBY_EXPORT =
-I. -I. -I/usr/include -c variable.c
> cc -I/usr/include -O2 -pipe -fno-strict-aliasing -fPIC -DRUBY_EXPORT =
-I. -I. -I/usr/include -c version.c
> In file included from version.c:14:
> version.h:29:41: warning: no newline at end of file
> cc -I/usr/include -O2 -pipe -fno-strict-aliasing -fPIC -DRUBY_EXPORT =
-I. -I. -I/usr/include -c dmyext.c
> ar rcu libruby18-static.a array.o bignum.o class.o compar.o dir.o dl=
n.o enum.o enumerator.o error.o eval.o file.o gc.o hash.o inits.o =
io.o marshal.o math.o numeric.o object.o pack.o parse.o process.o p=
rec.o random.o range.o re.o regex.o ruby.o signal.o sprintf.o st.o =
string.o struct.o time.o util.o variable.o version.o dmyext.o
> cc -I/usr/include -O2 -pipe -fno-strict-aliasing -fPIC -DRUBY_EXPORT =
-I. -I. -I/usr/include -c main.c
> cc -I/usr/include -O2 -pipe -fno-strict-aliasing -fPIC -DRUBY_EXPORT =
-L. -rpath=3D/usr/lib:/usr/local/lib -pthread -rdynamic -pthread main.o =
libruby18-static.a -lrt -lcrypt -lm -L/usr/lib -rpath=3D/usr/lib:/usr/loca=
l/lib -pthread -o miniruby
> ./lib/fileutils.rb:1030: retry outside of rescue clause
> rbconfig.rb updated
> *** Error code 1
>=20
> Stop in /work/a/ports/lang/ruby18/work/ruby-1.8.7-p248.
> *** Error code 1
>=20
> Stop in /a/ports/lang/ruby18.
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> build of /usr/ports/lang/ruby18 ended at Sat Apr 24 04:57:59 UTC 2010
>=20
> I don't know why it is failing in the same file (is it just included first
> or is it really troublesome?), but it looks quite suspicious.
> I am nowhere the ruby expert but it may be that the problem is in ruby it=
self.
> Note, that I have successfully built quite a lot of packages inside
> this i386 tinderbox on amd64 host including full kde4, openoffice3, jdk16,
> virtualbox-ose, mplayer, ...
This should be fixed by r206992 on HEAD, and by r207271 on stable/8.
>=20
> On the topic, if I understand it correctly, one can build clandbsd branch
> with normal gcc from base, so it is "backward compatible".
> What are the general showstoppers then to merge to HEAD
> the part of clangbsd that allows building HEAD with llvm from ports?
> I think this will significantly increase the number of testers...
>=20
> Alexey.
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
--HWvPVVuAAfuRc6SZ
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (FreeBSD)
iEYEARECAAYFAkvYorIACgkQC3+MBN1Mb4gNRwCgiwEA7eAP8uEuoFECQwbtpiNF
uYkAoJft9HzUIA7N9D/INut8y0RUkw/p
=ySoh
-----END PGP SIGNATURE-----
--HWvPVVuAAfuRc6SZ--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100428210347.GD2391>
