From patchwork Wed Dec 1 20:14:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 14983 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 300E5BDB13 for ; Wed, 1 Dec 2021 20:14:39 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 46D166082A; Wed, 1 Dec 2021 21:14:38 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="dXYuMuCB"; dkim-atps=neutral Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 32FA8607DE for ; Wed, 1 Dec 2021 21:14:36 +0100 (CET) Received: by mail-pl1-x630.google.com with SMTP id u11so18586419plf.3 for ; Wed, 01 Dec 2021 12:14:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=q57qJwPciihl01wikFylzO4Zue0E3EXoAx7oLkZ2g+k=; b=dXYuMuCBVK7oopjpSWEh+3sEP3BDIkqPmLtyyTlefk0+j1gvN9v/ByI4fjDfuIYtRb yVj53op+5y636QP9lvkAV/lFeK6G/n77+gAtQGUWOqOh7lUiOx1WcZ3EGq2Cyn9aT/zL 77YKfBwGItZmbGQCIniMq987dJYS0UhvzLNGUyIkEIXSGEk9IpIlo8MUWRW7VOcQdP8n X+0e75+7ztVXtDaugoCpsa4N8XHw9OgVFTI7o35KohZEHD3TLzQcxSvdBTINwYJgLISf /zwR+g7bOtRqs4Diae5kJxAKhy6tWl8jvtVH+Bvzc1qTyM/LpTFbdMxfC7UDYZtCqNJ9 Hp0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=q57qJwPciihl01wikFylzO4Zue0E3EXoAx7oLkZ2g+k=; b=mE/+pCIkLSSe6j414Q2yiEGwJFN+QSRVMlfT65U23z04YCoJ0oV6NA7itRPJqoOCLj OnTFCVA+kTf+/h62FzaZTGCYuYrmnNmxlcnjsbOK1NCawR6gaov6oA7JV6o1+0gCBTuK gcmB9vADaICMzjlNpclbME65zA2E7EddK8v5jpzUIc77JwhxE2a1R40JU6IbCpAnLvbo BnXubJDY+zcGxRUu53R+ImouXuXzOVvGNYWA0YrHAjHvQF2BDGJsSgVsaXsg3UV4kq80 vzCVXsdQ7kepgOh9MdtJ93IiWA3zLudxVbCGtpdE/Zee15mvw7/eyCGA8tt7TLRtA/qk j7iQ== X-Gm-Message-State: AOAM531kw58alhCaf9ub0+qMUUp7nMkQH1i8yfrvJviFPID6hCBRJ7rn zRDnm/wwl6HcXmuYOigawGAfiHY90b/wFA== X-Google-Smtp-Source: ABdhPJyrLWCyr/VBiBKnT+5RJrPcb3QaoAl0OOLEjQa4NJifselxwMiggrmVfEEUqDX/VOM0Q8SB+A== X-Received: by 2002:a17:90a:f182:: with SMTP id bv2mr501905pjb.139.1638389674169; Wed, 01 Dec 2021 12:14:34 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9200:a0f0::ce68]) by smtp.gmail.com with ESMTPSA id c21sm659929pfl.138.2021.12.01.12.14.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Dec 2021 12:14:33 -0800 (PST) From: Khem Raj To: libcamera-devel@lists.libcamera.org Date: Wed, 1 Dec 2021 12:14:30 -0800 Message-Id: <20211201201430.2022636-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH] backtracre: Include cxxabi.h without HAVE_DW X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Khem Raj Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Since its used in code without HAVE_DW, it fails to compile on such systems e.g. linux/musl Fixes src/libcamera/base/backtrace.cpp:235:16: error: use of undeclared identifier 'abi' char *name = abi::__cxa_demangle(symbol, nullptr, nullptr, nullptr); ^ 1 error generated. Signed-off-by: Khem Raj --- src/libcamera/base/backtrace.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libcamera/base/backtrace.cpp b/src/libcamera/base/backtrace.cpp index d93e5518..42c60f7c 100644 --- a/src/libcamera/base/backtrace.cpp +++ b/src/libcamera/base/backtrace.cpp @@ -13,11 +13,12 @@ #endif #ifdef HAVE_DW -#include #include #include #endif +#include + #if HAVE_UNWIND /* * Disable support for remote unwinding to enable a more optimized