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 [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to