From nobody Fri May 02 09:21:55 2025 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 4Zplmq2G0Tz5vQCY for ; Fri, 02 May 2025 09:22:03 +0000 (UTC) (envelope-from olce@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Zplmq1ZG2z3ddb; Fri, 02 May 2025 09:22:03 +0000 (UTC) (envelope-from olce@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1746177723; 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=W+6UXe6VSgnGLXXIunurJC2NQjTtX99oFr8lweIOycY=; b=cFzAvHrwEDK12XsyHFTkP1IILmhs5qWsfsBW+rMnjGBMB4XikhGVc0J46VsgiHh2KHq0+k la1KIXPPyrDPNpOY5mmKDLGwB3isKwT6hqx+Kw7/J1Ji9M0zBenTtkNpao2i7sfhjpg5Ua 573nIM7PYF3uHbFRnURhANu8uLX0HJkeYONDa7h9o5ETlPaCqA5OF3IGcYzqc7zy2n//uM B5ynmvRbBY96UKkUQt76+z6mQ1jmo0qHXdpv1SWnVF5RGZtGQ06gAt9z+vXV/hJwZPEns6 nisld+f0FMRL6tm/goQmhRRTudyLG/f5pPCM++aPk20FCjwNUoy+t0NsqdR9og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1746177723; 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=W+6UXe6VSgnGLXXIunurJC2NQjTtX99oFr8lweIOycY=; b=ObTaUF9sHtrOTF+ChK9cMioJFNa1RNQVKG9bumLPMoZOaf5ncvSp/vITnTvIBszAccW/jl IT3Bnb5pWQN0xxdhvtgHfcWnt9gOvClmhh1LK6NLfyIHKxBaCnLf5bYJZK2PhoK0NhZHBq ZsFQVaYc8koFMA+EO17eYHmyHuVbCZnThZsjevcvUBSQiDrAeF7aFXg9VYUzzxQYsvagG/ v9egkLBn9bSAQNnMlD86oHvh/1Ok1L2+kSfJiV/Ux89YIx1t63oH6pB7a1WdiasZtpt1wT d1raZw0QSy0MK512B328fp8EYiPduKCHTBE1dcOOIfrGWAWNcRBjRqkqgZMvmA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1746177723; a=rsa-sha256; cv=none; b=Id4HcfTaMWhxwzJN8ghgwAE0XHkQHckJo7sxNioD8TfD22E+nebzFK+au73VRcegspLWGD bygLeOlojHYXyKeSAAWEBz2s/vAkHbr804VvDnnZLuPlg9+Eo9oFZx7DFp4QP4recNRdEu RlYRzY354ZmwlboS0xlyBJOxaeRsgIVw3gTpEoHuafrCa10YGgfwzDx/I4b8Ik7WC49aeP iRPtHR6oZiLSRuGfZqZhFgehd50uC6Zu1Lu7gV6VBeVViKUEqDl+IBFiYAl/y3FpozaL9u B90SOVO/jCWz3HMSVAfyyVAtQJIHSMqv8fpOcY9wCX66qS1Ox9AJdJN6iGNWPA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from ravel.localnet (aclermont-ferrand-653-1-222-123.w90-14.abo.wanadoo.fr [90.14.66.123]) (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 did not present a certificate) (Authenticated sender: olce/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Zplmp5WsCzrBt; Fri, 02 May 2025 09:22:02 +0000 (UTC) (envelope-from olce@freebsd.org) From: Olivier Certner To: Konstantin Belousov Cc: freebsd-current@freebsd.org Subject: Re: How to build with cross gcc? Date: Fri, 02 May 2025 11:21:55 +0200 Message-ID: <87361004.0ko45tJjV3@ravel> In-Reply-To: References: 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 Content-Type: multipart/signed; boundary="nextPart1985870.vslOlgHxSZ"; micalg="pgp-sha384"; protocol="application/pgp-signature" --nextPart1985870.vslOlgHxSZ Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8"; protected-headers="v1" From: Olivier Certner To: Konstantin Belousov Cc: freebsd-current@freebsd.org Subject: Re: How to build with cross gcc? Date: Fri, 02 May 2025 11:21:55 +0200 Message-ID: <87361004.0ko45tJjV3@ravel> In-Reply-To: References: MIME-Version: 1.0 > What is the right way to build with gcc? Here is one data point. > exa% MAKEOBJDIRPREFIX=/tmp/obj/ make -j 16 -s buildworld __MAKE_CONF=/dev/null SRCCONF=/dev/null TARGET=amd64 TARGET_ARCH=amd64 CROSS_TOOLCHAIN=amd64-gcc14 With a not-that-recent stable/14 (based on 6f34788b4e24ecbd602 from 01/29, heavily modified by local MFCs) and amd64-gcc13-13.2.0_2, and a more or less similar command-line to yours (it has no __MAKE_CONF (only have some generic arch tuning in make.conf) but with WITHOUT_CROSS_COMPILER and WITHOUT_TOOLCHAIN), I can build latest main (100dd7d5c7bc01a398)'s kernel without errors. For buildworld, I get the errors that I reported and are in the process of being fixed (D50089, D50090, D50091). I have never had any of the problems you've just reported. Maybe try with devel/freebsd-gcc13 to see if that fixes things for you? Regards. -- Olivier Certner --nextPart1985870.vslOlgHxSZ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCQAdFiEEmNCxHjkosai0LYIujKEwQJceJicFAmgUjrMACgkQjKEwQJce JifMBg//VzNbDKDXqGZQsHhgt+PM2UaMd02Uy4C5rLGWQgxSq9FEU6MV0zpBREFM TF9n9Db4lIhXP1zpqGaZFM+7QuVVTI3Fm4s2NsuQO/ZHcBdpgebtIvOhR9V+Tvxm 33mu99UDJqn1A4LZfB8vl/764sF7QuUvQH/0p31VIBgkk0X4Box3g9WhLRLe5x4F IS3Hh2MgoCMHwyoioZnZo8F4zR5LKpJzwdkyEgp9XXgL3OzWMw6eHIDJPnQxm40v 4R86MHPjCVhbOgqWhNIOdFpr9etei92WFG3tRBNpFGQV7CP5TNgIIVc2FaibvA3p /dr+AreK19Sgd1UmM+lRoLjGYdGx2Q50MCQaFMGDO+DS+/ffJ0w16lkoNGdlXC/g C/fRB8kSXvthOWnBWn0EbJk+noMOfBA3fZW0l6fXkBOHNBX+0QoyJoCcdKYElQXZ YMW6mOYQG9ZACtCOoHtneKlO6IHQlX0RTb9eNps2gVP+42xmLkxu/YwQcHbtTECp Ox7vQ8ozIV4ykxFbYI0G6n5/B3nqfD12XzTG6oJASZl2TAn1UCpirHt0nxI1g/pn J5tP3bz+mlbCTPrcQRE0zl0CqRVJkEwCqYt9lzFfZZunviD/GY7UhtG8tu2w1uqh zOlCLEntUqEDw9ojVzhIhm3dzAqwaJp7Y0fYD3Ctg/LaQMAWc/I= =IGsz -----END PGP SIGNATURE----- --nextPart1985870.vslOlgHxSZ--