Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Sep 2011 14:17:18 +0200
From:      rank1seeker@gmail.com
To:        hackers@freebsd.org
Subject:   Upon crosscompile, set optimizations for target arch, breaks compilation
Message-ID:  <20110927.121718.234.3@DEV>

next in thread | raw e-mail | index | archive | help
8.2 RELEASE=0D=0AOn 32bit (i386) machine(CPU: athlonxp) I crosssompile for =
64bit (amd64) machine(CPU: core2duo) and it works.=0D=0ABut when I set =
optimization in =
make.conf:=0D=0A--=0D=0ACPUTYPE?=3Dcore2=0D=0ACFLAGS+=3D-march=3Dnative=0D=0ANO_CPU_CFLAGS=3Dyes=0D=0ACOPTFLAGS+=3D-march=3Dnative=0D=0ANO_CPU_COPTFLAGS=3Dyes =
=0D=0A--=0D=0A=0D=0AResults in make's vars set:=0D=0ACPUTYPE: =
prescott=0D=0AMACHINE_CPU: sse3 sse2 sse i686 mmx i586 i486 =
i386=0D=0A=0D=0A=0D=0ABuild fails with =
error:=0D=0A--=0D=0A/usr/src/gnu/lib/libgcc/../../../contrib/gcc/libgcc2.c:1: =
error: CPU you selected does not support x86-64 instruction =
set=0D=0A--=0D=0A=0D=0ABecause make vars TRANSLATION was incorectly done, =
as it looks in running arch instead of TARGET arch!=0D=0A=0D=0Acore2 will =
be translated into prescott or nacona, depending on arch:=0D=0A    =
prescott --> 32bit (i386)=0D=0A    nocona   --> 64bit =
(amd64)=0D=0A=0D=0ACPUTYPE was supposed to be =
nocona=0D=0A=0D=0A=0D=0ADomagoj Smol=E8i=E6



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110927.121718.234.3>