From owner-freebsd-x11@freebsd.org Thu Mar 3 19:22:29 2016 Return-Path: Delivered-To: freebsd-x11@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 C089AA9324B for ; Thu, 3 Mar 2016 19:22:29 +0000 (UTC) (envelope-from isoa@kapsi.fi) Received: from mail.kapsi.fi (mx1.kapsi.fi [IPv6:2001:1bc8:1004::1:25]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 88FD66D1 for ; Thu, 3 Mar 2016 19:22:29 +0000 (UTC) (envelope-from isoa@kapsi.fi) Received: from karviainen.kapsi.fi ([217.30.184.182] helo=roundcube.kapsi.fi) by mail.kapsi.fi with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1abYpM-0007ru-OG for freebsd-x11@freebsd.org; Thu, 03 Mar 2016 21:22:24 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 03 Mar 2016 21:22:24 +0200 From: Arto Pekkanen To: freebsd-x11@freebsd.org Message-ID: <2b6aefeb1e40b367611c75f01dbcf370@kapsi.fi> X-Sender: isoa@kapsi.fi User-Agent: RoundCube Webmail/0.9.4 X-SA-Exim-Connect-IP: 217.30.184.182 X-SA-Exim-Mail-From: isoa@kapsi.fi X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mail X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, RP_MATCHES_RCVD autolearn=ham version=3.3.2 Subject: Cannot compile freebsd-base-graphics (4c5467a) on FreeBSD 10.2, compiler fails to recognize warning option X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: Yes (on mail.kapsi.fi) X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Mar 2016 19:22:29 -0000 Problem occurred after the merge with HEAD at commit 4c5467a. The new source tree from HEAD seems to compile some modules with -Wno-shift-negative-value -option, which is NOT supported by the compiler of 10.2-RELEASE-p12 Does anyone have any suggestions on how I could get this kernel to compile on 10.2-RELEASE? It would be problematic for me to upgrade my main laptop's OS to FreeBSD HEAD just to test this new kernel. cc --version FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512 Target: x86_64-unknown-freebsd10.2 Thread model: posix Compiler output follows: ... ===> bxe (all) cc -O2 -pipe -Wno-shift-negative-value -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I/root/freebsd-base-graphics/sys/dev/bxe -DHAVE_KERNEL_OPTION_HEADERS -include /usr/obj/root/freebsd-base-graphics/sys/GENERIC/opt_global.h -I. -I/root/freebsd-base-graphics/sys -fno-common -g -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/obj/root/freebsd-base-graphics/sys/GENERIC -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -mno-aes -mno-avx -std=iso9899:1999 -c /root/freebsd-base-graphics/sys/dev/bxe/bxe.c -o bxe.o error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option] *** Error code 1 Stop. make[4]: stopped in /root/freebsd-base-graphics/sys/modules/bxe *** Error code 1 Stop. make[3]: stopped in /root/freebsd-base-graphics/sys/modules *** Error code 1 Stop. make[2]: stopped in /usr/obj/root/freebsd-base-graphics/sys/GENERIC *** Error code 1 Stop. make[1]: stopped in /root/freebsd-base-graphics *** Error code 1 Stop. make: stopped in /root/freebsd-base-graphics -- Arto Pekkanen