From owner-svn-src-all@FreeBSD.ORG Thu Dec 2 10:15:08 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DB95A1065679; Thu, 2 Dec 2010 10:15:07 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from mail.cksoft.de (mail.cksoft.de [IPv6:2001:4068:10::3]) by mx1.freebsd.org (Postfix) with ESMTP id 3EE9B8FC0C; Thu, 2 Dec 2010 10:15:07 +0000 (UTC) Received: from localhost (amavis.fra.cksoft.de [192.168.74.71]) by mail.cksoft.de (Postfix) with ESMTP id 92E4C41C747; Thu, 2 Dec 2010 11:15:06 +0100 (CET) X-Virus-Scanned: amavisd-new at cksoft.de Received: from mail.cksoft.de ([192.168.74.103]) by localhost (amavis.fra.cksoft.de [192.168.74.71]) (amavisd-new, port 10024) with ESMTP id hIDNdrxRuijF; Thu, 2 Dec 2010 11:15:05 +0100 (CET) Received: by mail.cksoft.de (Postfix, from userid 66) id AF0EE41C735; Thu, 2 Dec 2010 11:15:05 +0100 (CET) Received: from maildrop.int.zabbadoz.net (maildrop.int.zabbadoz.net [10.111.66.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.int.zabbadoz.net (Postfix) with ESMTP id AD3614448F3; Thu, 2 Dec 2010 10:13:24 +0000 (UTC) Date: Thu, 2 Dec 2010 10:13:24 +0000 (UTC) From: "Bjoern A. Zeeb" X-X-Sender: bz@maildrop.int.zabbadoz.net To: Nathan Whitehorn In-Reply-To: <201012020458.oB24w7IY079939@svn.freebsd.org> Message-ID: <20101202100954.Q6126@maildrop.int.zabbadoz.net> References: <201012020458.oB24w7IY079939@svn.freebsd.org> X-OpenPGP-Key: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r216113 - head/gnu/usr.bin/cc X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Dec 2010 10:15:08 -0000 On Thu, 2 Dec 2010, Nathan Whitehorn wrote: > Author: nwhitehorn > Date: Thu Dec 2 04:58:07 2010 > New Revision: 216113 > URL: http://svn.freebsd.org/changeset/base/216113 > > Log: > The driver-XXX.c files used for host CPU detection with -march=native > should not be compiled in the cross-tools case (where -march=native makes > no sense). This fixes cross-building x86 toolchains on non-x86 systems. I think it's wrong. And it seems people running into the case now cross compiling i386 on amd64 not picking up driver-i386.c anymore and thus missing host_detect_local_cpu. It could be this is related to a fix I had started to do for the cross-gcc port: http://people.freebsd.org/~bz/20101202-01-ports-devel-cross-gcc-za.diff (the port still dies later on, thus not submitted yet). but given that it was fine before, yu are simply removing the extra file from compilation in that case now as I understand. > Modified: > head/gnu/usr.bin/cc/Makefile.fe > > Modified: head/gnu/usr.bin/cc/Makefile.fe > ============================================================================== > --- head/gnu/usr.bin/cc/Makefile.fe Thu Dec 2 04:28:01 2010 (r216112) > +++ head/gnu/usr.bin/cc/Makefile.fe Thu Dec 2 04:58:07 2010 (r216113) > @@ -19,7 +19,8 @@ CFLAGS+= ${DRIVER_DEFINES} > > SRCS= gcc.c opts-common.c options.c intl.c prefix.c version.c > > -.if exists(${GCCDIR}/config/${GCC_CPU}/driver-${GCC_CPU}.c) > +.if ${TARGET_ARCH} == ${MACHINE_ARCH} && \ > + exists(${GCCDIR}/config/${GCC_CPU}/driver-${GCC_CPU}.c) > SRCS+= driver-${GCC_CPU}.c > .endif > > -- Bjoern A. Zeeb Welcome a new stage of life. Going to jail sucks -- All my daemons like it! http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/jails.html