Received: from magnesium.8pit.net (magnesium.8pit.net [45.76.88.171]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id EC0B47810E5 for <~alpine/devel@lists.alpinelinux.org>; Wed, 16 Feb 2022 13:52:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=opensmtpd; bh=Z0rF28VQY6 DbEPXaC3dvsAqQtn2c78i7tLFq52Omj/o=; h=in-reply-to:references:from: subject:cc:to:date; d=soeren-tempel.net; b=sbg9x0GwwAyIE4N/+JvJ4qinIjX GmJQZ1L2QOEOTas2u8/fbhoDJy2uJ7yEHKUYtF2FFBPm4A5cS88qRhxsWTBv/5ZaynRlLo M5wmc5Zf3uQWgMFbu2ZbTzQWPAfPcInBICD6OqWS+BW+dtIJp8KERo/5oQ26tqMnXVyIes XuS0= Received: from localhost (p200300f5ff043f007eae5338b9e99b7f.dip0.t-ipconnect.de [2003:f5:ff04:3f00:7eae:5338:b9e9:9b7f]) by magnesium.8pit.net (OpenSMTPD) with ESMTPSA id e2e08083 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:YES); Wed, 16 Feb 2022 14:52:27 +0100 (CET) Date: Wed, 16 Feb 2022 14:52:22 +0100 To: Drew DeVault Cc: ~alpine/devel@lists.alpinelinux.org Subject: Re: Availability of cross toolchains in aports From: =?UTF-8?Q?S=C3=B6ren?= Tempel References: In-Reply-To: Message-Id: <2GOGSSHRSVVSP.3CGZ50E0W9AFA@8pit.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, "Drew DeVault" wrote: > I think that we should have a greater variety of cross compiler > toolchains available in aports, providing in reach repo at least enough > cross-compilers to build Alpine for any target supported by a stable > Alpine release. >=20 > Thoughts? Thanks for raising this issue. I definitely agree that cross compiler toolchains for supported architectures would be nice to have in the repositories. My two cents on this: In my view cross compilation becomes a lot easier when using Clang instead of GCC (i.e. you can just pass -target instead of maintaining separate GCC toolchains for different architectures [1]). As such, it is already possible today to cross compile C/C++ object files with Clang on Alpine (e.g. `clang -c -target aarch64-alpine-linux-mus= l`). Linking is a different story though and furthermore aports.git does not really support compilation with Clang at the moment. However, there have been occasional discussions on IRC if Alpine should switch from GCC to Clang anyhow. Maybe this yet another argument for this switch? Greetings, S=C3=B6ren [1]: https://clang.llvm.org/docs/CrossCompilation.html#cross-compilation-is= sues