openzfs related kernel install fails (r365296)

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

openzfs related kernel install fails (r365296)

Ruslan Makhmatkhanov-2
Hello,

tried to make world and kernel from r365296. Kernel fails at install
stage in zfs module:

===> 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 /mnt/hdd/src/sys/modules/zfs
*** Error code 1
*** Error code 1

Stop.
make[2]: stopped in /mnt/hdd/obj/mnt/hdd/src/amd64.amd64/sys/Z1
*** Error code 1

Stop.
make[1]: stopped in /mnt/hdd/src


It seems `nomakeoptions   DEBUG' in my kernel configuration is culprit.
Worked fine before. Is there options to fix that besides enabling DEBUG?

--
Regards,
Ruslan

T.O.S. Of Reality
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: openzfs related kernel install fails (r365296)

Mark Johnston-2
On Fri, Sep 04, 2020 at 09:27:54PM +0300, Ruslan Makhmatkhanov wrote:

> Hello,
>
> tried to make world and kernel from r365296. Kernel fails at install
> stage in zfs module:
>
> ===> 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 /mnt/hdd/src/sys/modules/zfs
> *** Error code 1
> *** Error code 1
>
> Stop.
> make[2]: stopped in /mnt/hdd/obj/mnt/hdd/src/amd64.amd64/sys/Z1
> *** Error code 1
>
> Stop.
> make[1]: stopped in /mnt/hdd/src
>
>
> It seems `nomakeoptions   DEBUG' in my kernel configuration is culprit.
> Worked fine before. Is there options to fix that besides enabling DEBUG?

The zfs.ko Makefile unconditionally enables creation of a debug file.
Could you verify that the problem is gone with this 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
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: openzfs related kernel install fails (r365296)

Ruslan Makhmatkhanov-2
Mark Johnston wrote on 9/4/20 9:34 PM:

> On Fri, Sep 04, 2020 at 09:27:54PM +0300, Ruslan Makhmatkhanov wrote:
>> Hello,
>>
>> tried to make world and kernel from r365296. Kernel fails at install
>> stage in zfs module:
>>
>> ===> 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 /mnt/hdd/src/sys/modules/zfs
>> *** Error code 1
>> *** Error code 1
>>
>> Stop.
>> make[2]: stopped in /mnt/hdd/obj/mnt/hdd/src/amd64.amd64/sys/Z1
>> *** Error code 1
>>
>> Stop.
>> make[1]: stopped in /mnt/hdd/src
>>
>>
>> It seems `nomakeoptions   DEBUG' in my kernel configuration is culprit.
>> Worked fine before. Is there options to fix that besides enabling DEBUG?
>
> The zfs.ko Makefile unconditionally enables creation of a debug file.
> Could you verify that the problem is gone with this patch?


This patch indeed fixes the install. Thank you!


>
> 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
>


--
Regards,
Ruslan

T.O.S. Of Reality
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: openzfs related kernel install fails (r365296)

Mark Johnston-2
On Fri, Sep 04, 2020 at 09:41:56PM +0300, Ruslan Makhmatkhanov wrote:

> Mark Johnston wrote on 9/4/20 9:34 PM:
> > On Fri, Sep 04, 2020 at 09:27:54PM +0300, Ruslan Makhmatkhanov wrote:
> >> Hello,
> >>
> >> tried to make world and kernel from r365296. Kernel fails at install
> >> stage in zfs module:
> >>
> >> ===> 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 /mnt/hdd/src/sys/modules/zfs
> >> *** Error code 1
> >> *** Error code 1
> >>
> >> Stop.
> >> make[2]: stopped in /mnt/hdd/obj/mnt/hdd/src/amd64.amd64/sys/Z1
> >> *** Error code 1
> >>
> >> Stop.
> >> make[1]: stopped in /mnt/hdd/src
> >>
> >>
> >> It seems `nomakeoptions   DEBUG' in my kernel configuration is culprit.
> >> Worked fine before. Is there options to fix that besides enabling DEBUG?
> >
> > The zfs.ko Makefile unconditionally enables creation of a debug file.
> > Could you verify that the problem is gone with this patch?
>
>
> This patch indeed fixes the install. Thank you!

Committed in r365336, thanks.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: openzfs related kernel install fails (r365296)

Ruslan Makhmatkhanov-2
Mark Johnston wrote on 9/4/20 9:55 PM:

[...]

>>>
>>> The zfs.ko Makefile unconditionally enables creation of a debug file.
>>> Could you verify that the problem is gone with this patch?
>>
>>
>> This patch indeed fixes the install. Thank you!
>
> Committed in r365336, thanks.
>

Sadly it later fails at boot. Booting older kernel (r359781) fixes the
issue. I read all the zfs related threads on freebsd-current for August
and September, but still not found the solution. Failing kernel and
world are at r365296.

