Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 May 2025 11:21:55 +0200
From:      Olivier Certner <olce@freebsd.org>
To:        Konstantin Belousov <kostikbel@gmail.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: How to build with cross gcc?
Message-ID:  <87361004.0ko45tJjV3@ravel>
In-Reply-To: <aBG77k09hoboMmRv@kib.kiev.ua>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
> 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
[-- Attachment #2 --]
-----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-----
help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87361004.0ko45tJjV3>