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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 10818C433EF for ; Tue, 7 Dec 2021 15:59:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date:Subject:Cc:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=5qS2PS1ZQFmNq6CuKY8v/or9J4pzd9vZoRNEVfGcJu4=; b=bIOvOtFbEXr2/t krKmRW0vj0se68/iloP0zgnlAx5mQGWH1OmfauXPl8b0e7VxRAXWkdSZ4vSEqpFO2kq3pfuj3G9GK VeHSoWnjbwmhdC6ZXy53M51q3r1kvo+MPeipreNSSd55YtGlKAPTTG4S9Vh8m4jwhr4IpRRH9CMEr E9RgrWaONe9BVDaRAu/eeW+xl+DQJP90CwjV0M3m2Aj6IXAUxFnccakcp3hkowoll1cqCm4edbnaA IS0Tik2E3jxjPclZHZWy5Hi5I4gZzkt71RV/0ZBXlOxjKgyDAD1Xw5bE5RpEGTUFOkboDrTWLRdtw XFn/k5mPbl3HkqqAdYYw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mucsO-009Mfi-Rm; Tue, 07 Dec 2021 15:59:32 +0000 Received: from smtprelay-out1.synopsys.com ([149.117.87.133]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mucsM-009Mda-D6 for linux-snps-arc@lists.infradead.org; Tue, 07 Dec 2021 15:59:31 +0000 Received: from mailhost.synopsys.com (badc-mailhost1.synopsys.com [10.192.0.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mailhost.synopsys.com", Issuer "SNPSica2" (verified OK)) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id 8F8B1C15C7; Tue, 7 Dec 2021 15:59:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1638892766; bh=4FoSKPdA91CydqqB22rOsro/MMt3ukfKdzNzZC1sQ5c=; h=From:To:Cc:Subject:Date:From; b=lcKEtNAxMvM7rz7vOq6xKVsCsXejv2jXrRahUmEPfieFVUU3WG80YXxzhLbg+jnio +mfXstkFgkL0hf90pDlZmmWP/jPcsqJNINqXgy5Jh22C/ZkUESo5/c+Ffyt4NhaNuA DJIprYQaQI7JOd9DvQSogA77fGw4hKJIto/YbrPED7GnaEc//TPy5beLa7bUHbUIKf suDrmCdlKyIwm7D9gFKa7W/75qTV/HLCxvfDkvZhwXfRjTpNEyzew7BrGqf8YZdYnc qudrTENrd5xq/YdtRtyMcOly6CZuz+QOdSO8mXQyojFAJCpGGl2ctBrxiQgklZBPXi bn0Luz4FdsWTg== Received: from us01odcres-abrodkin-0009.internal.synopsys.com (us01odcres-abrodkin-0009.sg.us01-p01.synopsys.com [10.195.24.123]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mailhost.synopsys.com (Postfix) with ESMTPSA id 5637AA0071; Tue, 7 Dec 2021 15:59:22 +0000 (UTC) X-SNPS-Relay: synopsys.com From: Alexey Brodkin To: openembedded-devel@lists.openembedded.org Cc: linux-snps-arc@lists.infradead.org, Alexey Brodkin Subject: [PATCH] openssl: Use linux-latomic target for ARC Date: Tue, 7 Dec 2021 07:59:10 -0800 Message-Id: <20211207155910.15552-1-abrodkin@synopsys.com> X-Mailer: git-send-email 2.16.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211207_075930_506700_6C4D9D9A X-CRM114-Status: UNSURE ( 8.62 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+linux-snps-arc=archiver.kernel.org@lists.infradead.org Some atomic ops for 32-bit ARC processors are implemented in GCC's libatomic. For example those dealing with 64-bit data (e.g. __atomic_load_8()) as well as some others. That said it's required to add "-latomic" for successful linkage. Otherwise error messages like this happen on OpenSSL building for ARC: ------------------------------->8------------------------------ | ...ld: libcrypto.a(libcrypto-lib-threads_pthread.o): in function `CRYPTO_atomic_or': | .../openssl-3.0.0/crypto/threads_pthread.c:219: undefined reference to `__atomic_is_lock_free' | ...ld: .../openssl-3.0.0/crypto/threads_pthread.c:219: undefined reference to `__atomic_is_lock_free' | ...ld: .../openssl-3.0.0/crypto/threads_pthread.c:220: undefined reference to `__atomic_fetch_or_8' ------------------------------->8------------------------------ Fix that by using a special target, which does exactly what's needed. See [1] and [2] for more details on the matter. [1] https://github.com/openssl/openssl/commit/cdf2986a70d92668d882eb29737225f1aaafd0f1 [2] https://github.com/openssl/openssl/pull/15640 Signed-off-by: Alexey Brodkin --- meta/recipes-connectivity/openssl/openssl_3.0.0.bb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta/recipes-connectivity/openssl/openssl_3.0.0.bb b/meta/recipes-connectivity/openssl/openssl_3.0.0.bb index 4b1ae71a85..da73ed6bc3 100644 --- a/meta/recipes-connectivity/openssl/openssl_3.0.0.bb +++ b/meta/recipes-connectivity/openssl/openssl_3.0.0.bb @@ -70,6 +70,9 @@ do_configure () { esac target="$os-${HOST_ARCH}" case $target in + linux-arc) + target=linux-latomic + ;; linux-arm*) target=linux-armv4 ;; -- 2.16.2 _______________________________________________ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc