From owner-freebsd-current@FreeBSD.ORG Wed Apr 28 21:03:52 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B5827106566C; Wed, 28 Apr 2010 21:03:52 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id F1E208FC1C; Wed, 28 Apr 2010 21:03:51 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id o3SL3lLk013205 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 29 Apr 2010 00:03:47 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4) with ESMTP id o3SL3lXk014224; Thu, 29 Apr 2010 00:03:47 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4/Submit) id o3SL3liG014223; Thu, 29 Apr 2010 00:03:47 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 29 Apr 2010 00:03:47 +0300 From: Kostik Belousov To: Alexey Shuvaev Message-ID: <20100428210347.GD2391@deviant.kiev.zoral.com.ua> 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> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HWvPVVuAAfuRc6SZ" Content-Disposition: inline In-Reply-To: <20100428203241.GA38859@wep4035.physik.uni-wuerzburg.de> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_50, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: Roman Divacky , freebsd-current@freebsd.org, Dima Panov Subject: Re: Ruby w/clang (Was: Re: [CFT]: ClangBSD is selfhosting, we need testers now) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Apr 2010 21:03:52 -0000 --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--