Skip to contentSkip to conversation

linux-next: build failure after merge of the tip tree

DISCUSSION Stephen Rothwell 3 participants 9 messages Sep 16, 2015 – Sep 30, 2015 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the tip tree, today's linux-next build (perf) failed like this:

make[3]: *** No rule to make target 'tools/lib/api/fs/debugfs.h', needed by 'tools/perf/arch/common.o'. Stop. tools/build/Makefile.build:109: recipe for target 'arch' failed
make[4]: *** No rule to make target 'fs/debugfs.h', needed by 'tools/perf/fs/fs.o'. Stop. tools/build/Makefile.build:109: recipe for target 'fs' failed
make[3]: *** No rule to make target 'tools/lib/api/fs/debugfs.h', needed by 'tools/perf/util/abspath.o'. Stop. tools/build/Makefile.build:109: recipe for target 'util' failed
Makefile:32: recipe for target 'tools/perf/libapi-in.o' failed
Makefile.perf:417: recipe for target 'tools/perf/libapi.a' failed
Makefile.perf:393: recipe for target 'tools/perf/libperf-in.o' failed
Makefile:68: recipe for target 'all' failed

Maybe caused by commit

60a1133a5b39 ("tools lib api fs: Remove debugfs, tracefs and findfs objects")

This is an incremental build i.e. I do not do a "make clean" after doing the build for each tree merge (in case that matters).

I have used the tip tree from next-20150915 for today.

Also, building perf seems to ignore O=<dir> on the make invocation. Is that expected?

Signature · 2 lines
Cheers,
Stephen Rothwell                    [email protected]
#1 lore raw
Quoted 16 lines · Stephen Rothwell

Hi all,

After merging the tip tree, today's linux-next build (perf) failed like this:

make[3]: *** No rule to make target 'tools/lib/api/fs/debugfs.h', needed by 'tools/perf/arch/common.o'. Stop. tools/build/Makefile.build:109: recipe for target 'arch' failed
make[4]: *** No rule to make target 'fs/debugfs.h', needed by 'tools/perf/fs/fs.o'. Stop. tools/build/Makefile.build:109: recipe for target 'fs' failed
make[3]: *** No rule to make target 'tools/lib/api/fs/debugfs.h', needed by 'tools/perf/util/abspath.o'. Stop. tools/build/Makefile.build:109: recipe for target 'util' failed
Makefile:32: recipe for target 'tools/perf/libapi-in.o' failed
Makefile.perf:417: recipe for target 'tools/perf/libapi.a' failed
Makefile.perf:393: recipe for target 'tools/perf/libperf-in.o' failed
Makefile:68: recipe for target 'all' failed

Quoted 6 lines

Maybe caused by commit

60a1133a5b39 ("tools lib api fs: Remove debugfs, tracefs and findfs objects")

This is an incremental build i.e. I do not do a "make clean" after doing the build for each tree merge (in case that matters).

it does in this case, removed header files stay in cmd build dependency file (like in .abspath.o.cmd above) and cause build error

build system is not smart enough yet to find out, I was postponning fixing this for some time now, I'll try to get this resolved asap

Quoted 5 lines

I have used the tip tree from next-20150915 for today.

Also, building perf seems to ignore O=<dir> on the make invocation. Is that expected?

hum, not sure about this one.. I'm not using it, but we have tests for this and I thought we're ok.. I'll check

jirka

#2 lore raw
Quoted 33 lines · Jiri Olsa
Quoted 16 lines · Stephen Rothwell

Hi all,

After merging the tip tree, today's linux-next build (perf) failed like this:

make[3]: *** No rule to make target 'tools/lib/api/fs/debugfs.h', needed by 'tools/perf/arch/common.o'. Stop. tools/build/Makefile.build:109: recipe for target 'arch' failed
make[4]: *** No rule to make target 'fs/debugfs.h', needed by 'tools/perf/fs/fs.o'. Stop. tools/build/Makefile.build:109: recipe for target 'fs' failed
make[3]: *** No rule to make target 'tools/lib/api/fs/debugfs.h', needed by 'tools/perf/util/abspath.o'. Stop. tools/build/Makefile.build:109: recipe for target 'util' failed
Makefile:32: recipe for target 'tools/perf/libapi-in.o' failed
Makefile.perf:417: recipe for target 'tools/perf/libapi.a' failed
Makefile.perf:393: recipe for target 'tools/perf/libperf-in.o' failed
Makefile:68: recipe for target 'all' failed

