Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

./mkkern fails on OpenBSD 6.1 #49

Open
SteveClement opened this issue Apr 18, 2017 · 1 comment
Open

./mkkern fails on OpenBSD 6.1 #49

SteveClement opened this issue Apr 18, 2017 · 1 comment

Comments

@SteveClement
Copy link

It seems something has changed in the kernel build directory on OpenBSD 6.1

ls -lisa /usr/src/sys/arch/i386/compile/FLASHRD
total 12
113237 4 drwxr-xr-x  2 root   wsrc  512 Apr 13 10:31 ./
 80879 4 drwxr-xr-x  9 root   wsrc  512 Apr 13 10:31 ../
113238 4 -rw-r--r--  1 root   wsrc   27 Apr 13 10:31 Makefile
113239 0 lrwxrwx---  1 build  wobj   38 Apr 13 10:31 obj@ -> /usr/obj/sys/arch/i386/compile/FLASHRD

Editting "mkkern" and adding "obj/" before "bsd" (where we copy the kernel) fixes this issue, for me. If someone could verify, please do.

root:9# ls -lisa /usr/src/sys/arch/i386/compile/FLASHRD/obj/bsd*
236818 24768 -rwxr-xr-x  1 root  wobj  12651229 Apr 18 10:07 /usr/src/sys/arch/i386/compile/FLASHRD/obj/bsd*
234845    12 -rw-r--r--  1 root  wobj      4320 Apr 13 10:32 /usr/src/sys/arch/i386/compile/FLASHRD/obj/bsd-comp.d
234842    52 -rw-r--r--  1 root  wobj     24712 Apr 13 10:32 /usr/src/sys/arch/i386/compile/FLASHRD/obj/bsd-comp.o
236817 81856 -rwxr-xr-x  1 root  wobj  41888784 Apr 18 10:07 /usr/src/sys/arch/i386/compile/FLASHRD/obj/bsd.gdb*

mkkern (ksh -x) output:

+ echo -n Compiling FLASHRD kernel
Compiling FLASHRD kernel+ cd /usr/src/sys/arch/i386/compile/FLASHRD
+ echo -n  (make depend)
 (make depend)+ c 0 make depend > /tmp/flashrd.Etkkkb/last.output 2>&1
+ grep make clean /tmp/flashrd.Etkkkb/mkkern.FLASHRD.DOOuBz
+ > /dev/null
+ echo -n  (make)
 (make)+ sysctl -n hw.ncpu
+ c 0 make -j2> /tmp/flashrd.Etkkkb/last.output 2>&1
+ c 0 cp bsd /tmp/flashrd.Etkkkb/tmpmnt/bsd
cp: bsd: No such file or directory
% cp bsd /tmp/flashrd.Etkkkb/tmpmnt/bsd failure
% ./mkkern failure
% TMPDIR: /tmp/flashrd.Etkkkb
@tdelsol
Copy link

tdelsol commented Jun 22, 2017

Thanks for this quick fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants