Build from tor-0.1.1.25 SRPM for CentOS 4.4 x86_64 fails

phobos at rootme.org phobos at rootme.org
Mon Nov 13 21:56:49 UTC 2006


On Mon, Nov 13, 2006 at 01:47:17PM -0600, marlowe at antagonism.org wrote 7.4K bytes in 281 lines about:
: checking for C compiler default output file name... configure: error: C
: compiler cannot create executables
: See `config.log' for more details.
: error: Bad exit status from /var/tmp/rpm-tmp.38507 (%build)

	You're trying to compile 64-bit code on a designated 32-bit cpu.
	Edit tor.spec and change:
	%define target_cpu i386 
	to:
	%define target_cpu athlon64

	Everything should compile to completion afterwards.

The specific errors that matter are:

: 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

	The scary alternative is to install all of the 32-bit
	compatibility libraries and compile 32bit code.

-- 
Andrew
fortune: Nezvannyi gost'--khuzhe tatarina.
	[An uninvited guest is worse than the Mongol invasion]
		-- Russian proverb



More information about the tor-talk mailing list