From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f175.google.com (mail-wr0-f175.google.com [209.85.128.175]) by dpdk.org (Postfix) with ESMTP id 114A31E20 for ; Thu, 6 Apr 2017 16:33:32 +0200 (CEST) Received: by mail-wr0-f175.google.com with SMTP id t20so65295717wra.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=dOEHNzJjs7sRhWX6vdKcj45kn0qlUTN/+jX5TtHn5wL7a6xPKHYBAnet/3aIP1kMNv oL/1fjCh1g+t8ricBp+PuNkMjf65ORKY06b5el1E+kQVzLSXen/VywMHNuD/aeuuVg/d N3644ZPb8xXjmRpIzrXr5hSxoufY2G+mWgTzvlUiaGdP8S+MMQw89kekrG/n3esY6AsI xN4mLKY8XbAcZXEN7qaHDGJLROkZHUxHxmDxgugOPHRMESjAyVKY7LrpqhRQwPEfFv0p OIosZqiuW9WqUbWOAftq0ixRQTTu4AvLuNhD9jBq4LjnrOurc6pkUJ+oBZWFJclIXOYb Vk4A== X-Gm-Message-State: AFeK/H0BRZQwG0FcgIsVQLiuprIcl5uFgINL32NjwSbPR3/n+x4jPDtjnUqCpc8H2eRkeGY8 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-dev] [PATCH] mk: fix shell errors when building with clang X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions 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