|
Home > Archive > Unix administration > March 2006 > [Q] Can RedHat Intel32 compiled app run directly on RedHat AMD64 ?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
[Q] Can RedHat Intel32 compiled app run directly on RedHat AMD64 ?
|
|
| Braincramp 2006-02-06, 5:56 pm |
| [Q] Can RedHat Intel32 compiled app run directly on RedHat AMD64 ?
RedHat kernel newbie here ...
Can an application that was compiled on RedHat ( RHEL3 - 2.4 kernel ) Intel 32bit, be moved directly over to RedHat ( RHEL4 - 2.6 kernel ) AMD 64bit system ?
( i.e. via gcc, Gnat compilers )
- John H.
| |
| Tommy Reynolds 2006-02-06, 5:56 pm |
| On Mon, 06 Feb 2006 16:19:16 +0000, Braincramp wrote:
> [Q] Can RedHat Intel32 compiled app run directly on RedHat AMD64 ?
> Can an application that was compiled on RedHat ( RHEL3 - 2.4 kernel )
> Intel 32bit, be moved directly over to RedHat ( RHEL4 - 2.6 kernel ) AMD
> 64bit system ?
This is a definite "maybe". A portable application should just
recompile on the new system. However, the sizes of some C items
(read that as sizeof(int) and so on) will change. If your program
depends heavily on casting to morf pointers into longs, for example,
you may have some issues.
So, this portability depends on the app, not the platform.
Cheers
| |
| Kevin Collins 2006-02-06, 5:56 pm |
| In article <ds8egh$cge$1@wsc10.lrz-muenchen.de>, Thomas Maier-Komor wrote:
> Tommy Reynolds wrote:
>
> I think you read the question a little bit too fast. The OP did not ask
> for source code compatibility, but wanted to know if his 32 bit _binary_
> would run on a 64 bit system with a newer release.
Then why did the OP mention compilers (which you seemed to have snipped out)?
[vbcol=seagreen]
> I don't know the answer to this question for sure. But looking into the
> release notes of RHEL4
> (http://www.redhat.com/docs/manuals/...notes/es-amd64/)
> shows that it comes with 32 and 64bit libraries. So I would assume that
> it can execute the 32 bit binaries. But be aware that depending on the
> libraries you are using you might also run into compatibility issues, if
> your specific library version is not supported anymore and the newer
> version has a different ABI.
>
> I am not aware that RedHat would give any binary guarantee concerning
> executables, as commercial UNIXs sometimes do (e.g. Solaris includes the
> appcert tool to verify binary compatibility).
>
> Tom
Kevin
--
Unix Guy Consulting, LLC
Unix and Linux Automation, Shell, PERL and CGI scripting
http://www.unix-guy.com
| |
| Braincramp 2006-03-03, 6:43 pm |
| I was referring to the compiler type on the source 32bit machine.
My question is - can you just copy over the binary.
So far, it seems to be a library issue. If you have all the libraries the
app needs, and there are no hardware caveats - it could work.
Dicey at best ...
Thanks all, -John
"Kevin Collins" <spamtotrash@toomuchfiction.com> wrote in message
news:slrndufmaj.fan.spamtotrash@halo.unix-guy.com...
> In article <ds8egh$cge$1@wsc10.lrz-muenchen.de>, Thomas Maier-Komor wrote:
AMD[vbcol=seagreen]
>
> Then why did the OP mention compilers (which you seemed to have snipped
out)?
>
>
>
(http://www.redhat.com/docs/manuals/...release-notes/e
s-amd64/)[vbcol=seagreen]
>
>
> Kevin
>
> --
> Unix Guy Consulting, LLC
> Unix and Linux Automation, Shell, PERL and CGI scripting
> http://www.unix-guy.com
|
|
|
|
|