Re: make[2]: *** No rule to make target `drivers/serial/serial_core.c', needed by `Documentation/DocBook/kernel-api.xml'.

Fengguang Wu
2013-03-30T05:32:52Z

> > make[2]: *** No rule to make target `block/blktrace.c', needed by `Documentation/DocBook/kernel-api.xml'.
> > >> make[2]: *** No rule to make target `drivers/serial/serial_core.c', needed by `Documentation/DocBook/kernel-api.xml'.
> > >> make[2]: *** No rule to make target `drivers/serial/8250.c', needed by `Documentation/DocBook/kernel-api.xml'.
> > make[2]: *** No rule to make target `drivers/net/wan/syncppp.c', needed by `Documentation/DocBook/networking.xml'.
> > make[2]: *** No rule to make target `arch/powerpc/kernel/rio.c', needed by `Documentation/DocBook/rapidio.xml'.
> > make[2]: Target `htmldocs' not remade because of errors.
>
> I can't duplicate this on my tree, sorry.

I'm so sorry! Please ignore all of these false reports on Documentation/DocBook/.

It's a problem with the build script. Fixed by doing a
"make distclean" after building too old kernels:

git checkout $some_years_old_kernel
make htmldocs

git checkout v3.8
+ make distclean # bring $KBUILD_OUTPUT/Documentation/DocBook/ out of bad old state
make htmldocs

Thanks,
Fengguang