Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1624617 > unrolled thread
| Started by | Jiada Wang <jiada_wang@mentor.com> |
|---|---|
| First post | 2017-04-17 11:40 +0200 |
| Last post | 2017-04-17 20:40 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH v3 1/1] perf tools: fix perf build with ARCH=x86_64 Jiada Wang <jiada_wang@mentor.com> - 2017-04-17 11:40 +0200
Re: [PATCH v3 1/1] perf tools: fix perf build with ARCH=x86_64 Jiri Olsa <jolsa@redhat.com> - 2017-04-17 20:40 +0200
| From | Jiada Wang <jiada_wang@mentor.com> |
|---|---|
| Date | 2017-04-17 11:40 +0200 |
| Subject | Re: [PATCH v3 1/1] perf tools: fix perf build with ARCH=x86_64 |
| Message-ID | <txbix-7rC-13@gated-at.bofh.it> |
On 04/10/2017 12:44 AM, Jiri Olsa wrote: > On Sun, Apr 09, 2017 at 07:43:15PM -0700, Jiada Wang wrote: >> Hello Jiri >> >> On 04/09/2017 10:27 AM, Jiri Olsa wrote: >>> On Tue, Apr 04, 2017 at 11:25:44PM -0700, jiada_wang@mentor.com wrote: >>>> From: Jiada Wang<jiada_wang@mentor.com> >>>> >>>> with commit: 0a943cb10ce78 (tools build: Add HOSTARCH Makefile variable) >>>> the following build failure is seen when build with ARCH=x86_64 >>> is that described somewhere as a valid building interface? >>> I never use it so I have no idea.. would you describe your >>> build env/process? >> I used "ARCH=x86_64 make -C tools perf V=1" to build perf for x86_64 ARCH. > you're on x86 machine right? I don't see CROSS_COMPILE being used.. > > what's the purpose of the ARCH var setup then? Sorry for late response. Yes, I am on x86 machine, and want to build for x86_64, I didn't mention CROSS_COMPILE option in my last reply is because no matter what 'CROSS_COMPILE' is, the issue can be reproduced when ARCH=X86_64. The full command I used to build perf, is somewhat near to make -C tools perf V=2 ARCH=x86_64 CROSS_COMPILE=i686-pc-linux-gnc-g CC=i686-pc-linux-gnc-gcc Thanks, Jiada > >>>> In file included from util/event.c:2:0: >>>> tools/include/uapi/linux/mman.h:4:27: fatal error: uapi/asm/mman.h: No such file or directory >>>> compilation terminated. >>>> >>>> fix this issue by use SRCARCH instead of ARCH in perf. >>> please describe also the the issue itself in the changelog, not just the fix >> I will update changelog with detail information about the issue in v4 >>> >>> so objtool is using SRCARCH this way, I guess it's fine >>> >>> if we go this way, you also need to change the pmu-events/Build >>> and there's some comment using $(ARCH) in util/header.c >> will update pmu-events/Build in v4 > I'll check > > thanks, > jirka
[toc] | [next] | [standalone]
| From | Jiri Olsa <jolsa@redhat.com> |
|---|---|
| Date | 2017-04-17 20:40 +0200 |
| Message-ID | <txjJ7-466-19@gated-at.bofh.it> |
| In reply to | #1624617 |
On Mon, Apr 17, 2017 at 02:31:28AM -0700, Jiada Wang wrote: > On 04/10/2017 12:44 AM, Jiri Olsa wrote: > > On Sun, Apr 09, 2017 at 07:43:15PM -0700, Jiada Wang wrote: > > > Hello Jiri > > > > > > On 04/09/2017 10:27 AM, Jiri Olsa wrote: > > > > On Tue, Apr 04, 2017 at 11:25:44PM -0700, jiada_wang@mentor.com wrote: > > > > > From: Jiada Wang<jiada_wang@mentor.com> > > > > > > > > > > with commit: 0a943cb10ce78 (tools build: Add HOSTARCH Makefile variable) > > > > > the following build failure is seen when build with ARCH=x86_64 > > > > is that described somewhere as a valid building interface? > > > > I never use it so I have no idea.. would you describe your > > > > build env/process? > > > I used "ARCH=x86_64 make -C tools perf V=1" to build perf for x86_64 ARCH. > > you're on x86 machine right? I don't see CROSS_COMPILE being used.. > > > > what's the purpose of the ARCH var setup then? > Sorry for late response. > > Yes, I am on x86 machine, and want to build for x86_64, > I didn't mention CROSS_COMPILE option in my last reply is because no > matter what 'CROSS_COMPILE' is, the issue can be reproduced when > ARCH=X86_64. > > The full command I used to build perf, is somewhat near to > make -C tools perf V=2 ARCH=x86_64 CROSS_COMPILE=i686-pc-linux-gnc-g > CC=i686-pc-linux-gnc-gcc ook, I think I've already acked the v4 you sent thanks, jirka
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web