Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp940269ybb; Wed, 25 Mar 2020 12:27:58 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtL56YeAcOFqndVwmTlO1NA8++FVrtBPPl7ceY6FXtrrtAaMewsSN+7Xx2o/tfBLnnqkXJW X-Received: by 2002:a9d:30c7:: with SMTP id r7mr3563463otg.289.1585164478794; Wed, 25 Mar 2020 12:27:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585164478; cv=none; d=google.com; s=arc-20160816; b=zRH1oOpLMt8enzGpBvUXismFxEVOwsBlS4D9vptJPVw1Ogui2B8q2a3SS8CgwQWXi6 0AlO5uk0Mu9wniWV8qND+61a/YxRGItWv7cZlQTfXpq3W6lIytfO6wSGi3UYJZlnItS7 T0Vabn2hokvyo6E1ovt0A1XwOyYFKcf+YUBxU85CpScQF8R5RpaS8FyadpQS9XQdzgZq udSk6jNUAFodK3+0rhABKhx20iBd4sWplyvLseX8VfXfp8xxvBPdW69qP7fIx5wrfbXm CcpzVE6QK1EazM7ITYVQhUE4AdCXJ5flVaiy22CMiXVLbrgQWcL8CHTbzh9yx4pShyxO O5Rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:date:from :dkim-signature; bh=vsO2FYfYVi+PH9UeJM3VQ8uylR9mfG2fsjehGqz9OJQ=; b=vMR9LdfO11gHqANgCOVQnpRJEM/jwhCHLkAQpNO3Ysx885A2cttMzyJ1snVh010ixC 3ZFUQoELm02i2TWlWyLUtSndC/oTAr8VJ6gspFLUi7yUOJ8XMzf0yOFtJOMACIJmqNnc zSIH/E3IC4mD7hPq03lUBFn5GBzJNOgdGc54HKLytIMPBtzw35L/LsMW+ngEpn3zTztm +ieO4apetnSeVNp1vdhnXHoN0Qv+R5WjR9apB0O84p3guIvrya0gmNZW14jd/Tym4+6A sPZegliiBZ6Vkb76j8gmgz0o+77zYb78W6SkIX78K9VNGa2vczSv/jIBkB1Gu2Omqrkd FXlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FN0H2enO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i9si10779otk.101.2020.03.25.12.27.45; Wed, 25 Mar 2020 12:27:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FN0H2enO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727464AbgCYT0o (ORCPT + 99 others); Wed, 25 Mar 2020 15:26:44 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:35473 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727174AbgCYT0o (ORCPT ); Wed, 25 Mar 2020 15:26:44 -0400 Received: by mail-qk1-f196.google.com with SMTP id k13so3909092qki.2 for ; Wed, 25 Mar 2020 12:26:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=vsO2FYfYVi+PH9UeJM3VQ8uylR9mfG2fsjehGqz9OJQ=; b=FN0H2enO8L7bLyWKTjAhlsawoiZNUC299o3u/dt0jE6VJ+iZ7Dn4cEqcpotjYHx0A7 aj4o1W/Hrr2AWFvxx+STQSZhashXMcjH+joq/JYGqM+FHOqAHsPDn9v1FX4qLshP9RC+ wRgWhWhG7aDXm2pSgtwCvjyBNBLM3EVIwLVBarJIx3bC4AaT9HoPnbS/RTNtVJSdIi65 tGP16J8PV2YMzVaeN0emaY7OQLJyEMqX11D+YUplUMgRoUnEgMjSaomFoL9tKvAILQ2Z GOnBNCAbrmtbsmequmWJFIZkKgjM11HZYu8FmK9Cw4QW38StGVqgGfnsyCCy1tOnvCdd 4EZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=vsO2FYfYVi+PH9UeJM3VQ8uylR9mfG2fsjehGqz9OJQ=; b=hXu3UwA+E66qrWIYFUodm+dTaudMK2w0syjXcUXwCJYYz1Dm8OTwiBLtPidD4BFKyI 3vwqzl5Lo4HqqCLUFmdsBu9z9ZfuyE8CgtDlSDpy+FKbqTWiibBQIQ/xC8veZasaSVNT W0tMOIG3ZJR8Ya1uVDnKqTnML4M1ge92b8MRbfjMZlM1QXtG9D84zaHmId0ZM7GFBoky rjUv3lrFaJJa/2TWLLbKtb1WsboqWScZ969JYb1ukM7QEB21SQkHRq0ihme1KsUAf/Td UtR0kf5bxRztw/5nRkHnX6ZKWEJMp2AsGYTz0WGfbwT/a5AUmL2ICx9jVEGhHyMOUaGM xSkA== X-Gm-Message-State: ANhLgQ3zhMp1GEjXogRFAABwmBwxnZIvdtA/qiBqjSAWVJ6t+KugwHWT 6Owocjjj2f1co4pOEcYUTBM= X-Received: by 2002:a37:a213:: with SMTP id l19mr4341375qke.377.1585164403176; Wed, 25 Mar 2020 12:26:43 -0700 (PDT) Received: from quaco.ghostprotocols.net ([179.97.37.151]) by smtp.gmail.com with ESMTPSA id u123sm15975906qkf.77.2020.03.25.12.26.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Mar 2020 12:26:42 -0700 (PDT) From: Arnaldo Carvalho de Melo X-Google-Original-From: Arnaldo Carvalho de Melo Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 63A3440F77; Wed, 25 Mar 2020 16:26:40 -0300 (-03) Date: Wed, 25 Mar 2020 16:26:40 -0300 To: Sam Lunt Cc: Arnaldo Carvalho de Melo , He Zhe , Jiri Olsa , peterz@infradead.org, mingo@redhat.com, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, namhyung@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] perf: Be compatible with all python versions when fetching ldflags Message-ID: <20200325192640.GI14102@kernel.org> References: <1581618066-187262-1-git-send-email-zhe.he@windriver.com> <20200216222148.GA161771@krava> <8cc46abf-208d-4aa4-8d0d-4922106bee6e@windriver.com> <20200325133012.GC14102@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Wed, Mar 25, 2020 at 09:40:34AM -0500, Sam Lunt escreveu: > On Wed, Mar 25, 2020 at 8:30 AM Arnaldo Carvalho de Melo > wrote: > > > > Em Mon, Feb 17, 2020 at 10:24:27AM +0800, He Zhe escreveu: > > > > > > > > > On 2/17/20 6:22 AM, Jiri Olsa wrote: > > > > On Fri, Feb 14, 2020 at 02:21:05AM +0800, zhe.he@windriver.com wrote: > > > >> From: He Zhe > > > >> > > > >> Since Python v3.8.0, with the following commit > > > >> 0a8e57248b91 ("bpo-36721: Add --embed option to python-config (GH-13500)"), > > > > we got similar change recently.. might have not been picked up yet > > > > > > > > https://lore.kernel.org/lkml/20200131181123.tmamivhq4b7uqasr@gmail.com/ > > > > > > Thanks for pointing out. > > > > So, just with your patch: > > > > [acme@five perf]$ rm -rf /tmp/build/perf ; mkdir -p /tmp/build/perf > > [acme@five perf]$ make PYTHON=python3 -C tools/perf O=/tmp/build/perf install-bin |& grep python > > ... libpython: [ OFF ] > > Makefile.config:750: No 'Python.h' (for Python 2.x support) was found: disables Python support - please install python-devel/python-dev > > CC /tmp/build/perf/tests/python-use.o > > [acme@five perf]$ > > > > [acme@five perf]$ rpm -q python2-devel python3-devel python-devel > > package python2-devel is not installed > > python3-devel-3.7.6-2.fc31.x86_64 > > package python-devel is not installed > > [acme@five perf]$ > > > > [acme@five perf]$ cat /tmp/build/perf/feature/test-libpython.make.output > > /bin/sh: --configdir: command not found > > [acme@five perf]$ cat /tmp/build/perf/feature/test-libpython > > test-libpython.make.output test-libpython-version.make.output > > [acme@five perf]$ cat /tmp/build/perf/feature/test-libpython-version.make.output > > /bin/sh: --configdir: command not found > > [acme@five perf]$ > > > > > > Without your patch: > > > > [acme@five perf]$ rm -rf /tmp/build/perf ; mkdir -p /tmp/build/perf > > [acme@five perf]$ make PYTHON=python3 -C tools/perf O=/tmp/build/perf install-bin |& grep python > > ... libpython: [ on ] > > GEN /tmp/build/perf/python/perf.so > > MKDIR /tmp/build/perf/scripts/python/Perf-Trace-Util/ > > CC /tmp/build/perf/scripts/python/Perf-Trace-Util/Context.o > > LD /tmp/build/perf/scripts/python/Perf-Trace-Util/perf-in.o > > CC /tmp/build/perf/tests/python-use.o > > CC /tmp/build/perf/util/scripting-engines/trace-event-python.o > > INSTALL python-scripts > > [acme@five perf]$ > > > > [acme@five perf]$ ldd /tmp/build/perf/perf |& grep python > > libpython3.7m.so.1.0 => /lib64/libpython3.7m.so.1.0 (0x00007f11dd1ee000) > > [acme@five perf]$ perf -vv |& grep -i python > > libpython: [ on ] # HAVE_LIBPYTHON_SUPPORT > > [acme@five perf]$ > > > > What am I missing? > > It looks like you are using python3.7, but the change in behavior for > python-config happened in version 3.8 Humm, but shouldn't this continue to work with python3.7? - Arnaldo > > [acme@five perf]$ cat /etc/redhat-release > > Fedora release 31 (Thirty One) > > [acme@five perf]$ > > > > - Arnaldo -- - Arnaldo