Sep  5 22:51:54 cf kernel:
Sep  5 22:51:54 cf kernel: Loader variables:
Sep  5 22:51:54 cf kernel:   vfs.root.mountfrom=zfs:z/ROOT/default
Sep  5 22:51:54 cf kernel:
Sep  5 22:51:54 cf kernel: Manual root filesystem specification:
Sep  5 22:51:54 cf kernel:   <fstype>:<device> [options]
Sep  5 22:51:54 cf kernel:       Mount <device> using filesystem <fstype>
Sep  5 22:51:54 cf kernel:       and with the specified (optional)
option list.
Sep  5 22:51:54 cf kernel:
Sep  5 22:51:54 cf kernel:     eg. ufs:/dev/da0s1a
Sep  5 22:51:54 cf kernel:         zfs:zroot/ROOT/default
Sep  5 22:51:54 cf kernel:         cd9660:/dev/cd0 ro
Sep  5 22:51:54 cf kernel:           (which is equivalent to: mount -t
cd9660 -o ro /dev/cd0 /)
Sep  5 22:51:54 cf kernel:
Sep  5 22:51:54 cf kernel:   ?               List valid disk boot devices
Sep  5 22:51:54 cf kernel:   .               Yield 1 second (for
background tasks)
Sep  5 22:51:54 cf kernel:   <empty line>    Abort manual input
Sep  5 22:51:54 cf kernel:
Sep  5 22:51:54 cf kernel: mountroot> panic: mountroot: unable to
(re-)mount root.
Sep  5 22:51:54 cf kernel: cpuid = 2
Sep  5 22:51:54 cf kernel: time = 16
Sep  5 22:51:54 cf kernel: KDB: stack backtrace:
Sep  5 22:51:54 cf kernel: #0 0xffffffff80bb1475 at kdb_backtrace+0x65
Sep  5 22:51:54 cf kernel: #1 0xffffffff80b6a6e2 at vpanic+0x182
Sep  5 22:51:54 cf kernel: #2 0xffffffff80b6a553 at panic+0x43
Sep  5 22:51:54 cf kernel: #3 0xffffffff80c2991f at vfs_mountroot+0x198f
Sep  5 22:51:54 cf kernel: #4 0xffffffff80b0970f at start_init+0x1f
Sep  5 22:51:54 cf kernel: #5 0xffffffff80b2f7e2 at fork_exit+0x72
Sep  5 22:51:54 cf kernel: #6 0xffffffff80f09c1e at fork_trampoline+0xe
Sep  5 22:51:54 cf kernel: Uptime: 16s
Sep  5 22:51:54 cf kernel: ---<<BOOT>>---

--
--
Regards,
Ruslan

T.O.S. Of Reality
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: openzfs related kernel install fails (r365296)

Ryan Moeller-2

On 9/5/20 4:23 PM, Ruslan Makhmatkhanov wrote:

> Mark Johnston wrote on 9/4/20 9:55 PM:
>
> [...]
>
>>>>
>>>> The zfs.ko Makefile unconditionally enables creation of a debug file.
>>>> Could you verify that the problem is gone with this patch?
>>>
>>>
>>> This patch indeed fixes the install. Thank you!
>>
>> Committed in r365336, thanks.
>>
>
> Sadly it later fails at boot. Booting older kernel (r359781) fixes the
> issue. I read all the zfs related threads on freebsd-current for
> August and September, but still not found the solution. Failing kernel
> and world are at r365296.
>
> Sep  5 22:51:54 cf kernel:
> Sep  5 22:51:54 cf kernel: Loader variables:
> Sep  5 22:51:54 cf kernel:   vfs.root.mountfrom=zfs:z/ROOT/default
>

vfs.root.mountfrom=zfs:z/ROOT/default looks wrong, I wonder how that
happened?


>
> Sep  5 22:51:54 cf kernel:
> Sep  5 22:51:54 cf kernel: Manual root filesystem specification:
> Sep  5 22:51:54 cf kernel:   <fstype>:<device> [options]
> Sep  5 22:51:54 cf kernel:       Mount <device> using filesystem <fstype>
> Sep  5 22:51:54 cf kernel:       and with the specified (optional)
> option list.
> Sep  5 22:51:54 cf kernel:
> Sep  5 22:51:54 cf kernel:     eg. ufs:/dev/da0s1a
> Sep  5 22:51:54 cf kernel:         zfs:zroot/ROOT/default
> Sep  5 22:51:54 cf kernel:         cd9660:/dev/cd0 ro
> Sep  5 22:51:54 cf kernel:           (which is equivalent to: mount -t
> cd9660 -o ro /dev/cd0 /)
> Sep  5 22:51:54 cf kernel:
> Sep  5 22:51:54 cf kernel:   ?               List valid disk boot devices
> Sep  5 22:51:54 cf kernel:   .               Yield 1 second (for
> background tasks)
> Sep  5 22:51:54 cf kernel:   <empty line>    Abort manual input
> Sep  5 22:51:54 cf kernel:
> Sep  5 22:51:54 cf kernel: mountroot> panic: mountroot: unable to
> (re-)mount root.
> Sep  5 22:51:54 cf kernel: cpuid = 2
> Sep  5 22:51:54 cf kernel: time = 16
> Sep  5 22:51:54 cf kernel: KDB: stack backtrace:
> Sep  5 22:51:54 cf kernel: #0 0xffffffff80bb1475 at kdb_backtrace+0x65
> Sep  5 22:51:54 cf kernel: #1 0xffffffff80b6a6e2 at vpanic+0x182
> Sep  5 22:51:54 cf kernel: #2 0xffffffff80b6a553 at panic+0x43
> Sep  5 22:51:54 cf kernel: #3 0xffffffff80c2991f at vfs_mountroot+0x198f
> Sep  5 22:51:54 cf kernel: #4 0xffffffff80b0970f at start_init+0x1f
> Sep  5 22:51:54 cf kernel: #5 0xffffffff80b2f7e2 at fork_exit+0x72
> Sep  5 22:51:54 cf kernel: #6 0xffffffff80f09c1e at fork_trampoline+0xe
> Sep  5 22:51:54 cf kernel: Uptime: 16s
> Sep  5 22:51:54 cf kernel: ---<<BOOT>>---
>
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[hidden email]"