Quoted 6 lines

Maybe caused by commit

60a1133a5b39 ("tools lib api fs: Remove debugfs, tracefs and findfs objects")

This is an incremental build i.e. I do not do a "make clean" after doing the build for each tree merge (in case that matters).

it does in this case, removed header files stay in cmd build dependency file (like in .abspath.o.cmd above) and cause build error

build system is not smart enough yet to find out, I was postponning fixing this for some time now, I'll try to get this resolved asap

Quoted 1 line
Quoted 7 lines
Quoted 4 lines

I have used the tip tree from next-20150915 for today.

Also, building perf seems to ignore O=<dir> on the make invocation. Is that expected?

hum, not sure about this one.. I'm not using it, but we have tests for this and I thought we're ok.. I'll check

seems to work on latest Arnaldo's perf/core,
what command line failed for you?

[jolsa@krava perf]$ make O=/tmp/krava/
...
[jolsa@krava perf]$ ll /tmp/krava/perf
-rwxrwxr-x. 1 jolsa jolsa 12669704 Sep 16 08:36 /tmp/krava/perf

jirka

#3 lore raw

Hi Jiri,

Quoted 7 lines · On Wed, 16 Sep 2015 08:38:17 +0200 Jiri Olsa <[email protected]> wrote:
Quoted 6 lines
Quoted 3 lines

Also, building perf seems to ignore O=<dir> on the make invocation. Is that expected?

hum, not sure about this one.. I'm not using it, but we have tests for this and I thought we're ok.. I'll check

Quoted 7 lines

seems to work on latest Arnaldo's perf/core,
what command line failed for you?

[jolsa@krava perf]$ make O=/tmp/krava/
...
[jolsa@krava perf]$ ll /tmp/krava/perf
-rwxrwxr-x. 1 jolsa jolsa 12669704 Sep 16 08:36 /tmp/krava/perf

Thanks for the hint. I was using a relative path and starting in the top of the kernel tree, so:

$ cd kernel
$ mkdir ../perf
$ make -s -C tools/perf JOBS=24 O=../perf

put everything in toos/perf (no suprise really)

I will change my script to use an absolute path (which I checked does work fine). Sorry for the noise.

Signature · 2 lines
Cheers,
Stephen Rothwell                    [email protected]
#4 lore raw

Em Wed, Sep 16, 2015 at 05:30:25PM +1000, Stephen Rothwell escreveu:

Quoted 21 lines

Hi Jiri,

Quoted 7 lines · On Wed, 16 Sep 2015 08:38:17 +0200 Jiri Olsa <[email protected]> wrote:
Quoted 6 lines
Quoted 3 lines

Also, building perf seems to ignore O=<dir> on the make invocation. Is that expected?

hum, not sure about this one.. I'm not using it, but we have tests for this and I thought we're ok.. I'll check

Quoted 7 lines

seems to work on latest Arnaldo's perf/core,
what command line failed for you?

[jolsa@krava perf]$ make O=/tmp/krava/
...
[jolsa@krava perf]$ ll /tmp/krava/perf
-rwxrwxr-x. 1 jolsa jolsa 12669704 Sep 16 08:36 /tmp/krava/perf

Thanks for the hint. I was using a relative path and starting in the top of the kernel tree, so:

Quoted 8 lines
$ cd kernel
$ mkdir ../perf
$ make -s -C tools/perf JOBS=24 O=../perf

put everything in toos/perf (no suprise really)

I will change my script to use an absolute path (which I checked does work fine). Sorry for the noise.

Nice workaround, but I guess relative paths should be supported as well, right? :)

- Arnaldo

#5 lore raw
In reply to Jiri Olsa

Hi Jiri,

Quoted 24 lines · On Wed, 16 Sep 2015 08:16:52 +0200 Jiri Olsa <[email protected]> wrote:
Quoted 15 lines · Stephen Rothwell

After merging the tip tree, today's linux-next build (perf) failed like this:

