kernel build 4.stable fails: bsd.init.mk, bsd.links.mk

kernel build 4.stable fails: bsd.init.mk, bsd.links.mk

Post by Mike Andre » Mon, 12 Aug 2002 05:44:58



D/L-ed the 4 ISO images last weekend, installed last night,
made a kernel OK the old-fashioned way: config, cd, make,
make install, reboot.

CVSup this morning (4_stable), make buildworld went OK.
Make kernel the old-fashioned way fails:

==> ===> accf_data
==> "/usr/src/sys/modules/accf_data/../../conf/kmod.mk", line 63: Could not find bsd.init.mk
==> "/usr/src/sys/modules/accf_data/../../conf/kmod.mk", line 190: Could not find bsd.links.mk
==> make: fatal errors encountered -- cannot continue
==> *** Error code 1

I see this question asked in groups.google.com, but don't see a
good answer. One respondent says he had to go back to
"*default release=cvs tag=RELENG_4 date=2002.07.16.00.00.00",
which seems a long way back -- almost a month.

What am I missing in all this, other than bsd.init.mk and
bsd.links.mk, and how do I fix it?

Supfile for the make kernel that failed:

==> *default host=cvsup1.freebsd.org
==> *default base=/usr
==> *default prefix=/usr
==> *default release=cvs tag=RELENG_4 date=2002.07.16.00.00.00
==> *default delete use-rel-suffix
==> *default compress
==>
==>
==> src-all
==> ports-all tag=.

Thanks.

--
Mike Andrews

Tired old sysadmin since 1964

 
 
 

kernel build 4.stable fails: bsd.init.mk, bsd.links.mk

Post by Francois Zellinge » Mon, 12 Aug 2002 07:32:56


On Sat, 10 Aug 2002 at 20:44 GMT,

Quote:> D/L-ed the 4 ISO images last weekend, installed last night,
> made a kernel OK the old-fashioned way: config, cd, make,
> make install, reboot.

> CVSup this morning (4_stable), make buildworld went OK.
> Make kernel the old-fashioned way fails:

>==> ===> accf_data
>==> "/usr/src/sys/modules/accf_data/../../conf/kmod.mk", line 63: Could not find bsd.init.mk
>==> "/usr/src/sys/modules/accf_data/../../conf/kmod.mk", line 190: Could not find bsd.links.mk
>==> make: fatal errors encountered -- cannot continue
>==> *** Error code 1

so you cvsuped then just

cd /usr/src/share/mk/
make install

the it should work.

 
 
 

kernel build 4.stable fails: bsd.init.mk, bsd.links.mk

Post by Mike Andre » Mon, 12 Aug 2002 09:09:57


: On Sat, 10 Aug 2002 at 20:44 GMT,

:> D/L-ed the 4 ISO images last weekend, installed last night,
:> made a kernel OK the old-fashioned way: config, cd, make,
:> make install, reboot.
:>
:> CVSup this morning (4_stable), make buildworld went OK.
:> Make kernel the old-fashioned way fails:
:>
:>==> ===> accf_data
:>==> "/usr/src/sys/modules/accf_data/../../conf/kmod.mk", line 63: Could not find bsd.init.mk
:>==> "/usr/src/sys/modules/accf_data/../../conf/kmod.mk", line 190: Could not find bsd.links.mk
:>==> make: fatal errors encountered -- cannot continue
:>==> *** Error code 1
:>

: so you cvsuped then just

: cd /usr/src/share/mk/
: make install

: the it should work.

Except that it didn't install bsd.init.make or bsd.links.mk.

Any other ideas? This is ... well, _not_ very nice and it's on
a system that is *-from-CD + cvsup. It really should just
_work_. THat's what I'm used to, and this is an unpleasant result.

--
The problem with sendmail is not that it has too few features.
                -- Alan J Rosenthal, in alt.sysadmin.recovery

 
 
 

kernel build 4.stable fails: bsd.init.mk, bsd.links.mk

Post by Will Yardle » Mon, 12 Aug 2002 09:34:18




> D/L-ed the 4 ISO images last weekend, installed last night,
> made a kernel OK the old-fashioned way: config, cd, make,
> make install, reboot.

> CVSup this morning (4_stable), make buildworld went OK.
> Make kernel the old-fashioned way fails:

