make world broken in -current

2001-08-27 Thread Jim . Pirzyk


Compiling sources cvs'ed this morning (Aug 27th), I get this error:

cd /auto/roy/dist/pub/FreeBSD/CURRENT/src/usr.bin/file; make build-tools
make: don't know how to make build-tools. Stop
*** Error code 2

Stop in /auto/roy/dist/pub/FreeBSD/CURRENT/src.
*** Error code 1

- JimP

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: make world broken in -current

2001-08-28 Thread Jim Pirzyk

On Monday 27 August 2001 05:58 pm, David O'Brien wrote:
 On Mon, Aug 27, 2001 at 11:10:55AM -0700, [EMAIL PROTECTED] wrote:
  Compiling sources cvs'ed this morning (Aug 27th), I get this error:
 
  cd /auto/roy/dist/pub/FreeBSD/CURRENT/src/usr.bin/file; make build-tools
  make: don't know how to make build-tools. Stop
  *** Error code 2

 Are you sure your src/usr.bin/file/Makefile is up to date?

 # $FreeBSD: src/usr.bin/file/Makefile,v 1.22 2001/08/17 17:21:38 obrien Exp
 $

Ding!  I have version 1.21.  So this leads me to my next question and that
is there anything wrong with anoncvs.FreeBSD.org?  I am getting these
messages when I try to get a new cvs version:

cvs [checkout aborted]: reading from server: Connection reset by peer
cvs [checkout aborted]: end of file from server (consult above messages if 
any)

But there are no messages above.

- JimP

-- 
--- @(#) $Id: dot.signature,v 1.10 2001/05/17 23:38:49 Jim.Pirzyk Exp $
__o   [EMAIL PROTECTED] - [EMAIL PROTECTED]
 _'\,_   Senior Systems Engineer, Walt Disney Feature Animation 
(*)/ (*)  

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: -CURRENT running really slow under vmware2

2002-10-12 Thread Jim Pirzyk
I would think we need to at least patch current for this case.  Enclosed
is a possible implementation.  Comments?

- JimP


On Friday 11 October 2002 07:53 am, Tim Robbins wrote:
 On Fri, Oct 11, 2002 at 07:07:36AM -0700, Jim Pirzyk wrote:
  Does anyone have experience running a recient -CURRENT as
  a vmware2 guest OS?  I have tried -DP1 and a version from this
  week and both just die a slow death.  I first tried to install a
  4.6.2-RELEASE, and that worked.  Then I tried to upgrade the
  system to -CURRENT via a make world (mergemaster, etc). and
  the 'make installworld' has not finished after 24 hours.  The load
  goes up to ~ 5 during the install.  I have tried this in multi user mode
  as well as in single user mode, no difference.
 
  When I install -DP1 and reboot, the system does the same thing processing
  the /etc/rc* scripts and never makes multi user mode.  If I boot single
  user, the fsck has the same problem.

 This patch makes FreeBSD much faster under VMware by avoiding the CMPXCHG
 instruction, which VMware seems to emulate very slowly. Someone posted it
 to this list a while back, but I've forgotten who it was. I'm using it
 at the moment.. it's still less than half the speed it would be on real
 hardware, but it makes a big difference :-)

 (in /sys/i386/include)

 Index: atomic.h
 ===
 RCS file: /home/tim/freebsd/src/sys/i386/include/atomic.h,v
 retrieving revision 1.28
 diff -u -r1.28 atomic.h
 --- atomic.h  18 Jul 2002 15:56:46 -  1.28
 +++ atomic.h  12 Sep 2002 08:28:12 -
 @@ -117,7 +117,7 @@

  #if defined(__GNUC__)

 -#if defined(I386_CPU)
 +#if defined(I386_CPU) || 1

  static __inline int
  atomic_cmpset_int(volatile u_int *dst, u_int exp, u_int src)


 I've done no benchmarks, but compiling with CPUTYPE set to something
 conservative like i386 or i486 also seems to help.

 Also keep in mind that there are a bunch of debugging features enabled by
 default in GENERIC and the base system (witness, malloc() debugging etc.)
 that you could disable.


 Tim

