Re: Error in truss (Was: Re: error in ncurses in 'make buildworld')
Worked. Thanks a million for the _very_ fast answer. /Johan On Mon, 24 Jun 2002, Robert Watson wrote: > Compile and install a fresh sed. > > Robert N M Watson FreeBSD Core Team, TrustedBSD Projects > [EMAIL PROTECTED] Network Associates Laboratories > > On Mon, 24 Jun 2002, Johan Granlund wrote: > > > Hi > > > > I'ts probably not related, but i have problems :) > > > > I have tried a couple of days to compile world, with CFLAGS=-O -pipe, with > > a system from Jun 16 and it stops at the same place every time. I have > > tried to clean out /usr/src and obj and resup. Recompiled awk and sh if > > something happened to them but no change. > > > > Any ideas as what happened ? > > > > The error is: > > > > ===> usr.bin/truncate > > rm -f .depend > > mkdep -f .depend -a /usr/src/usr.bin/truncate/truncate.c > > echo truncate: /usr/obj/usr/src/i386/usr/lib/libc.a >> .depend > > ===> usr.bin/truss > > cp /usr/src/usr.bin/truss/../../sys/kern/syscalls.master syscalls.master > > /bin/sh /usr/src/usr.bin/truss/../../sys/kern/makesyscalls.sh > > syscalls.master / > > usr/src/usr.bin/truss/i386.conf > > syscalls.master: line 55: syscall number out of sync at 7 > > line is: > > struct rusage * rusage ) ; } wait4 > > wait_args int > > *** Error code 1 > > > > Stop in /usr/src/usr.bin/truss. > > *** Error code 1 > > > > > > Regards > > > > /Johan > > > > > > On Mon, 24 Jun 2002, Claus Guttesen wrote: > > > > > Hi. > > > > > > > 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. > > > > > > > > > > With this advise my 'make world' and 'make kernel' > > > completed without any errors. Thank you. > > > > > > Regards > > > Claus > > > > > > > > > _ > > > Følg VM i fodbold på tæt hold fra Yahoo!s officielle VM-side > > > www.yahoo.dk/vm2002 > > > > > > To Unsubscribe: send mail to [EMAIL PROTECTED] > > > with "unsubscribe freebsd-current" in the body of the message > > > > > > > > > > > > To Unsubscribe: send mail to [EMAIL PROTECTED] > > with "unsubscribe freebsd-current" in the body of the message > > > > > > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: Error in truss (Was: Re: error in ncurses in 'make buildworld')
On 2002.06.24 21:49:47 +, Johan Granlund wrote: > Hi > > I'ts probably not related, but i have problems :) > > I have tried a couple of days to compile world, with CFLAGS=-O -pipe, with > a system from Jun 16 and it stops at the same place every time. I have > tried to clean out /usr/src and obj and resup. Recompiled awk and sh if > something happened to them but no change. > > Any ideas as what happened ? This exact issue has been discussed numerous times on this list before. The fix is to rebuild sed. > The error is: > > ===> usr.bin/truncate > rm -f .depend > mkdep -f .depend -a /usr/src/usr.bin/truncate/truncate.c > echo truncate: /usr/obj/usr/src/i386/usr/lib/libc.a >> .depend > ===> usr.bin/truss > cp /usr/src/usr.bin/truss/../../sys/kern/syscalls.master syscalls.master > /bin/sh /usr/src/usr.bin/truss/../../sys/kern/makesyscalls.sh > syscalls.master / > usr/src/usr.bin/truss/i386.conf > syscalls.master: line 55: syscall number out of sync at 7 > line is: > struct rusage * rusage ) ; } wait4 > wait_args int > *** Error code 1 To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: Error in truss (Was: Re: error in ncurses in 'make buildworld')
Compile and install a fresh sed. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects [EMAIL PROTECTED] Network Associates Laboratories On Mon, 24 Jun 2002, Johan Granlund wrote: > Hi > > I'ts probably not related, but i have problems :) > > I have tried a couple of days to compile world, with CFLAGS=-O -pipe, with > a system from Jun 16 and it stops at the same place every time. I have > tried to clean out /usr/src and obj and resup. Recompiled awk and sh if > something happened to them but no change. > > Any ideas as what happened ? > > The error is: > > ===> usr.bin/truncate > rm -f .depend > mkdep -f .depend -a /usr/src/usr.bin/truncate/truncate.c > echo truncate: /usr/obj/usr/src/i386/usr/lib/libc.a >> .depend > ===> usr.bin/truss > cp /usr/src/usr.bin/truss/../../sys/kern/syscalls.master syscalls.master > /bin/sh /usr/src/usr.bin/truss/../../sys/kern/makesyscalls.sh > syscalls.master / > usr/src/usr.bin/truss/i386.conf > syscalls.master: line 55: syscall number out of sync at 7 > line is: > struct rusage * rusage ) ; } wait4 > wait_args int > *** Error code 1 > > Stop in /usr/src/usr.bin/truss. > *** Error code 1 > > > Regards > > /Johan > > > On Mon, 24 Jun 2002, Claus Guttesen wrote: > > > Hi. > > > > > 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. > > > > > > > With this advise my 'make world' and 'make kernel' > > completed without any errors. Thank you. > > > > Regards > > Claus > > > > > > _ > > Følg VM i fodbold på tæt hold fra Yahoo!s officielle VM-side > > www.yahoo.dk/vm2002 > > > > To Unsubscribe: send mail to [EMAIL PROTECTED] > > with "unsubscribe freebsd-current" in the body of the message > > > > > > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-current" in the body of the message > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Error in truss (Was: Re: error in ncurses in 'make buildworld')
Hi I'ts probably not related, but i have problems :) I have tried a couple of days to compile world, with CFLAGS=-O -pipe, with a system from Jun 16 and it stops at the same place every time. I have tried to clean out /usr/src and obj and resup. Recompiled awk and sh if something happened to them but no change. Any ideas as what happened ? The error is: ===> usr.bin/truncate rm -f .depend mkdep -f .depend -a /usr/src/usr.bin/truncate/truncate.c echo truncate: /usr/obj/usr/src/i386/usr/lib/libc.a >> .depend ===> usr.bin/truss cp /usr/src/usr.bin/truss/../../sys/kern/syscalls.master syscalls.master /bin/sh /usr/src/usr.bin/truss/../../sys/kern/makesyscalls.sh syscalls.master / usr/src/usr.bin/truss/i386.conf syscalls.master: line 55: syscall number out of sync at 7 line is: struct rusage * rusage ) ; } wait4 wait_args int *** Error code 1 Stop in /usr/src/usr.bin/truss. *** Error code 1 Regards /Johan On Mon, 24 Jun 2002, Claus Guttesen wrote: > Hi. > > > 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. > > > > With this advise my 'make world' and 'make kernel' > completed without any errors. Thank you. > > Regards > Claus > > > _ > Følg VM i fodbold på tæt hold fra Yahoo!s officielle VM-side > www.yahoo.dk/vm2002 > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-current" in the body of the message > > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: error in ncurses in 'make buildworld'
Hi. > 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. > With this advise my 'make world' and 'make kernel' completed without any errors. Thank you. Regards Claus _ Følg VM i fodbold på tæt hold fra Yahoo!s officielle VM-side www.yahoo.dk/vm2002 To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: error in ncurses in 'make buildworld'
On Fri, 21 Jun 2002, David O'Brien wrote: > 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.00 > > 0.124861 > > 0.0<4861<--- Pay attention > > 123 > > I don't get the same results with a system built today. > > $ cc -v > ..snip.. > gcc version 3.1 [FreeBSD] 20020509 (prerelease) > $ cc -Wall qq.c The program and strtod.c (not dtoa.c like I said in previous mail) must be compiled with gcc -O2 to cause problems. Bruce To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: error in ncurses in 'make buildworld'
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.00 > 0.124861 > 0.0<4861 <--- Pay attention > 123 I don't get the same results with a system built today. $ cc -v ..snip.. gcc version 3.1 [FreeBSD] 20020509 (prerelease) $ cc -Wall qq.c qq.c: In function `main': qq.c:16: warning: float format, double arg (arg 3) $ ./a.out 123 123.00 123.00 123.16 123 To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: error in ncurses in 'make buildworld'
On Fri, Jun 21, 2002 at 05:33:22PM +1000, Tim Robbins wrote: > > What -O level did you compile libc with? Optimisation levels >= 2 damage > __vfprintf() with the in-tree gcc, causing these same symptoms. -O2 > > 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. Thank you. I'll try this. -- Igor Roboul, System administrator at Speech Technology Center http://www.speechpro.com http://www.speechpro.ru To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: error in ncurses in 'make buildworld'
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.00 > 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
Re: error in ncurses in 'make buildworld'
On Thu, Jun 20, 2002 at 10:16:11AM -0700, David O'Brien wrote: > > I have posted info about awk (which is nawk) incorrectly printing > > numbers between 10 and 15. It adds ascii '0' to value. > > This is *NOT* a fix. nawk builds world just fine on my systems. > Of course this leads one to wonder what is different about my systems and > yours. I'm trying to figure this too. Look at following program and it's output, and please tell me what's wrong. It works as expected on -STABLE and Linux. #include #include #include int main(int argc,char**argv) { double a; int b; char bb[100]; strcpy(bb,argv[1]); printf("%lf\n",strtod(bb,NULL)); sscanf(bb,"%lf",&a); printf("%lf\n",a); sscanf(bb,"%f",&a); printf("%f\n",a); sscanf(bb,"%d",&b); printf("%d\n",b); return 0; } 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.00 0.124861 0.0<4861<--- Pay attention 123 IIRC this worked fine in preGCC3.1 world. -- Igor Roboul, System administrator at Speech Technology Center http://www.speechpro.com http://www.speechpro.ru To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: error in ncurses in 'make buildworld'
[bogus From: address, because people cannot be bothered to respect Reply-To:] On Thu, Jun 20, 2002 at 01:26:49PM +0400, Igor Roboul wrote: > > And continues to 'lib_gen.c:824: `a0' undeclared'. > rm -f /usr/bin/awk > ln /usr/bin/gawk /usr/bin/awk > > Then rebuild. > > I have posted info about awk (which is nawk) incorrectly printing > numbers between 10 and 15. It adds ascii '0' to value. This is *NOT* a fix. nawk builds world just fine on my systems. Of course this leads one to wonder what is different about my systems and yours. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message