From patchwork Sun Nov 20 16:45:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnout Vandecappelle X-Patchwork-Id: 697056 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3tMHfc4H0Sz9t0J for ; Mon, 21 Nov 2016 03:45:44 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id BDB9E8852A; Sun, 20 Nov 2016 16:45:41 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ly0e72R0q7YE; Sun, 20 Nov 2016 16:45:40 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 69BF78834B; Sun, 20 Nov 2016 16:45:40 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id C24671C0012 for ; Sun, 20 Nov 2016 16:45:38 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id C214586A96 for ; Sun, 20 Nov 2016 16:45:38 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7WKdKz+AU3tq for ; Sun, 20 Nov 2016 16:45:38 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from exchange.essensium.com (220.77.144.195.ipv4.evonet.be [195.144.77.220]) by whitealder.osuosl.org (Postfix) with ESMTPS id 04C90869C7 for ; Sun, 20 Nov 2016 16:45:38 +0000 (UTC) Received: from localhost.localdomain (10.3.7.11) by beleexch01.local.ess-mail.com (10.3.7.8) with Microsoft SMTP Server (TLS) id 15.0.847.32; Sun, 20 Nov 2016 17:45:29 +0100 From: "Arnout Vandecappelle (Essensium/Mind)" To: Date: Sun, 20 Nov 2016 17:45:26 +0100 Message-ID: <20161120164526.12576-1-arnout@mind.be> X-Mailer: git-send-email 2.10.2 MIME-Version: 1.0 X-Originating-IP: [10.3.7.11] X-ClientProxiedBy: beleexch01.local.ess-mail.com (10.3.7.8) To beleexch01.local.ess-mail.com (10.3.7.8) Subject: [Buildroot] [PATCH v2] mplayer: disable for FLAT X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" mplayer uses a homegrown configure script that calls 'gcc -v | tail -1' to find the gcc version. However, our toolchain wrapper adds -Wl,-elf2flt to the gcc arguments. This triggers gcc to do an actual compile (rather than just printing version info and exiting), and that compile fails because of the missing definition of main(). The last line of the output is therefore: collect2: error: ld returned 1 exit status and configure doesn't find a version in there. It then falls back to using the host gcc instead, which breaks things completely a bit further down the line. Since mplayer probably isn't very useful on noMMU architectures anyway, just disable it completely for FLAT. Fixes: http://autobuild.buildroot.net/results/58cf28a3acd518633a1d8ea719bc70aefbdfb311 Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- v2: added the fixes line --- package/mplayer/Config.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package/mplayer/Config.in b/package/mplayer/Config.in index 76bb6f0..8474b0e 100644 --- a/package/mplayer/Config.in +++ b/package/mplayer/Config.in @@ -6,6 +6,9 @@ config BR2_PACKAGE_MPLAYER_ARCH_SUPPORTS || BR2_m68k || BR2_microblaze || BR2_nios2) # Broken support for