All of lore.kernel.org
 help / color / mirror / Atom feed
* Strange linux-next build error
@ 2008-05-03  5:21 Daniel Hazelton
  2008-05-03  5:52 ` Stephen Rothwell
  0 siblings, 1 reply; 8+ messages in thread
From: Daniel Hazelton @ 2008-05-03  5:21 UTC (permalink / raw)
  To: LKML; +Cc: Stephen Rothwell

After updating my local tree to the latest linux-next and starting a clean 
build I see this error *ONLY* the first time I start a "make bzImage"

  CC      arch/x86/kernel/acpi/sleep.o
  LDS     arch/x86/kernel/acpi/realmode/wakeup.lds
cc1: fatal error: opening output file 
arch/x86/kernel/acpi/realmode/wakeup.lds: Permission denied
compilation terminated.
make[4]: *** [arch/x86/kernel/acpi/realmode/wakeup.lds] Error 1
make[3]: *** [arch/x86/kernel/acpi/realmode/wakeup.bin] Error 2
make[2]: *** [arch/x86/kernel/acpi] Error 2
make[1]: *** [arch/x86/kernel] Error 2
make: *** [bzImage] Error 2

Restarting the build brings it through to completion. I've checked and there 
is no reason that this error should occur.

madman@strider:~/linux/linux-git/Documentation$ gcc --version
gcc (GCC) 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

(I'll be booting this kernel tomorrow to test it - previous -next kernels have 
all faulted during boot)

DRH

-- 
Dialup is like pissing through a pipette. Slow and excruciatingly painful.

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

* Re: Strange linux-next build error
  2008-05-03  5:21 Strange linux-next build error Daniel Hazelton
@ 2008-05-03  5:52 ` Stephen Rothwell
  2008-05-03  6:40   ` Sam Ravnborg
  0 siblings, 1 reply; 8+ messages in thread
From: Stephen Rothwell @ 2008-05-03  5:52 UTC (permalink / raw)
  To: Daniel Hazelton; +Cc: LKML, Ingo Molnar, Pavel Machek, linux-next

[-- Attachment #1: Type: text/plain, Size: 1619 bytes --]

Just adding some cc's ... it is worth cc'ing linux-next for bugs in
linux-next (instead, or as well, as me personally) since people who are
interested are probably subscribed there.

On Sat, 3 May 2008 01:21:38 -0400 Daniel Hazelton <dhazelton@enter.net> wrote:
>
> After updating my local tree to the latest linux-next and starting a clean 
> build I see this error *ONLY* the first time I start a "make bzImage"
> 
>   CC      arch/x86/kernel/acpi/sleep.o
>   LDS     arch/x86/kernel/acpi/realmode/wakeup.lds
> cc1: fatal error: opening output file 
> arch/x86/kernel/acpi/realmode/wakeup.lds: Permission denied
> compilation terminated.
> make[4]: *** [arch/x86/kernel/acpi/realmode/wakeup.lds] Error 1
> make[3]: *** [arch/x86/kernel/acpi/realmode/wakeup.bin] Error 2
> make[2]: *** [arch/x86/kernel/acpi] Error 2
> make[1]: *** [arch/x86/kernel] Error 2
> make: *** [bzImage] Error 2
> 
> Restarting the build brings it through to completion. I've checked and there 
> is no reason that this error should occur.
> 
> madman@strider:~/linux/linux-git/Documentation$ gcc --version
> gcc (GCC) 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
> Copyright (C) 2006 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> 
> (I'll be booting this kernel tomorrow to test it - previous -next kernels have 
> all faulted during boot)
> 
> DRH

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: Strange linux-next build error
  2008-05-03  5:52 ` Stephen Rothwell
