From: Jan Rovins <janr@adax.com>
To: Jian Wang <dominicwj@gmail.com>
Cc: linux-mips@linux-mips.org
Subject: Re: Ask help:why my 64-bit ELF file could not run at the 64-bit mips cpu
Date: Thu, 22 Apr 2010 13:11:05 -0400 [thread overview]
Message-ID: <4BD08329.80804@adax.com> (raw)
In-Reply-To: <q2odf5e30c51004220901l8bfa979ftc9c6a7b633569460@mail.gmail.com>
Jian Wang wrote:
> Hi,
>
> I have a 64-bit mips cpu, and compiled a 64-bit application, but this
> application could not run. (the target is running Linux)
> The details is:
> 1)if I compile the application with -mabi=n64, this program could not
> run, when I run it in the shell, it prompts "command not found"
> 2)but if I compile the application with -mabi=n32, it runs well and
> gives the correct result.
>
> I am wondering why with "-mabi=n64", this program could not run? I
> checked the CP0(status register), Bit px=0b0, KX=0b1, SX=0b1, UX=0b1,
> it seems that in User Mode, it accepts 64-bit operation.
>
> Anybody could give me some help? Any comments is much appreciated!!
>
> BR/Dominic
>
>
Perhaps you do not have the "n64" system libraries set up correctly in
userspace.
I have seen the "command not found" error when some fundamental
libraries or the loader was missing.
Do you have a /lib64 & /user/lib64?
Run the file command on some of those libraries & see if they are n64 or
n32 libs.
double check your ld.so.conf to make sure it points to every thing you need.
re run ldconfig if you change something.
Jan
next prev parent reply other threads:[~2010-04-22 17:11 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <j2sdf5e30c51004172251z9fd01867h562b99c1f1044c26@mail.gmail.com>
2010-04-22 15:31 ` Ask help:why my 64-bit ELF file could not run at the 64-bit mips cpu Jian Wang
2010-04-22 15:31 ` Jian Wang
2010-04-22 16:01 ` Jian Wang
2010-04-22 17:11 ` Jan Rovins [this message]
2010-04-23 8:42 ` Dominic
2010-04-23 8:42 ` Dominic
2010-04-23 9:26 ` Geert Uytterhoeven
2010-04-23 9:26 ` Geert Uytterhoeven
2010-04-23 9:34 ` Alexander Clouter
2010-04-26 12:00 ` Dominic
2010-04-26 12:00 ` Dominic
2010-05-24 13:13 ` Dominic
2010-05-24 13:13 ` Dominic
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4BD08329.80804@adax.com \
--to=janr@adax.com \
--cc=dominicwj@gmail.com \
--cc=linux-mips@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.