make[3]: *** No rule to make target 'tools/lib/api/fs/debugfs.h', needed by 'tools/perf/arch/common.o'. Stop. tools/build/Makefile.build:109: recipe for target 'arch' failed
make[4]: *** No rule to make target 'fs/debugfs.h', needed by 'tools/perf/fs/fs.o'. Stop. tools/build/Makefile.build:109: recipe for target 'fs' failed
make[3]: *** No rule to make target 'tools/lib/api/fs/debugfs.h', needed by 'tools/perf/util/abspath.o'. Stop. tools/build/Makefile.build:109: recipe for target 'util' failed
Makefile:32: recipe for target 'tools/perf/libapi-in.o' failed
Makefile.perf:417: recipe for target 'tools/perf/libapi.a' failed
Makefile.perf:393: recipe for target 'tools/perf/libperf-in.o' failed
Makefile:68: recipe for target 'all' failed

Quoted 6 lines

Maybe caused by commit

60a1133a5b39 ("tools lib api fs: Remove debugfs, tracefs and findfs objects")

This is an incremental build i.e. I do not do a "make clean" after doing the build for each tree merge (in case that matters).

Quoted 7 lines

it does in this case, removed header files stay in cmd build dependency file (like in .abspath.o.cmd above) and cause build error

build system is not smart enough yet to find out, I was postponning fixing this for some time now, I'll try to get this resolved asap

OK, for now I will clean out my objdir before doing the perf build after the tip tree merge. It would be nice to have this fixed, though, if possible.

Signature · 2 lines
Cheers,
Stephen Rothwell                    [email protected]
#6 lore raw

Hi all,

Quoted 30 lines · On Thu, 17 Sep 2015 10:34:23 +1000 Stephen Rothwell <[email protected]>…
Quoted 28 lines · On Wed, 16 Sep 2015 08:16:52 +0200 Jiri Olsa <[email protected]> wrote:
Quoted 15 lines · Stephen Rothwell

After merging the tip tree, today's linux-next build (perf) failed like this:

make[3]: *** No rule to make target 'tools/lib/api/fs/debugfs.h', needed by 'tools/perf/arch/common.o'. Stop. tools/build/Makefile.build:109: recipe for target 'arch' failed
make[4]: *** No rule to make target 'fs/debugfs.h', needed by 'tools/perf/fs/fs.o'. Stop. tools/build/Makefile.build:109: recipe for target 'fs' failed
make[3]: *** No rule to make target 'tools/lib/api/fs/debugfs.h', needed by 'tools/perf/util/abspath.o'. Stop. tools/build/Makefile.build:109: recipe for target 'util' failed
Makefile:32: recipe for target 'tools/perf/libapi-in.o' failed
Makefile.perf:417: recipe for target 'tools/perf/libapi.a' failed
Makefile.perf:393: recipe for target 'tools/perf/libperf-in.o' failed
Makefile:68: recipe for target 'all' failed

Quoted 6 lines

Maybe caused by commit

60a1133a5b39 ("tools lib api fs: Remove debugfs, tracefs and findfs objects")

This is an incremental build i.e. I do not do a "make clean" after doing the build for each tree merge (in case that matters).

it does in this case, removed header files stay in cmd build dependency file (like in .abspath.o.cmd above) and cause build error

Quoted 7 lines
Quoted 3 lines

build system is not smart enough yet to find out, I was postponning fixing this for some time now, I'll try to get this resolved asap

OK, for now I will clean out my objdir before doing the perf build after the tip tree merge. It would be nice to have this fixed, though, if possible.

I noticed some commits in the tip tree today that seemed as though they were addressing this problem. However, I still get a build failure if I don't clean out the object directory before building tools/perf:

  BUILD:   Doing 'make -j48' parallel build
  GEN      /home/sfr/next/perf/common-cmds.h
  CC       /home/sfr/next/perf/fixdep.o
  LD       /home/sfr/next/perf/fixdep-in.o
  LINK     /home/sfr/next/perf/fixdep
  CC       /home/sfr/next/perf/perf-read-vdso32
  CC       /home/sfr/next/perf/perf-read-vdsox32

make[3]: *** No rule to make target '/home/sfr/next/next/tools/lib/api/fs/debugfs.h', needed by '/home/sfr/next/perf/ui/gtk/browser.o'. Stop. /home/sfr/next/next/tools/build/Makefile.build:116: recipe for target 'ui/gtk' failed
make[2]: *** [ui/gtk] Error 2
Makefile.perf:310: recipe for target '/home/sfr/next/perf/gtk-in.o' failed

