linux-um archives
 help / color / mirror / Atom feed
From: Erik Paulson <epaulson@cs.wisc.edu>
To: Jeff Dike <jdike@addtoit.com>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] building 2.6.24-rc1 with VDE in a non-standard location?
Date: Fri, 2 Nov 2007 11:22:44 -0500	[thread overview]
Message-ID: <20071102162239.GA13481@swingline.cs.wisc.edu> (raw)
In-Reply-To: <20071102155131.GB5760@c2.user-mode-linux.org>

On Fri, Nov 02, 2007 at 11:51:31AM -0400, Jeff Dike wrote:
> On Thu, Nov 01, 2007 at 09:27:49PM -0500, Erik Paulson wrote:
> > I'm trying to build UML with VDE support turned on. However, I don't
> > have root on my host machine, so when I installed VDE I put it in a 
> > non-standard location. 
> > 
> > How do you pass extra -L and -I flags to the kernel build process? I
> > tried adding
> > 
> > make linux ARCH=um CFLAGS=-I/path/to/my/vde/include 
> > with no go, and I tried adding the include path to
> > HOSTCFLAGS in the top level Makefile rules, but that also didn't
> > work.
> 
> How recent a kernel tree are you playing with?  This patch seems to do
> what you want for CFLAGS -
> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=52bcc3308ae3344266f55bf98a22c1ac0201eda7
> 

2.6.24-rc1 (2.6.23 plus the patch for rc1, plus the patch you mentioned on
the 25th:
   http://marc.info/?l=linux-kernel&m=119332492222601&q=raw

With basically just using 'defconfig' (I turned on VDE, but otherwise touched
nothing in menuconfig).

I used:
swingline(10)% gcc -v
Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.6/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux
Thread model: posix
gcc version 3.4.6 20060404 (Red Hat 3.4.6-8)

running:
make linux ARCH=um CFLAGS=-I/scratch/epaulson/vde/include

I get:
<the below error message repeated many times>
  CC      arch/um/kernel/skas/mmu.o
In file included from include/asm/processor-generic.h:13,
                 from include/asm/processor.h:77,
                 from include/asm/thread_info.h:11,
                 from include/linux/thread_info.h:21,
                 from include/linux/preempt.h:9,
                 from include/linux/spinlock.h:49,
                 from include/linux/mmzone.h:7,
                 from include/linux/gfp.h:4,
                 from include/linux/mm.h:8,
                 from arch/um/kernel/skas/mmu.c:6:
include/asm/ptrace.h:50: warning: "struct user_fxsr_struct" declared inside parameter list
include/asm/ptrace.h:50: warning: its scope is only this definition or declaration, which is probably not what you want
include/asm/ptrace.h:52: warning: "struct user_fxsr_struct" declared inside parameter list
In file included from include/linux/timer.h:5,
                 from include/linux/sched.h:87,
                 from include/asm/pgtable.h:11,
                 from include/linux/mm.h:37,
                 from arch/um/kernel/skas/mmu.c:6:
include/linux/ktime.h: In function `ktime_set':
include/linux/ktime.h:84: warning: comparison is always false due to limited range of data type
/tmp/cc8wIDJP.s: Assembler messages:
/tmp/cc8wIDJP.s:485: Error: suffix or operands invalid for `dec'
/tmp/cc8wIDJP.s:496: Error: suffix or operands invalid for `dec'
make[2]: *** [arch/um/kernel/skas/mmu.o] Error 1
make[1]: *** [arch/um/kernel/skas] Error 2
make: *** [arch/um/kernel] Error 2

I'll try rc1-git11 this afternoon.

-Erik


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.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:[~2007-11-02 16:22 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-02  2:27 [uml-devel] building 2.6.24-rc1 with VDE in a non-standard location? Erik Paulson
2007-11-02 15:51 ` Jeff Dike
2007-11-02 16:22   ` Erik Paulson [this message]
2007-11-02 17:25     ` Jeff Dike
2007-11-05 17:12     ` Jeff Dike
2007-11-05 17:57       ` Erik Paulson
2007-11-11 19:47       ` Erik Paulson
2007-11-12 16:29         ` Jeff Dike
2007-11-18 16:11         ` 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=20071102162239.GA13481@swingline.cs.wisc.edu \
    --to=epaulson@cs.wisc.edu \
    --cc=jdike@addtoit.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox