From owner-freebsd-current@freebsd.org Thu Aug 20 16:24:39 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 228799BEB65 for ; Thu, 20 Aug 2015 16:24:39 +0000 (UTC) (envelope-from imp@bsdimp.com) 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 EE54319B1 for ; Thu, 20 Aug 2015 16:24:38 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: by mailman.ysv.freebsd.org (Postfix) id EDC129BEB64; Thu, 20 Aug 2015 16:24:38 +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 ED4B59BEB62 for ; Thu, 20 Aug 2015 16:24:38 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-io0-f169.google.com (mail-io0-f169.google.com [209.85.223.169]) (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 B954D19B0 for ; Thu, 20 Aug 2015 16:24:38 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: by iodb91 with SMTP id b91so51834656iod.1 for ; Thu, 20 Aug 2015 09:24:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:message-id:references:to; bh=Ik1AWHIPJH+rNRQFwnzX/V17prLL+5xRjad7W2G7ggo=; b=bgIELzpCm57fECN6KDXWjqcQ1FaDUNKbdo1SGS/00oyWB9g0yIzqvc1QTg6S97x9+3 E9XYkk63V93FlY9nb7FeMEZOKfyVO4CdAdsIduaTQb/xKrYpppEmpfUpdPQz064pw7QX KuuUpbE0H7IlA0fYPlskqQNf7trQ/Guj2WZ0s9YTsWAGfWgzc4WYsVl81GhReVTWsP7f NsDvJSzyEZmwwyUuSFE3g73gbUMO2A1Z1sW1mTnCpSGiiKBV6M4/woP0NbWlDbcP68G5 Zxpf3oVeX2jZDPjwQl/mpFkMXdBTXInjGgcO9dXq14PCBEx97zVz7oy7t43YDVe2SaS2 5N5g== X-Gm-Message-State: ALoCoQnV43UASa70RsYygZboyB6L/PHsha/oNI/cnGFmQTsx8t0BZML79cyPN6pHJgZGGxbYvMVd X-Received: by 10.107.27.148 with SMTP id b142mr4175175iob.114.1440087871736; Thu, 20 Aug 2015 09:24:31 -0700 (PDT) Received: from netflix-mac-wired.bsdimp.com ([50.253.99.174]) by smtp.gmail.com with ESMTPSA id oo2sm5209283igb.6.2015.08.20.09.24.30 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Aug 2015 09:24:30 -0700 (PDT) Sender: Warner Losh Subject: Re: 11-CURRENT build fail with base gcc Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2102\)) Content-Type: multipart/signed; boundary="Apple-Mail=_50114BCC-7FA3-4428-AB05-DC8C46042E96"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.5 From: Warner Losh In-Reply-To: Date: Thu, 20 Aug 2015 10:24:28 -0600 Cc: Dimitry Andric , current@freebsd.org, imp@freebsd.org Message-Id: <349EA432-E76D-4D1B-9383-E707967C806D@bsdimp.com> References: To: Oliver Pinter X-Mailer: Apple Mail (2.2102) 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:24:39 -0000 --Apple-Mail=_50114BCC-7FA3-4428-AB05-DC8C46042E96 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Aug 20, 2015, at 9:38 AM, Oliver Pinter = wrote: >=20 > 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: >>>=20 >>> --- 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/amd6= 4 >>> = -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=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" >>>=20 >>> You can access a full build log here: >>> http://jenkins.hardenedbsd.org/~op/11-current-with-gcc-fail.log . >>>=20 >>> 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. >>>=20 >>> 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 >>>=20 >>> and the host system is a 11-CURRENT system, which builded with = clang. >>=20 >> At what build stage is this error occuring? >=20 > At 4.4 build everything: >=20 > 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 Warner --Apple-Mail=_50114BCC-7FA3-4428-AB05-DC8C46042E96 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJV1f89AAoJEGwc0Sh9sBEAsUUP/3QOQOkV4SXJ9nWtkDnbMJcO Y+l+XBxjZ/SQO4LUBDUAeLnVLAF5y6LWi8+xVgzhrz0Amx2oaZuFHkB8bL5EUVtI huAcfYlEdQG9NkQUCxo+TudCMvsh5dZA8LXXPqHyC6oeCE2++PiGaTOE00nzgl8E nqSkX3+DknqbJGUGxadN3klxKlbBhlE/DqlM0nOSM1/HL2b2AFLDNtGgcGoNsLRa pTFY6L31geGuvhqiJOIQWqag8drQWSvkYMmIdSXUcmCW30iVy9e8wUenqLn74w20 TLNMMiRnFepznDJFxAPy2IZQaKEePKWESK/LuMUTZXhz8RvlDYCVi1ifFPPdNPE8 HwtMGOkBBJCnzzw8u15AMf9WlwOkp01blAlQidjtMZLcm7gzfGfnYTM/a02tdbvz Dv+ipRaF19vNOtZPugfmitXoLYoZmNbK37FEF2kcNpAXs56kmFgrhlQ89TYBoQqx cyEQofqr7W1RnGZ49OmYzQgYoWs5QLTJuJcsZLExFRHxSqtJTLs4O8l0nLZjX6Bd AVBYbbWaUW39wxuJcFsXWKS752EVNbSIq3cV9aZGFGAIbN74SM0lAzpgzMG4H2x2 qPa60SdDe6IlK+vFo2Go8qmIFygvjOriTMSS4ZmkTmOilOrFs8M6++Z8XTeQEQEV 5PtnCAV/yAWGNfbHUmxo =LhMY -----END PGP SIGNATURE----- --Apple-Mail=_50114BCC-7FA3-4428-AB05-DC8C46042E96--