@ 2008-05-03  6:40   ` Sam Ravnborg
  2008-05-03 16:10     ` Daniel Hazelton
  2008-05-03 22:25     ` Daniel Hazelton
  0 siblings, 2 replies; 8+ messages in thread
From: Sam Ravnborg @ 2008-05-03  6:40 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Daniel Hazelton, LKML, Ingo Molnar, Pavel Machek, linux-next

On Sat, May 03, 2008 at 03:52:52PM +1000, Stephen Rothwell wrote:
> Just adding some cc's ... it is worth cc'ing linux-next for bugs in
> linux-next (instead, or as well, as me personally) since people who are
> interested are probably subscribed there.
> 
> On Sat, 3 May 2008 01:21:38 -0400 Daniel Hazelton <dhazelton@enter.net> wrote:
> >
> > After updating my local tree to the latest linux-next and starting a clean 
> > build I see this error *ONLY* the first time I start a "make bzImage"
> > 
> >   CC      arch/x86/kernel/acpi/sleep.o
> >   LDS     arch/x86/kernel/acpi/realmode/wakeup.lds
> > cc1: fatal error: opening output file 
> > arch/x86/kernel/acpi/realmode/wakeup.lds: Permission denied
> > compilation terminated.
> > make[4]: *** [arch/x86/kernel/acpi/realmode/wakeup.lds] Error 1
> > make[3]: *** [arch/x86/kernel/acpi/realmode/wakeup.bin] Error 2
> > make[2]: *** [arch/x86/kernel/acpi] Error 2
> > make[1]: *** [arch/x86/kernel] Error 2
> > make: *** [bzImage] Error 2

Hi Daniel.

It looks like we visit arch/x86/kernel/acpi/realmode/Makefile
twice in parallel as we have both make[4] and make[3] in play here.
Or maybe we have a dependency bug in the Makefile.

Can you try to do a:
make V=1 and post the output a few screen fulls before and until
the bug triggers.
They I will see if I can work out what is happening.

Thanks,
	Sam

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

* Re: Strange linux-next build error
  2008-05-03  6:40   ` Sam Ravnborg
@ 2008-05-03 16:10     ` Daniel Hazelton
  2008-05-03 22:25     ` Daniel Hazelton
  1 sibling, 0 replies; 8+ messages in thread
From: Daniel Hazelton @ 2008-05-03 16:10 UTC (permalink / raw)
  To: Sam Ravnborg
  Cc: Stephen Rothwell, LKML, Ingo Molnar, Pavel Machek, linux-next

On Saturday 03 May 2008 02:40:57 Sam Ravnborg wrote:
> On Sat, May 03, 2008 at 03:52:52PM +1000, Stephen Rothwell wrote:
> > Just adding some cc's ... it is worth cc'ing linux-next for bugs in
> > linux-next (instead, or as well, as me personally) since people who are
> > interested are probably subscribed there.

Ah, yes - I'm not very good at remembering fine details like that :)

> > On Sat, 3 May 2008 01:21:38 -0400 Daniel Hazelton <dhazelton@enter.net> 
wrote:
> > > After updating my local tree to the latest linux-next and starting a
> > > clean build I see this error *ONLY* the first time I start a "make
> > > bzImage"
> > >
> > >   CC      arch/x86/kernel/acpi/sleep.o
> > >   LDS     arch/x86/kernel/acpi/realmode/wakeup.lds
> > > cc1: fatal error: opening output file
> > > arch/x86/kernel/acpi/realmode/wakeup.lds: Permission denied
> > > compilation terminated.
> > > make[4]: *** [arch/x86/kernel/acpi/realmode/wakeup.lds] Error 1
> > > make[3]: *** [arch/x86/kernel/acpi/realmode/wakeup.bin] Error 2
> > > make[2]: *** [arch/x86/kernel/acpi] Error 2
> > > make[1]: *** [arch/x86/kernel] Error 2
> > > make: *** [bzImage] Error 2
>
> Hi Daniel.
>
> It looks like we visit arch/x86/kernel/acpi/realmode/Makefile
> twice in parallel as we have both make[4] and make[3] in play here.
> Or maybe we have a dependency bug in the Makefile.
>
> Can you try to do a:
> make V=1 and post the output a few screen fulls before and until
> the bug triggers.
> They I will see if I can work out what is happening.
>
> Thanks,
> 	Sam

Will do. I'll run a "make mrproper" and then rebuild the kernel with V=1

DRH

-- 
Dialup is like pissing through a pipette. Slow and excruciatingly painful.

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

* Re: Strange linux-next build error
  2008-05-03  6:40   ` Sam Ravnborg
  2008-05-03 16:10     ` Daniel Hazelton
@ 2008-05-03 22:25     ` Daniel Hazelton
  2008-05-03 22:40       ` Ingo Molnar
  1 sibling, 1 reply; 8+ messages in thread
