Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have tried building a user-mode-linux kernel using both the source from the Ubuntu repository using apt-get and by using the git of the generic kernel.

The source code from Ubuntu's repository generated an error during compilation "error: __supported_pte_mask undeclared (first use in this function)". This is strange since a running precompiled version of the kernel can be downloaded right from the Ubuntu repository.

The git code compiles the ARCH=um just fine but it fails to run. I get an Aborted error see below for my compiled version vs the precompiled UML kernel downloaded from Ubuntu's repository.

Locating the bottom of the address space ... 0x10000
Locating the top of the address space ... 0xc0000000
Core dump limits :
    soft - 0
    hard - NONE
Checking that ptrace can change system call numbers...OK
Checking syscall emulation patch for ptrace...OK
Checking advanced syscall emulation patch for ptrace...OK
Checking for tmpfs mount on /dev/shm...OK
Checking PROT_EXEC mmap in /dev/shm/...OK
Checking for the skas3 patch in the host:
  - /proc/mm...not found: No such file or directory
  - PTRACE_FAULTINFO...not found
  - PTRACE_LDT...not found
UML running in SKAS0 mode
Adding 30121984 bytes to physical memory to account for exec-shield gap
Aborted

instead of the following from the built version of the uml kernel in the repository:

Locating the bottom of the address space ... 0x10000
Locating the top of the address space ... 0xc0000000
Core dump limits :
    soft - 0
    hard - NONE
Checking that ptrace can change system call numbers...OK
Checking syscall emulation patch for ptrace...OK
Checking advanced syscall emulation patch for ptrace...OK
Checking for tmpfs mount on /dev/shm...OK
Checking PROT_EXEC mmap in /dev/shm/...OK
Checking for the skas3 patch in the host:
  - /proc/mm...not found: No such file or directory
  - PTRACE_FAULTINFO...not found
  - PTRACE_LDT...not found
UML running in SKAS0 mode
Adding 1142784 bytes to physical memory to account for exec-shield gap
Initializing cgroup subsys cpuset
Linux version 2.6.35.1 (root@rothera) (gcc version 4.4.5 20100813 (Linaro prerelease) [release 2010.08-0] (Ubuntu/Linaro 4.4.4-8ubuntu2) ) #2 Mon Aug 16 10:45:47 UTC 2010 ()

The steps to build are from https://wiki.ubuntu.com/KernelTeam/GitKernelBuild and from http://www.ime.usp.br/~baroni/docs/uml-en.html

The complete steps that I used are:

cd linuxsrc
git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
cd linux-2.6
make mrproper 
make mrproper ARCH=um 
make defconfig ARCH=um 
make linux ARCH=um 
make modules ARCH=um 

It is at this point that I attempt to launch my UML kernel with:

./vmlinux ubda=centcow,CentOS5.6-x86-root_fs mem=256M root=/dev/ubda umid=centos

I downloaded the CentOS filesystem from http://fs.devloop.org.uk/

share|improve this question

closed as too localized by fossfreedom Feb 18 '12 at 22:40

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
The Aborted issue is cause by newer gcc versions removing code during optimization when a method is attempting to return a reference to a structure on the stack frame. Here is a reference to a patch: sourceforge.net/mailarchive/message.php?msg_id=27397459 . This still doesn't explain how Ubuntu's UML kernel package is being built since the code doesn't compile correctly. –  Andrew Stern Apr 26 '11 at 12:05
    
This question has no information and activity for a very long time. I am closing it for now. If by any reason you think this question is still viable or useful in anyways or that there is still a good chance it will be answered please flag it to a moderator or add a comment with the reasons why you want it open. Regards –  fossfreedom Feb 18 '12 at 22:40