From patchwork Thu Nov 20 13:34:00 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Edlinger X-Patchwork-Id: 412713 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 531E51400B7 for ; Fri, 21 Nov 2014 00:34:12 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:from:to:cc:subject:date:content-type :content-transfer-encoding:mime-version; q=dns; s=default; b=qfI shikClxWLCWsht1FpKNec6eQM1dwUxWqQoZF2imgpTFAsO+DfHXEhKmHNcirlMCV trBZy6l3MMQqrd2Uvn/egUu9rUaXPdS0LKX0Drq6Meg+w1BlKprbgO2t3rCqn5ME VZGN9FPacLxGkD/oVzU+9zmv0ayLOyPvvSMkYn+U= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:from:to:cc:subject:date:content-type :content-transfer-encoding:mime-version; s=default; bh=NJS3OCZvT G/lW4VqzZBrd2nHZN8=; b=uL2Vg/EDRVVP/UzlP0SUOA+qxQ+6I1ko5KW0J9kkt 5B+Qd8HFY2P61vyx1FyeVjlTrGzaCfzNAL3PQ7seQO5DrDOU2O6VOgeH5aZz6sDe laNrqJxhJ/pTHU7UGgcLBKWB+DXSPEc9GUo5CXhcuUJNSUzYEV2aMLnBOcjMw3mt 6w= Received: (qmail 22160 invoked by alias); 20 Nov 2014 13:34:04 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 22151 invoked by uid 89); 20 Nov 2014 13:34:04 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 X-HELO: DUB004-OMC3S13.hotmail.com Received: from dub004-omc3s13.hotmail.com (HELO DUB004-OMC3S13.hotmail.com) (157.55.2.22) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA256 encrypted) ESMTPS; Thu, 20 Nov 2014 13:34:03 +0000 Received: from DUB118-W21 ([157.55.2.9]) by DUB004-OMC3S13.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.22751); Thu, 20 Nov 2014 05:34:00 -0800 X-TMN: [oYsNzzpZJkWsfvOdUmdZJSV0jHUUrXfz] Message-ID: From: Bernd Edlinger To: Jan-Benedict Glaw CC: "gcc-patches@gcc.gnu.org" Subject: RE: [PATCH, committed] Update Automake files Date: Thu, 20 Nov 2014 14:34:00 +0100 MIME-Version: 1.0 Hello Jan-Benedict, > Hi! > > This patch updates the files taken from Automake. Committed. > > MfG, JBG the updated version of "missing" will confuse the gmp-4.3.2 configure script if it is installed in-tree with "contrib/download_prerequisites" and flex is not installed: ... checking readline detected... no checking for bison... (cached) /home/ed/gnu/gcc-5-20141116/missing bison -y checking for flex... (cached) /home/ed/gnu/gcc-5-20141116/missing flex checking lex output file root... configure: error: cannot find output from /home/ed/gnu/gcc-5-20141116/missing flex; giving up make[3]: *** [config.status] Error 1 make[3]: Leaving directory `/home/ed/gnu/gcc-build-arm-linux-gnueabihf/gmp' make[2]: *** [all-stage1-gmp] Error 2 make[2]: Leaving directory `/home/ed/gnu/gcc-build-arm-linux-gnueabihf' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/home/ed/gnu/gcc-build-arm-linux-gnueabihf' make: *** [all] Error 2 previous version of missing flex produced a dummy lex.yy.c, as does the version in the gmp package, but unfortunately it is overwritten by the "missing" script in the gcc tree. That's probably just not a supported configuration anymore, but all previous GCC releases worked without a installed flex tool. Maybe the problem goes away if a newer version of gmp is used, or if the "missing flex" is not passed down to the gmp configure script, somehow. Actually, it is not really needed by gmp at all. I tried to add this hunk from the old version and it made, the gmp configure script worked again: What do you think? Regards, Bernd. --- missing.orig 2014-11-16 14:07:13.000000000 +0000 +++ missing 2014-11-19 15:01:57.168967538 +0000 @@ -172,6 +172,21 @@ echo "You should only need it if you modified a '.l' file." echo "You may want to install the Fast Lexical Analyzer package:" echo "<$flex_URL>" + rm -f lex.yy.c + if test $# -ne 1; then + eval LASTARG="\${$#}" + case $LASTARG in + *.l) + SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` + if test -f "$SRCFILE"; then + cp "$SRCFILE" lex.yy.c + fi + ;; + esac + fi + if test ! -f lex.yy.c; then + echo 'main() { return 0; }'>lex.yy.c + fi ;; help2man*) echo "You should only need it if you modified a dependency" \