Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Jan 2012 11:44:24 +0100
From:      Polytropon <freebsd@edvax.de>
To:        Artem Gocharenko <roysbike@gmail.com>
Cc:        freebsd-bugs@freebsd.org
Subject:   Re: Dont make Kernel
Message-ID:  <20120119114424.b616f86f.freebsd@edvax.de>
In-Reply-To: <CAL8bQ83B3t8oyN=UD9EgQia_VzdQzBMEZhB04vk1qVRZFucD=A@mail.gmail.com>
References:  <CAL8bQ83B3t8oyN=UD9EgQia_VzdQzBMEZhB04vk1qVRZFucD=A@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 19 Jan 2012 14:12:18 +0400, Artem Gocharenko wrote:
> vpn123# cd /usr/src/sys/i386/conf/
> vpn123# config GENERIC.current
> Kernel build directory is ../compile/GENERIC.current
> Don't forget to do ``make cleandepend && make depend''
> vpn123# cd ../compile/GENERIC.current/
> vpn123# make cleandepend && make depend
> rm -f .depend machine
> cd ../../../modules;
> MAKEOBJDIRPREFIX=/usr/src/sys/i386/compile/GENERIC.current/modules
> KMODDIR=/boot/kernel DEBUG_FLAGS="-g" MACHINE=i386
> KERNBUILDDIR="/usr/src/sys/i386/compile/GENERIC.current"
> SYSDIR="/usr/src/sys/i386/compile/GENERIC.current/../../.." make
>  cleandepend
> "Makefile", line 371: Malformed conditional (${MK_INET_SUPPORT} != "no" ||
> defined(ALL_MODULES))
> "Makefile", line 373: if-less endif
> make: fatal errors encountered -- cannot continue
> *** Error code 1
> 
> Stop in /usr/src/sys/i386/compile/GENERIC.current.
> vpn123#
> 
> Please , help me

Did you also try the "now normal" way of performing
the kernel compiling?

See "9.5 Building and Installing a Custom Kernel" in
the FreeBSD handbook:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-building.html

Try the basic steps:

	# cd /usr/src
	# make clean
	# make buildkernel KERNCONF=GENERIC.current

Also see the comment header of /usr/src/Makefile which
illustrates the full upgrading process (kernel and world).

The error message

	"Makefile", line 371: Malformed conditional
		(${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES))
	"Makefile", line 373: if-less endif

indicates the problem. Maybe you should, just to be sure,
make sure your sources are complete and current (e. g.
use csup to re-get them from CVS), and start building in
a clean environment.

Also make sure /usr/obj doesn't contain any old stuff.



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120119114424.b616f86f.freebsd>