Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6327541rdb; Mon, 1 Jan 2024 19:29:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IGVX/w/dJ4x8HXb/IctSqnV7n6mHK6CnYpvGgh4szzkNMKajBOECtyA09nEaTilgQS2FubC X-Received: by 2002:a05:6870:5591:b0:203:b171:c385 with SMTP id qj17-20020a056870559100b00203b171c385mr19092760oac.105.1704166191254; Mon, 01 Jan 2024 19:29:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704166191; cv=none; d=google.com; s=arc-20160816; b=adZfYAWUamPVntRnXTrmsUGN4tMoOhG9X3aDivx3vD1/A+PgaqyV9/lFMkR6Kg4keV tBKSnFRmjCXI5oiwxF0aYOsn6IBZ91XaB4YTQ4lvwFAwuIw8EpZ6ZokkTQM0AHkhxkZ1 8GG9k4Cg19nZ3dDKqn9deSMLpraonFIOk0dFyC5SlAUmklUT0M8Z1+G+3m+ZrRJk+Xt9 r3NpWrG8vNk8jmvix6lKnFY/szkA1ynTmc6H17DJph5ZLgkRdhu280P7b9r2oTnv6Inv lGbkEkOzb0ZIGRBNhP7bqXoaO1+MH+JC91pQEBrPxO92s/SfwrmWZ6h5Eds5Lbelj7/K 6GYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=aAPnRDupHYO8J0cnhYoWNgnAK1njZUIZXNIt1cHMVR8=; fh=Ly9EwJDHWdN/JPFw2itA40c1c6U/umBsbURioB+bDkY=; b=W/Vra0Ua9E5+cppP/yCGipw5VpZSbyHoaAmzJwmbxUsroWPbpYKIea0/UCiX2lpovs rw+MMFKAq7NIEih6+GwFeCiL7f12OuB0TMhp62rursHQkA57+lO6ezD9W+JfC2VjnrGm JqOb/2LkR6YknAkagqRrak4zKCz5m6y530KN6QqdFDlAGLBYXsrUBCfybq9Mz+FdY1EB NgJZfSrBSj+2mOPUh/GPKTy9XtV2n/yz5TDqnkLX25TxrYdVH9lHkDkfaM8uUVNDk7Sy eLBe3wCz+m82SOG3AyRkM7DinJpuCzlTmFE03MspkZOUtqhJgYIhm6hUNEkMHRp9W1fQ 8FfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=BcuOUXZr; spf=pass (google.com: domain of linux-kernel+bounces-13996-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13996-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 71-20020a63014a000000b005cdfb96ea62si16839719pgb.243.2024.01.01.19.29.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jan 2024 19:29:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-13996-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=BcuOUXZr; spf=pass (google.com: domain of linux-kernel+bounces-13996-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13996-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id CA331B20F20 for ; Tue, 2 Jan 2024 03:29:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9866DED4; Tue, 2 Jan 2024 03:29:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BcuOUXZr" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4893FEC0 for ; Tue, 2 Jan 2024 03:29:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-3367f8f8cb0so9240360f8f.2 for ; Mon, 01 Jan 2024 19:29:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704166178; x=1704770978; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=aAPnRDupHYO8J0cnhYoWNgnAK1njZUIZXNIt1cHMVR8=; b=BcuOUXZrCY/jGz5Xt9z0olxJLeCU13Iq50pLb/thIVu7gGlCy7+fzDnh0Zz+vT0n+S Ewh8Bh16PJnUjQc9zCct8jloQ/Ks/ZaoYXizl6FZ5W2qkPnJfdAG3B801z9GBMf+fzX3 fNSz32SZb7G/szckBwO+/n6nJ/s20COIi53UMor1nIohvgzqLtGwY3maCU56aqxWoz01 C1T78nlsiPk35MqIGPxcLeYARYTq5j7WWvlbecBDOPpQqTS/cFdppn3AMb9taQ5euSux 1QNhbiyeo/CnwWwXhYPlrDumqiq4AUCXnLzqEJ75J/9Qmk0pKfoJBOjlOnpML6II2ip/ /7HA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704166178; x=1704770978; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=aAPnRDupHYO8J0cnhYoWNgnAK1njZUIZXNIt1cHMVR8=; b=weEsJi1wJhds8VJboLZmWzrZyHIFZbT72v5IAQqBk9W/04ufwZswL77hqQG6JoxNOK hb3CNCvovykS80l2shcKbHT1m83zgytnocXAhU3mB2tkDjU0t45Dlye7KgoHgg98sFYR zeDGwSOWaiA9jbxaLvmA9Eol9bLTJWx5vQtRgpSU7Xu2F24diC7REVyXUF2An2+7+qhA UxtswutbdEKsYJfvNmuwNGnSd/NCuvsGt/0VyiH9jCVtDm7bq8dU0ulhbz/Aac+P6bqD zg2GeECYYsjhugUbEway/N5tJdNIka/P9A1GHk1zq1+ze8ZJ2VFp6CtZaWOygisK9RP7 fPaw== X-Gm-Message-State: AOJu0YzXqx1QgeKQLgVCrKWIL04cDP8NMfLWmK2ZBn5RgOXuWC+RilZI UBDZUf6quaibG+VpgW5eqC9C4R7TsQ+suIz4JZ8I1RBz1OY= X-Received: by 2002:a05:6000:1a44:b0:337:39c1:da05 with SMTP id t4-20020a0560001a4400b0033739c1da05mr1989222wry.64.1704166178215; Mon, 01 Jan 2024 19:29:38 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: richard clark Date: Tue, 2 Jan 2024 11:29:27 +0800 Message-ID: Subject: undefined reference to `__aarch64_cas4_sync' error on arm64 native build To: gcc-help@gcc.gnu.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Hi, I have a strong power arm64 box, and the linux distro is ubuntu 22.04, the native gcc version is: $ gcc --version gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. It will abort the kernel build with the complaint by 'make Image': ld: Unexpected GOT/PLT entries detected! ld: Unexpected run-time procedure linkages detected! ld: ID map text too big or misaligned ld: drivers/net/nvidia_eth.o: in function `osi_lock_irq_enabled': osi_hal.c:(.text+0x3cc): undefined reference to `__aarch64_cas4_sync' ... But the cross-compile with aarch64-linux-gnu-gcc on the x86 box doesn't show the above error message. Any comments/suggestions? Thanks very much! Richard