From owner-freebsd-current@freebsd.org Fri Sep 4 18:41:58 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4F5443CBE96 for ; Fri, 4 Sep 2020 18:41:58 +0000 (UTC) (envelope-from rm@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Bjmjy1RHJz4Rls; Fri, 4 Sep 2020 18:41:58 +0000 (UTC) (envelope-from rm@FreeBSD.org) Received: from [127.0.0.1] (unknown [127.0.1.132]) by freefall.freebsd.org (Postfix) with ESMTP id AE87C1865E; Fri, 4 Sep 2020 18:41:57 +0000 (UTC) (envelope-from rm@FreeBSD.org) Subject: Re: openzfs related kernel install fails (r365296) To: Mark Johnston Cc: FreeBSD Current References: <20200904183438.GD10977@raichu> From: Ruslan Makhmatkhanov Message-ID: <8139c15f-41b2-cf8f-d401-46783b47abfe@FreeBSD.org> Date: Fri, 4 Sep 2020 21:41:56 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <20200904183438.GD10977@raichu> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1599244918; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=w3yxX+b0haHQSqOJF5dcUQfn/VODBrLU3PU+qdWFX0A=; b=hUyx8WfITbz1THj4jFzkdZjMkfOphyuE5OzdNpTqqOy1tClOS6MMg5wANbQHkycOPeK5+J bShVfXHAqNJESl7rsIKpqYsFsR83ZQcXIj+dgmY2YO7tu7efn+IAXcyAWgJtlbl3pVt33Q /0jIbZeKw5bdYhiygpyZ4yEpU36Y30MrtgqwZUpepaVZcGzN+AoznoX4d0VFJt0jAAHf/E p7MbF3i4WcnQ1+6dTUb5aqavpbjNWlbzsIAQKStnOfDU3dxYNTil073ouHCMBXG2usfXHc tUs+2/ER01AYsyYdbHif5wqoAC8S47QGJ+DicF6aBdkgwgypaXm94fruMrRCcg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1599244918; a=rsa-sha256; cv=none; b=IdxYDPlHGGC0p3z2YUula3koiXfYBM5qQUcHCchmWC8buskXwNCfkNl7DXcxlaqOZxBo2b 8iSlhxXs/mkVNrAufrBm+kwaZKWsEXgNjAgUyOWOREahShAb97dYPCAAtC8J7fyfM7LNqr vGtHc5ey1h0MQk0w3UpZDK82tXDQHiV08tPf66vKzXej2e7koZyFCZMRvVf+/Io38moNpI T/bO6dGrl+1ctGXfZvwwUaKUCwcsoTPFbHv4xrwpaWG7aylo2EzkyRW3VfxJeaLe4AJvw4 nuhRoDpXjX6UXqTWyzFUfBu+3j5E35UUtIyB0TEWaYnkODAuZ+MxznzOAUicew== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Sep 2020 18:41:58 -0000 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