From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 27 12:17:23 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3C3381065674 for ; Tue, 27 Sep 2011 12:17:23 +0000 (UTC) (envelope-from rank1seeker@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id CCC458FC1F for ; Tue, 27 Sep 2011 12:17:22 +0000 (UTC) Received: by eyg7 with SMTP id 7so6266648eyg.13 for ; Tue, 27 Sep 2011 05:17:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:from:to:subject:date:content-type :content-transfer-encoding:x-mailer; bh=bi6NAdrj7e3ZAW8NXytG68fOJOmlUW2pAg42eQMNQ0A=; b=waFVf781wbWLXkYpYsDYQZvFp/NvRX/IRvruVs8rvstSbaJUlG9twhiuK0pwwcPg91 3fHQ5Yg1576UHciNGNfh53N8hksNWDOE25SoqFAZR9eolnsfT4viaZREU/VzDM7t67cb C96GTGYSRPGvfa7Zl3K4dNhHGVu6ZrQJTUsiQ= Received: by 10.213.13.16 with SMTP id z16mr358440ebz.96.1317125841418; Tue, 27 Sep 2011 05:17:21 -0700 (PDT) Received: from DEV ([82.193.208.173]) by mx.google.com with ESMTPS id 11sm49354853eeu.4.2011.09.27.05.17.19 (version=SSLv3 cipher=OTHER); Tue, 27 Sep 2011 05:17:20 -0700 (PDT) Message-ID: <20110927.121718.234.3@DEV> From: rank1seeker@gmail.com To: hackers@freebsd.org Date: Tue, 27 Sep 2011 14:17:18 +0200 Content-Type: text/plain; charset="Windows-1250" Content-Transfer-Encoding: quoted-printable X-Mailer: POP Peeper (3.8.0.0) Cc: Subject: Upon crosscompile, set optimizations for target arch, breaks compilation X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 12:17:23 -0000 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