On Tuesday 15 November 2005 03:46, Rob Landley wrote:
> > Hello, i was trying to compile UML on 2.6.14 and 2.6.13.3 on CentOS, but
> > it seems to be broken smth i dont know exactly what to do. Here is the
> > output of my problem after make linux ARCH=um :
> >
> >
> > GEN .version
> > CHK include/linux/compile.h
> > UPD include/linux/compile.h
> > CC init/version.o
> > LD init/built-in.o
> > LD .tmp_vmlinux1
> The problem is that UML assumes that on x86-64, /lib will be a symlink
> to /lib64. On distros where that isn't the case, the build breaks with the
> above error (which is a complaint that /lib64/libc.so.6 can't find the
> 64-bit dynamic library loader, which also lives in /lib64 and not /lib).
> I'm unaware of a case where /lib64 is not the correct directory to link
> against on x86-64.
As an update, you became aware (your Ubuntu 5.10 laptop , right?) of such a
system.
> Obviously /lib is the right one for x86.
> In theory the correct fix would be to delete the rpath line entirely and
> fix whatever's generating arch/um/kernel/vmlinux.lds to do it right for
> x86-64. But that's way beyond my understanding of the linker...
That setting is unused for arch/um/kernel/vmlinux.lds. But I see in default
linker scripts it's unspecified (and that's unexpected for me), so you're
right:
SEARCH_DIR("/usr/i686-pc-linux-gnu/lib");
SEARCH_DIR("/usr/lib/binutils/i686-pc-linux-gnu/2.16");
SEARCH_DIR("/usr/local/lib"); SEARCH_DIR("/lib"); SEARCH_DIR("/usr/lib");
Would -rpath /lib64 -rpath /lib work in every possible configuration? Guess
yes, even since with "vi /mnt/gen64/usr/bin/ld" I find, in the default linker
script (in this order, with interspreded entries):
SEARCH_DIR("/lib64"); SEARCH_DIR("/usr/lib64"); SEARCH_DIR("/lib");
SEARCH_DIR("/usr/lib");
> Rob
--
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade
___________________________________
Yahoo! Messenger: chiamate gratuite in tutto il mondo
http://it.messenger.yahoo.com
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
User-mode-linux-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user