DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD General

NetBSD General Other questions regarding NetBSD which do not fit in any of the categories below.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 1st December 2015
philo_neo71 philo_neo71 is offline
Spam Deminer
 
Join Date: Jul 2009
Posts: 278
Default build a kernel

Hi,
i've read many website about compile a kernel, this is that i anderstand.


Code:
# fetch source:
cd /usr; cvs -z3 -d anoncvs@anoncvs.se.netbsd.org:/cvsroot co -P src
# everything goes into this directory
mkdir /usr/obj
# build tools (to build everything else), custom kernel, binary sets
cd /usr/src; ./build.sh -O /usr/obj -U -j 8 tools kernel=H4KK1T modules distribution sets
# install kernel:
cd /usr/obj/sys/compile/arch/*/compile/H4KK1T; su root -c 'make install'
# test kernel:
su root -c 'shutdown -r now'
# update userland:
cd /usr/src; ./build.sh -O /usr/obj install=/
# follow printed instructions about "postinstall"

# build CD image (omit "tools" if built already):
cd /usr/src; ./build.sh -O /usr/obj -U -j 8 tools release iso-image
When i hit this step >> cd /usr/src; ./build.sh -O /usr/obj -U -j 8 tools kernel=H4KK1T modules distribution sets <<
have got issues :

Quote:
^
In file included from /usr/src/sys/fs/msdosfs/msdosfs_lookup.c:69:0:
/usr/src/tools/makefs/../../usr.sbin/makefs/ffs/buf.h:78:6: note: expected 'int' but argument is of type 'void *'
int bread(struct vnode *, daddr_t, int, int, struct buf **);
^
/usr/src/sys/fs/msdosfs/msdosfs_lookup.c:1149:7: error: too many arguments to function 'bread'
0, &bp)) {
^
In file included from /usr/src/sys/fs/msdosfs/msdosfs_lookup.c:69:0:
/usr/src/tools/makefs/../../usr.sbin/makefs/ffs/buf.h:78:6: note: declared here
int bread(struct vnode *, daddr_t, int, int, struct buf **);
^
*** [msdosfs_lookup.lo] Error code 1
nbmake[3]: stopped in /usr/src/tools/makefs
--- msdosfs_denode.lo ---
mv msdosfs_denode.lo.o msdosfs_denode.lo
--- v7fs_populate.lo ---
mv v7fs_populate.lo.o v7fs_populate.lo
--- msdosfs_conv.lo ---
mv msdosfs_conv.lo.o msdosfs_conv.lo
--- mkfs_msdos.lo ---
mv mkfs_msdos.lo.o mkfs_msdos.lo
2 errors
nbmake[3]: stopped in /usr/src/tools/makefs
*** [dependall] Error code 2
nbmake[2]: stopped in /usr/src/tools/makefs
1 error
nbmake[2]: stopped in /usr/src/tools/makefs

*** Failed target: dependall-makefs
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/usr/src/tools" ;; *) this="${dir}/"; real="/usr/src/tools/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /usr/obj/tooldir.NetBSD-7.0_RC3-amd64/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget makefs dependall
*** Error code 2
Stop.
nbmake[1]: stopped in /usr/src/tools
*** [build_install] Error code 1

nbmake: stopped in /usr/src/tools
1 error

nbmake: stopped in /usr/src/tools

ERROR: Failed to make build_install in "tools"
*** BUILD ABORTED ***
dct-pegasus#
Some one can help me !

Regards
Philippe

PS : i forgot the URL of NetBSD Users !
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Build kernel & userland as root? hanzer OpenBSD Installation and Upgrading 5 24th July 2015 06:52 PM
Guide to build a modular kernel. tolstoi NetBSD Installation and Upgrading 0 4th February 2013 07:10 AM
commands to build a kernel desreguard FreeBSD General 2 4th June 2011 05:20 PM
Problem during kernel-build for a 6.x-to-7 upgrade clevershark FreeBSD Installation and Upgrading 2 1st February 2009 10:45 PM
Unable to build custom kernel [Wrong configuration?] jrick FreeBSD General 3 31st July 2008 01:53 PM


All times are GMT. The time now is 08:14 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick