linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 3.9-rc1: hz.bc compilation breakage
@ 2013-03-06 14:36 Maxime Ripard
  2013-03-07  3:41 ` H. Peter Anvin
  0 siblings, 1 reply; 5+ messages in thread
From: Maxime Ripard @ 2013-03-06 14:36 UTC (permalink / raw)
  To: hpa; +Cc: linux-kernel

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

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 3.9-rc1: hz.bc compilation breakage
  2013-03-06 14:36 3.9-rc1: hz.bc compilation breakage Maxime Ripard
@ 2013-03-07  3:41 ` H. Peter Anvin
  2013-03-07 10:42   ` Maxime Ripard
  0 siblings, 1 reply; 5+ messages in thread
From: H. Peter Anvin @ 2013-03-07  3:41 UTC (permalink / raw)
  To: Maxime Ripard; +Cc: linux-kernel, linux-kbuild

On 03/06/2013 06:36 AM, Maxime Ripard wrote:
> 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.
> 

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



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 3.9-rc1: hz.bc compilation breakage
  2013-03-07  3:41 ` H. Peter Anvin
@ 2013-03-07 10:42   ` Maxime Ripard
  2013-03-07 15:06     ` H. Peter Anvin
  0 siblings, 1 reply; 5+ messages in thread
From: Maxime Ripard @ 2013-03-07 10:42 UTC (permalink / raw)
  To: H. Peter Anvin; +Cc: linux-kernel, linux-kbuild

Hi,

Le 07/03/2013 04:41, H. Peter Anvin a écrit :
> On 03/06/2013 06:36 AM, Maxime Ripard wrote:
>> 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.
>>
> 
> 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.

> 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

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 3.9-rc1: hz.bc compilation breakage
  2013-03-07 10:42   ` Maxime Ripard
@ 2013-03-07 15:06     ` H. Peter Anvin
  2013-03-07 15:55       ` Maxime Ripard
  0 siblings, 1 reply; 5+ messages in thread
From: H. Peter Anvin @ 2013-03-07 15:06 UTC (permalink / raw)
  To: Maxime Ripard; +Cc: linux-kernel, linux-kbuild

On 03/07/2013 02:42 AM, Maxime Ripard wrote:
> 
> 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.
> 
>> 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

-- 
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel.  I don't speak on their behalf.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 3.9-rc1: hz.bc compilation breakage
  2013-03-07 15:06     ` H. Peter Anvin
@ 2013-03-07 15:55       ` Maxime Ripard
  0 siblings, 0 replies; 5+ messages in thread
From: Maxime Ripard @ 2013-03-07 15:55 UTC (permalink / raw)
  To: H. Peter Anvin; +Cc: linux-kernel, linux-kbuild

Le 07/03/2013 16:06, H. Peter Anvin a écrit :
> On 03/07/2013 02:42 AM, Maxime Ripard wrote:
>>
>> 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.
>>
>>> 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"...

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

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-03-07 15:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-06 14:36 3.9-rc1: hz.bc compilation breakage Maxime Ripard
2013-03-07  3:41 ` H. Peter Anvin
2013-03-07 10:42   ` Maxime Ripard
2013-03-07 15:06     ` H. Peter Anvin
2013-03-07 15:55       ` Maxime Ripard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).