(/home/sfr/next/perf/ is the object directory)

Signature · 2 lines
Cheers,
Stephen Rothwell                    [email protected]
#7 lore raw
Quoted 37 lines · Stephen Rothwell

Hi all,

Quoted 34 lines · On Thu, 17 Sep 2015 10:34:23 +1000 Stephen Rothwell <[email protected]>…
Quoted 31 lines · On Wed, 16 Sep 2015 08:16:52 +0200 Jiri Olsa <[email protected]> wrote:
Quoted 15 lines · Stephen Rothwell

After merging the tip tree, today's linux-next build (perf) failed like this:

make[3]: *** No rule to make target 'tools/lib/api/fs/debugfs.h', needed by 'tools/perf/arch/common.o'. Stop. tools/build/Makefile.build:109: recipe for target 'arch' failed
make[4]: *** No rule to make target 'fs/debugfs.h', needed by 'tools/perf/fs/fs.o'. Stop. tools/build/Makefile.build:109: recipe for target 'fs' failed
make[3]: *** No rule to make target 'tools/lib/api/fs/debugfs.h', needed by 'tools/perf/util/abspath.o'. Stop. tools/build/Makefile.build:109: recipe for target 'util' failed
Makefile:32: recipe for target 'tools/perf/libapi-in.o' failed
Makefile.perf:417: recipe for target 'tools/perf/libapi.a' failed
Makefile.perf:393: recipe for target 'tools/perf/libperf-in.o' failed
Makefile:68: recipe for target 'all' failed

Quoted 6 lines

Maybe caused by commit

60a1133a5b39 ("tools lib api fs: Remove debugfs, tracefs and findfs objects")

This is an incremental build i.e. I do not do a "make clean" after doing the build for each tree merge (in case that matters).

it does in this case, removed header files stay in cmd build dependency file (like in .abspath.o.cmd above) and cause build error

build system is not smart enough yet to find out, I was postponning fixing this for some time now, I'll try to get this resolved asap

Quoted 7 lines
Quoted 3 lines

OK, for now I will clean out my objdir before doing the perf build after the tip tree merge. It would be nice to have this fixed, though, if possible.

I noticed some commits in the tip tree today that seemed as though they were addressing this problem. However, I still get a build failure if I don't clean out the object directory before building tools/perf:

ouch, forgot to CC you, sry

Quoted 8 lines
  BUILD:   Doing 'make -j48' parallel build
  GEN      /home/sfr/next/perf/common-cmds.h
  CC       /home/sfr/next/perf/fixdep.o
  LD       /home/sfr/next/perf/fixdep-in.o
  LINK     /home/sfr/next/perf/fixdep
  CC       /home/sfr/next/perf/perf-read-vdso32
  CC       /home/sfr/next/perf/perf-read-vdsox32
Quoted 4 lines

make[3]: *** No rule to make target '/home/sfr/next/next/tools/lib/api/fs/debugfs.h', needed by '/home/sfr/next/perf/ui/gtk/browser.o'. Stop. /home/sfr/next/next/tools/build/Makefile.build:116: recipe for target 'ui/gtk' failed
make[2]: *** [ui/gtk] Error 2
Makefile.perf:310: recipe for target '/home/sfr/next/perf/gtk-in.o' failed

it won't fix the build if you still have old .cmd file in you tree (I presume that's the case), once those are regenerated you shouldn't meet the issue again

jirka

#8 lore raw

Hi Jiri,

Quoted 2 lines · On Wed, 30 Sep 2015 08:08:12 +0200 Jiri Olsa <[email protected]> wrote:

ouch, forgot to CC you, sry

No worries, I was watching ...

Quoted 2 lines

it won't fix the build if you still have old .cmd file in you tree (I presume that's the case), once those are regenerated you shouldn't meet the issue again

Unfortunately this is what happens to me every day :-( (at least until these changes are merged into Linus' tree). Its fine, I have automated the clean up of the perf build object directory after merging the tip tree. However, this will also happen to anyone who has built perf then updates their tree and then tries to rebuild perf.

Signature · 2 lines
Cheers,
Stephen Rothwell                    [email protected]