Morton, John a écrit :
First: Am I correct in assuming that the "i686" versions are: a) 32-bit not 64-bit,
yes
And am I correct in that a true 64-bit wide (x86_64) gpc Linux compiler is not yet available?
No it is, but you absolutely need to compile from sources for linux. You probably need more parameters for configure.
I have compiled gpc some years ago on a Fedora core machine, with gcc-3.4.4 sources patched by redhat. configure is done by ../gcc-3.4.4-20050721/configure --disable-shared --enable-threads=posix \ --disable-checking --with-system-zlib --enable-__cxa_atexit \ --disable-libunwind-exceptions --enable-languages=c,pascal \ --disable-multilib --host=x86_64-redhat-linux
It was taken from the configure you can read by typing gcc -v on your dev machine, eliminating parameters obviously not needed because they are needed for other compilers like java (but I am not sure that others like --enable-__cxa_atexit are needed, not understanding what they mean)
Important is the last line
--host=x86-redhat-linux tells him to produce a 64 bits compiler
--disable-multilib , because multilib support is not (yet?) contained in gpc. multilib means to be able to produce both 64 bits and 32 bits executables and libraries (libgpc.a to begin width)
Yesterday, I compiled similarly a 64 bits gpc on a new debian machine, with fsf sources gcc-3.4.6 without any patches, changing only
--host=x86_64-linux-gnu
In both cases I looked to the installed file system for /usr/lib/gcc to determine the correct host name.
Running the gpc tests in place gave in both systems a handfull of errors with more than 5000 tests, and I have used the first system for years without problems.
Comments of other peoples come in when you try to build a multilib system without multilib support for gpc (but multilib support for gcc with --enable-multilib in configure). I was able to do that on the first machine, but it needed some dirty tricks: experimentation in installing into temporary directories to understand the directory structure, compiling a 32 bits version of libgpc.a with things like make PFLAGS=-m32 RTSFLAGS=-m32 boostrap and finishing by putting manually libgpc.a at proper place I needed also to install various 32 bits libraries for curses, gmp, graphics and the like, all made with yum.
If you need only 64 bits, it is simple, and proceeds like in the INSTALL doc.
Maurice