On Mon, Sep 29, 2003 at 04:27:58PM +0100, Ross Burton wrote: > On Mon, 2003-09-29 at 15:47, Ben Collins wrote: > > In the newest packages, the compiler has some different defaults > > depending on a couple of criteria. If you are on an UltraSPARC (IOW, > > `uname -m' prints sparc64), and you have /usr/lib64/libc.so (IOW, you > > have libc6-dev-sparc64 installed), then the compiler will default to > > 64-bit mode. The way to get 32-bit compiles in this instance is easy, > > just prepend the sparc32 command to your build command. For example: > > [snip] > > Great, that works. So once we have ensured that the 32-bit binary on > the SPARC, how do we execute 64-bit binaries? > > "make test" will generate a 64-bit binary, but "./test", "sparc64 > ./test" and "sparc64 bash ... ./hello" all fail with "./hello: cannot > execute binary file"
My assumption is that you do not have 64-bit ELF support in your kernel. -- Debian - http://www.debian.org/ Linux 1394 - http://www.linux1394.org/ Subversion - http://subversion.tigris.org/ WatchGuard - http://www.watchguard.com/

