linux-um archives
 help / color / mirror / Atom feed
From: Blaisorblade <blaisorblade@yahoo.it>
To: user-mode-linux-devel@lists.sourceforge.net
Cc: Rob Landley <rob@landley.net>, Ian McDonald <imcdnzl@gmail.com>
Subject: Re: [uml-devel] Broken compiling under 2.6.12-rc2 on my machine
Date: Wed, 6 Apr 2005 21:36:26 +0200	[thread overview]
Message-ID: <200504062136.26895.blaisorblade@yahoo.it> (raw)
In-Reply-To: <200504060145.24555.rob@landley.net>

On Wednesday 06 April 2005 07:45, Rob Landley wrote:
> On Tuesday 05 April 2005 11:51 pm, Ian McDonald wrote:
> > Hi there,
> >

> I'm trying to track this down and fix it, but mine didn't even get that
> far, it died with:
>
>   CC      arch/um/kernel/ptrace.o
> arch/um/kernel/ptrace.c: In function `send_sigtrap':
> arch/um/kernel/ptrace.c:324: warning: implicit declaration of function
> `REGS_SP'
> arch/um/kernel/ptrace.c:324: error: union has no member named `skas'
> arch/um/kernel/ptrace.c:324: error: invalid lvalue in unary `&'
> arch/um/kernel/ptrace.c:324: warning: implicit declaration of function
> `REGS_IP'
> arch/um/kernel/ptrace.c:324: error: union has no member named `skas'
> arch/um/kernel/ptrace.c:324: error: invalid lvalue in unary `&'
> make[1]: *** [arch/um/kernel/ptrace.o] Error 1
Yes, that's true, the fix is in -mm, enable SKAS mode too during compilation 
(even if you don't use it) and it will work. See the answer to the latest 
"[uml-devel] [linux-2.6-bk] UML compile broken!" thread for this problem.

> > sed: -e expression #4, char 2: Extra characters after command
> > make[1]: *** [arch/um/kernel/config.c] Error 1
> > make: *** [arch/um/kernel] Error 2
> >
> > and here is the file arch/um/kernel/.config.tmp.cmd that gets created
> > which I am guessing has the sed error
> > cmd_arch/um/kernel/config.tmp := sed -e 's/"/\\"/g' -e 's/^/"/' -e
> > 's/$$/\\n"/' /home/iam4/linuxsrc/linux-2.6.12-rc2/.config >
> > arch/um/kernel/config.tmp
>
> There is no expression #4 in that.  It has three expressions (-e arguments)
> and a filename...
Ian, good catch, but you're quoting the wrong .cmd file. config.tmp is built 
correctly, config.c is not, so you should quote .config.c.cmd.

Anyway, from looking at what you quote, it's identical to the code in 
arch/um/kernel/Makefile. Quoting the correct code:

quiet_cmd_quote2 = QUOTE   $@
cmd_quote2 = sed -e '/CONFIG/{'          \
                  -e 's/"CONFIG"\;/""/'        \
                  -e 'r $(obj)/config.tmp'     \
                  -e 'a""\;'                   \
                  -e '}'                       \
                  $< > $@

As you see, there is a fourth expression, *here*. But it's -e '}'.

This patch went in after 2.6.11, I'm noticing - wow, are releases getting so 
slow?

> > System is Debian Woody,
Can you post your sed version? and Rob, can you then test it and fix the code? 
Please save the correct config.c currently created and check it for 
reference.
> > I don't know much yet about sed or the kernel build process but can
> > look into if nobody else makes sense of this. Just thought it was good
> > to get it out there considering it doesn't compile and rc2 has just
> > come out.

> I know sed.  I wrote and maintain the current busybox sed implementation. 
> I just don't know what the build's doing.
Explained above.
> Could you send me your .config?

> > And UML does compile under 2.6.11 with a patch for gcc
The __va_copy fix, right? I'm trying to merge that in 2.6.11.7, it's under 
review. The only problem is that somebody complains about the fact Linux 
still supports 2.95. Luckily for you, Linus already shut them off once, so 
the support won't go away soon.
> > (which is 
> > include in 2.6.12-rc4). Haven't yet tried 2.6.12-rc1 but can do later
> > if this will help.
You mean -rc2, ok.
-- 
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729
http://www.user-mode-linux.org/~blaisorblade




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

  parent reply	other threads:[~2005-04-06 19:31 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-06  3:51 [uml-devel] Broken compiling under 2.6.12-rc2 on my machine Ian McDonald
2005-04-06  5:45 ` Rob Landley
2005-04-06 17:59   ` Ian McDonald
2005-04-06 19:36   ` Blaisorblade [this message]
2005-04-06 23:55     ` Ian McDonald
2005-04-07  8:08       ` Rob Landley
2005-04-07 10:57         ` Adrian Phillips
2005-04-07 18:20           ` Blaisorblade
2005-04-07  6:50     ` Rob Landley
2005-04-07 18:19       ` Blaisorblade
2005-04-08  4:57         ` Rob Landley
2005-04-07 18:22       ` Blaisorblade
2005-04-07 23:21         ` Ian McDonald
2005-04-08  5:15           ` Blaisorblade
2005-04-08  5:26           ` [uml-devel] [patch] Fix broken compiling under 2.6.12-rc2 with sed 3.02 Rob Landley
2005-04-08  6:56             ` Blaisorblade
2005-04-08  7:21               ` Rob Landley
2005-04-08  4:59         ` [uml-devel] Broken compiling under 2.6.12-rc2 on my machine Rob Landley
2005-04-08  5:46           ` Rob Landley
2005-04-08  6:59             ` Blaisorblade
2005-04-08  7:23               ` Rob Landley

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=200504062136.26895.blaisorblade@yahoo.it \
    --to=blaisorblade@yahoo.it \
    --cc=imcdnzl@gmail.com \
    --cc=rob@landley.net \
    --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