From owner-freebsd-stable@freebsd.org Sat Aug 27 07:56:56 2016 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2B33EB77FCC for ; Sat, 27 Aug 2016 07:56:56 +0000 (UTC) (envelope-from fbsd@xtaz.co.uk) Received: from mail.xtaz.uk (tao.xtaz.uk [IPv6:2001:8b0:fe33::10]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EB5A98E8; Sat, 27 Aug 2016 07:56:55 +0000 (UTC) (envelope-from fbsd@xtaz.co.uk) Received: by mail.xtaz.uk (Postfix, from userid 1001) id 31AED209B039; Sat, 27 Aug 2016 08:56:52 +0100 (BST) Date: Sat, 27 Aug 2016 08:56:51 +0100 From: Matt Smith To: Bryan Drewery Cc: freebsd-stable@freebsd.org Subject: Re: Error compiling stable/11 from stable/10 Message-ID: <20160827075651.GB17937@xtaz.uk> Mail-Followup-To: Matt Smith , Bryan Drewery , freebsd-stable@freebsd.org References: <20160826133834.GA17937@xtaz.uk> <453dcc9a-10ef-86f8-a255-dbc44517fa55@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <453dcc9a-10ef-86f8-a255-dbc44517fa55@FreeBSD.org> User-Agent: Mutt/1.6.1 (2016-04-27) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Aug 2016 07:56:56 -0000 On Aug 26 22:49, Bryan Drewery wrote: >On 8/26/2016 6:38 AM, Matt Smith wrote: >> Hi, I'm attempting to compile the latest stable/11 from a 12 day old >> stable/10 system and I'm getting the following error. I've tried >> completely deleting /usr/obj. I've tried without make -j. And I've tried >> commenting out options from src.conf and make.conf and nothing seems to >> make any difference. Any ideas? I haven't tried it yet but I'm wondering >> if I should do RC2 before stable/11. >> >> In file included from >> /usr/src/lib/liblzma/../../contrib/xz/src/liblzma/lz/lz_encoder.c: >> 23: >> /usr/src/lib/liblzma/../../contrib/xz/src/liblzma/common/memcmplen.h:19:11: >> fatal error: >> >> 'immintrin.h' file not found >> # include >> ^ >> 1 error generated. >> *** Error code 1 >> >> Stop. >> bmake[4]: stopped in /usr/src/lib/liblzma >> >> >> > >Can you provide a full log of buildworld somewhere for me to look at? > >What's in your make.conf and src.conf? > Hi, I have a feeling this might have been ccache at fault. Since sending this email I had also tried commenting out ccache from make.conf and running another compile attempt. This attempt is *still* going?! I started it 14 hours ago now and it has only reached here: ===> gnu/usr.bin/groff/src/preproc/tbl (all) What on earth is so different between 10 and 11 to cause build times that much longer? Without ccache and running without -j this box would have built 10 in around 5 hours. Is that the result of not having WITHOUT_DEBUG_FILES as I think that was something new for 11 wasn't it? I have not been running this build within script(1) though I am afraid so I don't have a copy of the whole build. I might stop the build and reenable all of the options again, but this time with a completely empty ccache. FYI though, my src.conf and make.conf are below. You can see what I have now commented out that was enabled before. I don't think it's the src.conf entries that caused the problem as I tried it with those commented out before and it still failed. I think it could probably be the ccache lines. $ cat /etc/src.conf #WITHOUT_DEBUG_FILES=yes #WITHOUT_LIB32=yes #WITHOUT_PROFILE=yes $ cat /etc/make.conf KERNCONF=TAO BATCH_DELETE_OLD_FILES=yes SVN_UPDATE=yes SVN=/usr/local/bin/svn WRKDIRPREFIX=/usr/obj DEFAULT_VERSIONS=gcc=6 perl5=5.24 pgsql=9.5 php=7.0 python=2.7 python2=2.7 python3=3.5 ssl=libressl-devel WITH_OPENSSL_PORT=yes OPENSSL_PORT=security/libressl-devel OPTIONS_UNSET+=X11 #WITH_CCACHE_BUILD=yes #.if (!empty(.CURDIR:M/usr/src*) || !empty(.CURDIR:M/usr/obj*)) #.if !defined(NOCCACHE) && exists(/usr/local/libexec/ccache/world/cc) #CC:=${CC:C,^cc,/usr/local/libexec/ccache/world/cc,1} #CXX:=${CXX:C,^c\+\+,/usr/local/libexec/ccache/world/c++,1} #.endif #.endif -- Matt