Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 95BCCC7618D for ; Wed, 5 Apr 2023 23:49:16 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id ED96585FAE; Thu, 6 Apr 2023 01:49:13 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="Vh+a2owi"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1F70C85FDA; Thu, 6 Apr 2023 01:49:11 +0200 (CEST) Received: from mail-yw1-x1134.google.com (mail-yw1-x1134.google.com [IPv6:2607:f8b0:4864:20::1134]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 1F33785FC0 for ; Thu, 6 Apr 2023 01:49:07 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-5456249756bso708666037b3.5 for ; Wed, 05 Apr 2023 16:49:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1680738545; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=ORmrP03liW5/Mfddj6cXb66mP69oC/bLHjkn0x0LjyQ=; b=Vh+a2owimMObbbXaFR12O2Q6EYV+3Ff6Co0vPOv/IJGrLOA8RUPYfnpmSH4nW+umdJ 7Yza7krxkuw5pBTKIgylne3N5NE3wzWmtsKvduLJuZ1mYw5U/iML2qxH9573Y/hMZuxZ 7ZGYdzeNQOwUxCJqm740VsVYKOs9G1UL7BXx0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680738545; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ORmrP03liW5/Mfddj6cXb66mP69oC/bLHjkn0x0LjyQ=; b=K41T1HwoSuZm/rjhCVAhwaGChPgX7fEdpoK3sVmJ6DjJKdiPnNDlBPuWDQvCAVmaw9 lSDq+0YLfF7cfOaE2L2o2aE6nlvBErJ72ZdG9HmZ99EYJkoyp2NZPvQ5RMnxJ4QUYpN2 BBpylssIpR0Sc60/eYV0TJThfncCjOpUAJNOgxdn1Xt/nxx57H6H63FUo5Wcm3mJ/TMQ rE9u3zEQ2GdRIYjjUYRurm8PsWWbJtfZFgHBiFHRZO08Y8qkwxqGiMuPTpfOty1sfIfK SQ4Sm8eUuo1c6fwK0YvQ9KLfZnOE6bwIpcir1t0Az+z7gJqywzPd40H4UM9hew7I0QjN T0ig== X-Gm-Message-State: AAQBX9cmqyxkwxUoqFpBkfeolG+shG9w39kzGGbIotIS5n/4ViV/xGCq UmyDshXrYh+Kwcs3tqYPKszM8aPfoOBB2e/8bvxMBg== X-Google-Smtp-Source: AKy350aq1/FNcsmGN9UtFtavk5EgYNFkP/sC1WA5aoWv/CPR/kM7qXnAuTvYVzV506Cg2HsRR/I1jQ== X-Received: by 2002:a81:4602:0:b0:541:4561:544d with SMTP id t2-20020a814602000000b005414561544dmr7831068ywa.43.1680738545456; Wed, 05 Apr 2023 16:49:05 -0700 (PDT) Received: from bill-the-cat.lan (2603-6081-7b00-6400-acff-1005-f218-7c24.res6.spectrum.com. [2603:6081:7b00:6400:acff:1005:f218:7c24]) by smtp.gmail.com with ESMTPSA id l33-20020a81ad61000000b00545a08184b1sm4215448ywk.65.2023.04.05.16.49.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Apr 2023 16:49:05 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 0/9] Update clang support for ARM Date: Wed, 5 Apr 2023 19:48:50 -0400 Message-Id: <20230405234859.1446811-1-trini@konsulko.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Hey all, I decided to take a look again at what's needed to build and boot ARM platforms when building with clang. The good news is that this generally works now. Some size-constrained platforms don't build right now but I was able to test a reasonable part of my lab. This series also depends on: https://patchwork.ozlabs.org/project/uboot/patch/20200604203515.12971-1-trini@konsulko.com/ to fix the warning there. At this point LTO + clang requires a bit more work, and to use llvm-ld. As the platform I was trying was still too large to link even with this, I've set that investigation aside for now. I've boot tested clang-16 on Pi 3 (32bit, 64bit, arm64) and libretech-cc, and I'll be testing pine64_plus soon along with maybe mx6cuboxi and seeing what the failures are on am65x_evm / j721e_evm (these platforms require a bit more scripting on my part to make build and test clean). -- Tom