Broken compiling under 2.6.12-rc2 on my machine
Hi there,
I have applied 2.6.12-rc2 patches against 2.6.11 and gone to compile and it fails...
Here is what I have done:
make menuconfig ARCH=um
Added in hostfs, UML networking - daemon (but also tried with these off, no difference)
make linux ARCH=um
Output:
HOSTCC usr/gen_init_cpio CHK usr/initramfs_list UPD usr/initramfs_list CPIO usr/initramfs_data.cpio GZIP usr/initramfs_data.cpio.gz AS usr/initramfs_data.o LD usr/built-in.o CC arch/um/kernel/checksum.o QUOTE arch/um/kernel/config.tmp QUOTE arch/um/kernel/config.c
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
config.c also is 0 characters length
I can supply any other files needed.
System is Debian Woody, gcc 2.95.4
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.
And UML does compile under 2.6.11 with a patch for gcc (which is include in 2.6.12-rc4). Haven't yet tried 2.6.12-rc1 but can do later if this will help.
Ian
-------------------------------------------------------
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 12 lines · Ian McDonald
Hi there,
I have applied 2.6.12-rc2 patches against 2.6.11 and gone to compile and it fails...
Here is what I have done:
make menuconfig ARCH=um
Added in hostfs, UML networking - daemon (but also tried with these off, no difference)
make linux ARCH=umOutput:
Quoted 10 lines
HOSTCC usr/gen_init_cpio CHK usr/initramfs_list UPD usr/initramfs_list CPIO usr/initramfs_data.cpio GZIP usr/initramfs_data.cpio.gz AS usr/initramfs_data.o LD usr/built-in.o CC arch/um/kernel/checksum.o QUOTE arch/um/kernel/config.tmp QUOTE arch/um/kernel/config.c
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.oarch/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
Quoted 9 lines
sed: -e expression #4, char 2: Extra characters after command make[1]: *** [
arch/um/kernel/config.c] Error 1
make: *** [arch/um/kernel] Error 2and here is the file
arch/um/kernel/.config.tmp.cmdthat 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...
Quoted 9 lines
config.calso is 0 characters lengthI can supply any other files needed.
System is Debian Woody, gcc 2.95.4I 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.
Could you send me your .config?
Quoted 3 lines
And UML does compile under 2.6.11 with a patch for gcc (which is include in 2.6.12-rc4). Haven't yet tried 2.6.12-rc1 but can do later if this will help.
I'm confused: what?
Quoted 12 lines
Ian
-------------------------------------------------------
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
-------------------------------------------------------
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 6 lines
Quoted 3 lines
And UML does compile under 2.6.11 with a patch for gcc (which is include in 2.6.12-rc4). Haven't yet tried 2.6.12-rc1 but can do later if this will help.
I'm confused: what?
That should read 2.6.12-rc2 not 2.6.12-rc4.
I will supply the .config when I get into university. I will try to replicate yours as well - I was running without SKAS I think which is where your problem appears to be....
-------------------------------------------------------
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 7 lines · Rob Landley
Quoted 2 lines · Ian McDonald
Hi there,
I'm trying to track this down and fix it, but mine didn't even get that far, it died with:
Quoted 11 lines
CC
arch/um/kernel/ptrace.oarch/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 namedskas' 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 namedskas' 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.
Quoted 4 lines
Quoted 4 lines
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
Quoted 8 lines
Quoted 5 lines
and here is the file
arch/um/kernel/.config.tmp.cmdthat 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.tmpThere 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?
Quoted 1 line
Quoted 1 line
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.
Quoted 7 lines
Quoted 4 lines
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.
Quoted 3 lines
Could you send me your .config?
Quoted 1 line
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.
Quoted 3 lines
Quoted 3 lines
(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.
Signature · 16 lines
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 [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Comments inline
Quoted 10 lines · Blaisorblade
Quoted 10 lines
Quoted 9 lines
sed: -e expression #4, char 2: Extra characters after command make[1]: *** [
arch/um/kernel/config.c] Error 1
make: *** [arch/um/kernel] Error 2and here is the file
arch/um/kernel/.config.tmp.cmdthat 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
Quoted 5 lines
Quoted 2 lines
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.cis not, so you should quote .config.c.cmd.
There is no such file as .config.c.cmd and don't see it mentioned in Makefile either.
There is however .checksum.o.cmd (8348 bytes), config.tmp (13609 bytes) if you want to see either.
Quoted 11 lines
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 '}' \ $< > $@
This matches my Makefile exactly
Quoted 7 lines
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?
Quoted 1 line
Quoted 1 line
System is Debian Woody,
Can you post your sed version? and Rob, can you then test it and fix the code?
GNU sed version 3.02
Quoted 11 lines
Please save the correct
config.ccurrently created and check it for reference.Quoted 7 lines
Quoted 4 lines
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.
Quoted 1 line
Could you send me your .config?
Attached
Quoted 6 lines
Quoted 2 lines
Quoted 2 lines
And UML does compile under 2.6.11 with a patch for gcc
The
__va_copyfix, 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.
Yes lucky for me as I don't have root access to my box here and can't alter....
__va_copy and systables patch (duplicated enums)
Quoted 4 lines
Quoted 3 lines
Quoted 3 lines
(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.
Yep :-)
Quoted 11 lines · Ian McDonald
Quoted 9 lines
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?
Quoted 1 line
Quoted 1 line
System is Debian Woody,
Can you post your sed version? and Rob, can you then test it and fix the code?
GNU sed version 3.02
According to this:
ftp://ftp.gnu.org/gnu/sed
That's from august 1998. It's even older than gcc 2.95, the tarball of which contains files dated 7/29/99 (a full year later). Saying we should support that is roughly equivalent to saying we should be able to build with gcc 2.8.1, the compiler that was released six months before that was.
That said, the change I posted earlier would probably make it work. The
question is, do we care? Documentation/Changes doesn't list a required sed
version (even though other things in the kernel build use it), but perhaps it should.
Quoted 9 lines
Quoted 6 lines
Quoted 1 line
Quoted 1 line
And UML does compile under 2.6.11 with a patch for gcc
The
__va_copyfix, 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.Yes lucky for me as I don't have root access to my box here and can't alter....
Documentation/Changes says the kernel actually requires gcc 2.95.3, which has the newest file on 3/16/2001.
Not my call, and I posted a fix that should work on the ancient stuff (I'm curious if it actually does). It's not a hard fix at all, just pointing out some context...
Rob
-------------------------------------------------------
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 8 lines
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Quoted 3 lines
"Rob" == Rob Landley <[email protected]> writes:
System is Debian Woody,
Can you post your sed version? and Rob, can you then test it
and fix the > code?
GNU sed version 3.02
Rob> That said, the change I posted earlier would probably make it Rob> work. The question is, do we care? Documentation/Changes Rob> doesn't list a required sed version (even though other things Rob> in the kernel build use it), but perhaps it should.
Well, for Woody users there is always a backports sed - anyone using 2.6 with woody needs at least module-init-tools from backports so one more package won't matter, even though one could be compiling 2.6 on a 2.4 system.
Sincerely,
Adrian Phillips
Signature · 13 lines
Who really wrote the works of William Shakespeare ? http://www.pbs.org/wgbh/pages/frontline/shakespeare/ ------------------------------------------------------- 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 [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 14 lines · Adrian Phillips
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines
"Rob" == Rob Landley <[email protected]> writes:
System is Debian Woody,Can you post your sed version? and Rob, can you then test it
and fix the > code?
GNU sed version 3.02
Rob> That said, the change I posted earlier would probably make it Rob> work. The question is, do we care?
Documentation/ChangesRob> doesn't list a required sed version (even though other things Rob> in the kernel build use it), but perhaps it should.
Quoted 4 lines
Well, for Woody users there is always a backports sed - anyone using 2.6 with woody needs at least module-init-tools from backports so one more package won't matter, even though one could be compiling 2.6 on a 2.4 system.
This user hasn't root access. And the patch isn't difficult or problematic.
Signature · 16 lines
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 [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 13 lines · Blaisorblade
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 '}'.
Quoted 8 lines
This patch went in after 2.6.11, I'm noticing - wow, are releases getting so slow?
Quoted 1 line
Quoted 1 line
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.ccurrently created and check it for reference.
I enabled SKAS mode and the build finished. The sed bit didn't break for me:
CHK usr/initramfs_list QUOTE arch/um/kernel/config.tmp QUOTE arch/um/kernel/config.c CC arch/um/kernel/config.o
And I'm using knoppix, which is based on debian.
From the error message, it seems to be complaining about the "a" command. If you're using a really really really old version of sed, it might insist on a gratuitous line break before the line to be added. (I know it did back in the 1970's, but I didn't think anything remotely modern had that limitation.) So try splitting the command in half like this:
cmd_quote2 = sed -e '/CONFIG/{' \
-e 's/"CONFIG"\;/""/' \
-e 'r $(obj)/config.tmp' \
-e 'a \' \
-e '""\;' \
-e '}' \
$< > $@I just tried that here and it behaved the same way as the other version, for me...
Rob
-------------------------------------------------------
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_ide95&alloc_id396&opÌk
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 26 lines · Rob Landley
Quoted 13 lines · Blaisorblade
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 '}'.
Quoted 8 lines
This patch went in after 2.6.11, I'm noticing - wow, are releases getting so slow?
Quoted 1 line
Quoted 1 line
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.ccurrently created and check it for reference.I enabled SKAS mode and the build finished. The sed bit didn't break for me:
Quoted 6 lines
CHK usr/initramfs_list QUOTE arch/um/kernel/config.tmp QUOTE arch/um/kernel/config.c CC arch/um/kernel/config.oAnd I'm using knoppix, which is based on debian.
But with updated packages (i.e. unstable/testing). If the patch is so little and without downsides, there's no point in not merging it.
Quoted 14 lines
From the error message, it seems to be complaining about the "a" command. If you're using a really really really old version of sed, it might insist on a gratuitous line break before the line to be added. (I know it did back in the 1970's, but I didn't think anything remotely modern had that limitation.) So try splitting the command in half like this:
cmd_quote2 = sed -e '/CONFIG/{' \ -e 's/"CONFIG"\;/""/' \ -e 'r $(obj)/config.tmp' \ -e 'a \' \ -e '""\;' \ -e '}' \ $< > $@
Quoted 2 lines
I just tried that here and it behaved the same way as the other version, for me...
Ok, Rob, finish handling this issue this and email me the patch (with a suitable changelog) when it's ready.
Bye
Signature · 16 lines
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 [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 9 lines · Blaisorblade
Quoted 6 lines
CHK usr/initramfs_list QUOTE arch/um/kernel/config.tmp QUOTE arch/um/kernel/config.c CC arch/um/kernel/config.oAnd I'm using knoppix, which is based on debian.
But with updated packages (i.e. unstable/testing). If the patch is so little and without downsides, there's no point in not merging it.
Agreed.
Quoted 14 lines
Quoted 14 lines
From the error message, it seems to be complaining about the "a" command. If you're using a really really really old version of sed, it might insist on a gratuitous line break before the line to be added. (I know it did back in the 1970's, but I didn't think anything remotely modern had that limitation.) So try splitting the command in half like this:
cmd_quote2 = sed -e '/CONFIG/{' \ -e 's/"CONFIG"\;/""/' \ -e 'r $(obj)/config.tmp' \ -e 'a \' \ -e '""\;' \ -e '}' \ $< > $@
Quoted 5 lines
Quoted 2 lines
I just tried that here and it behaved the same way as the other version, for me...
Ok, Rob, finish handling this issue this and email me the patch (with a suitable changelog) when it's ready.
Just waiting to hear back from Ian that it does indeed fix the problem, and I see a reply from further down the list...
Rob
-------------------------------------------------------
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 11 lines · Rob Landley
Quoted 10 lines · Blaisorblade
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 '}' \ $< > $@
Btw, can you please explain me why both you and me didn't notice that config.tmp is not needed? Yesterday while at bed I thought to the world "pipe" and achieved enlightenment... Am I missing something?
I'll send the patch, unless I get a NACK.
Signature · 16 lines
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 [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
OK.
Tested this change to arch/um/kernel/Makefile:
cmd_quote2 = sed -e '/CONFIG/{' \
-e 's/"CONFIG"\;/""/' \
-e 'r $(obj)/config.tmp' \
-e 'a \' \
-e '""\;' \
-e '}' \
$< > $@and can report that it fixes my problems.
I can also report that vacopy patch works (which is also in 2.6.11.7 I notice but I haven't tested yet - I will post a note when I have but that may be next week) and syscall patch works (which is not yet in 2.6.11.x).
Paolo I agree from my angle that this should go forwards as a confirmed patch.
Thanks everybody for your support. I wish that I was running something more recent than Debian woody but it is still the latest "official" Debian. I'm sure that your fixes will help other users also.
Regards,
Ian
Quoted 16 lines · Blaisorblade
Quoted 11 lines · Rob Landley
Quoted 10 lines · Blaisorblade
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 '}' \ $< > $@Btw, can you please explain me why both you and me didn't notice that config.tmp is not needed? Yesterday while at bed I thought to the world "pipe" and achieved enlightenment... Am I missing something?
Quoted 7 lines
I'll send the patch, unless I get a NACK.
--
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 11 lines · Ian McDonald
OK.
Tested this change to
arch/um/kernel/Makefile:cmd_quote2 = sed -e '/CONFIG/{' \ -e 's/"CONFIG"\;/""/' \ -e 'r $(obj)/config.tmp' \ -e 'a \' \ -e '""\;' \ -e '}' \ $< > $@
Quoted 6 lines
and can report that it fixes my problems.
I can also report that vacopy patch works (which is also in 2.6.11.7 I notice but I haven't tested yet - I will post a note when I have but that may be next week) and syscall patch works (which is not yet in 2.6.11.x).
Test it from -bs3, please.
Quoted 2 lines
Paolo I agree from my angle that this should go forwards as a confirmed patch.
Please make sure that the attached patch produces the same makefile as the manual change you did (yes, I'm a bit overzealous maybe, but copy and paste isn't perfect from mailers, patches are much better).
For me, I tested it on my Gentoo and produces the same output as the unpatched code.
Ah, Rob, I've re-read the code and re-understood pipes are not enough, and we must keep the temp step. Sorry (even if I blamed both, so I hope I've not been impolite).
Signature · 3 lines
Paolo Giarrusso, aka Blaisorblade Linux registered user n. 292729 http://www.user-mode-linux.org/~blaisorblade
From: Rob Landley <[email protected]>
It is apparent that the sed 3.02 (from august 1998) is still used on Debian Woody, and it is stricter on input expressions for the "a" command. So change the code to make it work - it's not a big change.
---
linux-2.6.11-paolo/arch/um/kernel/Makefile | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-)
arch/um/kernel/Makefile renamed from arch/um/kernel/Makefile~uml-workaround-sed-behaviour +2 -1
@@ -53,6 +53,7 @@ quiet_cmd_quote2 = QUOTE $@ cmd_quote2 = sed -e '/CONFIG/{' \ -e 's/"CONFIG"\;/""/' \ -e 'r $(obj)/config.tmp' \ - -e 'a""\;' \ + -e 'a \' \ + -e '""\;' \ -e '}' \ $< > $@
_
PATCH 1/1 Fix broken compiling under 2.6.12-rc2 with sed 3.02
In reply to Ian McDonaldOld versions of sed from 1998 (predating the first release of gcc 2.95, but still in use by debian stable) don't understand the single-line version of the sed append command. Since newer versions of sed still understand the... ahem, "vintage" form of the command, change it to use that.
--- linux-2.6.11.old/arch/um/kernel/Makefile 2005-04-08 01:06:15.000000000
-0400
+++ linux-2.6.11/arch/um/kernel/Makefile 2005-04-08 01:08:44.000000000 -0400
@@ -53,6 +53,7 @@
cmd_quote2 = sed -e '/CONFIG/{' \
-e 's/"CONFIG"\;/""/' \
-e 'r $(obj)/config.tmp' \
- -e 'a""\;' \
+ -e 'a \' \
+ -e '""\;' \
-e '}' \$< > $@
-------------------------------------------------------
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Re: [uml-devel] [patch] Fix broken compiling under 2.6.12-rc2 with sed 3.02
Quoted 10 lines · Rob Landley
Old versions of sed from 1998 (predating the first release of gcc 2.95, but still in use by debian stable) don't understand the single-line version of the sed append command. Since newer versions of sed still understand the... ahem, "vintage" form of the command, change it to use that.
Signed-off-by Rob Landley <[email protected]>Acked-by Ian McDonald <[email protected]>--- linux-2.6.11.old/arch/um/kernel/Makefile 2005-04-08 01:06:15.000000000
-0400
Note that your mailer wrapper the patch (only the first line), the saved file is wrapped like above. And Kmail doesn't mangle inline patches on saving (I've tested it multiple times). If you can't fix this, next time use attachments (with display as inline) with "7bit" encoding (i.e. not encoded).
Review
Quoted 10 lines
+++ linux-2.6.11/arch/um/kernel/Makefile 2005-04-08 01:08:44.000000000
-0400 @@ -53,6 +53,7 @@cmd_quote2 = sed -e '/CONFIG/{' \(quoted diff) +2
-1-e 's/"CONFIG"\;/""/' \ -e 'r $(obj)/config.tmp' \ - -e 'a""\;' \ + -e 'a \' \ + -e '""\;' \ -e '}' \ $< > $@
Ok, it's the same I diffed, I'm using your log and queueing for the next merge. It'll be in -bs3.
Signature · 16 lines
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 [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Re: [uml-devel] [patch] Fix broken compiling under 2.6.12-rc2 with sed 3.02
Quoted 10 lines · Blaisorblade
Quoted 9 lines · Rob Landley
Old versions of sed from 1998 (predating the first release of gcc 2.95, but still in use by debian stable) don't understand the single-line version of the sed append command. Since newer versions of sed still understand the... ahem, "vintage" form of the command, change it to use that.
Signed-off-by Rob Landley <[email protected]>Acked-by Ian McDonald <[email protected]>
Quoted 8 lines
Quoted 2 lines
--- linux-2.6.11.old/arch/um/kernel/Makefile 2005-04-08
01:06:15.000000000 -0400Note that your mailer wrapper the patch (only the first line), the saved file is wrapped like above. And Kmail doesn't mangle inline patches on saving (I've tested it multiple times). If you can't fix this, next time use attachments (with display as inline) with "7bit" encoding (i.e. not encoded).
Sigh. I forgot to turn off wordwrap from the pulldown menu. Long day...
Rob
-------------------------------------------------------
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 13 lines · Blaisorblade
Quoted 11 lines · Rob Landley
Quoted 10 lines · Blaisorblade
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 '}' \ $< > $@
Quoted 5 lines
Btw, can you please explain me why both you and me didn't notice that config.tmp is not needed? Yesterday while at bed I thought to the world "pipe" and achieved enlightenment... Am I missing something?
I'll send the patch, unless I get a NACK.
If you can get the sed "r" command to read from a pipe, by my guest. (I mentioned originally that there was probably a cleaner way to do it, but I wasn't seeing it at the time...)
Rob
-------------------------------------------------------
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 3 lines · Rob Landley
If you can get the sed "r" command to read from a pipe, by my guest. (I mentioned originally that there was probably a cleaner way to do it, but I wasn't seeing it at the time...)
P.S. I terms of mentioning my obligatory "really disgusting solution to an otherwise seemingly impossible problem", I'd like to point to the existence of "/proc/self/fd/0".
But in comparison, the temp file doesn't really look all that bad... :)
Rob
-------------------------------------------------------
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 8 lines · Rob Landley
Quoted 3 lines · Rob Landley
If you can get the sed "r" command to read from a pipe, by my guest. (I mentioned originally that there was probably a cleaner way to do it, but I wasn't seeing it at the time...)
P.S. I terms of mentioning my obligatory "really disgusting solution to an otherwise seemingly impossible problem", I'd like to point to the existence of "/proc/self/fd/0".
I was thinking to it too... but it wouldn't work... ouch, it would! Ok, sed is not reading from stdin but from a file...
Quoted 1 line
But in comparison, the temp file doesn't really look all that bad... :)
Hmm, instead I prefer this rather than the tmp file. However it's not that important, after all.
Signature · 16 lines
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 [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 11 lines · Blaisorblade
Quoted 3 lines
P.S. I terms of mentioning my obligatory "really disgusting solution to an otherwise seemingly impossible problem", I'd like to point to the existence of "/proc/self/fd/0".I was thinking to it too... but it wouldn't work... ouch, it would! Ok, sed is not reading from stdin but from a file...
Quoted 1 line
But in comparison, the temp file doesn't really look all that bad... :)
Hmm, instead I prefer this rather than the tmp file. However it's not that important, after all.
Does the linux kernel build require /proc to be mounted? It's a bit on the brittle side for me to be happy with. The temp file is ugly, but robust...
Rob
-------------------------------------------------------
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel