Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 May 2001 11:57:32 +0200 (CEST)
From:      Jimmy Olgeni <olgeni@uli.it>
To:        <freebsd-stable@freebsd.org>
Subject:   buildkernel fails on screensavers if /usr/obj empty
Message-ID:  <20010505161732.O30021-100000@olgeni.olgeni>

next in thread | raw e-mail | index | archive | help

Hi all,

Just noticed a strange thing while running "make buildkernel" on a
very late -stable.

If I start the build with and empty /usr/obj/ directory, make
buildworld, and then make buildkernel, it will stop when compiling
syscons screensavers:

    host# pwd
    /usr/src
    host# make buildkernel

    --------------------------------------------------------------
    >>> Kernel build for BSDBOX started on Sat Apr 28 21:58:45 CEST 2001
    --------------------------------------------------------------
    ===> BSDBOX
    mkdir -p /usr/obj/usr/src/sys
    cd /usr/src/sys/i386/conf;  PATH=/usr/obj/usr/src/i386/usr/sbin:/usr/obj/usr/src/i386/usr/bin:/usr/obj/usr/src/i386/usr/games:/sbin:/bin:/usr/sbin:/usr/bin  config  -d /usr/obj/usr/src/sys/BSDBOX BSDBOX

    [...snip...]

    ld -Bshareable  -o green_saver.ko setdef0.o green_saver.kld setdef1.o
    ===> syscons/logo
    make: don't know how to make /usr/src/sys/modules/syscons/logo/machine/ansi.h. Stop
    *** Error code 2

    [...snip...]

I have to run make manually in syscons:

    host# cd /usr/src/sys/modules/syscons
    host# make
    ===> blank
    Warning: Object directory not changed from original /usr/src/sys/modules/syscons/blank
    @ -> /usr/src/sys
    machine -> /usr/src/sys/i386/include

    [...snip...]

    ld -Bshareable  -o apm_saver.ko setdef0.o apm_saver.kld setdef1.o

Then I have to rerun buildkernel, and it will work:

    host# make buildkernel

    --------------------------------------------------------------
    >>> Kernel build for BSDBOX started on Sat Apr 28 22:14:07 CEST 2001
    --------------------------------------------------------------
    ===> BSDBOX
    mkdir -p /usr/obj/usr/src/sys
    cd /usr/src/sys/i386/conf;  PATH=/usr/obj/usr/src/i386/usr/sbin:/usr/obj/usr/src/i386/usr/bin:/usr/obj/usr/src/i386/usr/games:/sbin:/bin:/usr/sbin:/usr/bin  config  -d /usr/obj/usr/src/sys/BSDBOX BSDBOX
    Don't forget to do a ``make depend''

    [...snip...]

    cc -O -pipe   -D_KERNEL -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -ansi -DKLD_MODULE -nostdinc -I-  -I. -I@ -I@/../include  -mpreferred-stack-boundary=2 -c setdef1.c
    ld -Bshareable  -o if_wi.ko setdef0.o if_wi.kld setdef1.o
    --------------------------------------------------------------
    >>> Kernel build for BSDBOX completed on Sat Apr 28 22:26:27 CEST 2001
    --------------------------------------------------------------

Am I doing anything wrong?

-- 
jimmy






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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010505161732.O30021-100000>