From owner-freebsd-current@freebsd.org Thu Aug 20 16:27:32 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 4EB6E9BEBCA for ; Thu, 20 Aug 2015 16:27:32 +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 2C34D1B22 for ; Thu, 20 Aug 2015 16:27:32 +0000 (UTC) (envelope-from oliver.pinter@hardenedbsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 299409BEBC8; Thu, 20 Aug 2015 16:27:32 +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 0F5169BEBC7 for ; Thu, 20 Aug 2015 16:27:32 +0000 (UTC) (envelope-from oliver.pinter@hardenedbsd.org) Received: from mail-qg0-f45.google.com (mail-qg0-f45.google.com [209.85.192.45]) (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 C6E5C1B21 for ; Thu, 20 Aug 2015 16:27:31 +0000 (UTC) (envelope-from oliver.pinter@hardenedbsd.org) Received: by qgj62 with SMTP id 62so31197045qgj.2 for ; Thu, 20 Aug 2015 09:27:30 -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 :content-transfer-encoding; bh=iXUaB/WCh+sxuKVAwkqgG2U7DSFHNL6/zulv3I/1cTg=; b=A45bD0S3tl37WvJNlnAveTgU7zGKcFcNT/Yp1jCbob9VeXOr5OpkYaipqyj/wmDMre hZTesiL9XG/NglKoAN41KXR+UIsKYU91Jq7LYYDNiWQz6TSVUSBYjt4bCBhiNjBegwWt q8CqkCXP1+LM/0qe2gqUn8Ju4T0zV9POtTR3uEuVOBB7+9XzldfjGDhKNJRzgWUjsJ2S wNk6Y31ozMUAGRYEHy558XANFM1BpDXzmjcPSqvo5wFNZj322tYSsmUfe4maC3sxxENR fHbUPVnsFHy3WiNjN9oC/qj4R2dX3Azhbkzc0VczADxMR1KqAgvtz9lGFqF25yHj0Tdc JrVg== X-Gm-Message-State: ALoCoQmp1YCwvk5wZmC/j/SynWKrPvqUzUCFTsHVywraPjycbhLaE4AzTolzSefp1aqHOwNwsBnJ MIME-Version: 1.0 X-Received: by 10.140.196.67 with SMTP id r64mr7601480qha.10.1440088049843; Thu, 20 Aug 2015 09:27:29 -0700 (PDT) Received: by 10.55.167.133 with HTTP; Thu, 20 Aug 2015 09:27:29 -0700 (PDT) In-Reply-To: <349EA432-E76D-4D1B-9383-E707967C806D@bsdimp.com> References: <349EA432-E76D-4D1B-9383-E707967C806D@bsdimp.com> Date: Thu, 20 Aug 2015 18:27:29 +0200 Message-ID: Subject: Re: 11-CURRENT build fail with base gcc From: Oliver Pinter To: Warner Losh Cc: Dimitry Andric , current@freebsd.org, imp@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 16:27:32 -0000 On 8/20/15, Warner Losh wrote: > >> On Aug 20, 2015, at 9:38 AM, Oliver Pinter >> wrote: >> >> 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/../../commo= n >>>> -fformat-extensions -ffreestanding -Wformat -msoft-float -fshort-wchar >>>> -mno-red-zone -mno-mmx -mno-sse -mno-aes -mno-avx -std=3Dgnu99 -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=3D >>>> WITHOUT_CLANG_IS_CC=3D >>>> WITHOUT_CLANG=3D >>>> WITH_GCC_BOOTSTRAP=3D >>>> WITH_GCC=3D >>>> >>>> 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 > > I think you are wrong about the cause. -mno-avx is bogusly listed > unconditionally > in efi/Makefile.inc. I=E2=80=99m working on a patch now=E2=80=A6 Sure, you have right. Thanks Warner! > > Warner > >