From owner-freebsd-questions@FreeBSD.ORG Tue Sep 21 06:21:30 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 12DAE1065672; Tue, 21 Sep 2010 06:21:30 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 66D9A8FC12; Tue, 21 Sep 2010 06:21:29 +0000 (UTC) Received: by bwz15 with SMTP id 15so6276830bwz.13 for ; Mon, 20 Sep 2010 23:21:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=74kklkhZ6SNwOZovqI7x6fcrpRu/iqdVkLxMEMe1VHA=; b=NdKFodMENcbRWqbX3X8du/HNgbLwBOGQcMXzRdjzm5uCSwdj2KubQFGcX67zDAv+8+ q2xPiVilHnLfcY5UY8If8BqUKT4jnlY0Mq/oBC+bD9B8I89AVO2Tx8z+SeSe2faLmsBs +LcBhiFzm//bdkZy14599l0jbT3l+u1rNl+tw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Pr1MywLH/c4neKH438JGxIJFkFpSfUssTysaOfhULDsz53H6JzeqRf0TpkZLiwl2kU hrLqLyDgAYVVRPgtYqU2unfTXhD1vYre9YE3hf0T332D1XpFw8ZKPeioHQrwKR1QRhl1 tJcOT2o377O5UDR0WUpsW3DSLWIGlOfkt9ChM= MIME-Version: 1.0 Received: by 10.204.180.75 with SMTP id bt11mr7574643bkb.115.1285050088308; Mon, 20 Sep 2010 23:21:28 -0700 (PDT) Received: by 10.204.97.208 with HTTP; Mon, 20 Sep 2010 23:21:28 -0700 (PDT) In-Reply-To: <20100921000624.GA86577@freebsd.org> References: <20100917003838.GA67783@freebsd.org> <20100921000624.GA86577@freebsd.org> Date: Tue, 21 Sep 2010 08:21:28 +0200 Message-ID: From: David DEMELIER To: Alexander Best Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD Questions Subject: Re: make buildkernel pre-build too long X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Sep 2010 06:21:30 -0000 2010/9/21 Alexander Best : > On Fri Sep 17 10, David DEMELIER wrote: >> 2010/9/17 Alexander Best : >> > On Thu Sep 16 10, David DEMELIER wrote: >> >> Hi there, >> >> >> >> I can't understand why this part of make buildkernel is so long on my >> >> amd64 machine (8.1-R) >> >> >> >> make -V CFILES -V SYSTEM_CFILES -V GEN_CFILES | =C2=A0MKDEP_CPP=3D"cc= -E" >> >> CC=3D"cc" xargs mkdep -a -f .newdep -O2 -frename-registers -pipe >> >> -fno-strict-aliasing =C2=A0-std=3Dc99 =C2=A0-Wall -Wredundant-decls >> >> -Wnested-externs -Wstrict-prototypes =C2=A0-Wmissing-prototypes >> >> -Wpointer-arith -Winline -Wcast-qual =C2=A0-Wundef -Wno-pointer-sign >> >> -fformat-extensions -nostdinc =C2=A0-I. -I/usr/src/sys >> >> -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter >> >> -I/usr/src/sys/contrib/pf -I/usr/src/sys/dev/ath >> >> -I/usr/src/sys/dev/ath/ath_hal -I/usr/src/sys/contrib/ngatm >> >> -I/usr/src/sys/dev/twa -I/usr/src/sys/gnu/fs/xfs/FreeBSD >> >> -I/usr/src/sys/gnu/fs/xfs/FreeBSD/support -I/usr/src/sys/gnu/fs/xfs >> >> -I/usr/src/sys/contrib/opensolaris/compat -I/usr/src/sys/dev/cxgb >> >> -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h >> >> -fno-common -finline-limit=3D8000 --param inline-unit-growth=3D100 --= param >> >> large-function-growth=3D1000 =C2=A0-fno-omit-frame-pointer -mcmodel= =3Dkernel >> >> -mno-red-zone =C2=A0-mfpmath=3D387 -mno-sse -mno-sse2 -mno-sse3 -mno-= mmx >> >> -mno-3dnow =C2=A0-msoft-float -fno-asynchronous-unwind-tables >> >> -ffreestanding -fstack-protector >> >> >> >> This command takes around 5-6 minutes before continuing, on my i386 >> >> machine (which is really old) it only takes about 20 seconds. The >> >> kernel configs are almost the same for both machines. >> > >> > are there any differences in /etc/make.conf? >> > >> > cheers. >> > alex >> > >> >> >> >> Do you have any idea? >> >> >> >> Kind regards, >> >> >> >> -- >> >> Demelier David >> > >> > -- >> > a13x >> > >> >> No, except the KERNCONF entry it's exactly the same : > > hmmm....strange. could you post the ouput of `make -VCFLAGS -VCOPTFLAGS` = on > both your machines, please? > > cheers. > alex > >> >> # General settings. >> KERNCONF=3DMelon >> MASTER_SORT?=3D .fr .uk >> >> # Portconf. >> .if !empty(.CURDIR:M/usr/ports*) && exists(/usr/local/libexec/portconf) >> _PORTCONF!=3D/usr/local/libexec/portconf >> .for i in ${_PORTCONF:S/|/ /g} >> ${i:S/%/ /g} >> .endfor >> .endif >> >> # Perl. >> PERL_VERSION=3D5.10.1 >> >> # No need modules. >> NO_MODULES=3Dyes >> >> # Specify other directories. >> WRKDIRPREFIX=3D =C2=A0 /usr/obj >> DISTDIR=3D =C2=A0 =C2=A0 =C2=A0 =C2=A0/usr/distfiles >> >> -- >> Demelier David > > -- > a13x > -O2 -pipe I think the problem is the amd64 architecture. When I buildkernel using TARGET_ARCH=3Di386 it takes only one minute or even less, it's only native target (amd64) which is long. Kind regards, --=20 Demelier David