From: Daniel Hazelton @ 2008-05-03 22:25 UTC (permalink / raw)
  To: Sam Ravnborg
  Cc: Stephen Rothwell, LKML, Ingo Molnar, Pavel Machek, linux-next

On Saturday 03 May 2008 02:40:57 Sam Ravnborg wrote:
> On Sat, May 03, 2008 at 03:52:52PM +1000, Stephen Rothwell wrote:
> > Just adding some cc's ... it is worth cc'ing linux-next for bugs in
> > linux-next (instead, or as well, as me personally) since people who are
> > interested are probably subscribed there.
> >
> > On Sat, 3 May 2008 01:21:38 -0400 Daniel Hazelton <dhazelton@enter.net> 
wrote:
> > > After updating my local tree to the latest linux-next and starting a
> > > clean build I see this error *ONLY* the first time I start a "make
> > > bzImage"
> > >
> > >   CC      arch/x86/kernel/acpi/sleep.o
> > >   LDS     arch/x86/kernel/acpi/realmode/wakeup.lds
> > > cc1: fatal error: opening output file
> > > arch/x86/kernel/acpi/realmode/wakeup.lds: Permission denied
> > > compilation terminated.
> > > make[4]: *** [arch/x86/kernel/acpi/realmode/wakeup.lds] Error 1
> > > make[3]: *** [arch/x86/kernel/acpi/realmode/wakeup.bin] Error 2
> > > make[2]: *** [arch/x86/kernel/acpi] Error 2
> > > make[1]: *** [arch/x86/kernel] Error 2
> > > make: *** [bzImage] Error 2
>
> Hi Daniel.
>
> It looks like we visit arch/x86/kernel/acpi/realmode/Makefile
> twice in parallel as we have both make[4] and make[3] in play here.
> Or maybe we have a dependency bug in the Makefile.
>
> Can you try to do a:
> make V=1 and post the output a few screen fulls before and until
> the bug triggers.
> They I will see if I can work out what is happening.
>
> Thanks,
> 	Sam

I've been unable to trigger it with "make V=1 bzImage" - does the verbosity 
change, somehow, the default number of makes that get run ?

If it does, I could try adding -j2 or similar  to see if that causes it to 
trigger.

DRH

-- 
Dialup is like pissing through a pipette. Slow and excruciatingly painful.

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

* Re: Strange linux-next build error
  2008-05-03 22:25     ` Daniel Hazelton
@ 2008-05-03 22:40       ` Ingo Molnar
  2008-05-04  1:37         ` Daniel Hazelton
  0 siblings, 1 reply; 8+ messages in thread
From: Ingo Molnar @ 2008-05-03 22:40 UTC (permalink / raw)
  To: Daniel Hazelton
  Cc: Sam Ravnborg, Stephen Rothwell, LKML, Pavel Machek, linux-next


* Daniel Hazelton <dhazelton@enter.net> wrote:

> > Can you try to do a:
> > make V=1 and post the output a few screen fulls before and until
> > the bug triggers.
> > They I will see if I can work out what is happening.
> >
> > Thanks,
> > 	Sam
> 
> I've been unable to trigger it with "make V=1 bzImage" - does the 
> verbosity change, somehow, the default number of makes that get run ?
> 
> If it does, I could try adding -j2 or similar to see if that causes it 
> to trigger.

try something like:

   make -j2 V=1 bzImage >log.txt 2>&1

and see whether the error shows up in log.txt. Console output caused by 
the increased verbosity (especially if it's a slower console like an 
xterm) can hide build races.

	Ingo

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

* Re: Strange linux-next build error
  2008-05-03 22:40       ` Ingo Molnar
@ 2008-05-04  1:37         ` Daniel Hazelton
  2008-05-04  5:36           ` Sam Ravnborg
  0 siblings, 1 reply; 8+ messages in thread
From: Daniel Hazelton @ 2008-05-04  1:37 UTC (permalink / raw)
  To: Ingo Molnar
  Cc: Sam Ravnborg, Stephen Rothwell, LKML, Pavel Machek, linux-next

