Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp756396rwb; Fri, 13 Jan 2023 03:55:55 -0800 (PST) X-Google-Smtp-Source: AMrXdXvhs+/6JHOT7oHsooP2CjxC0JilOAfwU9QLOsPVDYy38hZFAbQ80X6SPvP5CZI8WXirP8KI X-Received: by 2002:a17:906:fad5:b0:847:410:ecf0 with SMTP id lu21-20020a170906fad500b008470410ecf0mr70116542ejb.20.1673610955506; Fri, 13 Jan 2023 03:55:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673610955; cv=none; d=google.com; s=arc-20160816; b=Lv8XYe4PBsszcHt/7rkP63e90No3DiDO519F6IBqtkGq6HGjiMxGi8U3ANgt0Yj97W 5edw0S9G1fAy2Ha81wIvIGQC+5E4KkFzoZCB+Ey8g7EEms51lpY0FsdfNkRUM8JClM2/ 4TBNm1Nl2VtPUWkm8+SKWm0uS1U78bfZTeE4xsw0ujlKCKKuJRaq3HczP3qF4n06sEbD QJ8MkR3JsAVjGXoH3l4++60lnScJIuWpsO9EzKodtmG1QTM0kL8+UoVacRkFdU6pY25u 0UvV951xFpup7/p51jvKyxFRU2xUcXKuK2EVQhix4Tr3UiTAIMepSpm3km4gzWy0iMGm On4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:mime-version :dkim-signature; bh=eh75YM8Wx2vhFwI4QM9022rUL2tROqk3pc2ccwWrbOg=; b=ybwZdB0kh7fSQ2b9HRVR8ulAVLAq2Mp4ar+44v35CIwlLJO9HN4xdx5MB7cA8KPztm Uw6MceUBXtwILoFXxqgYcUNYBbCPKa5p/IekJ5au+c585rOhouRQNvBHetrsH+QUfDto b4polaFdkmxeeb59Jh6x6q4s7s25+Sz6A33xnHj0P4h0VABzGld11kbVqMQPFy7e967S 8SiwiZXnafaQtZ2BbAnixXjHeqmA4M0LL9bjtOFev5Nl0VMvNHDC8R1AEqwNUTE9b+OR SZ19wWerBhmpzTaZWKOON2UeEo+wzIdCdkLCAum50q0Vnfog0GK4Y5nWtUEZLU9rIwic PZ4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=TTxPBPbE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i3-20020a1709064fc300b00867779a2fddsi4838742ejw.188.2023.01.13.03.55.42; Fri, 13 Jan 2023 03:55:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=TTxPBPbE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240979AbjAMLxh (ORCPT + 51 others); Fri, 13 Jan 2023 06:53:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241439AbjAMLw2 (ORCPT ); Fri, 13 Jan 2023 06:52:28 -0500 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F64633D43; Fri, 13 Jan 2023 03:50:18 -0800 (PST) Received: by mail-ej1-x631.google.com with SMTP id cf18so45369957ejb.5; Fri, 13 Jan 2023 03:50:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=eh75YM8Wx2vhFwI4QM9022rUL2tROqk3pc2ccwWrbOg=; b=TTxPBPbEbN4NRDQbM6q7Yhj4lLB/TbIlowtMioAV14gnrNCrGcdW19KUEBIA6z7oxQ yklMWTT1q8dPBjBRu+uEMMvDZ+rGGNhSSbS3NUR9IDSzXOpaNDfdFGYqpJzmDyiKoSPY 9tDFSTU/q+8zmfinGoBRHaqmLabAa+ce6QPAhkIajBOlAtllOfHcfO2Cjb5erGMJuEBk zMVM/XHegsSBcMHTddwyqdHbQYOyJD5AxRAfTKn8eBDOKWj8ApePLkpovT8IoGSSE4uF F/Q/ZKxkmxd6WgdLH6H286cT2h3KNZ/B4R4cT37tpDzJXyQz/yMHodZVEJY6IUrgMmDh igQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=eh75YM8Wx2vhFwI4QM9022rUL2tROqk3pc2ccwWrbOg=; b=lBhfb/AlZBbSMIQBQleb2e9YEl3bqNNZ53PyOdPE4m9vmGiKQY7ghDwS5uvEIVgesF POMc6UcBpcj185l0+1hCHq9cmBwm1BDjWQYhQCzg9tZYm1sXRmPHlVTB9gV/8qneAlNZ 8wJoRkgmZy/cI/zpBIiXxp7p8VHyAiAGHBUfHuJjShD8M0c6c3adUjS9T19Jc07reKHJ tRu5xCwK/Flsodz+K8nbgmFXXjTbG5hMSnhLBqyQzjiMWk1nHZfW9/PYJYir5E5WMh4T zlBalySxsHzxDZQg92g0bfnBsNmIQsxRvXc6GrC1mDLXfvZnuJNphHPtvqoiZp7B0NkH DPSg== X-Gm-Message-State: AFqh2koVEsh5aHTlF2x5uE7saO2zHoat3OHHpYlZ0mCZx7Fhm5yOgKID GJKfkSbRLzCMLBb7ADIv37dxtGnduBPIdvCNmm6qIpsNr5E= X-Received: by 2002:a17:907:20fa:b0:7c1:6f86:ec4 with SMTP id rh26-20020a17090720fa00b007c16f860ec4mr9447298ejb.621.1673610616559; Fri, 13 Jan 2023 03:50:16 -0800 (PST) MIME-Version: 1.0 From: Lukas Bulwahn Date: Fri, 13 Jan 2023 12:50:05 +0100 Message-ID: Subject: linker problem with Ubuntu 18.04 tool chain: unknown architecture of input file `arch/arm64/boot/vmlinuz.o' is incompatible with aarch64 output To: linux-efi@vger.kernel.org, Ard Biesheuvel Cc: Catalin Marinas , Jeremy Linton , Linux ARM , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dear Ard, with my Ubuntu 18.04 arm gcc tool chain, I encounter this linker error in my allyesconfig build: LD arch/arm64/boot/vmlinuz.efi.elf aarch64-linux-gnu-ld: unknown architecture of input file `arch/arm64/boot/vmlinuz.o' is incompatible with aarch64 output drivers/firmware/efi/libstub/Makefile.zboot:41: recipe for target 'arch/arm64/boot/vmlinuz.efi.elf' failed make[1]: *** [arch/arm64/boot/vmlinuz.efi.elf] Error 1 arch/arm64/Makefile:173: recipe for target 'vmlinuz.efi' failed make: *** [vmlinuz.efi] Error 2 I bisected it back to happen since commit c37b830fef13 ("arm64: efi: enable generic EFI compressed boot"), and it still appears with the latest next-20230113 (on linux-next, I have to remove DRM_MSM as it currently comes with a build error). The specific compiler and linker versions on my system are: $ aarch64-linux-gnu-ld --version GNU ld (GNU Binutils for Ubuntu) 2.30 $ aarch64-linux-gnu-gcc --version aarch64-linux-gnu-gcc (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) 7.5.0 IMHO, I run pretty standard commands: make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -j 32 mrproper make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -j 32 allyesconfig make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -j 32 all Let me know if you need more information. Best regards, Lukas