Skip to contentSkip to conversation

3.9-rc1: hz.bc compilation breakage

DISCUSSION Maxime Ripard 2 participants 5 messages Mar 6, 2013 – Mar 7, 2013 Kbuild

lore
Share & tools
lore
#0 lore raw

Hi,

I'm compiling the kernel for an iMX28(ARM) board, and since 3.9-rc1, I get the following error at compilation time:

make[3]: *** No rule to make target /home/max/Work/2012/crystalfontz/rewrite/linux-dt/include/config/hz.h', needed by kernel/hz.bc'. Stop.

I'm doing a clean out-of-tree build, with the following configuration
file: http://code.bulix.org/m4y7se-83102?raw

Reverting commit 1b66e0fd ("kernel: Replace timeconst.pl with a bc script") make the compilation go on as usual.

Thanks,
Maxime

Signature · 4 lines
Maxime Ripard, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#1 lore raw
Quoted 9 lines · Maxime Ripard

Hi,

I'm compiling the kernel for an iMX28(ARM) board, and since 3.9-rc1, I get the following error at compilation time:

make[3]: *** No rule to make target /home/max/Work/2012/crystalfontz/rewrite/linux-dt/include/config/hz.h', needed by kernel/hz.bc'. Stop.

Quoted 6 lines

I'm doing a clean out-of-tree build, with the following configuration
file: http://code.bulix.org/m4y7se-83102?raw

Reverting commit 1b66e0fd ("kernel: Replace timeconst.pl with a bc script") make the compilation go on as usual.

That file should have been created by "make *config", and I just verified that it does indeed do so. That file is a sentinel for configuration changes; the entire build system depends on it.

I am not sure what you mean with "clean out-of-tree", however.

kbuild people: is there anything wrong with how this dependency is specified?

-hpa

#2 lore raw

Hi,

Quoted 11 lines · H. Peter Anvin
Quoted 10 lines · Maxime Ripard

I'm compiling the kernel for an iMX28(ARM) board, and since 3.9-rc1, I get the following error at compilation time:

make[3]: *** No rule to make target /home/max/Work/2012/crystalfontz/rewrite/linux-dt/include/config/hz.h', needed by kernel/hz.bc'. Stop.

I'm doing a clean out-of-tree build, with the following configuration
file: http://code.bulix.org/m4y7se-83102?raw

Quoted 7 lines
Quoted 3 lines

Reverting commit 1b66e0fd ("kernel: Replace timeconst.pl with a bc script") make the compilation go on as usual.

That file should have been created by "make *config", and I just verified that it does indeed do so. That file is a sentinel for configuration changes; the entire build system depends on it.

I triggered this issue when switching to 3.9-rc1, and oldconfig runs at that time, and now, running menuconfig doesn't generates it either.

Quoted 1 line

I am not sure what you mean with "clean out-of-tree", however.

make O=$(pwd) -C /path/to/linux/source some_configs make

Thanks,
Maxime

Signature · 4 lines
Maxime Ripard, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#3 lore raw
Quoted 9 lines · Maxime Ripard

I triggered this issue when switching to 3.9-rc1, and oldconfig runs at that time, and now, running menuconfig doesn't generates it either.

Quoted 1 line

I am not sure what you mean with "clean out-of-tree", however.

make O=$(pwd) -C /path/to/linux/source some_configs make

Can you give the exact set of commands you are running when you see this? I cannot reproduce this no matter what I do, and it doesn't seem like it is being a common problem.

In the example above the first "make" command does indeed not create any files in include/config, but they get created immediately on the second "make"...

-hpa

Signature · 2 lines
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel.  I don't speak on their behalf.
#4 lore raw
Quoted 11 lines · H. Peter Anvin
Quoted 9 lines · Maxime Ripard

I triggered this issue when switching to 3.9-rc1, and oldconfig runs at that time, and now, running menuconfig doesn't generates it either.

Quoted 1 line

I am not sure what you mean with "clean out-of-tree", however.

make O=$(pwd) -C /path/to/linux/source some_configs make

Quoted 7 lines

Can you give the exact set of commands you are running when you see this? I cannot reproduce this no matter what I do, and it doesn't seem like it is being a common problem.

In the example above the first "make" command does indeed not create any files in include/config, but they get created immediately on the second "make"...

Hmmm, It looks indeed that it can happen only on already existing directories, I can't reproduce neither with a new build, and not everyone seems to be impacted by that bug neither, since some colleagues did the same thing without any trouble (with a completely different architecture though).

So it's not that bad.

However, when I do:

In my source dir
git checkout v3.9-rc1

In my build dir
ARCH=arm make clean
ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- make zImage

And then it breaks.

So I suspect it's something not cleaned properly, or not generated properly. Here is what's left after the make clean

http://code.bulix.org/eh1e6c-83108?raw

Thanks,
Maxime

Signature · 4 lines
Maxime Ripard, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com