From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f174.google.com (mail-wr0-f174.google.com [209.85.128.174]) by dpdk.org (Postfix) with ESMTP id 0DF3F2C5 for ; Thu, 6 Apr 2017 16:33:32 +0200 (CEST) Received: by mail-wr0-f174.google.com with SMTP id t20so65295714wra.1 for ; Thu, 06 Apr 2017 07:33:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=7YN7S3f7oXMkqxZx53Tpbm31ELEFyJBsM4lPwKA9uBo=; b=HOJgAfGQk5XjxQOpgD0Yhv+57aV9eejFdreyKHBA7je5RK7PeaJe0EBZqqBF1VZ8xc 0+XPVHaZep7QW5EGZsxK0sSYKk0ZBdoLSGnKGLbmEGIvSTIKa/ioi18mvS1F4KP2gCqz 8NCfXeQlwtZNaAElzwhcV7NEkyETIH5EtYd5N49QvqYtOQfW3OmlcQlLdQVfj4sN9rOa zveDFQT5LgYwETMqeicSWkbkrm6eC2LLVD5Ab9yVWFexapT+G/0SZDWy1XYKJf4IU8fp z37E/fPAqxdourSDAaZk9GDdYhhWexhNdEw5BUd6R6x0O2be7uP4lAWwdnThPZP41cop A3eA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=7YN7S3f7oXMkqxZx53Tpbm31ELEFyJBsM4lPwKA9uBo=; b=Dy5BYm8UPPG4FyMriXt8xQFNujBJquLbnCxhEWofU+CLDdbrL2TNvTRRarnNoAzuJF ZBBt5AUof+h5I+2XqdcaRJQHlcnrAHe0uN1HPmUcMtTSKu9r7Ad+T0qriQFd8zS1YKID +zR4qWD6L11Lasn2b+lzl9HTfJ080jQ0gY2d5W5Ol81hby7NytDD90M7aztrDDe2KUyN 9Q3eKXbyxCHgzMjTeaIuI9rUhH7o9U+FXrgjanKjx16yHs+uRxTX0C6LDtFO1GLH9zPw PRDafNHujL6cdKI7GaR9kRhbW5LJmCtXKjodMnrJ6YfcDUDtyGm8z0kQaiGvUGXz837y EHjw== X-Gm-Message-State: AFeK/H1I8c/tfgKSEoumxBfa6zzqjCSBVv1zH17qLsq5F5ahWh1pNi8he75q+S5zMytDidNN X-Received: by 10.28.125.14 with SMTP id y14mr24865931wmc.101.1491489212655; Thu, 06 Apr 2017 07:33:32 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id h68sm55112wmd.19.2017.04.06.07.33.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Apr 2017 07:33:32 -0700 (PDT) From: Thomas Monjalon To: Olivier Matz Cc: dev@dpdk.org, stable@dpdk.org Date: Thu, 06 Apr 2017 16:33:31 +0200 Message-ID: <2919831.1aLGMpDVn7@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <20170406141241.14061-1-olivier.matz@6wind.com> References: <20170406141241.14061-1-olivier.matz@6wind.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-stable] [PATCH] mk: fix shell errors when building with clang X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2017 14:33:33 -0000 2017-04-06 16:12, Olivier Matz: > On my system, the version of the compiler is not properly retrieved, > resulting in strange logs when building the dpdk: > /bin/sh: line 0: test: too many arguments > > This happens when mk/toolchain/clang/rte.toolchain-compat.mk is included > from a directory that use gcc to build (ex: kernel modules). In that > case, the CLANG_VERSION variable contains spaces that breaks some shell > calls to the test program. > > The error is because the output of "gcc -v" on my system contains 2 lines > that matches the "version" string: > > Configured with: ../src/configure -v \ > --with-pkgversion='Debian 6.3.0-6' [...] > gcc version 6.3.0 20170205 (Debian 6.3.0-6) > > This may be specific to Debian. Fix it by specializing the grep. > > Fixes: 2ef6eea891e5 ("mk: add clang toolchain") > > Cc: stable@dpdk.org > Signed-off-by: Olivier Matz Acked-by: Thomas Monjalon Applied, thanks