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

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

 



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.

Regards.
tavi


--
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