HEADS UP: can't find kernel source tree error when building the kernel.

2003-10-03 Thread Ruslan Ermilov
On Fri, Oct 03, 2003 at 12:28:42PM -0500, Jacques A. Vidrine wrote:
 On Fri, Oct 03, 2003 at 07:57:51PM +0300, Clau wrote:
  hello,
  
  i just downloaded via cvsup the latest kernel for freebsd 5.1.
  i had a problem with it, more exactly when i did a make depend
  it stopped at some place, and gave me this error:
  can't find kernel source tree
  i fixed this by modifying this piece of code from /usr/src/sys/conf/kmod.mk
  (it starts with line 167 in the file)
  
  .for _dir in ${.CURDIR}/../.. ${.CURDIR}/../../.. /sys /usr/src/sys
  .if !defined(SYSDIR)  exists(${_dir}/kern/)
  SYSDIR= ${_dir}
  .endif
  .endfor
  .if !defined(SYSDIR) || !exists(${SYSDIR}/kern/)
  .error can't find kernel source tree
  .endif
  
  i removed the last / from /kern/ and now it seems it can find the 
  directory.
  i don't know if this is a general problem, or it is just in the case of 
  my system.
 
 How are you building the kernel?   Are you using `make buildworld' first
 and then `make buildkernel' (or `make kernel')?
 
Maybe now it will be more obvious why I thought that upgrade_checks
should always be done, for all standard src/Makefile targets.
Currently, you either need to upgrade your /usr/bin/make binary
manually, or to use this command from /usr/src:

make buildkernel -DALWAYS_CHECK_MAKE ...

with up-to-date tools/regression/usr.bin/make/ and usr.bin/make/
sources.


Cheers,
-- 
Ruslan Ermilov  Sysadmin and DBA,
[EMAIL PROTECTED]   Sunbay Software Ltd,
[EMAIL PROTECTED]   FreeBSD committer


pgp0.pgp
Description: PGP signature


Re: HEADS UP: can't find kernel source tree error when building the kernel.

2003-10-03 Thread Jacques A. Vidrine
On Fri, Oct 03, 2003 at 09:02:19PM +0300, Ruslan Ermilov wrote:
 Maybe now it will be more obvious why I thought that upgrade_checks
 should always be done, for all standard src/Makefile targets.
 Currently, you either need to upgrade your /usr/bin/make binary
 manually, or to use this command from /usr/src:
 
   make buildkernel -DALWAYS_CHECK_MAKE ...
 
 with up-to-date tools/regression/usr.bin/make/ and usr.bin/make/
 sources.

I don't think the original poster was building his kernel with
src/Makefile targets.  I believe he was doing it the old-fashioned
way: manual config, make depend, make kernel.

Cheers,
-- 
Jacques Vidrine   . NTT/Verio SME  . FreeBSD UNIX   . Heimdal
[EMAIL PROTECTED] . [EMAIL PROTECTED] . [EMAIL PROTECTED] . [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: HEADS UP: can't find kernel source tree error when building the kernel.

2003-10-03 Thread Marcel Moolenaar
On Fri, Oct 03, 2003 at 09:02:19PM +0300, Ruslan Ermilov wrote:
  
  How are you building the kernel?   Are you using `make buildworld' first
  and then `make buildkernel' (or `make kernel')?
  
 Maybe now it will be more obvious why I thought that upgrade_checks
 should always be done, for all standard src/Makefile targets.

It has already been obvious why you thought upgrade_checks should
always be done. The obviousness of your thoughts says nothing about
the correctness or sensibility of your thoughts, though. You still
fail to see that buildkernel is not always the way people build
kernels and buildworld not a target that's made on a daily basis.
You therefore continue to break the development environment for a
significant portion of the -current developers by failing to use
common sense and hanging on to obvious and obviously flawed points
of view.

To be less vague about this: your change to kmod.mk was not made
after giving a dependent change, i.e. the fix to make(1), sufficient
time to take effect by the natural course of events. Instead you
made a change that takes effect immediately right after making a
change that only takes effect after an install and then attribute
breakages to other causes then your own actions. I consider that
a severe lack of good judgement.

The Marcel approved way of doing this would be:

1. fix make(1),
2. Wait a month (or so) or until after the next release, whichever
   comes first,
3. Change kmod.mk.

If something else needs to be fixed that depends on changing kmod.mk
so that you don't have the time to let nature do it's thing, you
send a HEADS UP to tell people that they need to build and install
make(1) to restore universal balance.

Under no circumstances are you to break the development environment
gratuitously and turn it into a political event that allows you to
draw attention (obviously) to your (obvious) thoughts. 

END OF LINE
-- Master Control, TRON

-- 
 Marcel Moolenaar USPA: A-39004  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: HEADS UP: can't find kernel source tree error when building the kernel.

