From owner-freebsd-current@freebsd.org Wed Aug 19 22:56:30 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 797E59BD54A for ; Wed, 19 Aug 2015 22:56:30 +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 5C8ABB81 for ; Wed, 19 Aug 2015 22:56:30 +0000 (UTC) (envelope-from oliver.pinter@hardenedbsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 59CF69BD549; Wed, 19 Aug 2015 22:56:30 +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 595D29BD547 for ; Wed, 19 Aug 2015 22:56:30 +0000 (UTC) (envelope-from oliver.pinter@hardenedbsd.org) Received: from mail-qg0-f42.google.com (mail-qg0-f42.google.com [209.85.192.42]) (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 228E2B7E for ; Wed, 19 Aug 2015 22:56:29 +0000 (UTC) (envelope-from oliver.pinter@hardenedbsd.org) Received: by qged69 with SMTP id d69so16565036qge.0 for ; Wed, 19 Aug 2015 15:56:28 -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:date:message-id:subject:from:to:cc :content-type; bh=OSuh2yvlTXvoaaIXxhPKjsDXynLGtPvtnnZ3/lTAxYw=; b=lZ2g915ET4UPh4H4ZTbKzYvMxZd1potFvxb1Oo/J5adGHGZXeBjHNFN8kmY/yTQUqP RkKJcavSTlQ9n/LQprdFMcv0SV6NcoWsfwhrHX1YAAnENteK8RUfpHjX18cUYOlvgD+0 reif46bQUs3n4b/2CDRhFei2QW9lDGXJIltRju+9eLpQsiHkzBLXQndGSdF5UQp3qgXv CnmRfaG82MAVW/Z0QxkSh1NxnZrj7gs4o7jIWRToe/3yCBC9p4B/Nzj/LB96CMNipqgl +sYfECCKdlMJw5oNE2XVffEMB6yVKxx1QHYazAhk2Mj0euVFaYRNM9QIGmnVaYm1tJHV P2+Q== X-Gm-Message-State: ALoCoQkd3CKPm4qdI+bKNeTX//7xpE1ZsGSTWyx+dmRnUvzLJX3wUdgXVpoTdRlYL8cWNIm+Ieiv MIME-Version: 1.0 X-Received: by 10.140.106.137 with SMTP id e9mr27446680qgf.106.1440024988833; Wed, 19 Aug 2015 15:56:28 -0700 (PDT) Received: by 10.55.167.133 with HTTP; Wed, 19 Aug 2015 15:56:28 -0700 (PDT) Date: Thu, 20 Aug 2015 00:56:28 +0200 Message-ID: Subject: 11-CURRENT build fail with base gcc From: Oliver Pinter To: current@freebsd.org Cc: 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: Wed, 19 Aug 2015 22:56:30 -0000 Hi All! 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. Thanks, Oliver