From owner-freebsd-current@freebsd.org Mon Dec 3 16:56:53 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A9ED8132CC8A for ; Mon, 3 Dec 2018 16:56:53 +0000 (UTC) (envelope-from yuripv@yuripv.net) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EA8A58A4CE; Mon, 3 Dec 2018 16:56:52 +0000 (UTC) (envelope-from yuripv@yuripv.net) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 82ED82223B; Mon, 3 Dec 2018 11:56:52 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Mon, 03 Dec 2018 11:56:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yuripv.net; h= subject:from:to:cc:references:message-id:date:mime-version :in-reply-to:content-type; s=fm3; bh=1+E3zU+9cxgzjGPVdxpauWjCSIp 2vd0Yj4RDGJu7kLc=; b=MF+bSkypAgeQqHFonbpSYJ4Mq+v8D5FcWrf49jdUhoS 2KQI4NugGa211wB1W0oczm1qsNpA2LVr0ljQixoliiGRmmXbinB1OVuzVm6zcl9N Fq/FuPlqbfvNj5QKM0W/Kp3LJrjlrLIqltLm9aEHvlIeCyyPS0suKZBjiU9ge/Kg qxCGa/H71YcZqoYNaiDOi4nglFrlj07u3hzF6EGq5TFN+sDKQEUHJAssVy2sv41h Ywq57ihCUHrBcEx+NKJkh0K9JhEkQvM+DsYNw3GziJAY3s0S4TyJJjidVzYuCzhE +o3LkfU9QGxRRYC9ZXcap3djK4w93FXJUdWNvxC2CFw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=1+E3zU +9cxgzjGPVdxpauWjCSIp2vd0Yj4RDGJu7kLc=; b=uA597M37izN/FRCyxI+Kls /2JT6wAyNRQhPyugacznXA1cZ+KEVx02Cnt4HSnJpHKNrZ4pYzig6VsXh5KKUVcB XEHI+qBaU/7c48PrgsTPjjkZK+RUotM9sJTiHkiFZsXYq6WETkdBdHd+UhETbHDy 6j6++Mj27ShWi7mmHbKoZaREp8jf6xDGtM3Wg/ujAWrFp1QuAl4e0gZfDmOKwhRt ez2sIIGvhHXTxkADlBaMXog4gD0+Tity4m3ISFhw3iu5IiWljiZ78IeablvQ9+Wa 4zB0yj5667oX5yt6CwvQb7WuHD23uCvYCznYWDqAx1pQnAHVS62fVYN9craY2P7w == X-ME-Sender: X-ME-Proxy: Received: from [192.168.1.2] (unknown [62.183.125.176]) by mail.messagingengine.com (Postfix) with ESMTPA id 670F5102E4; Mon, 3 Dec 2018 11:56:50 -0500 (EST) Subject: Re: WITH_CTF breaks CD loader: "File too big" From: Yuri Pankov To: Warner Losh , Baptiste Daroussin Cc: FreeBSD Current References: <6e53765f-52bd-f503-c1a5-ae23e402afcb@yuripv.net> <20181203072226.mpvh7an5pupjbwkb@ivaldir.net> <51d0fa8c-b453-69e0-500e-32818d29826a@yuripv.net> Openpgp: preference=signencrypt Autocrypt: addr=yuripv@yuripv.net; keydata= xsBNBFu8u6IBCADB11gP0QwnorrHjqAtKLHKHNHskhy0s7jqJKfx0YqXgVBKGLJ9/mjLAz0F CBNvemHSDDTs0mEZ9cBKKi6cmsav6+UQgr//yai6hvXLBJqKchSFO4MhmdvBtsGFq1yKz5Zi uhjmimKyIpgBgvMdbgGbGq6cnSB2uEPmZuJr419SVRODOkXukU+F5WHgaHzDdHAIu1asCt2B +6msxqIqlFWcXyZyTGicTGGvC/PF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/sSrhbIDcCACqAZMcoxUBLZa40a5b24j5i1jplvCYYb3h+Q5lt5+BFJ87kCb4dJuU D3kh2i29BrxWQWa9WNue9ozxeYkbkfXubQYXexVolRsnh64OdGsE8KvorBFBB3zdK/GRt2Jy +jsnTfUWuQllbzMP0MfhCDMk1Mo8WvDH2/cOEP/yLKf20a+cd6nLs7bidjmGXo9pyuBKAtV6 Kv+VRu54AL+A/UBYu/eB3Dtvzcnut+1Zq6KaP++kUwPwINLIk04OBDwN0zRNTiqMAFYYyz2v ZHBB6E1th/l//ZC5b9Dk0ZpFI1bYdL9ymnrZe1MqbGPnDCToQxu00T/pZCm6Z92YrZQYuNwl Message-ID: Date: Mon, 3 Dec 2018 19:56:43 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Thunderbird/60.3.2 MIME-Version: 1.0 In-Reply-To: <51d0fa8c-b453-69e0-500e-32818d29826a@yuripv.net> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="y0wML8MNfZNmZXmL4TW6WtclcHuW5NLcV" X-Rspamd-Queue-Id: EA8A58A4CE X-Spamd-Result: default: False [-9.36 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[yuripv.net,messagingengine.com]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip4:66.111.4.28]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; HAS_ATTACHMENT(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,multipart/mixed,text/plain]; DMARC_NA(0.00)[yuripv.net]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yuripv.net:+,messagingengine.com:+]; MX_GOOD(-0.01)[cached: in2-smtp.messagingengine.com]; NEURAL_HAM_SHORT(-0.99)[-0.988,0]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; IP_SCORE(-3.66)[ip: (-9.61), ipnet: 66.111.4.0/24(-4.76), asn: 11403(-3.86), country: US(-0.09)]; ASN(0.00)[asn:11403, ipnet:66.111.4.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[28.4.111.66.list.dnswl.org : 127.0.5.1] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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: Mon, 03 Dec 2018 16:56:54 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --y0wML8MNfZNmZXmL4TW6WtclcHuW5NLcV Content-Type: multipart/mixed; boundary="uEaBmGbOX4C5iFNySZhHg56EFMR3DN1ZT"; protected-headers="v1" From: Yuri Pankov To: Warner Losh , Baptiste Daroussin Cc: FreeBSD Current Message-ID: Subject: Re: WITH_CTF breaks CD loader: "File too big" References: <6e53765f-52bd-f503-c1a5-ae23e402afcb@yuripv.net> <20181203072226.mpvh7an5pupjbwkb@ivaldir.net> <51d0fa8c-b453-69e0-500e-32818d29826a@yuripv.net> In-Reply-To: <51d0fa8c-b453-69e0-500e-32818d29826a@yuripv.net> --uEaBmGbOX4C5iFNySZhHg56EFMR3DN1ZT Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Yuri Pankov wrote: > Warner Losh wrote: >> On Mon, Dec 3, 2018 at 8:10 AM Warner Losh wrote: >> >>> >>> On Mon, Dec 3, 2018 at 12:24 AM Baptiste Daroussin = >>> wrote: >>> >>>> On Sun, Dec 02, 2018 at 06:08:34PM +0300, Yuri Pankov wrote: >>>>> Hi, >>>>> >>>>> Building disc1.iso using `make release` and having WITH_CTF set in >>>>> src.conf leads to "File too big" displayed when booting the image. >>>>> >>>>> Would it make sense to build loader and related parts without CTF >>>>> unconditionally as it doesn't look useful there? >>>>> >>>> >>>> Fully agree with you >>>> >>> >>> What a great Idea. We already turn it off in defs.mk: >=20 > Sorry about that, I incorrectly assumed it wasn't done yet as there was= > a difference for me. >=20 >>> MK_CTF=3D no >>> >>> which should be global to every single Makefile under stand. I'm not = sure >>> why that's turning it back on. >>> >> >> % cat /etc/src.conf >> WITH_CTF=3Dyes >> FRED=3Dpresent >> % cd stand/cdboot >> % make -V MK_CTF >> no >> % make -V FRED >> present >> % >> >> So this sure sounds like a false positive to me. Do you have logs show= ing >> cdboot building with MK_CTF=3Dyes? >=20 > Diff'ing the log for src/stand w/o and with -DWITH_CTF shows a lot of > ctfconvert calls in the latter case. Attached is the diff of binary > sizes in obj/ for stand/i386; could one of those be the problem I'm see= ing? If ctfconvert calls are indeed the source of problem, then something seems to be wrong here (I didn't mention the "cdboot" binary exactly, rather the binary it's trying to load): yuripv:~/ws/ctf/stand/i386/loader$ make -V MK_CTF -V CTFCONVERT_CMD no yuripv:~/ws/ctf/stand/i386/loader$ make -DWITH_CTF -V MK_CTF -V CTFCONVERT_CMD no ctfconvert -L VERSION ${.TARGET} --uEaBmGbOX4C5iFNySZhHg56EFMR3DN1ZT-- --y0wML8MNfZNmZXmL4TW6WtclcHuW5NLcV Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEE+Gq3PsPeLT4tL/9wk4vgf7Eq4WwFAlwFYEsACgkQk4vgf7Eq 4WzujggAvpX8v9arnRKIhu427xLMp9cvC3ndL46S7cJzQnlUsXw21KZtxAIwgZMg 4fvSBCrrcUdY8LUaWEarRYefffLS5MGNuWGZMnBkfak4yEbfWqPtXU+6XJP3rLXu fN4eC3RDNe0k8Jb4dtTWHuLI/PGtHZ69yHEBvPvAkiRJNunaFLYVxsFOl9ajtTCM tCbOvSrwaHJc8rou2j/yZJZjFLUEe00EMpDh0sfiIiBKLVTWEvnFDjgZIV3W9A+1 6oV6quL1d1J6T/Umo5grlPSCh566H4BaKJf67mzEQcRslGW3zHqUjWL1ZWL70b3D FzAz89iPXQU2C9sG44pEuvaUW2LZmA== =Mea5 -----END PGP SIGNATURE----- --y0wML8MNfZNmZXmL4TW6WtclcHuW5NLcV--