linux-mips
[Top] [All Lists]

Re: Ask help:why my 64-bit ELF file could not run at the 64-bit mips

To: Dominic <dominicwj@gmail.com>
Subject: Re: Ask help:why my 64-bit ELF file could not run at the 64-bit mips cpu
From: Geert Uytterhoeven <geert@linux-m68k.org>
Date: Fri, 23 Apr 2010 11:26:40 +0200
Cc: Jan Rovins <janr@adax.com>, linux-mips@linux-mips.org
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:received:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=ZHWrNV372VMAqhZiorBMkTihnlglZDMPYQ7PdcT+4lo=; b=LDb3WtM7CTRvEepmkMqhXhblCRA+NQrD1drnZVH/IZzGhtWjMtDVBrB8rC2qBL47lA y1pUka/3Bla43JexNYA9Tujse0hVPqHCKYfnXxeJkDHavYD2COuc4br6cTomWlBVvRAj KPhYSSAww4jv7uwwKv+RzKhCN1GEtkyuI+LBQ=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=hG+SoWKwJrSXgFDpPlAzXurhrNNvsk0W7oeBzG4D7qyUU5seC5o/ghh46rtww+q5AJ e8V8mgzE7BrAuo9Wp3S4mHNFuBEugyzPU4ZWcFwPMqBWsnrU/Ib51/w753iLy09ftmO9 9TswlL8chc8a4aGbDDz47dSgPXgsbtcLeIddY=
In-reply-to: <h2hdf5e30c51004230142q21184429pffcaa9351510bc2d@mail.gmail.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <j2sdf5e30c51004172251z9fd01867h562b99c1f1044c26@mail.gmail.com> <q2odf5e30c51004220901l8bfa979ftc9c6a7b633569460@mail.gmail.com> <4BD08329.80804@adax.com> <h2hdf5e30c51004230142q21184429pffcaa9351510bc2d@mail.gmail.com>
Sender: linux-mips-bounce@linux-mips.org
On Fri, Apr 23, 2010 at 10:42, Dominic <dominicwj@gmail.com> wrote:
> Thanks a lot for your precious reply! I try to use -static to compile
> the program, then the 64-bit program can run, so it should be the
> library related other than 64-bit instruction or addressing related.
> Then I stored the 64-bit libraries in nfs, and mount it on the target
> board, after adding the path to ld.so.conf and 'ldconfig', the program
> compiled without -static still does not run. Shall I miss something?

`ldd <your_program>' may tell you...

> On Fri, Apr 23, 2010 at 1:11 AM, Jan Rovins <janr@adax.com> wrote:
>> 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.

Gr{oetje,eeting}s,

                                                Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                                            -- Linus Torvalds

<Prev in Thread] Current Thread [Next in Thread>