Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 369F5E00E9A; Thu, 19 May 2016 13:26:40 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.220.195 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail-qk0-f195.google.com (mail-qk0-f195.google.com [209.85.220.195]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 90770E00E95 for ; Thu, 19 May 2016 13:26:38 -0700 (PDT) Received: by mail-qk0-f195.google.com with SMTP id q184so8691287qkf.0 for ; Thu, 19 May 2016 13:26:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization; bh=BIFag1osZrsLYCj0c+jz5wIEwnV1BoqfyZ8eehVDswM=; b=C9FamxgV5jfnumeyFsG71VEhnI4eWPK4WRCY7e+kNovlvj6mnaKtx0zdnoY9yO+VQT b2ooL4Ql78DFGM/4U8HACzZWzxTlUCY9qKonW4HyZ9MCiqOPiddZpS9JxdwEepnZVUrE fepFvO3ucBtYxhUQ/FD8W1f6GWXEjcdP0zPfZyMLw4U+wwlZGxPbPV0UFrRQ++oTu39e oZ1E2F6lTpLzAmIBPKxeKgQ3PjaMFtO5QSoY5sCemwdUQThwIFT+/BOmoOaMKAQhS2fR mONwFEtVq4evXLKL+w/jPrZx1wFCkJbiGNj6gS5nJ49LAR58k7bYrCe7qFVp+bQ3P+ya ZKtg== X-Gm-Message-State: AOPr4FWVNsn+KAZA1JWYA4hFBuMP11Cjb8pCjdm76YVga2osNYdPFTXmsGcnyErJV3JhVQ== X-Received: by 10.55.18.96 with SMTP id c93mr16979033qkh.158.1463689596173; Thu, 19 May 2016 13:26:36 -0700 (PDT) Received: from localhost ([187.23.154.250]) by smtp.gmail.com with ESMTPSA id b139sm7337729qhb.3.2016.05.19.13.26.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 May 2016 13:26:34 -0700 (PDT) Received: by localhost (sSMTP sendmail emulation); Thu, 19 May 2016 17:26:26 -0300 From: Otavio Salvador To: meta-freescale Mailing List Date: Thu, 19 May 2016 17:26:25 -0300 Message-Id: <1463689585-28011-1-git-send-email-otavio@ossystems.com.br> X-Mailer: git-send-email 2.8.2 Organization: O.S. Systems Software LTDA. Cc: prabhu.sundararaj@nxp.com, Otavio Salvador Subject: [meta-fsl-demos PATCH] fsl-gpu-sdk: Fix build using GCC 6.1 X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 May 2016 20:26:40 -0000 This adds the missing 'cmath' includes which was missing in a number of files. It has been identified when testing the GCC 6.1 compiler. Signed-off-by: Otavio Salvador --- .../files/Add-missing-cmath-include.patch | 228 +++++++++++++++++++++ recipes-graphics/fsl-gpu-sdk/fsl-gpu-sdk_2.2.2.bb | 1 + 2 files changed, 229 insertions(+) create mode 100644 recipes-graphics/fsl-gpu-sdk/files/Add-missing-cmath-include.patch diff --git a/recipes-graphics/fsl-gpu-sdk/files/Add-missing-cmath-include.patch b/recipes-graphics/fsl-gpu-sdk/files/Add-missing-cmath-include.patch new file mode 100644 index 0000000..ac0f579 --- /dev/null +++ b/recipes-graphics/fsl-gpu-sdk/files/Add-missing-cmath-include.patch @@ -0,0 +1,228 @@ +From 8ac2feb17bd8a170d62f3abe9451a8f066003961 Mon Sep 17 00:00:00 2001 +From: Otavio Salvador +Date: Thu, 19 May 2016 17:13:18 +0000 +Subject: [PATCH] Add missing 'cmath' include +Organization: O.S. Systems Software LTDA. + +The header declares a set of functions to compute common mathematical +operations and transformations which was missing in a number of files. + +It has been identified when testing the GCC 6.1 compiler. + +Upstream-Status: Pending + +Signed-off-by: Otavio Salvador +--- + DemoApps/GLES2/Blur/source/GausianHelper.cpp | 1 + + DemoApps/GLES2/FractalShader/source/FractalShaderMandelbrot.cpp | 1 + + DemoApps/GLES2/T3DStressTest/source/T3DStressTest.cpp | 1 + + DemoApps/GLES3/E3_0_InstancingSimple/source/E3_0_InstancingSimple.cpp | 1 + + DemoApps/GLES3/FractalShader/source/FractalShaderMandelbrot.cpp | 1 + + DemoApps/GLES3/FurShellRendering/source/FurShellRendering.cpp | 1 + + DemoApps/GLES3/FurShellRendering/source/FurTexture.cpp | 1 + + DemoApps/GLES3/T3DStressTest/source/T3DStressTest.cpp | 1 + + DemoApps/OpenVG/BitmapFont/source/BitmapFont.cpp | 1 + + .../DFGraphicsBasic2DShared/source/DFGraphicsBasic2DShared/Shared.cpp | 1 + + .../source/DFNativeBatch2DShared/TextureAtlasScene.cpp | 1 + + .../source/EnvironmentMappingShared/SphereMeshCreator.cpp | 1 + + .../FractalShaderShared/source/FractalShaderShared/JuliaHelper.cpp | 1 + + .../Shared/FractalShaderShared/source/FractalShaderShared/ShaderUtil.cpp | 1 + + DemoFramework/FslDemoHost/source/FslDemoHost/DemoAppProfilerOverlay.cpp | 1 + + .../source/FslGraphics_Draft/Procedural/TorusGenerator.cpp | 1 + + 16 files changed, 16 insertions(+) + +diff --git a/DemoApps/GLES2/Blur/source/GausianHelper.cpp b/DemoApps/GLES2/Blur/source/GausianHelper.cpp +index 805596e..ee57e0e 100644 +--- a/DemoApps/GLES2/Blur/source/GausianHelper.cpp ++++ b/DemoApps/GLES2/Blur/source/GausianHelper.cpp +@@ -38,6 +38,7 @@ + #include + #include + #include ++#include + + namespace Fsl + { +diff --git a/DemoApps/GLES2/FractalShader/source/FractalShaderMandelbrot.cpp b/DemoApps/GLES2/FractalShader/source/FractalShaderMandelbrot.cpp +index bcb4860..3d29a2b 100644 +--- a/DemoApps/GLES2/FractalShader/source/FractalShaderMandelbrot.cpp ++++ b/DemoApps/GLES2/FractalShader/source/FractalShaderMandelbrot.cpp +@@ -40,6 +40,7 @@ + #include + #include + #include ++#include + + namespace Fsl + { +diff --git a/DemoApps/GLES2/T3DStressTest/source/T3DStressTest.cpp b/DemoApps/GLES2/T3DStressTest/source/T3DStressTest.cpp +index 6fefdb2..cb55aa2 100644 +--- a/DemoApps/GLES2/T3DStressTest/source/T3DStressTest.cpp ++++ b/DemoApps/GLES2/T3DStressTest/source/T3DStressTest.cpp +@@ -43,6 +43,7 @@ + #include + #include + #include ++#include + #include + #include "FurTexture.hpp" + #include "Shader/ShaderBase.hpp" +diff --git a/DemoApps/GLES3/E3_0_InstancingSimple/source/E3_0_InstancingSimple.cpp b/DemoApps/GLES3/E3_0_InstancingSimple/source/E3_0_InstancingSimple.cpp +index 2379d6f..0cd85d5 100644 +--- a/DemoApps/GLES3/E3_0_InstancingSimple/source/E3_0_InstancingSimple.cpp ++++ b/DemoApps/GLES3/E3_0_InstancingSimple/source/E3_0_InstancingSimple.cpp +@@ -50,6 +50,7 @@ + #include + #include + #include ++#include + #include + + //Defines needed for Instancing +diff --git a/DemoApps/GLES3/FractalShader/source/FractalShaderMandelbrot.cpp b/DemoApps/GLES3/FractalShader/source/FractalShaderMandelbrot.cpp +index 8f5b3ba..0bc0f26 100644 +--- a/DemoApps/GLES3/FractalShader/source/FractalShaderMandelbrot.cpp ++++ b/DemoApps/GLES3/FractalShader/source/FractalShaderMandelbrot.cpp +@@ -40,6 +40,7 @@ + #include + #include + #include ++#include + + namespace Fsl + { +diff --git a/DemoApps/GLES3/FurShellRendering/source/FurShellRendering.cpp b/DemoApps/GLES3/FurShellRendering/source/FurShellRendering.cpp +index 1ebacff..df50c6e 100644 +--- a/DemoApps/GLES3/FurShellRendering/source/FurShellRendering.cpp ++++ b/DemoApps/GLES3/FurShellRendering/source/FurShellRendering.cpp +@@ -50,6 +50,7 @@ + #include "Shader/ShaderBase.hpp" + #include + #include ++#include + #include "MainAtlas.hpp" + + namespace Fsl +diff --git a/DemoApps/GLES3/FurShellRendering/source/FurTexture.cpp b/DemoApps/GLES3/FurShellRendering/source/FurTexture.cpp +index ba1d5d9..ad28f14 100644 +--- a/DemoApps/GLES3/FurShellRendering/source/FurTexture.cpp ++++ b/DemoApps/GLES3/FurShellRendering/source/FurTexture.cpp +@@ -35,6 +35,7 @@ + #include + #include + #include ++#include + + #include + #include +diff --git a/DemoApps/GLES3/T3DStressTest/source/T3DStressTest.cpp b/DemoApps/GLES3/T3DStressTest/source/T3DStressTest.cpp +index 52858fd..7e6c4a0 100644 +--- a/DemoApps/GLES3/T3DStressTest/source/T3DStressTest.cpp ++++ b/DemoApps/GLES3/T3DStressTest/source/T3DStressTest.cpp +@@ -43,6 +43,7 @@ + #include + #include + #include ++#include + #include + #include "FurTexture.hpp" + #include "Shader/ShaderBase.hpp" +diff --git a/DemoApps/OpenVG/BitmapFont/source/BitmapFont.cpp b/DemoApps/OpenVG/BitmapFont/source/BitmapFont.cpp +index 52ba0fb..a0fb2cf 100644 +--- a/DemoApps/OpenVG/BitmapFont/source/BitmapFont.cpp ++++ b/DemoApps/OpenVG/BitmapFont/source/BitmapFont.cpp +@@ -36,6 +36,7 @@ + #include + #include + #include ++#include + + namespace Fsl + { +diff --git a/DemoApps/Shared/DFGraphicsBasic2DShared/source/DFGraphicsBasic2DShared/Shared.cpp b/DemoApps/Shared/DFGraphicsBasic2DShared/source/DFGraphicsBasic2DShared/Shared.cpp +index 2220383..aa60ef1 100644 +--- a/DemoApps/Shared/DFGraphicsBasic2DShared/source/DFGraphicsBasic2DShared/Shared.cpp ++++ b/DemoApps/Shared/DFGraphicsBasic2DShared/source/DFGraphicsBasic2DShared/Shared.cpp +@@ -35,6 +35,7 @@ + #include + #include + #include ++#include + + namespace Fsl + { +diff --git a/DemoApps/Shared/DFNativeBatch2DShared/source/DFNativeBatch2DShared/TextureAtlasScene.cpp b/DemoApps/Shared/DFNativeBatch2DShared/source/DFNativeBatch2DShared/TextureAtlasScene.cpp +index 5af17c2..ebc1c19 100644 +--- a/DemoApps/Shared/DFNativeBatch2DShared/source/DFNativeBatch2DShared/TextureAtlasScene.cpp ++++ b/DemoApps/Shared/DFNativeBatch2DShared/source/DFNativeBatch2DShared/TextureAtlasScene.cpp +@@ -39,6 +39,7 @@ + #include + #include + #include ++#include + #include + #include + +diff --git a/DemoApps/Shared/EnvironmentMappingShared/source/EnvironmentMappingShared/SphereMeshCreator.cpp b/DemoApps/Shared/EnvironmentMappingShared/source/EnvironmentMappingShared/SphereMeshCreator.cpp +index 213ac4f..9364a5b 100644 +--- a/DemoApps/Shared/EnvironmentMappingShared/source/EnvironmentMappingShared/SphereMeshCreator.cpp ++++ b/DemoApps/Shared/EnvironmentMappingShared/source/EnvironmentMappingShared/SphereMeshCreator.cpp +@@ -32,6 +32,7 @@ + #include + #include + #include ++#include + + namespace Fsl + { +diff --git a/DemoApps/Shared/FractalShaderShared/source/FractalShaderShared/JuliaHelper.cpp b/DemoApps/Shared/FractalShaderShared/source/FractalShaderShared/JuliaHelper.cpp +index 479b95c..6936e2f 100644 +--- a/DemoApps/Shared/FractalShaderShared/source/FractalShaderShared/JuliaHelper.cpp ++++ b/DemoApps/Shared/FractalShaderShared/source/FractalShaderShared/JuliaHelper.cpp +@@ -39,6 +39,7 @@ + #include + #include + #include ++#include + #include + #include "MainAtlas.hpp" + +diff --git a/DemoApps/Shared/FractalShaderShared/source/FractalShaderShared/ShaderUtil.cpp b/DemoApps/Shared/FractalShaderShared/source/FractalShaderShared/ShaderUtil.cpp +index 133432f..16a9921 100644 +--- a/DemoApps/Shared/FractalShaderShared/source/FractalShaderShared/ShaderUtil.cpp ++++ b/DemoApps/Shared/FractalShaderShared/source/FractalShaderShared/ShaderUtil.cpp +@@ -33,6 +33,7 @@ + #include + #include + #include ++#include + + namespace Fsl + { +diff --git a/DemoFramework/FslDemoHost/source/FslDemoHost/DemoAppProfilerOverlay.cpp b/DemoFramework/FslDemoHost/source/FslDemoHost/DemoAppProfilerOverlay.cpp +index 80c4c8a..19fe6ab 100644 +--- a/DemoFramework/FslDemoHost/source/FslDemoHost/DemoAppProfilerOverlay.cpp ++++ b/DemoFramework/FslDemoHost/source/FslDemoHost/DemoAppProfilerOverlay.cpp +@@ -37,6 +37,7 @@ + #include + #include + #include ++#include + #include + #include + #include +diff --git a/DemoFramework/FslGraphics_Draft/source/FslGraphics_Draft/Procedural/TorusGenerator.cpp b/DemoFramework/FslGraphics_Draft/source/FslGraphics_Draft/Procedural/TorusGenerator.cpp +index 7eafc05..df6718d 100644 +--- a/DemoFramework/FslGraphics_Draft/source/FslGraphics_Draft/Procedural/TorusGenerator.cpp ++++ b/DemoFramework/FslGraphics_Draft/source/FslGraphics_Draft/Procedural/TorusGenerator.cpp +@@ -32,6 +32,7 @@ + #include + #include + #include ++#include + #include + #include + +-- +2.1.4 + diff --git a/recipes-graphics/fsl-gpu-sdk/fsl-gpu-sdk_2.2.2.bb b/recipes-graphics/fsl-gpu-sdk/fsl-gpu-sdk_2.2.2.bb index 91f49b2..11c9537 100644 --- a/recipes-graphics/fsl-gpu-sdk/fsl-gpu-sdk_2.2.2.bb +++ b/recipes-graphics/fsl-gpu-sdk/fsl-gpu-sdk_2.2.2.bb @@ -19,6 +19,7 @@ RREPLACES_${PN} = "vivante-gpu-sdk" RCONFLICTS_${PN} = "vivante-gpu-sdk" SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true \ + file://Add-missing-cmath-include.patch \ " SRC_URI[md5sum] = "79b40d39f9f2e49931b90083478a9270" -- 2.8.2