From patchwork Thu Oct 3 16:26:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3543 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-lf1-f70.google.com (mail-lf1-f70.google.com [209.85.167.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 0C0503F13F for ; Thu, 3 Oct 2024 18:26:45 +0200 (CEST) Received: by mail-lf1-f70.google.com with SMTP id 2adb3069b0e04-5389e45452fsf1082087e87.3 for ; Thu, 03 Oct 2024 09:26:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1727972804; cv=pass; d=google.com; s=arc-20240605; b=HBKWXjj9F86DO6DSBm12cDm4hR5P+Xe1NJoUxpz0OjWtpnR4R/39x23eEv7G25A7XN 6gAQTUyYotVoN0DDXCH9agzYahu2vZytldYLuCOcomU61WLjMI07RaIyXMFz8saJtVNn CpcsyG1FD1KpDhvW29GT3Z7P0+yxuDmWqT0ywdXuZkFvwOpniSZx+5gwF67P5dyk3A5z 25JIYVXfGBNletRT0bN1CMnhqtG7hjZc9DbVWmNXC7NEs9gCCQhsAcMLyIn+6fmHkcUU DbnaKl0qb9A3fqIoXE3yuEGQwhPg2XvxxDmBTvWSMxUhA2YavMt44EbpEN68UkoM6lTu Wn3A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=o2dp/jxvIs0BaKnAGuTvkBvWJKij9ka5BZBngYBwYMg=; fh=J3kNaYhu36SDkEj8YgXVYhg6U34PuqSjVI6CqbxBBpY=; b=YO/xbsQ0WKptRhCX0mA7JdiaK0YzMhfwHD3h4dgbnvvRFvnPGLlTU2/s0uqGHyEkiV KKYmmJvFLi2ADIAZD4KtQzS+OlNZwLDHfwhcQie+ZBB3PZLTSlgRLQ4kd61SZcDRSrvb 78+aGi8ztCGpm2E1ld7k0ewtFrCllHOLqmRa3VDyhzsBUVS7/2h3v/nAUGM85G2Z7MMm pK2OtSvOSsQNtYgWyRa3yAkuemTckijLgzqRgfP4HBe42O3/AryvjsOhq6Ur3AgK7tkV apbHIuWGDxQ9VwObdUdNe0BweU7Jygpn0w40Uxp4+TqGoqHuarcpwdU6HujVxqBL2CCT oC4g==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=XnOW6wcW; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1727972804; x=1728577604; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:cc:to:from :from:to:cc:subject:date:message-id:reply-to; bh=o2dp/jxvIs0BaKnAGuTvkBvWJKij9ka5BZBngYBwYMg=; b=LI/c7NA8Vwbvyn6z0XfyN4xIa1ISQ/asj/mx4dxq0w7h5GaexbV+BYII9r1OAKyuW1 kvgkyzUXrotseCbj7cvNB/X4feiI4+ALPR1nLbNEDFr+XLkoqwthZOFolF2eQPiR094L e2e8LBhHFLzFgqS2Gk2ra0IlIWkDbuVoG/QMQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727972804; x=1728577604; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:cc:to:from:x-beenthere:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=o2dp/jxvIs0BaKnAGuTvkBvWJKij9ka5BZBngYBwYMg=; b=EcegWYB+QSey/Dh0OoKrQmYqwIjsVgmxpINSbbZXcAeCIjV+1hAs6dA/+bYks6UH6p McuqUM7W2IgnhYJPoyaPX9uw/inSwVcFD2xdS7LwyYgpug0jLqjD8GJVfgP/4JgHQzQQ jEKdYBpDtnSzWVeDay5L8YlowKK4doaoC5z3m+cYQ5EbCBxXhZ97CN+ADja2PS+bSmHy MbNtjo/FFIonF6QQaN282n5hDejlthKxwTsauHb3lmCYMp06zl6ycb0Qt7CheeYwLf9r iutMuorWKR8roD79L6/75QPvL1hXC1c24GVYhTZhrY/VeacATu6shKwK5i/ILyUyqSzJ Hgyg== X-Forwarded-Encrypted: i=2; AJvYcCXXxvSNOpJaqpJzKdhWn23rxG87DzGbr8zmODqFNVe/LRFeUlAxuqeFkNz5qWGUI0tD0CsfdmCVZxoxCk+K@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0Yx7VZob7zqxgqgD6Pjr1UZbvp5S7y4DFQZuadvNWzhMCcTkv3+y Sm33eatKUL8PsX7Q46u4k22J1pUDFv8JZetbaajDOHD4y99EiI/ymVoRbTe54VfjVg== X-Google-Smtp-Source: AGHT+IFZURVAuqw4cscBLlPqWlnLOa5co3hLQyMSPYUZajAoHMX6PkFEI7YQqSxdxRltwWyX/MMK2A== X-Received: by 2002:a05:6512:3e1b:b0:533:43e2:6ac4 with SMTP id 2adb3069b0e04-539a07a8912mr4319365e87.49.1727972803871; Thu, 03 Oct 2024 09:26:43 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6512:ac8:b0:539:8f60:9699 with SMTP id 2adb3069b0e04-539a6323313ls52363e87.0.-pod-prod-06-eu; Thu, 03 Oct 2024 09:26:42 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXECE5/JcrCO3Uaw0Fo7IvqU51tM6HfNQeFKtKEhU+oo8ukwtpD7Nuy+JCThxJb6OK2TlFFEFA1LDBceH9h@amarulasolutions.com X-Received: by 2002:a05:6512:31d0:b0:530:e323:b1d0 with SMTP id 2adb3069b0e04-539a065dfeemr3790081e87.9.1727972802086; Thu, 03 Oct 2024 09:26:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1727972802; cv=none; d=google.com; s=arc-20240605; b=Q+k1f6IM4lwgOYn5JHL5QDB/ZyOUBqhTfwIYAP0GFeOwry6MG7D+hb8DqGBA60wEm9 FR2UStUv7v+wj7DI2P4IW99xx2EhCW8SipxN6uq1WLqFWsvYcTTYcnbfcQ53+TaOpd84 NxmJGRg7XSy8sLzQDFmx9/yzqm2UPywfajxQ8guzC5huHMqhPVw1r7tXB+erfM1kFctJ H6Bpx8C3iFBTicXab+o+njeFozuf9RGrMNP8FPla3kOElAdpOdBnFnUplH8Zex6NBA// D7BkuMFFR4cKIG6pbD+zTJ2AeTpgp/dmWh0K3cPK6LM7u0aBxA58Rb2WtosttSuCE5zK V71A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=yljPPhBIPvhEqs2MDExScH56YHypaTe5kpzlqOUbBiw=; fh=2WRevDthoq26VgRtsMLPrDx/z39NUqE5ogJoexOba90=; b=H+tgxq4wBtULO+l2gN0BuPsghdFjFpBcas3fnftLNmm4epmMCcHXh/Ca6I5I0pSE7j EoFtVmQKEmmSXjdU37rPP9UR8Bgs5ki4Ww91TgMgAyic0YmPtakcRuWs7OapmWyfLcHB i+HY1xrkKhEIuTlHGKTRSaOZsE09zFKidzd6Cth4/vP2GVZNM7Xxba+TKZS802vR7Ezs orQBiYXeXCyfypWt5XLyWXHRdipRkDwgnneYfSrxy/PxHbuxkY8UQn8RUbAtUkgxcDNj lm5cpLivzKffnzTOVT1FmWqtdnmdYX8ngkcOmAytLS1VW26/8FimzhontTApKpSw7pXi b+Qw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=XnOW6wcW; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id a640c23a62f3a-a99100b095dsor61448866b.8.2024.10.03.09.26.41 for (Google Transport Security); Thu, 03 Oct 2024 09:26:42 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Forwarded-Encrypted: i=1; AJvYcCX55oyyCUvBPkZRcEJ/ZsLeRkkf97ugqgyQk2hFj5bFeAs5tDR44kp02eR+b9CNTmyIRDCBmrsf8n/eL1hP@amarulasolutions.com X-Received: by 2002:a17:907:97c4:b0:a86:9107:4c2f with SMTP id a640c23a62f3a-a98f8360b2dmr688718566b.41.1727972801326; Thu, 03 Oct 2024 09:26:41 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.amarulasolutions.com ([2.196.43.153]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a99100a3200sm106996166b.4.2024.10.03.09.26.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Oct 2024 09:26:41 -0700 (PDT) From: Dario Binacchi To: buildroot@buildroot.org Cc: Adrian Perez de Castro , Giulio Benetti , Thomas Petazzoni , Norbert Lange , Bernd Kuhls , Romain Naour , Sen Hastings , "Yann E . MORIN" , Marcus Folkesson , Raphael Pavlidis , linux-amarula@amarulasolutions.com, Dario Binacchi Subject: [RFC PATCH 1/2] toolchain: add BR2_TOOLCHAIN_HAS_ATOMIC_TEST_AND_SET option Date: Thu, 3 Oct 2024 18:26:28 +0200 Message-ID: <20241003162629.470273-1-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=XnOW6wcW; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The build of libcap fails for ARC Targets which don't have the ATOMICS_EXT flag set: configure:5053: checking for cap_set_proc in -lcap cap_proc.c:(.text+0x78): undefined reference to `__atomic_test_and_set' configure:5086: result: no configure:5097: error: libcap support was requested but the library was not found The patch disables BR2_TOOLCHAIN_HAS_ATOMIC_TEST_AND_SET for BR2_arc without BR2_ARC_ATOMIC_EXT. Fixes: - http://autobuild.buildroot.net/results/66ee26677777124eafb4740a3c7437e06f704f98 Signed-off-by: Dario Binacchi --- toolchain/Config.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/toolchain/Config.in b/toolchain/Config.in index 6e91ab756cd4..6e2856b38ae1 100644 --- a/toolchain/Config.in +++ b/toolchain/Config.in @@ -855,6 +855,11 @@ config BR2_TOOLCHAIN_HAS_SYNC_4 depends on !BR2_sparc depends on !(BR2_arc && !BR2_ARC_ATOMIC_EXT) +config BR2_TOOLCHAIN_HAS_ATOMIC_TEST_AND_SET + bool + default y + depends on !(BR2_arc && !BR2_ARC_ATOMIC_EXT) + # The availability of __sync for 8-byte types on ARM is somewhat # complicated: # From patchwork Thu Oct 3 16:26:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3544 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id DE0F43F9FB for ; Thu, 3 Oct 2024 18:26:45 +0200 (CEST) Received: by mail-ed1-f72.google.com with SMTP id 4fb4d7f45d1cf-5c883c44c1esf725507a12.1 for ; Thu, 03 Oct 2024 09:26:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1727972805; cv=pass; d=google.com; s=arc-20240605; b=YeD9UWBo1maDLEwhv9Dlq5oltcF5n4GkcrlSyPW+FLWQz/a2fbEDIJAbumF5Qhn7Nm MU+X3MNHJ4Cy/x7ER356C5wZvPTT8klwz5nVyVKhVTchhoe0Fa+PCpaGpYGb1ioEUt7N 8ev51Gu4pNyfhRqXJAAvYgAnbXavXQ4SMeqXWxS0C4eD44x0cawJ0nMo/hEohtVeAu8l MAW/CfDy3dOYjMm++3AcXRx5M6R5T8nKKuibH4vG1POwFgoBTaL6WOD5VMhSxLgM8CF1 feeFXuUWEZkRoMpGXoSb41cpIZNokYDCXMqD7UEz+Lx+Xwnm4b3eUjRYpo3pBTJnrGib 08hg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=RYilAXMzJQaDt+yTFLuNmXA0uOGz9fTpfbkN4TZ5KN8=; fh=spZlilvTAOxDq6IF/O0O9p7rAmpSm8UZ7rG56uPSsTI=; b=B8TNqT6vO/TBX0xFMtoK1EpsZSuWKAJcZgS35W6uX2WZP5IXTyaPW+cDxatJawTMRR FNf5a66MfQ6ov88rS7rNxkKjWW8rYFn+CrUVzz7cT+reLsRxsxjSgg4gDUyy+b6j6Ekr ELVI2ybsg4YGBzWDaoJrqzmKIn4C1f9NJSJhLw3WjcSdcYMNNxCVhmXZwPHvNDShWivH Mo3kft1vpEPL4g31QJZxIA29imebeibjHwy7X892wPftsR7D3vRXyo067EvVbb9hNhvY kVEgAT/HoyM4CbXFhQm2LgghvisMUGbzzA80lFnwltdxw/9lxpq3dkkbM6rZmltf1n0H Xs9A==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=gW9x7U8g; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1727972805; x=1728577605; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=RYilAXMzJQaDt+yTFLuNmXA0uOGz9fTpfbkN4TZ5KN8=; b=XnneZg6oNbs6JaKvrKL9UssNkkEZUZHf3sGKNyL+fGh99+Hgk108KLGkNnEdyS8xM1 EEJZ59faieAuk/pxRqSjcl5zhaDMywS1fmSnwvWtpm/CjEWkAeBLQRK8tZjngRHrOeck mpD7ydm9OEw2OpOFiGratITP8C8/uXbApFoI4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727972805; x=1728577605; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=RYilAXMzJQaDt+yTFLuNmXA0uOGz9fTpfbkN4TZ5KN8=; b=uzFjef2MyugQ4YDKwF+1O+8sa2QL2uS+HP0JYci5gYlvIdVRzSFnDsfbWbL/yeoJc1 VpFr9GQSIJSE5BmSAvGADTYf4S2YchPXjEayeaXRyKI6sx3IzSh32xqmyDS/g7uFFTX+ l6mtQBIbN8SxGNJuggoaz+lp0pgfX7/mldgfC9d4lPn/+Rtr7GpFyhk+clLLFB+xBqrx 0RcYJVVkhpBiGG83j1GQqPNOI/0IVegM/LauzT2hy1TSo5QYaAsZ20evIL22RfF1ZjiI iLLteFTuVRNb60aWGmVmpyjJX8WFXsFgpU8AicKDcfQg2x4jIxLnodehCg15moPalC94 mILg== X-Forwarded-Encrypted: i=2; AJvYcCW/5ZXLdkIgxJ6nJ2CvhhTM++1AT1cRa40WwXaxkZII3Zx3HaoXEzL1u24rYNK99/CFDXY/29P18tSyvH0/@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YyLKsHMAy/zVPj+kEUYokafaKSg/xUqvYOW5Xbo6PixhAsX+GQz W7pLDTZJ1p1Sg57ibSDZESo8WswkYs+MSgsjpazU7cjnofs34nljayiy4i4DLzsDtg== X-Google-Smtp-Source: AGHT+IEMg3g1cZdYfYxHws9ks0xDpk8ev30qUXHb0STVWq8MQuD3Jyej/CQEnXhaC8TNmHsqSOg41A== X-Received: by 2002:a05:6402:42c9:b0:5c8:8381:c2c8 with SMTP id 4fb4d7f45d1cf-5c8b18e477cmr6058287a12.2.1727972805152; Thu, 03 Oct 2024 09:26:45 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:1ec5:b0:5c8:9f3e:a9e1 with SMTP id 4fb4d7f45d1cf-5c8c0b15320ls265011a12.0.-pod-prod-01-eu; Thu, 03 Oct 2024 09:26:43 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWbreyNfCfbnFTl4MQrW03kPS+c9ksWSdnny9E/5czOgkcjR2um3jiBIspZcSt2tDxa1K/HPGX9I8T4Qo3l@amarulasolutions.com X-Received: by 2002:a17:907:8f07:b0:a99:c0e:2430 with SMTP id a640c23a62f3a-a990c0e2604mr191614466b.19.1727972803407; Thu, 03 Oct 2024 09:26:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1727972803; cv=none; d=google.com; s=arc-20240605; b=TCZ7NvRki9EG00UmWNimqpcGIDf4bj6iX+ail/xnU4M0GyZ+TZK4TpRoF9bWeoNEyN mT8lKkEJnN9fQ0yTHAb6FmzKGYRe8FKCZf5HE45aFstLXic+3JsvS7mJVuFMwqerq8i0 2Pk3TO5FfpN1o4VXzbs0QtkBHSd51EOdZfHxoHI3xLNm7tEBeS6FQIoEobbW3QJtUx1Z dvQW5rFXd9QAESmszp1gQxPx3eEkWYLip+q/n0WLUDHthNLvJBgoezD5hkW+UvonVwue /Iqt0AzqKrECzr3MKOfoKxNdRthJrRxZ6XU5fSYz3v6H8XrVBrfhu1jTNogFdFjAZOOc YNTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=zFPUvHEIVZamKmasYmkwF35aaGgnDV0nTEkihqZS/bQ=; fh=wjRGfs4BI6yazTXUo6svZAMh0tHgB1H9Jq5BCfFlXnA=; b=AnCMGbu8csN0EN1JLfY3Y3f1B89ttEotdi6g8d4DPjLMBqUN23+FsxFJzVEpQRNd+d 4dU2LCj/9w3kaLnEKSedk39ZkaByCtichOoGencpzbYweOJCuuflRssKyJnmTsGhMpqW LQ9lI8TN3t8UxxtBaB6fLgBZBoBaRHEEGTj9zq33ZKcyTsDDj2ptgkyUtRSXKD+lVKnm R5Icloeih9SP9YNRrymkrdSxXQI2FoPlfg6h93Y6hOy/Kwlt+IVCMOkE/k3jw/9y9SVa sb5gdFhLX1qYPjtHZZ+QOa34UDqywhRDm0aXAkPXEYPuan2THD/Kyal2ia5uaRdZcYJ4 g4Iw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=gW9x7U8g; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id a640c23a62f3a-a991019146esor60715166b.20.2024.10.03.09.26.43 for (Google Transport Security); Thu, 03 Oct 2024 09:26:43 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Forwarded-Encrypted: i=1; AJvYcCUJ3DRTGRxg/xce7HQ30z7D22pHIDvGt3NyqzFTDbWck4pqQnpI1ydYmmeG0KB9o1/TRThgdsXoovr93OWG@amarulasolutions.com X-Received: by 2002:a17:906:478a:b0:a8d:6910:d0dc with SMTP id a640c23a62f3a-a98f8397f5fmr701750166b.53.1727972802821; Thu, 03 Oct 2024 09:26:42 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.amarulasolutions.com ([2.196.43.153]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a99100a3200sm106996166b.4.2024.10.03.09.26.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Oct 2024 09:26:42 -0700 (PDT) From: Dario Binacchi To: buildroot@buildroot.org Cc: Adrian Perez de Castro , Giulio Benetti , Thomas Petazzoni , Norbert Lange , Bernd Kuhls , Romain Naour , Sen Hastings , "Yann E . MORIN" , Marcus Folkesson , Raphael Pavlidis , linux-amarula@amarulasolutions.com, Dario Binacchi Subject: [RFC PATCH 2/2] package/libcap: fix build failure on ARC targets Date: Thu, 3 Oct 2024 18:26:29 +0200 Message-ID: <20241003162629.470273-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241003162629.470273-1-dario.binacchi@amarulasolutions.com> References: <20241003162629.470273-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=gW9x7U8g; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Building arp-scan with --with-libcap for the ARC target raises the following error: configure:5053: checking for cap_set_proc in -lcap cap_proc.c:(.text+0x78): undefined reference to `__atomic_test_and_set' configure:5086: result: no configure:5097: error: libcap support was requested but the library was not found The patch adds the dependency on BR2_TOOLCHAIN_HAS_ATOMIC_TEST_AND_SET to libcap. Additionally, besides libcap, it was necessary to add the dependency on BR2_TOOLCHAIN_HAS_ATOMIC_TEST_AND_SET to other packages to remove warnings of this type: WARNING: unmet direct dependencies detected for BR2_PACKAGE_LIBCAP Depends on [n]: BR2_USE_MMU [=y] && BR2_TOOLCHAIN_HAS_ATOMIC_TEST_AND_SET [=n] Selected by [y]: - BR2_PACKAGE_RNG_TOOLS [=y] && BR2_TOOLCHAIN_HAS_THREADS_NPTL [=y] && BR2_USE_MMU [=y] WARNING: unmet direct dependencies detected for BR2_PACKAGE_LIBCAP Depends on [n]: BR2_USE_MMU [=y] && BR2_TOOLCHAIN_HAS_ATOMIC_TEST_AND_SET [=n] Selected by [y]: - BR2_PACKAGE_RNG_TOOLS [=y] && BR2_TOOLCHAIN_HAS_THREADS_NPTL [=y] && BR2_USE_MMU [=y] Fixes: - http://autobuild.buildroot.net/results/66ee26677777124eafb4740a3c7437e06f704f98 Signed-off-by: Dario Binacchi --- package/bubblewrap/Config.in | 1 + package/cdrkit/Config.in | 1 + package/chrony/Config.in | 1 + package/criu/Config.in | 1 + package/libcap/Config.in | 1 + package/ntpsec/Config.in | 1 + package/proftpd/Config.in | 1 + package/rng-tools/Config.in | 2 +- package/slirp4netns/Config.in | 1 + package/squid/Config.in | 1 + package/systemd/Config.in | 1 + package/vdr/Config.in | 1 + 12 files changed, 12 insertions(+), 1 deletion(-) diff --git a/package/bubblewrap/Config.in b/package/bubblewrap/Config.in index 2492cee0e564..95aa171b46b0 100644 --- a/package/bubblewrap/Config.in +++ b/package/bubblewrap/Config.in @@ -1,6 +1,7 @@ config BR2_PACKAGE_BUBBLEWRAP bool "bubblewrap" depends on BR2_USE_MMU # fork() + depends on BR2_TOOLCHAIN_HAS_ATOMIC_TEST_AND_SET # libcap select BR2_PACKAGE_LIBCAP help Unprivileged sandbox tool based on Linux namespaces. diff --git a/package/cdrkit/Config.in b/package/cdrkit/Config.in index b3ddcbd13540..8b6ed6984993 100644 --- a/package/cdrkit/Config.in +++ b/package/cdrkit/Config.in @@ -1,6 +1,7 @@ config BR2_PACKAGE_CDRKIT bool "cdrkit" depends on BR2_USE_MMU # fork + depends on BR2_TOOLCHAIN_HAS_ATOMIC_TEST_AND_SET # libcap # Needed for libbz select BR2_PACKAGE_BZIP2 select BR2_PACKAGE_LIBCAP diff --git a/package/chrony/Config.in b/package/chrony/Config.in index c22b756c113f..2784d20516ce 100644 --- a/package/chrony/Config.in +++ b/package/chrony/Config.in @@ -1,6 +1,7 @@ config BR2_PACKAGE_CHRONY bool "chrony" depends on BR2_USE_MMU # fork() + depends on BR2_TOOLCHAIN_HAS_ATOMIC_TEST_AND_SET # libcap select BR2_PACKAGE_LIBCAP help Chrony is a pair of programs which are used to maintain the diff --git a/package/criu/Config.in b/package/criu/Config.in index 30b131cd30a6..913583cfee96 100644 --- a/package/criu/Config.in +++ b/package/criu/Config.in @@ -26,6 +26,7 @@ config BR2_PACKAGE_CRIU depends on BR2_INSTALL_LIBSTDCPP # protobuf depends on BR2_TOOLCHAIN_HAS_THREADS # protobuf, libnl depends on BR2_USE_WCHAR # libbsd + depends on BR2_TOOLCHAIN_HAS_ATOMIC_TEST_AND_SET # libcap select BR2_PACKAGE_HOST_PYTHON3 select BR2_PACKAGE_HOST_PYTHON3_SSL select BR2_PACKAGE_PROTOBUF diff --git a/package/libcap/Config.in b/package/libcap/Config.in index e1971b7bb15a..b0379d8f5094 100644 --- a/package/libcap/Config.in +++ b/package/libcap/Config.in @@ -1,6 +1,7 @@ config BR2_PACKAGE_LIBCAP bool "libcap" depends on BR2_USE_MMU # fork() + depends on BR2_TOOLCHAIN_HAS_ATOMIC_TEST_AND_SET help This library implements the user-space interfaces to the POSIX 1003.1e capabilities available in Linux kernels. These diff --git a/package/ntpsec/Config.in b/package/ntpsec/Config.in index 3b20daecc77a..9135527c238a 100644 --- a/package/ntpsec/Config.in +++ b/package/ntpsec/Config.in @@ -4,6 +4,7 @@ config BR2_PACKAGE_NTPSEC depends on BR2_USE_WCHAR # python3 depends on BR2_TOOLCHAIN_HAS_THREADS # python3 depends on !BR2_STATIC_LIBS # python3 + depends on BR2_TOOLCHAIN_HAS_ATOMIC_TEST_AND_SET # libcap select BR2_PACKAGE_LIBCAP select BR2_PACKAGE_OPENSSL select BR2_PACKAGE_PYTHON3 diff --git a/package/proftpd/Config.in b/package/proftpd/Config.in index 9d99ff70c485..f82c2c460029 100644 --- a/package/proftpd/Config.in +++ b/package/proftpd/Config.in @@ -12,6 +12,7 @@ if BR2_PACKAGE_PROFTPD config BR2_PACKAGE_PROFTPD_MOD_CAP bool "mod_cap support" + depends on BR2_TOOLCHAIN_HAS_ATOMIC_TEST_AND_SET # libcap select BR2_PACKAGE_LIBCAP help Compile ProFTPD with mod_cap support diff --git a/package/rng-tools/Config.in b/package/rng-tools/Config.in index 7f08fa25fbf7..cc11484aefd9 100644 --- a/package/rng-tools/Config.in +++ b/package/rng-tools/Config.in @@ -2,7 +2,7 @@ config BR2_PACKAGE_RNG_TOOLS bool "rng-tools" # pthread_setaffinity_np depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL - depends on BR2_USE_MMU # libcap + depends on BR2_USE_MMU && BR2_TOOLCHAIN_HAS_ATOMIC_TEST_AND_SET # libcap select BR2_PACKAGE_ARGP_STANDALONE if BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_MUSL select BR2_PACKAGE_LIBCAP select BR2_PACKAGE_OPENSSL diff --git a/package/slirp4netns/Config.in b/package/slirp4netns/Config.in index 22414dfbc972..9103eea70cbc 100644 --- a/package/slirp4netns/Config.in +++ b/package/slirp4netns/Config.in @@ -5,6 +5,7 @@ config BR2_PACKAGE_SLIRP4NETNS depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2, slirp depends on BR2_PACKAGE_LIBSECCOMP_ARCH_SUPPORTS # libseccomp depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17 # libseccomp + depends on BR2_TOOLCHAIN_HAS_ATOMIC_TEST_AND_SET # libcap select BR2_PACKAGE_LIBCAP select BR2_PACKAGE_LIBGLIB2 select BR2_PACKAGE_LIBSECCOMP diff --git a/package/squid/Config.in b/package/squid/Config.in index ab13e735e114..ca02c9f97ea1 100644 --- a/package/squid/Config.in +++ b/package/squid/Config.in @@ -15,6 +15,7 @@ config BR2_PACKAGE_SQUID depends on BR2_HOST_GCC_AT_LEAST_8 # C++17 # needs fork() depends on BR2_USE_MMU + depends on BR2_TOOLCHAIN_HAS_ATOMIC_TEST_AND_SET # libcap select BR2_PACKAGE_LIBCAP select BR2_PACKAGE_LIBTOOL select BR2_PACKAGE_LIBXCRYPT if BR2_TOOLCHAIN_USES_GLIBC diff --git a/package/systemd/Config.in b/package/systemd/Config.in index d9545e9db04f..f5ec1cc854d6 100644 --- a/package/systemd/Config.in +++ b/package/systemd/Config.in @@ -25,6 +25,7 @@ menuconfig BR2_PACKAGE_SYSTEMD depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15 depends on BR2_TOOLCHAIN_GCC_AT_LEAST_8 depends on BR2_HOST_GCC_AT_LEAST_8 # host-systemd + depends on BR2_TOOLCHAIN_HAS_ATOMIC_TEST_AND_SET # libcap select BR2_PACKAGE_HAS_UDEV select BR2_PACKAGE_DBUS if !BR2_PACKAGE_DBUS_BROKER # runtime select BR2_PACKAGE_LIBCAP diff --git a/package/vdr/Config.in b/package/vdr/Config.in index 38502729a7fb..0000eac361e0 100644 --- a/package/vdr/Config.in +++ b/package/vdr/Config.in @@ -6,6 +6,7 @@ config BR2_PACKAGE_VDR depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_9 depends on BR2_USE_MMU # fork() depends on BR2_USE_WCHAR + depends on BR2_TOOLCHAIN_HAS_ATOMIC_TEST_AND_SET # libcap select BR2_PACKAGE_FONTCONFIG select BR2_PACKAGE_FREETYPE select BR2_PACKAGE_JPEG