[NTLUG:Discuss] AMD64 compile howto?

Justin M. Forbes jmforbes at linuxtx.org
Sun Feb 20 08:42:47 CST 2005


On Sat, Feb 19, 2005 at 10:49:56AM -0600, Jack Snodgrass wrote:
> I've just built a system with a 3200+ AMD 64 CPU and entered into the
> new 64-bit 
> world.... I've installed the amd64 bit version of Fedora FC3.  ( I run
> FC3 on several 
> P4 systems ) 
> 
Congrts, you will probably be very happy with the system.

> I generally compile / install things like apache, mysql, php, cyrus*,
> etc from source. 
> I do something like a  ./configure and then a make && make install. 
> 
Generally speaking this Just Works.  There are exceptions, particularly
when people do not take the lib64 bit into account with their makefiles. If
the standards do not work, try 'libtoolize --force' followed by aclocal,
that will frequently fix things (though not always).  And of course some
things (like openoffice.org for example) are just not able to compile
64bit.

> binaries or do I have to do something else? What if I want to ( for
> whatever 
> reason ) make a .i386 or .i686 binary... something I compile on machine
> a ( 64-bit ) 
> but want to run on a 32-bit P4.... 
> 
gcc -m32 will build 32bit.

> If I use source RPM files ( which I generally don't do )... but if I
> did, what 
> would I do to generate i386/i686/amd64 type .rpm files? 
> 
In the past, building a 32bit RPM on a 64bit Fedora system was not
working... All because of one little file in rpm.  I have not done any work
on Fedora since FC2 as I work for Specifix now, but I would hope they got
it working.  Try rpmbuild --target i386 foo.spec and see if it works.




More information about the Discuss mailing list