public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Alexey Brodkin <Alexey.Brodkin@synopsys.com>
To: "acme@redhat.com" <acme@redhat.com>,
	"eranian@google.com" <eranian@google.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"peterz@infradead.org" <peterz@infradead.org>,
	"aaro.koskinen@iki.fi" <aaro.koskinen@iki.fi>,
	"Vineet.Gupta1@synopsys.com" <Vineet.Gupta1@synopsys.com>,
	"acme@kernel.org" <acme@kernel.org>,
	"mingo@redhat.com" <mingo@redhat.com>,
	Vineet Gupta <Vineet.Gupta1@synopsys.com>,
	"pgynther@google.com" <pgynther@google.com>
Subject: Re: [PATCH] perf tools: Fix build errors with mipsel-linux-uclibc compiler
Date: Sun, 4 Oct 2015 13:53:31 +0000	[thread overview]
Message-ID: <1443966811.28387.5.camel@synopsys.com> (raw)
In-Reply-To: <20150921210636.GC1814@blackmetal.musicnaut.iki.fi>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="utf-8", Size: 3048 bytes --]

Hello Stephane, Armaldo,

On Tue, 2015-09-22 at 00:06 +0300, Aaro Koskinen wrote:
> Hi,
> 
> On Mon, Sep 21, 2015 at 04:29:39PM +0000, Alexey Brodkin wrote:
> > > Em Fri, Sep 04, 2015 at 04:01:54PM -0700, Petri Gynther escreveu:
> > > > On Fri, Sep 4, 2015 at 3:48 PM, Arnaldo Carvalho de Melo
> > > > <ac...@kernel.org> wrote:
> > > > > Em Fri, Sep 04, 2015 at 03:45:03PM -0700, Petri Gynther escreveu:
> > > > > > This commit breaks the perf tool MIPS build because MIPS doesn't have
> > > > > > CONFIG_PERF_REGS=y in .config-detected:
> > > > > > 
> > > > > > commit bcc84ec65ad1bd9f777a1fade6f8e5e0c5808fa5
> > > > > > Author: Stephane Eranian <era...@google.com>
> > > > > > Date:   Mon Aug 31 18:41:12 2015 +0200
> > > > > > 
> > > > > >     perf record: Add ability to name registers to record
> > > > > 
> > > > > There was a fix for another arch that came after this one.. here it is, already
> > > > > upstream, can you take a look?
> > > > > 
> > > > > commit af4aeadd8c04303c0aa2d112145c3627e2ebd026
> > > > > Author: Stephane Eranian <era...@google.com>
> > > > > Date:   Tue Sep 1 11:30:14 2015 +0200
> > > > > 
> > > > >     perf tools: Fix link time error with sample_reg_masks on non x86
> > > > > 
> > > > >     This patch makes perf compile on non x86 platforms by defining a weak
> > > > >     symbol for sample_reg_masks[] in util/perf_regs.c.
> > > > > 
> > > > >     The patch also moves the REG() and REG_END() macros into the
> > > > >     util/per_regs.h header file. The macros are renamed to
> > > > >     SMPL_REG/SMPL_REG_END to avoid clashes with other header files.
> > > > > 
> > > > > 
> > > > 
> > > > I have the above commit in my tree (as I have the latest Linus' tree
> > > > as of right now).
> > > > The MIPS build is still broken as I reported.
> > > 
> > > Stephane, can you please take a look?
> > 
> > The same problem happens when building perf on ARC.
> > I'm on 4.3-rc2 and that's what I see:
> > ------------------->8-----------------
> >   LINK     .../linux-4.3-rc2/tools/perf/perf
> > .../linux-4.3-rc2/tools/perf/libperf.a(libperf-in.o): In function `parse_regs':
> > .../linux-4.3-rc2/tools/perf/util/parse-regs-options.c:28: undefined reference to `sample_reg_masks'
> > .../linux-4.3-rc2/tools/perf/util/parse-regs-options.c:45: undefined reference to `sample_reg_masks'
> > .../linux-4.3-rc2/tools/perf/util/parse-regs-options.c:38: undefined reference to `sample_reg_masks'
> > collect2: error: ld returned 1 exit status
> > ------------------->8-----------------
> > 
> > Any chance for this to be discussed any further?
> 
> Also (with 4.3-rc2) on PA-RISC, PowerPC and SPARC the same errors are
> seen. 4.2 builds fine.

Any chance to take a look at this issue?

It's already 4.3-rc3 so it would be nice to get some fix to try so there will be time
to make sure that new fix doesn't break stuff for other arches.

Regards,
Alexeyÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ\x17¥Šwÿº{.nÇ+‰·¥Š{±þG«éÿŠ{ayº\x1dʇڙë,j\a­¢f£¢·hšïêÿ‘êçz_è®\x03(­éšŽŠÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?™¨è­Ú&£ø§~á¶iO•æ¬z·švØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?–I¥

  reply	other threads:[~2015-10-04 13:53 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-21 16:29 [PATCH] perf tools: Fix build errors with mipsel-linux-uclibc compiler Alexey Brodkin
2015-09-21 21:06 ` Aaro Koskinen
2015-10-04 13:53   ` Alexey Brodkin [this message]
2015-10-05 21:59     ` Petri Gynther
2015-10-07 18:58       ` Alexey Brodkin
2015-10-14 21:52         ` Petri Gynther
  -- strict thread matches above, loose matches on Subject: below --
2015-08-05  0:38 Petri Gynther
2015-09-04 22:19 ` Petri Gynther
2015-09-04 22:45   ` Petri Gynther
2015-09-04 22:48     ` Arnaldo Carvalho de Melo
2015-09-04 23:01       ` Petri Gynther
2015-09-04 23:04         ` Arnaldo Carvalho de Melo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1443966811.28387.5.camel@synopsys.com \
    --to=alexey.brodkin@synopsys.com \
    --cc=Vineet.Gupta1@synopsys.com \
    --cc=aaro.koskinen@iki.fi \
    --cc=acme@kernel.org \
    --cc=acme@redhat.com \
    --cc=eranian@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=peterz@infradead.org \
    --cc=pgynther@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox