[uml-devel] latest cross-build patch break UML build, when using -j2

2005-02-18 Thread Bodo Stroesser
Using the latest incrementals (Feb, 17),
I tried to build UML kernel by typing:
   make clean ARCH=um
   make -j2 vmlinux ARCH=um
Make stops on the following error:
  CHK arch/um/user-offsets.h
  UPD arch/um/user-offsets.h
  CHK arch/um/include/user_constants.h
  HOSTCC  arch/um/sys-i386/util/mk_sc
  HOSTCC  arch/um/kernel/skas/util/mk_ptregs-i386.o
  HOSTLD  arch/um/kernel/skas/util/mk_ptregs
gcc -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O2 -fno-omit-frame-pointer -g -U__i386__ -Ui386 
-D__arch_um__ -DSUBARCH=\"i386\" -Iarch/um/include  -I/usr/src/tmp/linux-2.6.11-rc3-mm2/arch/um/kernel/tt/include 
-I/usr/src/tmp/linux-2.6.11-rc3-mm2/arch/um/kernel/skas/include -Derrno=kernel_errno -Dsigprocmask=kernel_sigprocmask -fno-unit-at-a-time -D_LARGEFILE64_SOURCE 
   -nostdinc -isystem /usr/lib/gcc-lib/i586-suse-linux/3.3.3/include -D__KERNEL__ -Iinclude  -S -o arch/um/kernel-offsets.s arch/um/sys-i386/kernel-offsets.c
In file included from include/asm/ptrace.h:9,
 from include/asm/processor-generic.h:14,
 from include/asm/processor.h:41,
 from include/asm/thread_info.h:12,
 from include/linux/thread_info.h:21,
 from include/linux/spinlock.h:12,
 from include/linux/capability.h:45,
 from include/linux/sched.h:7,
 from arch/um/sys-i386/kernel-offsets.c:3:
arch/um/include/sysdep/ptrace.h:17:23: sysdep/sc.h: No such file or directory
arch/um/include/sysdep/ptrace.h:34:25: skas_ptregs.h: No such file or directory
In file included from include/asm/ptrace.h:9,
 from include/asm/processor-generic.h:14,
 from include/asm/processor.h:41,
 from include/asm/thread_info.h:12,
 from include/linux/thread_info.h:21,
 from include/linux/spinlock.h:12,
 from include/linux/capability.h:45,
 from include/linux/sched.h:7,
 from arch/um/sys-i386/kernel-offsets.c:3:
arch/um/include/sysdep/ptrace.h:74: error: `HOST_FRAME_SIZE' undeclared here (not in a function)
arch/um/include/sysdep/ptrace.h:75: error: `HOST_FP_SIZE' undeclared here (not in a function)
arch/um/include/sysdep/ptrace.h:76: error: `HOST_XFP_SIZE' undeclared here (not in a function)
make: *** [arch/um/kernel-offsets.s] Error 1

When using "make vmlinux ARCH=um", UML kernel is built successfully.
Bodo
---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel


[uml-devel] [Bug 49277] Compile of usermode-sources-2.6.x fails

2005-02-18 Thread bugzilla-daemon
http://bugs.gentoo.org/show_bug.cgi?id=49277





--- Additional Comments From [EMAIL PROTECTED]  2005-02-18 05:05 PST ---
Thanks for the explanation- thats good news. So, when Linux 2.6.11 comes out 
and gets marked stable in portage, we will effectively be able to drop 
usermode-sources-2.6 from portage without losing any functionality?



--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel


Re: [uml-devel] [BUG: UML 2.6.11-rc4-bk-latest] sleeping function called from invalid context and segmentation fault

2005-02-18 Thread Anton Altaparmakov
On Wed, 2005-02-16 at 19:35 +0100, Blaisorblade wrote:
> On Monday 14 February 2005 12:48, Anton Altaparmakov wrote:
> > Hi,
> >
> > I get a few Debug messages of the form from UML:
> >
> > Debug: sleeping function called from invalid context at
> > include/asm/arch/semaphore.h:107
> > in_atomic():0, irqs_disabled():1
> > Call Trace:
> > 087d77b0:  [<0809aaa5>] __might_sleep+0x135/0x180
> > 087d77d8:  [<084d377f>] mcount+0xf/0x20
> > 087d77e0:  [<0807cc13>] uml_console_write+0x33/0x80
> 
> > Most are coming via uml_console_write.
> The problem is that the UML tty drivers use a semaphore instead of a spinlock 
> for the locking, which also causes some other problems.
> 
> The attached patch should fix this, but I've not yet made sure it is not 
> deadlock-prone (I didn't hit any during some very limited testing).
> 
> So it's not yet ready for 2.6.11.

Trying with the above patch in now only get two "sleeping function
called from invalid context" warnings during boot and none during
running.  However I get a lot of those errors:

arch/um/drivers/line.c:262: spin_lock(arch/um/drivers/line.c:085b5900)
already locked by arch/um/drivers/line.c/262

Also both before and after the patch I see a lot of messages like:

kernel: line_write_room: tty2: no room left in buffer

Best regards,

Anton
-- 
Anton Altaparmakov  (replace at with @)
Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK
Linux NTFS maintainer / IRC: #ntfs on irc.freenode.net
WWW: http://linux-ntfs.sf.net/ & http://www-stu.christs.cam.ac.uk/~aia21/



---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel