From owner-freebsd-current Fri Jun 21 0:37:12 2002 Delivered-To: freebsd-current@freebsd.org Received: from dilbert.robbins.dropbear.id.au (253.b.008.mel.iprimus.net.au [210.50.87.253]) by hub.freebsd.org (Postfix) with ESMTP id C08EC37B406 for ; Fri, 21 Jun 2002 00:36:56 -0700 (PDT) Received: from dilbert.robbins.dropbear.id.au (tim@localhost [127.0.0.1]) by dilbert.robbins.dropbear.id.au (8.12.3/8.12.3) with ESMTP id g5L7aOY2099451; Fri, 21 Jun 2002 17:36:27 +1000 (EST) (envelope-from tim@dilbert.robbins.dropbear.id.au) Received: (from tim@localhost) by dilbert.robbins.dropbear.id.au (8.12.3/8.12.3/Submit) id g5L7YCaZ099444; Fri, 21 Jun 2002 17:34:12 +1000 (EST) Date: Fri, 21 Jun 2002 17:33:22 +1000 From: Tim Robbins To: ir@hotbox.ru Cc: freebsd-current@FreeBSD.ORG Subject: Re: error in ncurses in 'make buildworld' Message-ID: <20020621173322.A99420@dilbert.robbins.dropbear.id.au> References: <20020619163321.A48809@dragon.nuxi.com> <20020620074657.11859.qmail@web14108.mail.yahoo.com> <20020620092649.GA10310@sysadm.stc> <20020620101611.B55653@dragon.nuxi.com> <20020621071139.GA20615@sysadm.stc> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020621071139.GA20615@sysadm.stc>; from igorr@sysadm.stc.robbins.dropbear.id.au on Fri, Jun 21, 2002 at 11:11:39AM +0400 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Jun 21, 2002 at 11:11:39AM +0400, Igor Roboul wrote: > igorr@sysadm~> gcc -Wall qq.c > qq.c: In function `main': > qq.c:16: warning: float format, double arg (arg 3) <--- I have expected this > igorr@sysadm~> ./a.out 123 > 123.000000 > 0.124861 > 0.0<4861 <--- Pay attention > 123 What -O level did you compile libc with? Optimisation levels >= 2 damage __vfprintf() with the in-tree gcc, causing these same symptoms. The fix is to remove any optimisation options above -O, go into /usr/src/lib/libc, rebuild and install the static libc.a, build and install a static linked awk binary, then rebuild world + kernel as usual. Tim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message