From owner-freebsd-x11@freebsd.org Fri Mar 4 21:58:52 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 2296BA09486; Fri, 4 Mar 2016 21:58:52 +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 DD4F362F; Fri, 4 Mar 2016 21:58:51 +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 1abxkH-0006tl-SF; Fri, 04 Mar 2016 23:58:50 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Fri, 04 Mar 2016 23:58:49 +0200 From: Arto Pekkanen To: =?UTF-8?Q?Jean-S=C3=A9bastien_P=C3=A9dron?= Cc: freebsd-x11@freebsd.org, owner-freebsd-x11@freebsd.org In-Reply-To: <56D9BE93.9050702@dumbbell.fr> References: <2b6aefeb1e40b367611c75f01dbcf370@kapsi.fi> <56D9BE93.9050702@dumbbell.fr> Message-ID: <5e9e4e6d0e63c4b742047c6d7043a6f7@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: Re: 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: Fri, 04 Mar 2016 21:58:52 -0000 Okay, now I did the following: # rm -rf /usr/obj/* # make kernel-toolchain However, make kernel-toolchain command failed in error: compiler cannot find file 'yacc.h'. Any idea what to do now? Here is the command output: ===> usr.bin/mkesdb_static (obj,build-tools) /usr/obj/root/freebsd-base-graphics/usr.bin/mkesdb_static created for /root/freebsd-base-graphics/usr.bin/mkesdb_static cc -O2 -pipe -I/root/freebsd-base-graphics/usr.bin/mkesdb_static -I/root/freebsd-base-graphics/usr.bin/mkesdb_static/../mkesdb -I/root/freebsd-base-graphics/usr.bin/mkesdb_static/../../lib/libc/iconv -g -std=gnu99 -Qunused-arguments -I/usr/obj/root/freebsd-base-graphics/tmp/legacy/usr/include -c /root/freebsd-base-graphics/usr.bin/mkesdb_static/../../lib/libc/iconv/citrus_bcs.c -o citrus_bcs.o cc -O2 -pipe -I/root/freebsd-base-graphics/usr.bin/mkesdb_static -I/root/freebsd-base-graphics/usr.bin/mkesdb_static/../mkesdb -I/root/freebsd-base-graphics/usr.bin/mkesdb_static/../../lib/libc/iconv -g -std=gnu99 -Qunused-arguments -I/usr/obj/root/freebsd-base-graphics/tmp/legacy/usr/include -c /root/freebsd-base-graphics/usr.bin/mkesdb_static/../../lib/libc/iconv/citrus_db_factory.c -o citrus_db_factory.o cc -O2 -pipe -I/root/freebsd-base-graphics/usr.bin/mkesdb_static -I/root/freebsd-base-graphics/usr.bin/mkesdb_static/../mkesdb -I/root/freebsd-base-graphics/usr.bin/mkesdb_static/../../lib/libc/iconv -g -std=gnu99 -Qunused-arguments -I/usr/obj/root/freebsd-base-graphics/tmp/legacy/usr/include -c /root/freebsd-base-graphics/usr.bin/mkesdb_static/../../lib/libc/iconv/citrus_db_hash.c -o citrus_db_hash.o cc -O2 -pipe -I/root/freebsd-base-graphics/usr.bin/mkesdb_static -I/root/freebsd-base-graphics/usr.bin/mkesdb_static/../mkesdb -I/root/freebsd-base-graphics/usr.bin/mkesdb_static/../../lib/libc/iconv -g -std=gnu99 -Qunused-arguments -I/usr/obj/root/freebsd-base-graphics/tmp/legacy/usr/include -c /root/freebsd-base-graphics/usr.bin/mkesdb_static/../../lib/libc/iconv/citrus_lookup_factory.c -o citrus_lookup_factory.o lex -olex.c /root/freebsd-base-graphics/usr.bin/mkesdb_static/../mkesdb/lex.l cc -O2 -pipe -I/root/freebsd-base-graphics/usr.bin/mkesdb_static -I/root/freebsd-base-graphics/usr.bin/mkesdb_static/../mkesdb -I/root/freebsd-base-graphics/usr.bin/mkesdb_static/../../lib/libc/iconv -g -std=gnu99 -Qunused-arguments -I/usr/obj/root/freebsd-base-graphics/tmp/legacy/usr/include -c lex.c -o lex.o /root/freebsd-base-graphics/usr.bin/mkesdb_static/../mkesdb/lex.l:44:10: fatal error: 'yacc.h' file not found #include "yacc.h" ^ 1 error generated. *** Error code 1 Stop. make[3]: stopped in /root/freebsd-base-graphics/usr.bin/mkesdb_static *** Error code 1 Stop. make[2]: stopped in /root/freebsd-base-graphics *** Error code 1 Stop. make[1]: stopped in /root/freebsd-base-graphics *** Error code 1 Stop. make: stopped in /root/freebsd-base-graphics Jean-Sébastien Pédron kirjoitti 04.03.2016 18:57: > On 03/03/2016 20:22, Arto Pekkanen wrote: >> 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? > > Hi! > > You should be able to build a working toolchain by first running: > make kernel-toolchain -- Arto Pekkanen