On Saturday 03 May 2008 18:40:18 Ingo Molnar wrote:
> * Daniel Hazelton <dhazelton@enter.net> wrote:
> > > Can you try to do a:
> > > make V=1 and post the output a few screen fulls before and until
> > > the bug triggers.
> > > They I will see if I can work out what is happening.
> > >
> > > Thanks,
> > > 	Sam
> >
> > I've been unable to trigger it with "make V=1 bzImage" - does the
> > verbosity change, somehow, the default number of makes that get run ?
> >
> > If it does, I could try adding -j2 or similar to see if that causes it
> > to trigger.
>
> try something like:
>
>    make -j2 V=1 bzImage >log.txt 2>&1
>
> and see whether the error shows up in log.txt. Console output caused by
> the increased verbosity (especially if it's a slower console like an
> xterm) can hide build races.
>
> 	Ingo

And this appears to have been a false alarm. For the tests I did a clean pull 
of the tree and started the build. When I kept *NOT* getting a build error on 
the clean tree I started checking permissions and, while the files that this 
error was happening for (and the containing directory) all had good 
permissions, the correct ownerand all that - so I didn't look deeper. On 
doing a deeper look it seems that there were some files and directories that 
belonged to "root" and had 0644 for permissions.

After doing "make mrproper" and the reconfiguration I reset the owner/group on 
the entire tree of files to be non-root and the build (at -j4) has finished 
without a problem.

Sorry about that.

DRH

-- 
Dialup is like pissing through a pipette. Slow and excruciatingly painful.

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

* Re: Strange linux-next build error
  2008-05-04  1:37         ` Daniel Hazelton
@ 2008-05-04  5:36           ` Sam Ravnborg
  0 siblings, 0 replies; 8+ messages in thread
From: Sam Ravnborg @ 2008-05-04  5:36 UTC (permalink / raw)
  To: Daniel Hazelton
  Cc: Ingo Molnar, Stephen Rothwell, LKML, Pavel Machek, linux-next

On Sat, May 03, 2008 at 09:37:07PM -0400, Daniel Hazelton wrote:
> On Saturday 03 May 2008 18:40:18 Ingo Molnar wrote:
> > * Daniel Hazelton <dhazelton@enter.net> wrote:
> > > > Can you try to do a:
> > > > make V=1 and post the output a few screen fulls before and until
> > > > the bug triggers.
> > > > They I will see if I can work out what is happening.
> > > >
> > > > Thanks,
> > > > 	Sam
> > >
> > > I've been unable to trigger it with "make V=1 bzImage" - does the
> > > verbosity change, somehow, the default number of makes that get run ?
> > >
> > > If it does, I could try adding -j2 or similar to see if that causes it
> > > to trigger.
> >
> > try something like:
> >
> >    make -j2 V=1 bzImage >log.txt 2>&1
> >
> > and see whether the error shows up in log.txt. Console output caused by
> > the increased verbosity (especially if it's a slower console like an
> > xterm) can hide build races.
> >
> > 	Ingo
> 
> And this appears to have been a false alarm. For the tests I did a clean pull 
> of the tree and started the build. When I kept *NOT* getting a build error on 
> the clean tree I started checking permissions and, while the files that this 
> error was happening for (and the containing directory) all had good 
> permissions, the correct ownerand all that - so I didn't look deeper. On 
> doing a deeper look it seems that there were some files and directories that 
> belonged to "root" and had 0644 for permissions.
> 
> After doing "make mrproper" and the reconfiguration I reset the owner/group on 
> the entire tree of files to be non-root and the build (at -j4) has finished 
> without a problem.
> 
> Sorry about that.

But this makes sense. We have/had a problem where we always rebuilded
wakeup.lds. So if you by accident have done "make bzImage" as root this
file would have been generated and thus belonging to root.
x86.git has the fix for this so we no longer do the wakeup.lds rebuild
for each kernel build and I expect it to hit both -next and -lins soon.

And I am very happy to nail down why - because having to much unexplained
issues with the build system will decrease the trust in it. And there I
do not want to go with kbuild - it helps no one.

Thanks for your feedback!

	Sam

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

end of thread, other threads:[~2008-05-04  5:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-03  5:21 Strange linux-next build error Daniel Hazelton
2008-05-03  5:52 ` Stephen Rothwell
2008-05-03  6:40   ` Sam Ravnborg
2008-05-03 16:10     ` Daniel Hazelton
2008-05-03 22:25     ` Daniel Hazelton
2008-05-03 22:40       ` Ingo Molnar
2008-05-04  1:37         ` Daniel Hazelton
2008-05-04  5:36           ` Sam Ravnborg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.