Re: running 64-bit kernel on 32-bit distro

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 30 Apr 2007, Octavian Purdila wrote:

> On Monday 30 April 2007 23:31, Robert P. J. Day wrote:
>
> >
> > ok, i'm almost there.  so far, i've:
> >
> > 1) built an (apparently) working x86_64 toolchain using crosstool
> > 2) used that toolchain to build and install a 64-bit kernel
> > 3) booted (successfully) under the new 64-bit kernel, verifying that
> > it's 64-bit with "uname -a"
> > 4) used the aforementioned toolchain to compile "hello, world"
> >
> >   but here's where i run into trouble -- when i try to run the
> > resulting a.out for "hello, world", i get "No such file or directory".
> >
> >   i'm running it in the current directory with:
> >
> > $ ./a.out
> >
> > but still no luck.  the "file" command shows me that it's there, with
> > type "ELF 64-bit LSB executable, AMD x86-64 ..." but every attempt to
> > run it gives me that error message.
> >
> >   i'm sure i'm forgetting something trivial.  ideas?
> >
>
> You are probably missing 64bit libraries since you mentioned that
> you are using 32bit userspace. Try compiling it with -static and see
> if it works.

naturally, that works.  thanks.

rday

p.s.  i'm assuming that, until i cross-compile and install the 64-bit
libs, there's really nothing else i can do with this 64-bit kernel
other than run static 64-bit binaries, right?
-- 
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux