Discussion:
rebuilding top seems to take forever.
(too old to reply)
Richard Schilling
2004-01-07 18:33:53 UTC
Permalink
I'm rebuilding top. What command do you use to build top? Judging on the contents of /usr/src/contrib/top, the BSD build of top may be slightly different that what's described in the INSTALL and README files.

When I run the ./Configure command it seems to take forever and doesn't complete. the machine subdirectory is missing.

Or, is there another way I should build top?

uname -a output:

FreeBSD hostname.not.included 4.9-STABLE FreeBSD 4.9-STABLE #3: Sun Nov 16 08:32:18 GMT 2003 ***@hostname.not.included:/usr/obj/usr/src/sys/DEVELOPMENT i386
Lowell Gilbert
2004-01-07 18:41:24 UTC
Permalink
Post by Richard Schilling
I'm rebuilding top. What command do you use to build top? Judging on the contents of /usr/src/contrib/top, the BSD build of top may be slightly different that what's described in the INSTALL and README files.
When I run the ./Configure command it seems to take forever and doesn't complete. the machine subdirectory is missing.
Or, is there another way I should build top?
cd /usr/src/usr.bin/top && make
Kris Kennaway
2004-01-08 07:24:18 UTC
Permalink
Post by Richard Schilling
I'm rebuilding top. What command do you use to build top? Judging on the contents of /usr/src/contrib/top, the BSD build of top may be slightly different that what's described in the INSTALL and README files.
When I run the ./Configure command it seems to take forever and doesn't complete. the machine subdirectory is missing.
Or, is there another way I should build top?
The recommended way is 'make buildworld', but you can probably get
away with 'cd /usr/src/usr.bin/top; make all'. Building from contrib/
is always wrong.

Kris
Richard Schilling
2004-01-08 08:27:06 UTC
Permalink
Thank you all very much for pointing out what was wrong. It did lead to another question.

I solved the problem and got top working again when I finally erased /usr/include/sys and copied /usr/src/sys/sys to /usr/include/sys (after running cvsup on the source tree of course).

I thought `cd /usr/src/sys; make install' would have copied /usr/sys/sys to /usr/include/sys, but it doesn't. Where in the build process does /usr/include/sys get created?

Richard
Post by Kris Kennaway
Post by Richard Schilling
I'm rebuilding top. What command do you use to build top? Judging on the contents of /usr/src/contrib/top, the BSD build of top may be slightly different that what's described in the INSTALL and README files.
When I run the ./Configure command it seems to take forever and doesn't complete. the machine subdirectory is missing.
Or, is there another way I should build top?
The recommended way is 'make buildworld', but you can probably get
away with 'cd /usr/src/usr.bin/top; make all'. Building from contrib/
is always wrong.
Kris
Dag-Erling Smørgrav
2004-01-08 11:29:28 UTC
Permalink
Post by Richard Schilling
I solved the problem and got top working again when I finally erased
/usr/include/sys and copied /usr/src/sys/sys to /usr/include/sys
(after running cvsup on the source tree of course).
This is almost never the right thing to do unless you are already very
familiar with the build system.
Post by Richard Schilling
I thought `cd /usr/src/sys; make install' would have copied
/usr/sys/sys to /usr/include/sys, but it doesn't. Where in the
build process does /usr/include/sys get created?
'make includes' in /usr/src.

You wouldn't be having these problems if you followed the documented
procedure (buildworld, buildkernel, installkernel, reboot into
single-user mode, installworld, mergemaster, reboot)

DES
--
Dag-Erling Smørgrav - ***@des.no
Richard Schilling
2004-01-08 20:33:16 UTC
Permalink
Post by Dag-Erling Smørgrav
Post by Richard Schilling
I solved the problem and got top working again when I finally erased
/usr/include/sys and copied /usr/src/sys/sys to /usr/include/sys
(after running cvsup on the source tree of course).
This is almost never the right thing to do unless you are already very
familiar with the build system.
I know . . .I missed some detail along the way when I built.
Post by Dag-Erling Smørgrav
Post by Richard Schilling
I thought `cd /usr/src/sys; make install' would have copied
/usr/sys/sys to /usr/include/sys, but it doesn't. Where in the
build process does /usr/include/sys get created?
'make includes' in /usr/src.
You wouldn't be having these problems if you followed the documented
procedure (buildworld, buildkernel, installkernel, reboot into
single-user mode, installworld, mergemaster, reboot)
I'm going to do that again today just to make sure I catch other problems.

Richard
Post by Dag-Erling Smørgrav
DES
--
Loading...