Build from tor-0.1.1.25 SRPM for CentOS 4.4 x86_64 fails
Nick Mathewson
nickm at freehaven.net
Mon Nov 13 19:55:52 UTC 2006
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 652 bytes
Desc: not available
URL: <http://lists.torproject.org/pipermail/tor-talk/attachments/20061113/30697097/attachment.pgp>
More information about the tor-talk
mailing list