From owner-freebsd-current@freebsd.org Thu Aug 20 15:39:01 2015 Return-Path: Delivered-To: freebsd-current@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 5E0C69BE127 for ; Thu, 20 Aug 2015 15:39:01 +0000 (UTC) (envelope-from oliver.pinter@hardenedbsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 3E2791A2A for ; Thu, 20 Aug 2015 15:39:01 +0000 (UTC) (envelope-from oliver.pinter@hardenedbsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 3DA889BE126; Thu, 20 Aug 2015 15:39:01 +0000 (UTC) Delivered-To: current@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 234699BE125 for ; Thu, 20 Aug 2015 15:39:01 +0000 (UTC) (envelope-from oliver.pinter@hardenedbsd.org) Received: from mail-qk0-f181.google.com (mail-qk0-f181.google.com [209.85.220.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DE70F1A29 for ; Thu, 20 Aug 2015 15:39:00 +0000 (UTC) (envelope-from oliver.pinter@hardenedbsd.org) Received: by qkep139 with SMTP id p139so17247295qke.3 for ; Thu, 20 Aug 2015 08:38:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=eqrmNz1hDvc0Z4DPOW9nrducaJPqA0+08VcM/C9zxMw=; b=koA0VKdQqCeWgLHHwQyt4GaY5vddneyy1sDCkMkwsXWBmFPjOpX5S5S6teho6y6Vie hzhT8H3VhnPcACD7TRw3L+UxqQkOQWOgkBQzAidQLcRsagjQnROlHotiJOZ7YcTK3xFg wcLIleyJd7oLrnKfLwId7VOwZTpHiKvVRvlJJkBKT4u0hTfDJdIx1G6gDL3OpukBnMSn yfiTyhdIjsJE0t8zyDZDLNlV8csB5FGHDlMApc3uAs1e0DdgDr1xXp2VTZ8sYbNdfGbA bPTBNvDhA2fcfGY/kRYiQHagwf1Bas1JYhgBUEF9SLbCTYdq1rbnZw2Qt9lqGVvEbI8r vo7A== X-Gm-Message-State: ALoCoQl1zeo618s1s7p1I33SzyR5nrAKrTsI11Wx18gEiviwFAX1O1Z/I4NbGfae16acvk7gUaeV MIME-Version: 1.0 X-Received: by 10.55.197.151 with SMTP id k23mr6139420qkl.13.1440085133861; Thu, 20 Aug 2015 08:38:53 -0700 (PDT) Received: by 10.55.167.133 with HTTP; Thu, 20 Aug 2015 08:38:53 -0700 (PDT) In-Reply-To: References: Date: Thu, 20 Aug 2015 17:38:53 +0200 Message-ID: Subject: Re: 11-CURRENT build fail with base gcc From: Oliver Pinter To: Dimitry Andric Cc: current@freebsd.org, imp@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 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: Thu, 20 Aug 2015 15:39:01 -0000 On 8/20/15, Dimitry Andric wrote: > On 20 Aug 2015, at 00:56, Oliver Pinter > wrote: >> I got this error, when I try to build recent 11-CURRENT with gcc on amd64 >> box: >> >> --- delay.o --- >> cc -O2 -pipe -fPIC -mno-red-zone >> -I/usr/data/source/git/opBSD/opBSD.git/sys/boot/efi/libefi/../include >> -I/usr/data/source/git/opBSD/opBSD.git/sys/boot/efi/libefi/../include/amd64 >> -I/usr/data/source/git/opBSD/opBSD.git/sys/boot/efi/libefi/../../../../lib/libstand >> -I/usr/data/source/git/opBSD/opBSD.git/sys/boot/efi/libefi/../../common >> -fformat-extensions -ffreestanding -Wformat -msoft-float -fshort-wchar >> -mno-red-zone -mno-mmx -mno-sse -mno-aes -mno-avx -std=gnu99 -c >> /usr/data/source/git/opBSD/opBSD.git/sys/boot/efi/libefi/delay.c -o >> delay.o >> cc1: error: unrecognized command line option "-mno-avx" >> >> You can access a full build log here: >> http://jenkins.hardenedbsd.org/~op/11-current-with-gcc-fail.log . >> >> Seems like the build environment passed a wrong COMPILER_TYPE to >> bsd.sys.mk: clang instead of gcc, and that's why the -mno-avx occurs >> in the compiler options. >> >> I use the following options in src.conf to build the system with gcc: >> WITHOUT_CLANG_BOOTSTRAP= >> WITHOUT_CLANG_IS_CC= >> WITHOUT_CLANG= >> WITH_GCC_BOOTSTRAP= >> WITH_GCC= >> >> and the host system is a 11-CURRENT system, which builded with clang. > > At what build stage is this error occuring? At 4.4 build everything: op@opn /tmp> grep '>>>' 11-current-with-gcc-fail.log >>> World build started on Thu Aug 20 00:32:24 CEST 2015 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything > > -Dimitry > >