Date: Tue, 22 Feb 2005 01:38:13 +0100 From: Jose M Rodriguez <josemi@freebsd.jazztel.es> To: freebsd-ports@freebsd.org Cc: Vivek Khera <vivek@khera.org> Subject: Re: FreeBSD Port: ruby18-1.8.2_2 Message-ID: <200502220138.14737.josemi@freebsd.jazztel.es> In-Reply-To: <opsmknpocc9aq2h7@mezz.mezzweb.com> References: <64348.207.219.213.162.1109011818.squirrel@207.219.213.162> <200502220039.24771.josemi@freebsd.jazztel.es> <opsmknpocc9aq2h7@mezz.mezzweb.com>
next in thread | previous in thread | raw e-mail | index | archive | help
El Martes, 22 de Febrero de 2005 01:02, Jeremy Messenger escribi=C3=B3: > Removing one freebsd-ports@FreeBSD.org from the CC, please don't > double it. > > On Tue, 22 Feb 2005 00:39:23 +0100, Jose M Rodriguez > > <josemi@freebsd.jazztel.es> wrote: > > El Martes, 22 de Febrero de 2005 00:10, Jeremy Messenger escribi=C3=B3: > >> On Tue, 22 Feb 2005 09:05:00 +1000, Mark Sergeant > >> > >> <msergeant@snsonline.net> wrote: > >> > On 22/02/2005, at 09:03, Jeremy Messenger wrote: > >> >> On Mon, 21 Feb 2005 11:49:54 -0800, Kris Kennaway > >> >> <kris@obsecurity.org> > >> >> > >> >> wrote: > >> >>> On Mon, Feb 21, 2005 at 02:09:12PM -0500, Vivek Khera wrote: > >> >>>> On Feb 21, 2005, at 1:50 PM, Mike Jakubik wrote: > >> >>>> >There seems to be a problem installing ruby18 on 5-STABLE > >> >>>> > AMD64. It compiles cleanly however. > >> >>>> > >> >>>> <snip/> > >> > >> My lastest patch was: > >> http://people.freebsd.org/~mezz/diff/ruby18.diff > >> <snip/> > > > > A simple look notes a little problem: You must do the CFLAGS:=3D > > after <bsd.port.pre.mk> > > I don't think it needs.. It works fine here: > > =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 > # pwd > /usr/ports/lang/ruby18 > > # make -V CFLAGS > -O -pipe -g > > # make > [...configure...] > =3D=3D=3D> Building for ruby-1.8.2_2 > cc -O -pipe -g -fPIC -I. -I. -c main.c > cc -O -pipe -g -fPIC -I. -I. -c dmyext.c > cc -O -pipe -g -fPIC -I. -I. -c array.c > cc -O -pipe -g -fPIC -I. -I. -c bignum.c > [...goes on...] > =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 > > Feel free to point me if I am wrong. > Yes. The CFLAGS you are tweak _may_ not be the ones used. The most safe=20 place to do this is what I point you. You may see this kind of construct in ports like textproc/openjade. > > Also, for really disable options, you may try: > > CFLAGS:=3D -O ${CFLAGS:N-O*:N-march=3D*:N-mcpu=3D*:N-mtune=3D*} > > They aren't in FreeBSD's default settings, but it can be add if it > matters. > Don't know. Your patch take-off only -march=3D<cpu>. What I send take-off= =20 =2DOn -march=3D<cpu> -mcpu=3D<cpu> (gcc33) -mtune=3D<cpu> (gcc34). If someone have still problems, the second form may get you more strict=20 CFLAGS (Only -O whatever you have in /etc/make.conf). I all this is needed, you may use the openjade construct: CLAGS:=3D -O ${CFLAGS:N-O*:N-m*} Also, if any -O2 problem is detected, try: CFLAGS:=3D ${CFLAGS:N-march=3D*} -fno-sctrict-aliasing =2D- josemi > Cheers, > Mezz > > > -- > > josemi
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502220138.14737.josemi>