From owner-freebsd-doc@FreeBSD.ORG Fri Sep 5 20:01:32 2003 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3748E16A4BF; Fri, 5 Sep 2003 20:01:32 -0700 (PDT) Received: from mig.mig-29.net (dsl-200-67-215-158.prodigy.net.mx [200.67.215.158]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7935A43FE0; Fri, 5 Sep 2003 20:01:24 -0700 (PDT) (envelope-from mig@mig-29.net) Received: from mig.mig-29.net (localhost.mig-29.net [127.0.0.1]) by mig.mig-29.net (8.12.8p1/8.12.8) with ESMTP id h862wuGx010404; Fri, 5 Sep 2003 21:58:56 -0500 (CDT) (envelope-from mig@mig.mig-29.net) Received: (from mig@localhost) by mig.mig-29.net (8.12.8p1/8.12.8/Submit) id h862wsup010403; Fri, 5 Sep 2003 21:58:54 -0500 (CDT) (envelope-from mig) Date: Fri, 5 Sep 2003 21:58:54 -0500 From: Manuel Rabade - MiG To: "Simon L. Nielsen" Message-ID: <20030906025854.GA336@mig-29.net> References: <20030902222708.GC341@mig-29.net> <20030904205509.GB674@FreeBSD.org> <20030904230035.GA94554@mig-29.net> <20030905113327.GB411@FreeBSD.org> <20030905124850.GA37813@mig-29.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jRHKVT23PllUwdXP" Content-Disposition: inline In-Reply-To: <20030905124850.GA37813@mig-29.net> User-Agent: Mutt/1.4.1i URL: http://www.mig-29.net/ cc: freebsd-doc@freebsd.org Subject: Re: Strange core dump of jade when building /usr/doc - RESOLVED X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Sep 2003 03:01:32 -0000 --jRHKVT23PllUwdXP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Well, the problem was my CXXFLAGS, they have the -O3 optimization (i read f= rom http://www.eldemonio.org/docs/freebsd/optimizar.html), the solution was to compile jade with this variables to override my make.conf: NO_CPU_CFLAGS=3Dyes NO_CPU_COPTFLAGS=3Dyes CFLAGS=3D-O CXXFLAGS=3D-O Now everything works fine, thanks ! :-D. On Fri, Sep 05, 2003 at 07:48:50AM -0500, MiG wrote: > On Fri, Sep 05, 2003 at 01:33:28PM +0200, Simon L. Nielsen wrote: > > On 2003.09.04 18:00:35 -0500, Manuel Rabade - MiG wrote: > > > On Thu, Sep 04, 2003 at 10:55:11PM +0200, Simon L. Nielsen wrote: > > > > On 2003.09.02 17:27:08 -0500, Manuel Rabade - MiG wrote: > > > > > Hi, i have updated /usr/doc (with only the documents in english a= nd spanish) and > > > > > when i do a 'make DOC_LANG=3Den_US.ISO8859-1 FORMATS=3Dhtml' jade= crashes in > > > > > /usr/doc/en_US.ISO8859-1/articles/hubs, sometimes as a 'Bus error= ' and other > > > > > times as a 'Segmentation fault'. > > > >=20 > > > > I can't remeber that I have ever experienced jade coredumping... The > > > > fact that it dies with different errors make me suspect hardware er= ror. > > > > It could also be non-standard CFLAGS in make.conf. > > > >=20 > > > > I don't really have any other ideas to why it dies. > > >=20 > > > Humm .. i think that it isn't a hardware error, is my desktop machine= and i can > > > compile and run everything fine except *that* :'(. > > >=20 > > > I "fix" it yesterday installing jade from a package (jade-1.2.1_1), s= o i think > > > that my CFLAGS ('CPUTYPE=3Dp4' and 'CFLAGS=3D-O2 -pipe') are breaking= jade, very > > > strange if it's the problem because that flags are not too much agres= sive. > >=20 > > Actually they are a bit agressive. '-O2' have produced broken code for > > varius versions of GCC, and at least one version of gcc 3.x has produced > > broken code for CPUTYPE=3Dp4 (though this should be fixed now). More > > optimizations sometimes trigger coding bugs, which lower -O levels hide. > > >=20 > Hum .. i am not an expert compiling and tweaking, i have read that the -O= 2 is > not too much agresive, thanks for the tip :-D. >=20 > I will overide the flags and compile jade in the evening, i have to go sc= hool > now :-P, and i will tell you what happens. >=20 > Thanks. >=20 > > From make.conf(5) : > >=20 > > CFLAGS (str) Controls the compiler setting when compiling C code. > > Optimization levels above -O (-O2, ...) are not supported. > >=20 > > In short, while higher -O levels might work, they are rarely worth all > > the problems they create. >=20 >=20 --jRHKVT23PllUwdXP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/WU1tOZtXZaozJcARArOSAKDCNC+oS9ETYhQTDJCkWglA2dZu2wCdFy0K z5ws+4gGKrf9PIAubsEYa9Q= =1zFl -----END PGP SIGNATURE----- --jRHKVT23PllUwdXP--