Compile of usermode-sources-2.6.x fails
http://bugs.gentoo.org/show_bug.cgi?id=49277
------- Additional Comments From [email protected] 2005-02-09 07:38 PST ------- Could someone please update me with the status of this bug? Are there still problems?
I notice that the latest version in portage is based on 2.6.8.1. Would upgrading to a newer version (assuming there are newer releases) help at all?
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
-------------------------------------------------------
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 · On Wednesday 09 February 2005 10:38 am, [email protected] wrote:
------- Additional Comments From [email protected] 2005-02-09 07:38 PST ------- Could someone please update me with the status of this bug? Are there still problems?
I notice that the latest version in portage is based on 2.6.8.1. Would upgrading to a newer version (assuming there are newer releases) help at all?
I believe it was fixed in 2.6.11-rc3-bk2 or thereabouts, but I personally would prefer to hold off closing it until 2.6.11 actually ships. The UML in 2.6.10 didn't build, 2.6.9 was unusable out of the box, and 2.6.11-rc3 introduced _new_ build breakage on top of what -rc2 had because Linus just doesn't test it.
If the UML in 2.6.11-final works, consider the bug resolved.
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 15 lines · Rob Landley
Quoted 7 lines · On Wednesday 09 February 2005 10:38 am, [email protected] wrote:
------- Additional Comments From [email protected] 2005-02-09 07:38 PST ------- Could someone please update me with the status of this bug? Are there still problems?
I notice that the latest version in portage is based on 2.6.8.1. Would upgrading to a newer version (assuming there are newer releases) help at all?
I believe it was fixed in 2.6.11-rc3-bk2 or thereabouts, but I personally would prefer to hold off closing it until 2.6.11 actually ships. The UML in 2.6.10 didn't build, 2.6.9 was unusable out of the box, and 2.6.11-rc3 introduced _new_ build breakage on top of what -rc2 had because Linus just doesn't test it.
Quoted 3 lines
If the UML in 2.6.11-final works, consider the bug resolved.
Rob
Both 2.6.9 and 2.6.10 are more or less usable out of the box (although I'd not recommend 2.6.10 because various UML fixes were merged just *after* the release).
2.6.9 is unusable on a >=2.6.9 host, however (yes, it's ironic), but 2.6.9-bs is usable in most cases (especially for SKAS mode - you Rob have hit some bug in TT mode, however for people using SKAS mode it's ok. And sadly, most people use SKAS mode, so it's often more stable).
About the problem itself, I've already explained everything on bugzilla... and especially, nothing is fixed for TT mode on a NPTL-only Gentoo host, nor I know how to fix that (except by releasing a stable glibc which is built the correct way, i.e. with NPTL in /lib/tls and normal version in /lib - the current ebuild for this is correctly marked unstable).
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 4 lines · Blaisorblade
2.6.9 is unusable on a >=2.6.9 host, however (yes, it's ironic), but 2.6.9-bs is usable in most cases (especially for SKAS mode - you Rob have hit some bug in TT mode, however for people using SKAS mode it's ok. And sadly, most people use SKAS mode, so it's often more stable).
2.6.9 was unusable on a 2.6.7 kernel as well. (Knoppix 3.6.)
And requiring SKAS mode to use uclibc is roughly equivalent to requiring a kernel module in order to work. If I could dictate the host kernel environment people run my stuff under, I wouldn't need UML in the first place.
Any idea when SKAS0 might be ready for testing?
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 7 lines · Rob Landley
Quoted 4 lines · Blaisorblade
2.6.9 is unusable on a >=2.6.9 host, however (yes, it's ironic), but 2.6.9-bs is usable in most cases (especially for SKAS mode - you Rob have hit some bug in TT mode, however for people using SKAS mode it's ok. And sadly, most people use SKAS mode, so it's often more stable).
2.6.9 was unusable on a 2.6.7 kernel as well. (Knoppix 3.6.)
Hmm... ok, guess in TT mode it could be possible.
Quoted 1 line
And requiring SKAS mode to use uclibc
uclibc doesn't allow static linking? It's strange...
Quoted 2 lines
is roughly equivalent to requiring a
kernel module in order to work.
Ok, are you able to figure out a way to copy the whole binary (+ libs) to the VM file and remap it from the file to arbitrary address spaces?
This is why in TT mode UML is statically linked, it's done so that we must not understand where libraries are located and remap them, too. I don't think there is a clean way (other than parsing /proc/self/maps, but that is a horrible kludge).
Quoted 5 lines
If I could dictate the host kernel
environment people run my stuff under, I wouldn't need UML in the first place.Any idea when SKAS0 might be ready for testing?
You can already test it I guess, but probably it's not for production yet.
I (Wildly) guess a month could be enough, maybe... however for now you can do some testing in SKAS mode (the setup inside UML is not different).
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 3 lines · Blaisorblade
Quoted 1 line
And requiring SKAS mode to use uclibc
uclibc doesn't allow static linking? It's strange...
Sorry, meant UML. (I have a cold.)
Quoted 5 lines
Quoted 2 lines
is roughly equivalent to requiring a
kernel module in order to work.Ok, are you able to figure out a way to copy the whole binary (+ libs) to the VM file and remap it from the file to arbitrary address spaces?
Not with this cold and without a lot more study of how UML works, but first I want to confirm that you looked at the new 2.6 nonlinear mappings support (mm/fremap.c, sys_remap_file_pages() and friends...)
Quoted 4 lines
This is why in TT mode UML is statically linked, it's done so that we must not understand where libraries are located and remap them, too. I don't think there is a clean way (other than parsing
/proc/self/maps, but that is a horrible kludge).
Is there a post somewhere describing the problem in more detail?
Quoted 6 lines
Quoted 1 line
Any idea when SKAS0 might be ready for testing?
You can already test it I guess, but probably it's not for production yet.
I (Wildly) guess a month could be enough, maybe... however for now you can do some testing in SKAS mode (the setup inside UML is not different).
So if I build 2.6.11-rc3-bk? I can fire up SKAS0 mode and run it on an unmodified kernel? If so, I'm happy to test this... (I read Jeff Dike's blog entry on SKAS0, but it didn't really have any implementation details.)
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
Stian, can you please read this and provide some help? The point of interest for you is ***MARKED***
Quoted 8 lines · Rob Landley
Quoted 3 lines · Blaisorblade
Quoted 1 line
And requiring SKAS mode to use uclibc
uclibc doesn't allow static linking? It's strange...
Sorry, meant UML.
(I have a cold.)
Best wishes for your health... (please, someone translate this to real English :-) )
Quoted 11 lines
Quoted 7 lines
Quoted 1 line
Any idea when SKAS0 might be ready for testing?
You can already test it I guess, but probably it's not for production yet.
I (Wildly) guess a month could be enough, maybe... however for now you can do some testing in SKAS mode (the setup inside UML is not different).
So if I build 2.6.11-rc3-bk? I can fire up SKAS0 mode and run it on an unmodified kernel? If so, I'm happy to test this... (I read Jeff Dike's blog entry on SKAS0, but it didn't really have any implementation details.)
Well, code already exists. Get the appropriate -mm tree and apply on top of it the "incrementals" tree at
http://user-mode-linux.sourceforge.net/patches.html.
Give a quick read to the changelogs to get a feeling about what's actually needed and what won't at all compile. I guess that in this moment skas0-ldt is a good point to stop at.
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
is roughly equivalent to requiring a
kernel module in order to work.Ok, are you able to figure out a way to copy the whole binary (+ libs) to the VM file and remap it from the file to arbitrary address spaces?
Not with this cold and without a lot more study of how UML works,
Yes, obviously... actually, I also have made some confusion (I actually answered to "why UML in TT mode is built static?", not to the bug in TT mode).
***MARKED***
The bug in TT mode: actually, it happens when and because UML is statically linked, against NPTL glibc. It does not happen on normal distros, which provide a LinuxThreads glibc in /lib and for static linking to be 2.4 compatible; nor in Gentoo with nptl disabled (which was the default when I installed it).
The problem, currently, is that there are problems (and linker assertion failures) probably because the linking scripts do not play well with the /usr/lib/libc.a sections. The error, if I recall it correctly, is posted in the comment #6.
Linking scripts give instructions about how to merge / order symbols of various sections inside the final binary; more info is provided in the info pages for ld. Uml's linking script are a mix of arch/i386/kernel/vmlinux.lds.S (which contains special kernels definition, used for instance for initcalls) and of the normal linking scripts used to build userspace executables (they are visible in the output of "strings ld", and maybe there is even some special option).
To dissect binary and library sections, objdump is also useful (and also the elfutils version of it).
Now, I don't understand why that error is born - it guesses wrongly the number of physical headers, and I could describe in detail the physical headers I want (each physical header groups a number of sections with similar mapping requirements).
***MARKED***
Stuff below refers to "Why UML in TT mode is built static?"
Quoted 3 lines
but first
I want to confirm that you looked at the new 2.6 nonlinear mappings support (mm/fremap.c,sys_remap_file_pages()and friends...)
Hmm, I know that feature, only I don't understand how it could help *here*... basically, I think everything that you can do through remap_file_pages() can be done through mmap() / munmap() / mremap(), and the advantage is only for performance... and since the mappings in this case are created
So, when and if there will be a remap_file_pages where you can also change protections and we'll drop all the mmap() we must create (one mmap for each page is not very nice... in fact with >=256 M of RAM for single process inside UML you must increase the max number of mappings a single process can create). Having 65536 mappings, put together inside a red-black tree, is not nice at all.
Quoted 6 lines
Quoted 4 lines
This is why in TT mode UML is statically linked, it's done so that we must not understand where libraries are located and remap them, too. I don't think there is a clean way (other than parsing
/proc/self/maps, but that is a horrible kludge).Is there a post somewhere describing the problem in more detail?
No idea, if it exists, (about why UML is statically linked) it is older than me here (and I follow UML only since 1 year and a half).
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 6 lines · Blaisorblade
Quoted 3 lines
Sorry, meant UML.
(I have a cold.)
Best wishes for your health... (please, someone translate this to real English :-) )
Oh, it's real english. (Or at least it seems so to someone who just burned french toast to charcoal due to being too dizzy to walk down the street to a sandwich shop. I'm not exactly firing on all cylinders at present...)
Quoted 5 lines
Quoted 4 lines
So if I build 2.6.11-rc3-bk? I can fire up SKAS0 mode and run it on an unmodified kernel? If so, I'm happy to test this... (I read Jeff Dike's blog entry on SKAS0, but it didn't really have any implementation details.)
Quoted 7 lines
Well, code already exists. Get the appropriate -mm tree and apply on top of it the "incrementals" tree at
http://user-mode-linux.sourceforge.net/patches.html.Give a quick read to the changelogs to get a feeling about what's actually needed and what won't at all compile. I guess that in this moment skas0-ldt is a good point to stop at.
Cool. "Not tonight, I have a headache", but cool.
Quoted 11 lines
Yes, obviously... actually, I also have made some confusion (I actually answered to "why UML in TT mode is built static?", not to the bug in TT mode).
***MARKED***
The bug in TT mode: actually, it happens when and because UML is statically linked, against NPTL glibc. It does not happen on normal distros, which provide a LinuxThreads glibc in /lib and for static linking to be 2.4 compatible; nor in Gentoo with nptl disabled (which was the default when I installed it).
Quoted 4 lines
The problem, currently, is that there are problems (and linker assertion failures) probably because the linking scripts do not play well with the
/usr/lib/libc.asections. The error, if I recall it correctly, is posted in the comment #6.
Gee, Red Hat, the distro that brought us gcc 2.96, is now having ld throw assertion failures trying to build UML. It's nice to see tradition maintained...
I can't debug this one. I gave up on Fedora when FC2 wouldn't boot on my desktop because the kernel was optimized for a processor more recent than the machine had (brand new Via Samuel 2, basically a Pentium clone with MMX and 3DNow).
I was a loyal Red Hat user for years, but Fedora just left me cold. (And the _courage_ they've shown, yanking things like mp3 player support and xpdf... Obviously they're a good ally to stand up for decss someday.)
Quoted 6 lines
Stuff below refers to "Why UML in TT mode is built static?"
Quoted 3 lines
but first
I want to confirm that you looked at the new 2.6 nonlinear mappings support (mm/fremap.c,sys_remap_file_pages()and friends...)
Quoted 8 lines
Hmm, I know that feature, only I don't understand how it could help *here*... basically, I think everything that you can do through
remap_file_pages()can be done throughmmap()/munmap()/mremap(), and the advantage is only for performance... and since the mappings in this case are createdSo, when and if there will be a
remap_file_pageswhere you can also change protections and we'll drop all themmap()we must create
Tried asking on linux-kernel?
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 4 lines · Rob Landley
On Thursday 10 February 2005 09:33 pm, Blaisorblade wrote:
Gee, Red Hat, the distro that brought us gcc 2.96, is now having ld throw assertion failures trying to build UML. It's nice to see tradition maintained...
No, this one is Gentoo... on Fedora I saw the assertions but things worked anyway. This bug can only show up on Gentoo (non-default config, beyond) and LFS 6 (rumours).
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