linux-um archives
 help / color / mirror / Atom feed
From: BlaisorBlade <blaisorblade_spam@yahoo.it>
To: user-mode-linux-devel@lists.sourceforge.net
Cc: Jeff Dike <jdike@addtoit.com>
Subject: Re: [uml-devel] uml-patch-2.6.1
Date: Sun, 18 Jan 2004 17:23:32 +0100	[thread overview]
Message-ID: <200401181723.32498.blaisorblade_spam@yahoo.it> (raw)
In-Reply-To: <200401140725.i0E7Pr9b001444@uml.user-mode-linux.org>

[-- Attachment #1: Type: text/plain, Size: 1066 bytes --]

> This patch updates UML to 2.6.1. 

Try disabling CONFIG_MODE_TT and you'll see that 
arch/um/kernel/skas/include/uaccess.h doesn't compile (it uses EFAULT but 
errno.h is included only by arch/um/kernel/tt/include/uaccess.h).

Also, I never saw depmod (on modules_install, with the patches I said you to 
merge) giving this:
WARNING: 
/home/paolo/Uml/slack90.mnt/lib/modules/2.6.1-1um/kernel/fs/hostfs/hostfs.ko 
needs unknown symbol mknod
WARNING: 
/home/paolo/Uml/slack90.mnt/lib/modules/2.6.1-1um/kernel/fs/hostfs/hostfs.ko 
needs unknown symbol lstat64

This happens because hostfs is not compiled with -O2, since now -O2 is added 
to CFLAGS after including arch/??/Makefile. The inlines that do the needed 
wrapping are defined(in /usr/include/sys/stat.h) only if _OPTIMIZE_ if 
defined (probably because inlines don't work otherwise, but other inlines are 
defined anyway, so there is also a libc bug). So, I'm attaching the fix.
-- 
cat <<EOSIGN
Paolo Giarrusso, aka Blaisorblade
Linux Kernel 2.4.23/2.6.0 on an i686; Linux registered user n. 292729
EOSIGN

[-- Attachment #2: FixHostfs-compile.patch --]
[-- Type: text/x-diff, Size: 621 bytes --]

--- ./arch/um/Makefile.fix	2004-01-18 10:07:33.000000000 +0100
+++ ./arch/um/Makefile	2004-01-18 17:18:17.000000000 +0100
@@ -137,8 +137,21 @@
 # To get a definition of F_SETSIG
 USER_CFLAGS += -D_GNU_SOURCE
 
+#From main Makefile, these options are set after including the ARCH makefile.
+#So copy them here.
+
+ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
+USER_CFLAGS		+= -Os
+else
+USER_CFLAGS		+= -O2
+endif
+
+ifndef CONFIG_FRAME_POINTER
+USER_CFLAGS		+= -fomit-frame-pointer
+endif
+
 ifdef CONFIG_DEBUG_INFO
-USER_CFLAGS          += -g
+USER_CFLAGS		+= -g
 endif
 
 CLEAN_FILES += linux x.i gmon.out $(ARCH_DIR)/uml.lds.s \

  reply	other threads:[~2004-01-18 18:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-14  7:25 [uml-devel] uml-patch-2.6.1 Jeff Dike
2004-01-18 16:23 ` BlaisorBlade [this message]
2004-01-19  0:03   ` 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=200401181723.32498.blaisorblade_spam@yahoo.it \
    --to=blaisorblade_spam@yahoo.it \
    --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