From owner-freebsd-current@FreeBSD.ORG Wed May 25 12:23:20 2011 Return-Path: Delivered-To: current@freebsd.org Received: from lo0.su (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by hub.freebsd.org (Postfix) with ESMTP id 09802106566B; Wed, 25 May 2011 12:23:18 +0000 (UTC) (envelope-from ru@FreeBSD.org) Date: Wed, 25 May 2011 12:25:01 +0000 From: Ruslan Ermilov To: Arnaud Lacombe Message-ID: <20110525122501.GA68680@lo0.su> References: <1306267772-31084-1-git-send-email-lacombar@gmail.com> <4DDC17E5.2020700@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Cc: Dimitry Andric , current@freebsd.org Subject: Re: [PATCH] Fix CFLAGS overwrite by Makefile X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2011 12:23:20 -0000 On Tue, May 24, 2011 at 11:08:52PM -0400, Arnaud Lacombe wrote: > Hi, > > On Tue, May 24, 2011 at 10:54 PM, Arnaud Lacombe wrote: > > ps: for static library and loader, I derived the total size as the sum > > of the size of the text/data/bss section of the member object using : > > > > size *.o | awk 'BEGIN {text=0; data=0; bss=0;}; {text+=$1; data+=$2; > > bss+=$3}; END {print text " " data " " bss " '$i'"}' > > > > where $i is the cpu type to test. make(1) is passed either CPUTYPE=$i > > for i in i[3456]86, or the empty string. The compiler used for the > > test is gcc, and it is the compiler build during a buildworld stage, > > in the tmp directory. > > > just to cut loose any question about my environment, additionally to > the original patch, I made the following modification to the tree to > try to isolate it from the host: > - applied the following patch: [...] > - manually created two symlinks: > 1) include/machine -> ../sys/i386/include/ > 2) include/x86 -> ../sys/x86/include/ > > The host is running a custom 8.2-STABLE/amd64 kernel (only config > change) on the following CPU: > > CPU: Intel(R) Xeon(R) CPU X3430 @ 2.40GHz (2394.00-MHz K8-class CPU) > Origin = "GenuineIntel" Id = 0x106e5 Family = 6 Model = 1e Stepping = 5 > Features=0xbfebfbff > Features2=0x98e3fd > AMD Features=0x28100800 > AMD Features2=0x1 > TSC: P-state invariant > > I am still not sure what is the default gcc target architecture on this machine. Why not go along a supported way, and do a cross-build? -- Ruslan Ermilov ru@FreeBSD.org FreeBSD committer