From patchwork Sat Dec 29 12:31:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1019327 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="cu2D4gGe"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43RjcQ48kbz9s3l for ; Sat, 29 Dec 2018 23:31:34 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 8F4598459A; Sat, 29 Dec 2018 12:31:32 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6W8EV0V0E6d3; Sat, 29 Dec 2018 12:31:31 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id DAF1985B81; Sat, 29 Dec 2018 12:31:31 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 7EC341C0C57 for ; Sat, 29 Dec 2018 12:31:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 7C0F28633B for ; Sat, 29 Dec 2018 12:31:30 +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 Q3o0APkSz8VK for ; Sat, 29 Dec 2018 12:31:27 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ed1-f66.google.com (mail-ed1-f66.google.com [209.85.208.66]) by hemlock.osuosl.org (Postfix) with ESMTPS id A3F53857D6 for ; Sat, 29 Dec 2018 12:31:27 +0000 (UTC) Received: by mail-ed1-f66.google.com with SMTP id x30so19413465edx.2 for ; Sat, 29 Dec 2018 04:31:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=vk6XqusjQzmL5nEzryvW/M+ms5g3tC1bKSpBVLBcJrM=; b=cu2D4gGeaWnhduIZ15Ssaf9TcYEtj5lkWCiU/5OLrEQncmr7zKTC9e0OcHu742J0kM 9ilg80sTnf/hDjZfB83MLkGECoOkZ4M5tqEXsBVT6b8mzKg/LOJBVgP+O9zMOEzlwzAT BLL0x/kw3QcSBgUrCmjFb7Tm9f8AMTJ9sqcVlcxdXKo5d83/Rhr9qpVxUubjmPgTpWDp ZAJzRVu7pgbYQL+lNaq960WkTr/ys/rd5nJwA5wMGlirAuD+N2URv0vLTopD3NVe6cPT hESJY8ZGMtuEuKzIjP/0n5B3SI98F2Qha8rY91NJ52u8nQBjWA/F/WEGjm/zgyAp/fr5 t0mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=vk6XqusjQzmL5nEzryvW/M+ms5g3tC1bKSpBVLBcJrM=; b=kh4PkItKkzE6c0bzVNewRgvpx973BNEEo7Hn/OYvBcb2iT7Jz9LWiT0UBI2nwrbUEy GzY42YUt9D30Mj9lNwtLqR9p8nXUrdLj4he404pLHcP0SRKJei61Lb5HxCjZ9FAzEjgj AP0koeIDlD8z3W7qgTN/of1tsnJ6oMQw9pPvff0jypSWQCO1ut8xJ9RKox2bjuxzARgA tOkQvcjfV8Lc595bB+hVFjiVodHx7ARthCSmloXARNO2m5rw+cC2pVlNFlJqyQWnvPmL JZ6/XMBWa0Sr5XRWgPLx1Sob09775ex5HK/XRjqET0tgHyHIfIYiucj68l7pn/bZ6JSc KWxw== X-Gm-Message-State: AA+aEWaf8qzQ9kK8XyMwyUtoTcEnl4AJDwkw8JFFCIQSuJKd+bhQgsl9 HzD7i9W5HdGXDOqbcwQSkBIdSbQe X-Google-Smtp-Source: AFSGD/VwXYuFjBOlMj/EaACgn6Aorc9eizuU2gO1FkugXELgEQEXGnetf65WbzgA5eYx1xzz6zP05w== X-Received: by 2002:aa7:c981:: with SMTP id c1mr25844131edt.54.1546086685511; Sat, 29 Dec 2018 04:31:25 -0800 (PST) Received: from atlas.localdomain (aorleans-653-1-175-211.w90-19.abo.wanadoo.fr. [90.19.118.211]) by smtp.gmail.com with ESMTPSA id p22-v6sm7763051ejb.76.2018.12.29.04.31.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 29 Dec 2018 04:31:24 -0800 (PST) From: Romain Naour To: buildroot@buildroot.org Date: Sat, 29 Dec 2018 13:31:20 +0100 Message-Id: <20181229123120.30803-1-romain.naour@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH] package/supertux: needs gcc >= 6 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Romain Naour Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" The initial build issue [1] has been fixed upstream but the supertux fail to link with boost libraries when using gcc 5 (which use C++11 by default): libsupertux2_lib.a(main.cpp.o): In function `boost::system::error_category::std_category::equivalent(std::error_code const&, int) const': main.cpp:(.text._ZNK5boost6system14error_category12std_category10equivalentERKSt10error_codei[_ZNK5boost6system14error_category12std_category10equivalentERKSt10error_codei]+0x32): undefined reference to `boost::system::detail::generic_category_instance' main.cpp:(.text._ZNK5boost6system14error_category12std_category10equivalentERKSt10error_codei[_ZNK5boost6system14error_category12std_category10equivalentERKSt10error_codei]+0x47): undefined reference to `boost::system::detail::generic_category_instance' main.cpp:(.text._ZNK5boost6system14error_category12std_category10equivalentERKSt10error_codei[_ZNK5boost6system14error_category12std_category10equivalentERKSt10error_codei]+0x99): undefined reference to `boost::system::detail::generic_category_instance' libsupertux2_lib.a(main.cpp.o): In function `boost::system::error_category::std_category::equivalent(int, std::error_condition const&) const': main.cpp:(.text._ZNK5boost6system14error_category12std_category10equivalentEiRKSt15error_condition[_ZNK5boost6system14error_category12std_category10equivalentEiRKSt15error_condition]+0x33): undefined reference to `boost::system::detail::generic_category_instance' main.cpp:(.text._ZNK5boost6system14error_category12std_category10equivalentEiRKSt15error_condition[_ZNK5boost6system14error_category12std_category10equivalentEiRKSt15error_condition]+0x48): undefined reference to `boost::system::detail::generic_category_instance' collect2: error: ld returned 1 exit status This is a similar issue as the one reported by [2]. With gcc 5, boost libraries are compiled using C++11 but supertux2_lib.a is using C++14 standard. To fix the issue, boost libraries should be build using C++14 standard but we currently don't have an option to "force" the default C++ standard used by the compiler. So bump the minimum gcc version to gcc 6 since the C++14 is used by default. [1] https://github.com/SuperTux/supertux/issues/1014 [2] https://github.com/boostorg/system/issues/26 Fixes: http://autobuild.buildroot.net/results/5b4/5b452c155917d783b3d8167fde48c2c938a74b95 Signed-off-by: Romain Naour --- package/supertux/Config.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package/supertux/Config.in b/package/supertux/Config.in index 50bea58610..c77d1ae2bd 100644 --- a/package/supertux/Config.in +++ b/package/supertux/Config.in @@ -4,7 +4,7 @@ config BR2_PACKAGE_SUPERTUX depends on BR2_PACKAGE_HAS_LIBGL # libglew depends on BR2_PACKAGE_OPENAL_ARCH_SUPPORTS depends on BR2_PACKAGE_XORG7 # libglew, SDL2 OpenGL (GLX) - depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5 # C++14 + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_6 # C++14 depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # openal depends on BR2_USE_MMU # SDL2 OpenGL (GLX) depends on !BR2_STATIC_LIBS # SDL2 @@ -33,10 +33,10 @@ config BR2_PACKAGE_SUPERTUX http://supertux.github.io/ -comment "supertux needs OpenGL and a toolchain w/ C++, gcc >= 5, NPTL, dynamic library, wchar" +comment "supertux needs OpenGL and a toolchain w/ C++, gcc >= 6, NPTL, dynamic library, wchar" depends on BR2_PACKAGE_OPENAL_ARCH_SUPPORTS depends on BR2_PACKAGE_XORG7 depends on BR2_USE_MMU depends on !BR2_INSTALL_LIBSTDCPP || !BR2_PACKAGE_HAS_LIBGL || \ - !BR2_TOOLCHAIN_GCC_AT_LEAST_5 || !BR2_TOOLCHAIN_HAS_THREADS_NPTL || \ + !BR2_TOOLCHAIN_GCC_AT_LEAST_6 || !BR2_TOOLCHAIN_HAS_THREADS_NPTL || \ BR2_STATIC_LIBS || !BR2_USE_WCHAR