Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Sep 2020 21:41:56 +0300
From:      Ruslan Makhmatkhanov <rm@FreeBSD.org>
To:        Mark Johnston <markj@freebsd.org>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: openzfs related kernel install fails (r365296)
Message-ID:  <8139c15f-41b2-cf8f-d401-46783b47abfe@FreeBSD.org>
In-Reply-To: <20200904183438.GD10977@raichu>
References:  <fac61e6d-8fb0-63c5-ceed-5594b46b8cad@FreeBSD.org> <20200904183438.GD10977@raichu>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8139c15f-41b2-cf8f-d401-46783b47abfe>