linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* kbuild: problems with separate src/obj trees
@ 2006-01-23 13:15 Gerd Hoffmann
  2006-01-23 15:15 ` Kalin KOZHUHAROV
  0 siblings, 1 reply; 3+ messages in thread
From: Gerd Hoffmann @ 2006-01-23 13:15 UTC (permalink / raw)
  To: linux kernel mailing list

  Hi,

Trapped into two problems with 2.6.16-rc1:

  (1) Building kernels with the source tree on a r/o filesystem
      doesn't work any more because kbuild tries to create
      $(srctree)/.kernelrelease and fails to do so.

  (2) UML kernels don't build at all with a separate obj tree:

master-xen kraxel ~/objtree/vanilla-2.6.16-pre-um# make ARCH=um
gmake -C /home/kraxel/scratch/vanilla-2.6.16-pre
O=/home/kraxel/objtree/vanilla-2.6.16-pre-um
  SYMLINK arch/um/include/kern_constants.h
ln: creating symbolic link `arch/um/include/kern_constants.h' to
`../../../include/asm-um/asm-offsets.h': No such file or directory
gmake[2]: *** [arch/um/include/kern_constants.h] Error 1
gmake[1]: *** [cdbuilddir] Error 2
gmake: *** [all] Error 2

Ideas/Patches anyone?

  Gerd

-- 
Gerd 'just married' Hoffmann <kraxel@suse.de>
I'm the hacker formerly known as Gerd Knorr.
http://www.suse.de/~kraxel/just-married.jpeg

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

* Re: kbuild: problems with separate src/obj trees
  2006-01-23 13:15 kbuild: problems with separate src/obj trees Gerd Hoffmann
@ 2006-01-23 15:15 ` Kalin KOZHUHAROV
  2006-01-23 16:46   ` Gerd Hoffmann
  0 siblings, 1 reply; 3+ messages in thread
From: Kalin KOZHUHAROV @ 2006-01-23 15:15 UTC (permalink / raw)
  To: linux-kernel

Gerd Hoffmann wrote:
>   Hi,
> 
> Trapped into two problems with 2.6.16-rc1:
> 
>   (1) Building kernels with the source tree on a r/o filesystem
>       doesn't work any more because kbuild tries to create
>       $(srctree)/.kernelrelease and fails to do so.
> 
>   (2) UML kernels don't build at all with a separate obj tree:
> 
> master-xen kraxel ~/objtree/vanilla-2.6.16-pre-um# make ARCH=um
> gmake -C /home/kraxel/scratch/vanilla-2.6.16-pre
> O=/home/kraxel/objtree/vanilla-2.6.16-pre-um
>   SYMLINK arch/um/include/kern_constants.h
> ln: creating symbolic link `arch/um/include/kern_constants.h' to
> `../../../include/asm-um/asm-offsets.h': No such file or directory
> gmake[2]: *** [arch/um/include/kern_constants.h] Error 1
> gmake[1]: *** [cdbuilddir] Error 2
> gmake: *** [all] Error 2
> 
> Ideas/Patches anyone?

There was a recen thread about these... let me see:
Look for "[PATCH 2/2] kbuild: fix make -jN with multiple targets with make
O=..." from Sam Ravnborg on 2006-01-16

[It is pushed out at:
git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild.git]

Kalin.

-- 
|[ ~~~~~~~~~~~~~~~~~~~~~~ ]|
+-> http://ThinRope.net/ <-+
|[ ______________________ ]|


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

* Re: kbuild: problems with separate src/obj trees
  2006-01-23 15:15 ` Kalin KOZHUHAROV
@ 2006-01-23 16:46   ` Gerd Hoffmann
  0 siblings, 0 replies; 3+ messages in thread
From: Gerd Hoffmann @ 2006-01-23 16:46 UTC (permalink / raw)
  To: Kalin KOZHUHAROV; +Cc: linux-kernel

>> master-xen kraxel ~/objtree/vanilla-2.6.16-pre-um# make ARCH=um
>> gmake -C /home/kraxel/scratch/vanilla-2.6.16-pre
>> O=/home/kraxel/objtree/vanilla-2.6.16-pre-um
>>   SYMLINK arch/um/include/kern_constants.h
>> ln: creating symbolic link `arch/um/include/kern_constants.h' to
>> `../../../include/asm-um/asm-offsets.h': No such file or directory
>> gmake[2]: *** [arch/um/include/kern_constants.h] Error 1
>> gmake[1]: *** [cdbuilddir] Error 2
>> gmake: *** [all] Error 2

> There was a recen thread about these... let me see:
> Look for "[PATCH 2/2] kbuild: fix make -jN with multiple targets with make
> O=..." from Sam Ravnborg on 2006-01-16

Ok, the .kernelrelease issue is fixed meanwhile, I still see the UML
build failure though.  That triggers also without "make -j", so it is
probably a different bug ...

cheers,

  Gerd

-- 
Gerd 'just married' Hoffmann <kraxel@suse.de>
I'm the hacker formerly known as Gerd Knorr.
http://www.suse.de/~kraxel/just-married.jpeg

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

end of thread, other threads:[~2006-01-23 16:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-23 13:15 kbuild: problems with separate src/obj trees Gerd Hoffmann
2006-01-23 15:15 ` Kalin KOZHUHAROV
2006-01-23 16:46   ` Gerd Hoffmann

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).