2003-10-03 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
Marcel Moolenaar [EMAIL PROTECTED] writes:
: The Marcel approved way of doing this would be:
: 1. fix make(1),
: 2. Wait a month (or so) or until after the next release, whichever
:comes first,
: 3. Change kmod.mk.

Agreed.  I just arbitrarily decided that this was right.  I reverted
the change so I could compile new kernels again w/o upgrading my
make.  Let's move on and revert my reverting in about a month.

Warner
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


can't find kernel source tree error when building the kernel.

2003-10-03 Thread Clau
hello,

i just downloaded via cvsup the latest kernel for freebsd 5.1.
i had a problem with it, more exactly when i did a make depend
it stopped at some place, and gave me this error:
can't find kernel source tree
i fixed this by modifying this piece of code from /usr/src/sys/conf/kmod.mk
(it starts with line 167 in the file)
.for _dir in ${.CURDIR}/../.. ${.CURDIR}/../../.. /sys /usr/src/sys
.if !defined(SYSDIR)  exists(${_dir}/kern/)
SYSDIR= ${_dir}
.endif
.endfor
.if !defined(SYSDIR) || !exists(${SYSDIR}/kern/)
.error can't find kernel source tree
.endif
i removed the last / from /kern/ and now it seems it can find the 
directory.
i don't know if this is a general problem, or it is just in the case of 
my system.

Claudiu Dragalina-Paraipan.
[EMAIL PROTECTED]


smime.p7s
Description: S/MIME Cryptographic Signature


Re: can't find kernel source tree error when building the kernel.

2003-10-03 Thread Max Laier
Hello Clau,

C i removed the last / from /kern/ and now it seems it can find the
C directory.
C i don't know if this is a general problem, or it is just in the case of
C my system.

Same here. Setting SYSDIR helped for now. But the last commit message to
kmod.mk:
Revert rev. 1.86, I've fixed make(1) (make/dir.c,v 1.32).
Hints that rebuilding make would be an alternative fix.

-- 
Best regards,
 Maxmailto:[EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: can't find kernel source tree error when building the kernel.

2003-10-03 Thread Jacques A. Vidrine
On Fri, Oct 03, 2003 at 07:57:51PM +0300, Clau wrote:
 hello,
 
 i just downloaded via cvsup the latest kernel for freebsd 5.1.
 i had a problem with it, more exactly when i did a make depend
 it stopped at some place, and gave me this error:
 can't find kernel source tree
 i fixed this by modifying this piece of code from /usr/src/sys/conf/kmod.mk
 (it starts with line 167 in the file)
 
 .for _dir in ${.CURDIR}/../.. ${.CURDIR}/../../.. /sys /usr/src/sys
 .if !defined(SYSDIR)  exists(${_dir}/kern/)
 SYSDIR= ${_dir}
 .endif
 .endfor
 .if !defined(SYSDIR) || !exists(${SYSDIR}/kern/)
 .error can't find kernel source tree
 .endif
 
 i removed the last / from /kern/ and now it seems it can find the 
 directory.
 i don't know if this is a general problem, or it is just in the case of 
 my system.

How are you building the kernel?   Are you using `make buildworld' first
and then `make buildkernel' (or `make kernel')?

Cheers,
-- 
Jacques Vidrine   . NTT/Verio SME  . FreeBSD UNIX   . Heimdal
[EMAIL PROTECTED] . [EMAIL PROTECTED] . [EMAIL PROTECTED] . [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: can't find kernel source tree error when building the kernel.

2003-10-03 Thread Clau


Jacques A. Vidrine wrote:

On Fri, Oct 03, 2003 at 07:57:51PM +0300, Clau wrote:
 

hello,

i just downloaded via cvsup the latest kernel for freebsd 5.1.
i had a problem with it, more exactly when i did a make depend
it stopped at some place, and gave me this error:
can't find kernel source tree
i fixed this by modifying this piece of code from /usr/src/sys/conf/kmod.mk
(it starts with line 167 in the file)
.for _dir in ${.CURDIR}/../.. ${.CURDIR}/../../.. /sys /usr/src/sys
.if !defined(SYSDIR)  exists(${_dir}/kern/)
SYSDIR= ${_dir}
.endif
.endfor
.if !defined(SYSDIR) || !exists(${SYSDIR}/kern/)
.error can't find kernel source tree
.endif
i removed the last / from /kern/ and now it seems it can find the 
directory.
i don't know if this is a general problem, or it is just in the case of 
my system.
   

How are you building the kernel?   Are you using `make buildworld' first
and then `make buildkernel' (or `make kernel')?
Cheers,
 

cd /sys/i386/conf
/usr/sbin/config MYCONFIG
cd ../compile/MYCONFIG
make depend
make
make install
this is the entire process i do.

With respect,
  Claudiu Dragalina-Paraipan.
[EMAIL PROTECTED]


smime.p7s
Description: S/MIME Cryptographic Signature