did you try:
make buildkernel
or
make buildkernel KERNCONF=BLAH

Why do it the "old-fashioned" way?

--
No copies, please.
To reply privately, simply reply; don't remove anything.

 
 
 

kernel build 4.stable fails: bsd.init.mk, bsd.links.mk

Post by Mike Andre » Mon, 12 Aug 2002 11:22:34



:> D/L-ed the 4 ISO images last weekend, installed last night,
:> made a kernel OK the old-fashioned way: config, cd, make,
:> make install, reboot.
:>
:> CVSup this morning (4_stable), make buildworld went OK.
:> Make kernel the old-fashioned way fails:

: did you try:
: make buildkernel
: or
: make buildkernel KERNCONF=BLAH

: Why do it the "old-fashioned" way?

Because I can't get "make buildkernel KERNELCONF=FW13" work; it
keeps building GENERIC, even though FW13 is in
/usr/src/sys/i386/conf/, just as it ought to be.

I'm not at all certain what I'm not doing right.

Oh, BTW, GENERIC compiles just fine. I'd really like to try
FW13 just to see if it's something in the FW13 config file.
But FW13 compiled before the cvsup ... .

--
  Prediction is difficult, especially of the future. - (Niels Bohr)

 
 
 

kernel build 4.stable fails: bsd.init.mk, bsd.links.mk

Post by Will Yardle » Mon, 12 Aug 2002 11:37:52





>> did you try:
>> make buildkernel
>> or
>> make buildkernel KERNCONF=BLAH
> Because I can't get "make buildkernel KERNELCONF=FW13" work; it
> keeps building GENERIC, even though FW13 is in
> /usr/src/sys/i386/conf/, just as it ought to be.

> I'm not at all certain what I'm not doing right.

Not to be rude, but are you actually using 'KERNELCONF' instead of
'KERNCONF'?

That would result in the behavior you describe.

--
No copies, please.
To reply privately, simply reply; don't remove anything.

 
 
 

kernel build 4.stable fails: bsd.init.mk, bsd.links.mk

Post by Mike Andre » Mon, 12 Aug 2002 12:51:26





:>> did you try:
:>> make buildkernel
:>> or
:>> make buildkernel KERNCONF=BLAH

:> Because I can't get "make buildkernel KERNELCONF=FW13" work; it
:> keeps building GENERIC, even though FW13 is in
:> /usr/src/sys/i386/conf/, just as it ought to be.
:>
:> I'm not at all certain what I'm not doing right.

: Not to be rude, but are you actually using 'KERNELCONF' instead of
: 'KERNCONF'?

: That would result in the behavior you describe.

Command:

Quote:> make buildkernel KERNELCONF=FW13

run from this directory:

Quote:> mikea# pwd
> /usr/src

with this directory

Quote:> mikea# pwd
> /usr/src/sys/i386/conf

containing these files:

Quote:> mikea# ls /usr/src/sys/i386/conf
> FW12    FW13    GENERIC LINT

produces output which ends with:

Quote:> --------------------------------------------------------------
> >>> Kernel build for GENERIC completed on Sat Aug 10 22:45:14 CDT 2002
> --------------------------------------------------------------

I can't explain it. I merely observe. I'd _love_ to understand.

--
Mike Andrews

Tired old sysadmin since 1964

 
 
 

kernel build 4.stable fails: bsd.init.mk, bsd.links.mk

Post by Will Yardle » Mon, 12 Aug 2002 12:57:51





>> Not to be rude, but are you actually using 'KERNELCONF' instead of
>> 'KERNCONF'?

>> That would result in the behavior you describe.

> Command:

>> make buildkernel KERNELCONF=FW13

read again....

Not to be rude, but are you actually using KERNELCONF instead of
KERNCONF.

thus, this:

Quote:> make buildkernel KERNELCONF=FW13

should be:

Quote:> make buildkernel KERNCONF=FW13

--
No copies, please.
To reply privately, simply reply; don't remove anything.
 
 
 

kernel build 4.stable fails: bsd.init.mk, bsd.links.mk

Post by Steve O'Hara-Smit » Mon, 12 Aug 2002 17:16:57


On Sun, 11 Aug 2002 02:22:34 GMT

MA> Because I can't get "make buildkernel KERNELCONF=FW13" work; it

        That should be KERNCONF, KERNELCONF will not work.

--
C:>WIN                                      |     Directable Mirrors
The computer obeys and wins.                |A Better Way To Focus The Sun
You lose and Bill collects.                 |  licenses available - see:
                                            |   http://www.sohara.org/

 
 
 

kernel build 4.stable fails: bsd.init.mk, bsd.links.mk

Post by Francois Zellinge » Mon, 12 Aug 2002 18:50:30


On Sun, 11 Aug 2002 at 00:09 GMT,

Quote:>:> D/L-ed the 4 ISO images last weekend, installed last night,
>:> made a kernel OK the old-fashioned way: config, cd, make,
>:> make install, reboot.
>:>
>:> CVSup this morning (4_stable), make buildworld went OK.
>:> Make kernel the old-fashioned way fails:
>:>
>:>==> ===> accf_data
>:>==> "/usr/src/sys/modules/accf_data/../../conf/kmod.mk", line 63: Could not find bsd.init.mk
>:>==> "/usr/src/sys/modules/accf_data/../../conf/kmod.mk", line 190: Could not find bsd.links.mk
>:>==> make: fatal errors encountered -- cannot continue
>:>==> *** Error code 1
>:>

>: so you cvsuped then just

>: cd /usr/src/share/mk/
>: make install

>: the it should work.

> Except that it didn't install bsd.init.make or bsd.links.mk.

cvsup installed it; just go and check

- Show quoted text -

Quote:> Any other ideas? This is ... well, _not_ very nice and it's on
> a system that is *-from-CD + cvsup. It really should just
> _work_. THat's what I'm used to, and this is an unpleasant result.

 
 
 

kernel build 4.stable fails: bsd.init.mk, bsd.links.mk

Post by Mike Andre » Tue, 13 Aug 2002 10:20:48




:>> Not to be rude, but are you actually using 'KERNELCONF' instead of
:>> 'KERNCONF'?
:>
:>> That would result in the behavior you describe.
:>
:> Command:
:>
:>> make buildkernel KERNELCONF=FW13

: read again....

: Not to be rude, but are you actually using KERNELCONF instead of
: KERNCONF.

: thus, this:
:> make buildkernel KERNELCONF=FW13

: should be:
:> make buildkernel KERNCONF=FW13

JUst so.

Once I got my feet all the way up on my shoulders, and then
pushed, I saw the light. The new-style build and install work
just fine.

The _old_-style, OTOH ... .

--
"If God had intended us to vote, he'd have given us candidates."

 
 
 

1. Kernel Error 1: accf_data kmod.mk bsd.init.mk

Hi,
 Just updated 4 machines to 4.7 ; but the fifth fails when I do a "make
depend" for the kernel. No Conf settings seem to prevent it and I've found
several people have discussed this percise problem in the pass but only on
private forums; can anyone let me know what the below problem is due to, or
how to fix it?
 Thanx for any assist.
:)

cd ../../modules ; env MAKEOBJDIRPREFIX=/usr/src/sys/compile/ANDRE/modules
MACHINE=i386 make obj ;  env
MAKEOBJDIRPREFIX=/usr/src/sys/compile/ANDRE/modules MACHINE=i386 make
depend
===> accf_data
"/usr/src/sys/modules/accf_data/../../conf/kmod.mk", line 63: Could not find
bsd.init.mk
"/usr/src/sys/modules/accf_data/../../conf/kmod.mk", line 190: Could not
find bsd.links.mk
make: fatal errors encountered -- cannot continue
*** Error code 1

2. plz help networking woes

3. Proposal for bsd.port.mk -- [really about bsd.java.mk which then gets included]

4. AT&T Unx

5. Request for changing bsd.port.mk and adding bsd.java.mk (+ruby)

6. Support for APOP

7. Request for changing bsd.port.mk and adding bsd.java.mk

8. "Verbose SCSI Error Reporting" in Kernel

9. Fwd: cvs commit: ports/Mk bsd.java.mk

10. /usr/ports/Mk/bsd.port.mk ?

11. make install linux_base-6.1get system is too old to use this bsd.port.mk

12. Ports error in bsd.port.mk

13. ld & PIC & bsd.lib.mk question