Wine64 : Trying to load PE image for unsupported architecture (I386)
Hi all, I build Wine64 using the instructions here: http://wiki.winehq.org/Wine64 While I expected it to not work with my Win64 program I was a little surprised that when running a WIn32 program I got: Trying to load PE image for unsupported architecture (I386) I realise that the Win64 stuff is experimental but I'm curions, in the longer term is it expected that one executable will be able to run both Win32 and Win64 executables? Cheers, Erik -- ----------------------------------------------------------------- Erik de Castro Lopo ----------------------------------------------------------------- J. Headley: "God, root, what is difference ?" G. Haverland: "God can change the byte order on the CPU, root can't."
On Wed, Feb 11, 2009 at 3:00 PM, Erik de Castro Lopo <mle+win(a)mega-nerd.com> wrote:
Hi all,
I build Wine64 using the instructions here:
While I expected it to not work with my Win64 program I was a little surprised that when running a WIn32 program I got:
Trying to load PE image for unsupported architecture (I386)
I realise that the Win64 stuff is experimental but I'm curions, in the longer term is it expected that one executable will be able to run both Win32 and Win64 executables?
Cheers, Erik -- ----------------------------------------------------------------- Erik de Castro Lopo ----------------------------------------------------------------- J. Headley: "God, root, what is difference ?" G. Haverland: "God can change the byte order on the CPU, root can't."
That functionality has not yet been implemented. Build 32bit wine for that. -- -Austin
2009/2/11 Erik de Castro Lopo <mle+win(a)mega-nerd.com>:
I realise that the Win64 stuff is experimental but I'm curions, in the longer term is it expected that one executable will be able to run both Win32 and Win64 executables?
Not yet. You're welcome to write it though ;-) - d.
Erik de Castro Lopo <mle+win(a)mega-nerd.com> writes:
While I expected it to not work with my Win64 program I was a little surprised that when running a WIn32 program I got:
Trying to load PE image for unsupported architecture (I386)
I realise that the Win64 stuff is experimental but I'm curions, in the longer term is it expected that one executable will be able to run both Win32 and Win64 executables?
Not really, you'll of course still need to build a full 32-bit version of Wine, the 64-bit Wine will never be able to run 32-bit apps. What needs to be improved is that the 64-bit loader should be able to forward automatically to the 32-bit one when encountering a 32-bit app. -- Alexandre Julliard julliard(a)winehq.org
Alexandre Julliard wrote:
Not really, you'll of course still need to build a full 32-bit version of Wine, the 64-bit Wine will never be able to run 32-bit apps.
Ok.
What needs to be improved is that the 64-bit loader should be able to forward automatically to the 32-bit one when encountering a 32-bit app.
So there will need to be two executables wine and wine64 and if either is started with the wrong kind of binary, it will need to run the binary with the other version? Would it not be possible to have a single light weight binary that has just enough code to detect i386 vs amd64 and then execs either wine32 or wine64? Erik -- ----------------------------------------------------------------- Erik de Castro Lopo ----------------------------------------------------------------- "To iterate is human, to recurse divine." -- L. Peter Deutsch
Erik de Castro Lopo <mle+win(a)mega-nerd.com> writes:
So there will need to be two executables wine and wine64 and if either is started with the wrong kind of binary, it will need to run the binary with the other version?
Would it not be possible to have a single light weight binary that has just enough code to detect i386 vs amd64 and then execs either wine32 or wine64?
sure, that would be possible. I don't know yet how it will be done, but that's a minor implementation detail. -- Alexandre Julliard julliard(a)winehq.org
On Wed, 2009-02-11 at 23:34 +0100, Alexandre Julliard wrote:
Not really, you'll of course still need to build a full 32-bit version of Wine, the 64-bit Wine will never be able to run 32-bit apps. What needs to be improved is that the 64-bit loader should be able to forward automatically to the 32-bit one when encountering a 32-bit app.
So there's no plans for implementing a clone of WoW64?
2009/2/12 Joel Holdsworth <joel(a)airwebreathe.org.uk>:
On Wed, 2009-02-11 at 23:34 +0100, Alexandre Julliard wrote:
Not really, you'll of course still need to build a full 32-bit version of Wine, the 64-bit Wine will never be able to run 32-bit apps. What needs to be improved is that the 64-bit loader should be able to forward automatically to the 32-bit one when encountering a 32-bit app.
So there's no plans for implementing a clone of WoW64?
I would imagine that the end goal is to implement a side-by-side 64bit and 32bit wine, with some sort of wrapper to send the app to the appropriate version. From what I understand, this is what a WoW64 clone would look like anyway. See David's comment: 2009/2/12 David Gerard <dgerard(a)gmail.com>:
2009/2/11 Erik de Castro Lopo <mle+win(a)mega-nerd.com>:
I realise that the Win64 stuff is experimental but I'm curions, in the longer term is it expected that one executable will be able to run both Win32 and Win64 executables?
Not yet. You're welcome to write it though ;-)
participants (6)
-
Alexandre Julliard -
Austin English -
Ben Klein -
David Gerard -
Erik de Castro Lopo -
Joel Holdsworth