Date: Fri, 4 Sep 2020 20:49:34 +0200 From: Mateusz Guzik <mjguzik@gmail.com> To: "O. Hartmann" <o.hartmann@walstatt.org> Cc: "Hartmann, O." <ohartmann@walstatt.org>, FreeBSD CURRENT <freebsd-current@freebsd.org>, mmacy@freebsd.org, freqlabs@freebsd.org, markj@freebsd.org Subject: Re: installkernel: install: /usr/lib/debug/boot/kernel/: No such file or directory *** Error code 71 Message-ID: <CAGudoHGeOuh%2BXJpYCaBXHg33qTSU_59iytubdy2edfz%2B44gPyw@mail.gmail.com> In-Reply-To: <20200904132607.11a7917c@freyja> References: <20200828120706.7b2c3396@hermann.fritz.box> <CAGudoHHn9Z0=SJDXQKkb5rZtR4=TSQTJEddeFJR3KGR=aPiXAw@mail.gmail.com> <20200828130539.18ba7437@hermann.fritz.box> <CAGudoHH22RfFOfE7Ddow4LdbEysvc-sQRVeHWcOq%2B5hkK_ONng@mail.gmail.com> <20200830131657.4803768b@hermann.fritz.box> <CAGudoHEPRO8q=yKZEmQxd7yarwXawyiiyoorvZAjmsH6D3gviQ@mail.gmail.com> <20200904132607.11a7917c@freyja>
next in thread | previous in thread | raw e-mail | index | archive | help
On 9/4/20, O. Hartmann <o.hartmann@walstatt.org> wrote: > On Tue, 1 Sep 2020 19:21:36 +0200 > Mateusz Guzik <mjguzik@gmail.com> wrote: > >> It's not my bug but i'll make sure it is taken care of. > > Oh, I'm sorry. But I grasp for every help I can get ... > > The problem is that I do not know whether the process "make installkernel" > does > silently proceed and drop the error message and everything is fine or the > fact > that zfs.ko is the very last kernel module in the alphabetical order makes > it > by accident work. So, rebooting with an inconsistent /boot/kernel folder > has > revealed itself as a very unpleasant situation in the past. > markj got to this before I could. Can you please test the patch? Index: sys/modules/zfs/Makefile =================================================================== --- sys/modules/zfs/Makefile (revision 365318) +++ sys/modules/zfs/Makefile (working copy) @@ -44,8 +44,6 @@ CFLAGS+= -DDEBUG_VFS_LOCKS CFLAGS+= -fprofile-arcs -ftest-coverage .endif -DEBUG_FLAGS=-g - .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "powerpc" || \ ${MACHINE_ARCH} == "powerpcspe" || ${MACHINE_ARCH} == "arm" CFLAGS+= -DBITS_PER_LONG=32 > >> >> On 8/30/20, Hartmann, O. <o.hartmann@walstatt.org> wrote: >> > On Fri, 28 Aug 2020 13:16:05 +0200 >> > Mateusz Guzik <mjguzik@gmail.com> wrote: >> > >> >> On 8/28/20, Hartmann, O. <ohartmann@walstatt.org> wrote: >> >> > On Fri, 28 Aug 2020 12:31:21 +0200 >> >> > Mateusz Guzik <mjguzik@gmail.com> wrote: >> >> > >> >> >> Can you show more of the log? >> >> >> >> >> >> When you installkernel you should see: >> >> >> mkdir -p /boot/kernel >> >> >> install -p -m 555 -o root -g wheel kernel /boot/kernel/ >> >> > >> >> > These lines are seen right after the beginning of "make >> >> > installkernel". >> >> >> mkdir -p /usr/lib/debug/boot/kernel >> >> >> install -p -m 555 -o root -g wheel kernel.debug >> >> >> /usr/lib/debug/boot/kernel/ >> >> > >> >> > I wouldn't expect these lines according to my /etc/src.conf, since I >> >> > disbaled debugging and installing debugging infos. >> >> >> >> >> >> Did these succeed? Do these dirs exist now? >> >> > >> >> > It is not existent, as expected: >> >> > >> >> > >> >> > # ll /usr/lib/debug/boot/kernel/ >> >> > ls: /usr/lib/debug/boot/kernel/: No such file or directory >> >> > >> >> >> >> Ok. I recently made changes to the namecache, which if buggy, could >> >> have resulted in woes like the above. >> >> >> >> Thus it looks like the newly imported zfs does not respect >> >> WITHOUT_DEBUG_FILES. >> > >> > Even in r364973 the problem still remains. >> > Disabling option WITHOUT_DEBUG_FILES in src.conf is exhausting the >> > /usr/obj partition (using UFS/FFS) and no option. >> > >> > Got now several boxes having "make installkernel" issued with a running >> > system but incomplete kernel installation, as buildkernel suggested a >> > clean build. Can this be fixed, please? >> > >> > >> >> >> >> >> >> >> >> On 8/28/20, Hartmann, O. <ohartmann@walstatt.org> wrote: >> >> >> > On CURRENT (FreeBSD 13.0-CURRENT #185 r364767: Tue Aug 25 >> >> >> > 16:10:50 CEST 2020 amd64), /usr/src at revision 364907, >> >> >> > installkernel fails now due to an error as shown below. For the >> >> >> > record, "options ZFS" ist statically in the kernel config file. >> >> >> > >> >> >> > Also deleting /usr/obj and restarting buildworld and buildkernel >> >> >> > from scratch doesn't solve the problem. The buildworld and >> >> >> > buildkernel mutually finish without error (I do not see any on >> >> >> > the console), installworld also finishes fine, but installkernel >> >> >> > not. >> >> >> > >> >> >> > /etc/src.conf looks as follows: >> >> >> > >> >> >> > [...] >> >> >> > CPUTYPE?= native >> >> >> > # World >> >> >> > CFLAGS+= -O3 >> >> >> > #CFLAGS+= -DNDEBUG >> >> >> > # Kernel >> >> >> > COPTFLAGS+= -O3 >> >> >> > #COPTFLAGS+= -DNDEBUG >> >> >> > #CXXFLAGS+= -std=c++17 >> >> >> > WITH_CLANG_EXTRAS= YES >> >> >> > WITH_LLDB= YES >> >> >> > #WITH_BSD_GREP= YES >> >> >> > WITH_OFED_EXTRA= YES >> >> >> > WITH_NAND= YES >> >> >> > #WITH_CTF= YES >> >> >> > WITH_SVN= YES >> >> >> > WITH_BEARSSL= YES >> >> >> > WITH_PIE= YES >> >> >> > WITH_SORT_THREADS= YES >> >> >> > WITH_ZONEINFO_LEAPSECONDS_SUPPORT= YES >> >> >> > MALLOC_PRODUCTION= YES >> >> >> > WITHOUT_ASSERT_DEBUG= YES >> >> >> > WITHOUT_TESTS= YES >> >> >> > WITHOUT_PROFILE= YES >> >> >> > WITHOUT_DEBUG_FILES= YES >> >> >> > WITHOUT_REPRODUCIBLE_BUILD= YES >> >> >> > >> >> >> > [...] >> >> >> > >> >> >> > Debugging facilities are disabled as src.conf indicates. >> >> >> > >> >> >> > [...] >> >> >> > install -T release -o root -g wheel -m 555 xz.ko >> >> >> > /boot/kernel/ ===> zfs (install) >> >> >> > install -T release -o root -g wheel -m 555 zfs.ko /boot/kernel/ >> >> >> > install -T dbg -o root -g wheel -m 555 zfs.ko.debug >> >> >> > /usr/lib/debug/boot/kernel/ >> >> >> > install: /usr/lib/debug/boot/kernel/: No such file or directory >> >> >> > *** Error code 71 >> >> >> > >> >> >> > Stop. >> >> >> > make[4]: stopped in /usr/src/sys/modules/zfs >> >> >> > *** Error code 1 >> >> >> > *** Error code 1 >> >> >> > >> >> >> >> >> >> >> >> > >> >> > >> >> >> >> >> > >> > >> >> > > -- Mateusz Guzik <mjguzik gmail.com>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGudoHGeOuh%2BXJpYCaBXHg33qTSU_59iytubdy2edfz%2B44gPyw>