Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Dec 2000 20:25:31 +0100
From:      Oscar I Lepe <oscar@ac.upc.es>
To:        questions@freebsd.org
Subject:   Make buildkernel fails when a new option is added
Message-ID:  <3A3D132B.E4B196AF@ac.upc.es>

next in thread | raw e-mail | index | archive | help
Hi!
following section 22 of the handbook I added some config options I
just invented to guard some ad-hoc code I inserted in some kernel files
for RELEASE-4.1.1. All the options go to opt_navi.h. The config program
accepts this options and produces the apropriate opt_navi.h file in the
compile directory. But when I run "make buildkernel" it fails at the
first kernel file that references opt_navi.h (#include "opt_navi.h")
saying
"no such file or directory".

Analyzing the output of the make buildkernel job I'd realized that the
problem is the -I statements for the mkdep command where the trouble
file is processed. These statements do not reference the directory where
the opt_*.h files are. The handbook does not mention this case. Please
help.

The output of the job is as follows,

#make buildkernel KERNEL=NAVI

--------------------------------------------------------------
>>> Rebuilding kernel(s)
--------------------------------------------------------------
===> NAVI
mkdir -p /usr/obj/usr/home/oscar/FreeBSD4/src/sys
...
...
...
===> xl
@ -> /usr/home/oscar/FreeBSD4/src/sys
machine -> /usr/home/oscar/FreeBSD4/src/sys/i386/include
touch opt_bdg.h
perl @/kern/makedevops.pl -h @/kern/device_if.m
perl @/kern/makedevops.pl -h @/kern/bus_if.m
perl @/kern/makedevops.pl -h @/pci/pci_if.m
perl @/kern/makedevops.pl -h @/dev/mii/miibus_if.m
rm -f .depend
mkdep -f .depend -a   -nostdinc -D_KERNEL -DKLD_MODULE -I- -I. -I@
-I@/../include -I/usr/obj/usr/home/oscar/FreeBSD4/src/i386/usr/include 
/usr/home/oscar/FreeBSD4/src/sys/modules/xl/../../pci/if_xl.c
/usr/home/oscar/FreeBSD4/src/sys/modules/xl/../../pci/if_xl.c:4:
opt_navi.h: No such file or directory
mkdep: compile failed
*** Error code 1

Stop in /usr/home/oscar/FreeBSD4/src/sys/modules/xl.
*** Error code 1

Stop in /usr/home/oscar/FreeBSD4/src/sys/modules.
*** Error code 1

Stop in /usr/obj/usr/home/oscar/FreeBSD4/src/sys/NAVI.
*** Error code 1

Stop in /usr/home/oscar/FreeBSD4/src.
*** Error code 1

Stop in /usr/home/oscar/FreeBSD4/src.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A3D132B.E4B196AF>