From nobody Thu Mar 02 10:13:51 2023 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PS6QS2MGjz3vdQt for ; Thu, 2 Mar 2023 10:14:08 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PS6QS1sYnz3wTh; Thu, 2 Mar 2023 10:14:08 +0000 (UTC) (envelope-from dim@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677752048; 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: in-reply-to:in-reply-to:references:references; bh=YVvifAIC/y6XwWP5vUQOR4uGwQIBHyoiK6yI+FZJ2ZU=; b=XDEB/koZmRaHLUkdhC1p4AFB1cvgGyk3uGWOZlNXpJYCYsgAGS7XP6hFNp4Wvl+blcYd+3 SOJe9x+xir7euB+2rEhuMoqID513vFEZ7joNjXj032MeW0qkVThlXGf44o0wBxA6HsV5oD cbk8ROsrfHWiFK/Kww3pvNG5drf6f4cMtvQnX5jkQjUcrw5r0TVc5dJ3LYYCtzCmBRSGcU q63EbuO50L00D+MC1qf8ZIZd8DmjJpSt6uDF/dQy4f8CNKnc/wE9ToRKf5DzLIl5ib+YEg FziCtg2DbLr9glDgh87oTu6ruzCR40t4/zfhjSAYukJzGLsbltYyFJmveflPoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677752048; 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: in-reply-to:in-reply-to:references:references; bh=YVvifAIC/y6XwWP5vUQOR4uGwQIBHyoiK6yI+FZJ2ZU=; b=qNYaSgTMOn0aD70jzoUDfABSKRPXJYsVKvfHy7foXxhAqQ8NkUUEQw0t3HY/GO/JAZiOz+ r/pOxKjRFpef0/szcZJQJJ+1DYIIF9/TDE4pa0uIrgHaX7mi0eyVReo1YjSCEzuhHlNypD ZxvFe0NYVFQf9ORIHRvMxUQdqHV/xBTpG9OQBMt/WMkfL9qEBNIyH8PjH50/G+3i1WwCHP 3AGHqR9xwAAJJ3RiCv7ov5+gxqk26oSbltEW/YJSWYZVb5ceuYIUyXaNT+zTWsQK/5/Uwm SICWxm/0T6I2VFVihyj81v7l6QEiEKxlYPVXAZUoveQSvf64RABNsAWymkPV+Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1677752048; a=rsa-sha256; cv=none; b=iczGzyxkYp4ujetXBhy1fYkhFqBvNuhTrh+grrJ5YkK13DDKb26uoELqRqk9qcIrS75z8S hbEJRqIeHhcD07ssD8y6F06guXVLCDvIDA6fZqmkZklBDprN3Wdo0qKx2qsxUl0Bq14WPg ggX5OBotVFAoObEZneK4kiM7aHwKZ7Hwl7yerZDRdNm5Wh7riqXRbGsOLIJ3bgzFk2Nbkz 0vUXgBo7c+camLCii0CE12HvbCeYE62pfEnX426rQ8MdQe+9citAbZJpUvrZwuHjMvjwyx A05Sx0REQiTR2kRtOebFjdZmHrAc6eDOQChPEJD+D5ZkmheRR1uexIgVK+5vEQ== Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (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 (2048 bits) client-digest SHA256) (Client CN "tensor.andric.com", Issuer "R3" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id 4PS6QS0BnxzQXV; Thu, 2 Mar 2023 10:14:08 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtpclient.apple (longrow.home.andric.com [192.168.0.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id BC1763F554; Thu, 2 Mar 2023 11:14:06 +0100 (CET) Content-Type: multipart/signed; boundary="Apple-Mail=_7D6B2CAB-29DF-4D75-831D-54928F2872AF"; protocol="application/pgp-signature"; micalg=pgp-sha1 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.400.51.1.1\)) Subject: Re: NanoBSD: CURRENT unable to compile 13-STABLE : error: a function definition without a prototype is deprecated ... in C From: Dimitry Andric In-Reply-To: <20230302064153.12940fa8@thor.intern.walstatt.dynvpn.de> Date: Thu, 2 Mar 2023 11:13:51 +0100 Cc: FreeBSD CURRENT Message-Id: <6321CA49-A38A-4FC6-A41E-E9964C2A94E3@FreeBSD.org> References: <20230227192011.08f7aa8e@thor.intern.walstatt.dynvpn.de> <720721A7-B1ED-405B-98EB-04A3AFCA7FD5@gromit.dlib.vt.edu> <1F3F20A1-C2BC-4A33-ABFD-D20F4ADB67E8@FreeBSD.org> <20230302064153.12940fa8@thor.intern.walstatt.dynvpn.de> To: FreeBSD User X-Mailer: Apple Mail (2.3731.400.51.1.1) X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_7D6B2CAB-29DF-4D75-831D-54928F2872AF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 2 Mar 2023, at 06:41, FreeBSD User wrote: >=20 > Am Mon, 27 Feb 2023 23:46:21 +0100 > Dimitry Andric schrieb: ... >=20 > I tried to find some documentation on my CURRENT host regarding = "WITH_SYSTEM_COMPILER". None > found via man src.conf, nor via make make.conf. Please delegate me to = some place where I can > find such infos. Ah I was confused, WITH_SYSTEM_COMPILER is actually the default, and it means that you want to skip building the bootstrap compiler, and just use the host compiler. The src.conf(5) man page documents the inverse settings instead: WITHOUT_SYSTEM_COMPILER Do not opportunistically skip building a cross-compiler = during the bootstrap phase of the build. Normally, if the = currently installed compiler matches the planned bootstrap compiler = type and revision, then it will not be built. This does not = prevent a compiler from being built for installation though, only for building one for the build itself. The WITHOUT_CLANG = option controls that. WITHOUT_SYSTEM_LINKER Do not opportunistically skip building a cross-linker = during the bootstrap phase of the build. Normally, if the currently installed linker matches the planned bootstrap linker type = and revision, then it will not be built. This does not prevent = a linker from being built for installation though, only for building one for the build itself. The WITHOUT_LLD option controls that. This option is only relevant when WITH_LLD_BOOTSTRAP is = set. I find the double negative phrasing "do not skip" always confusing. But the logic is normally: * The early phase of buildworld retrieves the versions of your host's compiler and linker * It compares it against the versions in the source tree * If the host compiler and linker are deemed "good enough", they are used as-is * If the host compiler or linker are not suitable, the compiler or linker are bootstrapped from the source tree But WITH_SYSTEM_COMPILER turns off all these checks and forces it to use the host compiler, which might or might not work, depending on the circumstances. You may have to use NO_WERROR or other tricks. ... >> The safest solution is to let cross-tools do its thing, which will = check >> the host compiler, and automatically build an appropriate version of = the >> compiler and linker for the stable branch, if required. >=20 > I had a misunderstanding in the terminus "cross compiling", I check = now the build with this > option set to be enabled. Yes, this is a bit confusing, but in fact it *can* be a real cross compiler, if you are targeting another architecture, for example doing "make buildworld TARGET=3Darm64" from an x86_64 host. And of course if you are building natively, it is 'just' a regular bootstrap compiler. -Dimitry --Apple-Mail=_7D6B2CAB-29DF-4D75-831D-54928F2872AF Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCZAB23wAKCRCwXqMKLiCW ozNJAKDIVxUNAGclcU/OFW/Atzn3ER3wRwCgnHaQzdCXnSgKbrvjOpMrv+YlLjc= =0vaP -----END PGP SIGNATURE----- --Apple-Mail=_7D6B2CAB-29DF-4D75-831D-54928F2872AF--