On Mon, Nov 13, 2006 at 01:47:17PM -0600, marlowe wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > All, > > I am attempting to build tor from the source RPM on a AMD64 processor. > When I run the following command, > > # rpmbuild -ba tor.spec > > I receive the following error, Hm. Looks like the problem is down here... > configure:2077: checking for C compiler default output file name > configure:2080: gcc -march=i386 -mtune=i386 -O2 -I/usr/kerberos/include > conftest.c >&5 > conftest.c:1: error: CPU you selected does not support x86-64 > instruction set > conftest.c:1: error: CPU you selected does not support x86-64 > instruction set It looks like the -march and -mtune parameters are getting set by tor.spec at line 33: %define optflags -march=%{target_cpu} -mtune=%{target_cpu} -O2 I think you need to somehow override the target_cpu setting in the spec file. I am afraid, however, that my RPM fu is weak; I don't know whether you need to edit the spec file or whether you can do this from the command line. hth, -- Nick Mathewson
Attachment:
pgpFu2QSKz8O3.pgp
Description: PGP signature