From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2D454A00C5; Tue, 21 Jun 2022 14:28:34 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 11E074069C; Tue, 21 Jun 2022 14:28:34 +0200 (CEST) Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) by mails.dpdk.org (Postfix) with ESMTP id C13BB40151 for ; Tue, 21 Jun 2022 14:28:32 +0200 (CEST) Received: by mail-lf1-f42.google.com with SMTP id a2so22093282lfg.5 for ; Tue, 21 Jun 2022 05:28:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=13TFeyTgzZdBw9ZKL6EMSd1t8MicJ+tK3HFLoQFLnnQ=; b=qKRvxKy3ARnH0iTD5nzkilDcKNiq+pQza9FRLnu8woYUs2UdFq5p/8ruf17/h7LFZY 9aGjXkoWDO028z5pU8kbFFiKfxBeupH1JkXHvh1A09++Z8BELKEUv5cagPUlxwffajfK nxyU29FQRxBTpYGjJLF95Oiye5MqV1ZDsQ3UZ/AlnfJfQt6OTBJIXaT2xmvowPLswfTc nFpITmen1nylvbw3qomMthoPYhIJb1iUpLdgwUa8r3Pc6PYI87tnahdxTMD/keFhUEdw siFsQH9byfGnBi41UysTOQQul4Ax85suqJjkyjcl+8CfJT5H/KbkUJJvUcZMzXcCvruI aUyA== 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=13TFeyTgzZdBw9ZKL6EMSd1t8MicJ+tK3HFLoQFLnnQ=; b=5wXdynANI2VMx3Z8lTEeIxWIg3gab5mTdoJ8jTNzGiyrFMjwWIXeEBgcYncgJYDXOp K2ez6lvNwHRzGTEuH9FwQaLT8v8PRo+L6pBGluHROCUik2MtFFVviNWQswODLUpon000 039jzNa/xMct5vLfSQKSMQ+50c45ARyreNHiYyeqLKikZwq3iocp+tV7i2DzPKUktRsh /XBxWdFW+R0Fvy6d3bZeYn9nvChBVZR4Rcb48ILTM+Ehkn5/2G9jbSsPOgRlXpAszoRf wSVPh9qbgc7asHyKDGhgKMnkv17UKgx2Ha1CCs6Y9nkHfeaUsqyngjvXNyrB9HzcA21B pRUw== X-Gm-Message-State: AJIora/oUW6Bi0dvcdTW0FCNQVM9j+EDCgJexv6cMS+Ik7nqB60b3kyf ntK5bODs18lobolpRH1J9kRqjDETwQZvFzys X-Google-Smtp-Source: AGRyM1s+ISvQTqCijt2NkcltMA3iPWFJRj7XF4vscnrmJmMAMEB9zwarTjNnHEAeUV2gqlOkU/n/dA== X-Received: by 2002:a05:6512:138e:b0:47f:77cc:327a with SMTP id p14-20020a056512138e00b0047f77cc327amr3928339lfa.277.1655814512268; Tue, 21 Jun 2022 05:28:32 -0700 (PDT) Received: from toster.office.semihalf.net ([83.142.187.84]) by smtp.gmail.com with ESMTPSA id u23-20020a197917000000b0047255d21107sm2143982lfc.54.2022.06.21.05.28.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jun 2022 05:28:31 -0700 (PDT) From: Stanislaw Kardach To: dev@dpdk.org Cc: Stanislaw Kardach , upstream@semihalf.com Subject: [PATCH 0/2] fix C++ include checks in cross-compilation Date: Tue, 21 Jun 2022 14:28:22 +0200 Message-Id: <20220621122824.187905-1-kda@semihalf.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Meson detects the C++ cross-compiler during configuration and based on that reports whether C++ language is available or not. The C++ include check target (buildtools/chkincs/chkincs-cpp) is only built when C++ language is available. There are 2 issues that currently prevent those checks to be run in cross-compiled environments: * PowerPC and ARM cross-files define cpp instead of g++ as C++ compiler. That's wrong because cpp is a C Preprocessor binary. * The CI workflow file does not install a g++ cross-compiler. This patchset fixes both issues. Stanislaw Kardach (2): config: Use G++ as C++ compiler ci: use crossbuild-essential packages .github/workflows/build.yml | 6 ++---- config/arm/arm32_armv8_linux_gcc | 2 +- config/arm/arm64_armada_linux_gcc | 2 +- config/arm/arm64_armv8_linux_gcc | 2 +- config/arm/arm64_bluefield_linux_gcc | 2 +- config/arm/arm64_centriq2400_linux_gcc | 2 +- config/arm/arm64_cn10k_linux_gcc | 2 +- config/arm/arm64_cn9k_linux_gcc | 2 +- config/arm/arm64_dpaa_linux_gcc | 2 +- config/arm/arm64_emag_linux_gcc | 2 +- config/arm/arm64_graviton2_linux_gcc | 2 +- config/arm/arm64_kunpeng920_linux_gcc | 2 +- config/arm/arm64_kunpeng930_linux_gcc | 2 +- config/arm/arm64_n1sdp_linux_gcc | 2 +- config/arm/arm64_n2_linux_gcc | 2 +- config/arm/arm64_stingray_linux_gcc | 2 +- config/arm/arm64_thunderx2_linux_gcc | 2 +- config/arm/arm64_thunderxt83_linux_gcc | 2 +- config/arm/arm64_thunderxt88_linux_gcc | 2 +- config/ppc/ppc64le-power8-linux-gcc | 2 +- config/ppc/ppc64le-power8-linux-gcc-ubuntu | 2 +- 21 files changed, 22 insertions(+), 24 deletions(-) -- 2.30.2