All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Anthony Brock" <Anthony_Brock@ous.edu>
To: user-mode-linux-devel@lists.sourceforge.net
Subject: [uml-devel] Problems compiling 2.4 kernel
Date: Thu, 01 Jul 2004 08:30:02 -0700	[thread overview]
Message-ID: <s0e3cb9d.082@ORANGE.OUS.EDU> (raw)

I've been using 2.6 kernels for several months. However, a new project requires me to build a UML 2.4 kernel. Unfortunately, I can't seem to compile the guest kernel. For this task, we've deployed a new machine with:

SuSE 9.0
C/C++ Development installed

My steps are as follows:

lynx http://www.kernel.org/   (download the 2.4.26 kernel)
lynx http://prdownloads.sourceforge.net/user-mode-linux/uml-patch-2.4.26-1.bz2
tar -zxf linux-2.4.26.tar.gz
chown -R root:root linux-2.4.26
cd linux-2.4.26/
patch -p1 <../uml-patch-2.4.26-1   (applies cleanly with no rejects)
vi Makefile   (replace all instances of '-02' with '-01')
gzip -dc /proc/config.gz > .config
make oldconfig ARCH=um
make dep ARCH=um   (this just flies - it takes less than one second)
make ARCH=um

At this point, I see over 5000 errors lines. It starts with:

gcc -D__KERNEL__ -I/root/uml-2.4/linux-2.4.26/include -Wall -Wstrict-prototypes -Wno-trigraphs -O1 -fno-strict-aliasing -fno-common  -U__i386__ -Ui386 -g -D__arch_um__ -DSUBARCH=\"i386\" -D_LARGEFILE64_SOURCE -I/root/uml-2.4/linux-2.4.26/arch/um/include -Derrno=kernel_errno -I/root/uml-2.4/linux-2.4.26/arch/um/kernel/tt/include -I/root/uml-2.4/linux-2.4.26/arch/um/kernel/skas/include   -DKBUILD_BASENAME=main -c -o init/main.o init/main.c
In file included from /root/uml-2.4/linux-2.4.26/include/linux/posix_types.h:46,
                 from /root/uml-2.4/linux-2.4.26/include/linux/types.h:15,
                 from /root/uml-2.4/linux-2.4.26/include/linux/capability.h:16,
                 from /root/uml-2.4/linux-2.4.26/include/linux/binfmts.h:5,
                 from /root/uml-2.4/linux-2.4.26/include/linux/sched.h:9,
                 from /root/uml-2.4/linux-2.4.26/include/linux/mm.h:4,
                 from /root/uml-2.4/linux-2.4.26/include/linux/slab.h:14,
                 from /root/uml-2.4/linux-2.4.26/include/linux/proc_fs.h:5,
                 from init/main.c:15:
/root/uml-2.4/linux-2.4.26/include/asm/posix_types.h:4:34: asm/arch/posix_types.h: No such file or directory
In file included from /root/uml-2.4/linux-2.4.26/include/linux/types.h:16,
                 from /root/uml-2.4/linux-2.4.26/include/linux/capability.h:16,
                 from /root/uml-2.4/linux-2.4.26/include/linux/binfmts.h:5,
                 from /root/uml-2.4/linux-2.4.26/include/linux/sched.h:9,
                 from /root/uml-2.4/linux-2.4.26/include/linux/mm.h:4,
                 from /root/uml-2.4/linux-2.4.26/include/linux/slab.h:14,
                 from /root/uml-2.4/linux-2.4.26/include/linux/proc_fs.h:5,
                 from init/main.c:15:
/root/uml-2.4/linux-2.4.26/include/asm/types.h:4:28: asm/arch/types.h: No such file or directory
In file included from /root/uml-2.4/linux-2.4.26/include/linux/capability.h:16,
                 from /root/uml-2.4/linux-2.4.26/include/linux/binfmts.h:5,
                 from /root/uml-2.4/linux-2.4.26/include/linux/sched.h:9,
                 from /root/uml-2.4/linux-2.4.26/include/linux/mm.h:4,
                 from /root/uml-2.4/linux-2.4.26/include/linux/slab.h:14,
                 from /root/uml-2.4/linux-2.4.26/include/linux/proc_fs.h:5,
                 from init/main.c:15:
/root/uml-2.4/linux-2.4.26/include/linux/types.h:21: error: parse error before "dev_t"
/root/uml-2.4/linux-2.4.26/include/linux/types.h:21: warning: type defaults to `int' in declaration of `dev_t'
/root/uml-2.4/linux-2.4.26/include/linux/types.h:21: warning: data definition has no type or storage class
/root/uml-2.4/linux-2.4.26/include/linux/types.h:22: error: parse error before "ino_t"

Help is greatly appreciated!

Tony



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

             reply	other threads:[~2004-07-01 15:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-01 15:30 Anthony Brock [this message]
2004-07-01 16:43 ` [uml-devel] Problems compiling 2.4 kernel Jeff Dike
2004-07-01 17:36   ` BlaisorBlade
  -- strict thread matches above, loose matches on Subject: below --
2004-07-01 16:04 Anthony Brock
2004-07-01 16:13 Anthony Brock
2004-07-01 17:40 Anthony Brock
2004-07-01 21:05 ` Jeff Dike

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=s0e3cb9d.082@ORANGE.OUS.EDU \
    --to=anthony_brock@ous.edu \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.