Can't build Kernel under Dapper / 6.06
harry courtice
hcourtice at optusnet.com.au
Wed Nov 8 10:25:32 UTC 2006
Hello,
I am trying to build a kernel (UML) under Ubuntu 6.06 .
I have followed the instructions in
http://cosi.clarkson.edu/docs/kernel/setup/uml/uml.html
Below, I have listed versions of various bits of software, and shown the
outcome of the "make linux" command.
The first error that comes up is a missing file - asm/alternative.h
I would appreciate some help here - I guess this shouldn't be too hard,
but I don't know where to go to get things working.
Thanks,
Harry.
> harryc at harryc-desktop:~$ gcc --version
> gcc (GCC) 4.0.3 (Ubuntu 4.0.3-1ubuntu5)
>
>
> harryc at harryc-desktop:~$ apt-cache showpkg libncurses5-dev
> Package: libncurses5-dev
> Versions:
> 5.5-1ubuntu3(/var/lib/apt/lists/au.archive.ubuntu.com_ubuntu_dists_dapper_main_binary-i386_Packages)(/var/lib/dpkg/status)
>
>
> harryc at harryc-desktop:~$ apt-cache showpkg libstdc++6-dev
> Package: libstdc++6-dev
> Versions:
> 3.4.6-1ubuntu2(/var/lib/apt/lists/au.archive.ubuntu.com_ubuntu_dists_dapper_main_binary-i386_Packages)
>
>
> harryc at harryc-desktop:~$ ls /usr/src
> linux-headers-2.6.15-27 linux-source-2.6.15.tar.bz2
> linux-headers-2.6.15-27-386
>
>
>
> harryc at harryc-desktop:~$ sudo tar -xvjf /usr/src/linux-source-2.6.15.tar.bz2
> linux-source-2.6.15/
> linux-source-2.6.15/COPYING
> linux-source-2.6.15/CREDITS
> linux-source-2.6.15/Documentation/
>
>
> harryc at harryc-desktop:~/linux-source-2.6.15$ head -1 Debian.src.changelog
> linux-source-2.6.15 (2.6.15-27.48) dapper-security; urgency=low
>
>
> harryc at harryc-desktop:~/linux-source-2.6.15$ sudo make ARCH=um menuconfig
> scripts/kconfig/mconf arch/um/Kconfig
> #
> # using defaults found in .config
> #
>
>
> *** End of Linux kernel configuration.
> *** Execute 'make' to build the kernel or try 'make help'.
>
>
>
> harryc at harryc-desktop:~/linux-source-2.6.15$ sudo make ARCH=um linux
> CHK arch/um/include/uml-config.h
> UPD arch/um/include/uml-config.h
> CHK include/linux/version.h
> SPLIT include/linux/autoconf.h -> include/config/*
> gcc -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O2 -fomit-frame-pointer -g -D__arch_um__ -DSUBARCH=\"i386\" -Iarch/um/include -I/home/harryc/linux-source-2.6.15/arch/um/kernel/tt/include -I/home/harryc/linux-source-2.6.15/arch/um/kernel/skas/include -Dvmap=kernel_vmap -Din6addr_loopback=kernel_in6addr_loopback -Derrno=kernel_errno -Dsigprocmask=kernel_sigprocmask -fno-unit-at-a-time -U__i386__ -Ui386 -march=i486 -mpreferred-stack-boundary=2 -D_LARGEFILE64_SOURCE -Wdeclaration-after-statement -Wno-pointer-sign -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.0.3/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -S -o arch/um/kernel-offsets.s arch/um/sys-i386/kernel-offsets.c
> In file included from include/asm/bitops.h:4,
> from include/linux/bitops.h:77,
> from include/linux/thread_info.h:20,
> from include/linux/preempt.h:10,
> from include/linux/spinlock.h:50,
> from include/linux/capability.h:45,
> from include/linux/sched.h:7,
> from arch/um/sys-i386/kernel-offsets.c:3:
> include/asm/arch/bitops.h:10:29: error: asm/alternative.h: No such file or directory
> In file included from include/asm/bitops.h:4,
> from include/linux/bitops.h:77,
> from include/linux/thread_info.h:20,
> from include/linux/preempt.h:10,
> from include/linux/spinlock.h:50,
> from include/linux/capability.h:45,
> from include/linux/sched.h:7,
> from arch/um/sys-i386/kernel-offsets.c:3:
> include/asm/arch/bitops.h: In function ‘set_bit’:
> include/asm/arch/bitops.h:31: error: syntax error before ‘LOCK_PREFIX’
> include/asm/arch/bitops.h: In function ‘clear_bit’:
> include/asm/arch/bitops.h:66: error: syntax error before ‘LOCK_PREFIX’
>
More information about the ubuntu-users
mailing list