-- 
--- @(#) $Id: dot.signature,v 1.10 2001/05/17 23:38:49 Jim.Pirzyk Exp $
__o   [EMAIL PROTECTED] ---
 _'\,_
(*)/ (*)  

--- sys/conf/options.i386.orig	Sat Oct 12 11:20:35 2002
+++ sys/conf/options.i386	Sat Oct 12 11:32:14 2002
@@ -64,6 +64,7 @@
 CPU_ENABLE_SSE			opt_cpu.h
 CPU_ATHLON_SSE_HACK		opt_cpu.h
 CPU_DISABLE_SSE			opt_cpu.h
+CPU_DISABLE_CMPXFHG		opt_cpu.h
 
 # The CPU type affects the endian conversion functions all over the kernel.
 I386_CPU		opt_global.h
--- sys/i386/conf/NOTES.orig	Sat Oct 12 11:18:47 2002
+++ sys/i386/conf/NOTES	Sat Oct 12 11:30:50 2002
@@ -142,6 +142,10 @@
 # which indicates that the 15-16MB range is *definitely* not being
 # occupied by an ISA memory hole.
 #
+# CPU_DISABLE_CMPXFHG disables the CMPXFHG instruction on  i386 machines.
+# VmWare seems to emulate this instruction poorly, causing the guest OS to 
+# run very slowly.
+#
 # NOTE 1: The options, CPU_BTB_EN, CPU_LOOP_EN, CPU_IORT,
 # CPU_LOOP_EN and CPU_RSTK_EN should not be used because of CPU bugs.
 # These options may crash your system.
@@ -175,6 +179,7 @@
 options 	CYRIX_CACHE_WORKS
 options 	CYRIX_CACHE_REALLY_WORKS
 #options 	NO_F00F_HACK
+options 	VMWARE
 
 #
 # A math emulator is mandatory if you wish to run on hardware which
--- sys/i386/include/atomic.h.orig	Sat Oct 12 11:17:39 2002
+++ sys/i386/include/atomic.h	Sat Oct 12 11:31:09 2002
@@ -117,7 +117,7 @@
 
 #if defined(__GNUC__)
 
-#if defined(I386_CPU)
+#if defined(I386_CPU) || defined(CPU_DISABLE_CMPXFHG)
 
 static __inline int
 atomic_cmpset_int(volatile u_int *dst, u_int exp, u_int src)



chgrp broken on alpha systems

2001-07-03 Thread Jim Pirzyk

The current version go chkgrp does not compile under alpha systems

grep FreeBSD chkgrp.c
  $FreeBSD: src/usr.sbin/chkgrp/chkgrp.c,v 1.5 2001/06/24 12:38:28 des Exp 
$;

=== usr.sbin/chkgrp
cc -nostdinc -O -pipe -mcpu=ev4 -mcpu=ev4   
-I/usr/obj/usr/src/alpha/usr/include -W -Wall -Wstrict-prototypes 
-Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Werror -Wreturn-type 
-Wcast-qual -Wwrite-strings -Wswitch -Wshadow  -c 
/usr/src/usr.sbin/chkgrp/chkgrp.c
cc1: warnings being treated as errors
/usr/src/usr.sbin/chkgrp/chkgrp.c: In function `main':
/usr/src/usr.sbin/chkgrp/chkgrp.c:76: warning: passing arg 2 of `fgetln' from 
incompatible pointer type
*** Error code 1

- JimP

-- 
--- @(#) $Id: dot.signature,v 1.10 2001/05/17 23:38:49 Jim.Pirzyk Exp $
__o   [EMAIL PROTECTED] - [EMAIL PROTECTED]
 _'\,_   Senior Systems Engineer, Walt Disney Feature Animation 
(*)/ (*)  

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



more make world problems on alpha.

2001-07-05 Thread Jim Pirzyk

rarpd fails to compile (again the WARNS?=2 problem.

- JimP


beta2 6# make
cc -O -pipe -mcpu=ev4 -DTFTP_DIR=\/tftpboot\   -W -Wall -Wstrict-prototypes 
-Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Werror -Wreturn-type 
-Wcast-qual -Wwrite-strings -Wswitch -Wshadow  -c 
/usr/src/usr.sbin/rarpd/rarpd.c
cc1: warnings being treated as errors
/usr/src/usr.sbin/rarpd/rarpd.c: In function `expand_syslog_m':
/usr/src/usr.sbin/rarpd/rarpd.c:1027: warning: field width is not type int 
(arg 4)
*** Error code 1


-- 
--- @(#) $Id: dot.signature,v 1.10 2001/05/17 23:38:49 Jim.Pirzyk Exp $
__o   [EMAIL PROTECTED] - [EMAIL PROTECTED]
 _'\,_   Senior Systems Engineer, Walt Disney Feature Animation 
(*)/ (*)  

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message