All of lore.kernel.org
 help / color / mirror / Atom feed
* imx-gpu-sdk do_install fails
@ 2017-01-11 18:37 Stepan Salenikovich
  2017-01-12 13:21 ` Otavio Salvador
  0 siblings, 1 reply; 8+ messages in thread
From: Stepan Salenikovich @ 2017-01-11 18:37 UTC (permalink / raw)
  To: meta-freescale

Hi,
I'm trying to build fsl-image-multimedia-full on current master
for the nitrogen6x with the distro set to fslc-wayland.

The do_install for imx-gpu-sdk fails with the following error.
There are also many warnings before it about the include and library
paths being set to /usr/include and /usr/lib... so it seems there
is possibly a prefix missing somewhere causing the wrong header
to be included?

eabi/imx-gpu-sdk/2.3.2-r0/imx-gpu-sdk-2.3.2/DemoFramework/FslBase/obj/Yocto/Release/libFslBase.a -lIL -lEGL -lGLESv2 -lwayland-cursor -lwayland-client -lm -ldl -Wl,--library-path=/usr/lib,-rpath-link=/usr/lib
| /home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/x86_64-linux/usr/libexec/arm-fslc-linux-gnueabi/gcc/arm-fslc-linux-gnueabi/6.3.0/ld: warning: library search path "/usr/lib" is unsafe for cross-compilation
| Installed to: /home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0/imx-gpu-sdk-2.3.2/bin/GLES3/E1_1_VBOs
| arm-fslc-linux-gnueabi-g++  -march=armv7-a -mthumb -mfpu=neon  -mfloat-abi=hard --sysroot=/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/nitrogen6x   -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0=/usr/src/debug/imx-gpu-sdk/2.3.2-r0 -fdebug-prefix-map=/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/x86_64-linux= -fdebug-prefix-map=/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/nitrogen6x=  -fvisibility-inlines-hidden -Wall -fPIC -DPIC -std=c++11 -g -DFSL_ENABLE_GRAPHICS_ES3 -DEGL_API_WL -DEGL_API_FB -pthread -DFSL_PLATFORM_YOCTO -fno-strict-aliasing -fno-optimize-sibling-calls  -DLINUX -I/usr/include -I/inc -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0/imx-gpu-sdk-2.3.2/DemoFramework/FslBase/include -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0/imx-gpu-sdk-2.3.2/DemoFramework/FslDemoApp/include -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0/imx-gpu-sdk-2.3.2/DemoFramework/FslDemoAppGLES3/include -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0/imx-gpu-sdk-2.3.2/DemoFramework/FslGraphics/include -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0/imx-gpu-sdk-2.3.2/DemoFramework/FslGraphicsGLES3/include -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/nitrogen6x/usr/include/glib-2.0 -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/nitrogen6x/usr/include/gstreamer-1.0 -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/nitrogen6x/usr/lib/glib-2.0/include -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/nitrogen6x/usr/lib/gstreamer-1.0/include -o obj/Yocto_Wayland/Release/source/DirectMultiSamplingVideoYUV.o -c source/DirectMultiSamplingVideoYUV.cpp
| cc1plus: warning: include location "/usr/include" is unsafe for cross-compilation [-Wpoison-system-directories]
| source/DirectMultiSamplingVideoYUV.cpp: In member function 'virtual void Fsl::DirectMultiSamplingVideoYUV::Draw()':
| source/DirectMultiSamplingVideoYUV.cpp:321:83: error: 'glTexDirectVIVMap' was not declared in this scope
|          glTexDirectVIVMap(GL_TEXTURE_2D, WIDTH, HEIGHT, GL_ALPHA, &logical, &yAddr);
|                                                                                    ^
| source/DirectMultiSamplingVideoYUV.cpp:322:47: error: 'glTexDirectInvalidateVIV' was not declared in this scope
|          glTexDirectInvalidateVIV(GL_TEXTURE_2D);
|                                                ^
| GNUmakefile_Yocto:173: recipe for target 'obj/Yocto_Wayland/Release/source/DirectMultiSamplingVideoYUV.o' failed
| make: *** [obj/Yocto_Wayland/Release/source/DirectMultiSamplingVideoYUV.o] Error 1
| WARNING: exit code 2 from a shell command.
| ERROR: Function failed: do_install (log file is located at /home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0/temp/log.do_install.15970)
ERROR: Task (/home/ssalenikovich/projects/fsl-community-bsp-master/sources/meta-freescale-distro/recipes-graphics/imx-gpu-sdk/imx-gpu-sdk_2.3.2.bb:do_install) failed with exit code '1'
NOTE: Tasks Summary: Attempted 4044 tasks of which 4008 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory

Summary: 1 task failed:
  /home/ssalenikovich/projects/fsl-community-bsp-master/sources/meta-freescale-distro/recipes-graphics/imx-gpu-sdk/imx-gpu-sdk_2.3.2.bb:do_install
Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

-stepan


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: imx-gpu-sdk do_install fails
  2017-01-11 18:37 imx-gpu-sdk do_install fails Stepan Salenikovich
@ 2017-01-12 13:21 ` Otavio Salvador
  2017-01-12 15:02   ` Tom Hochstein
  2017-01-12 19:19   ` Tom Hochstein
  0 siblings, 2 replies; 8+ messages in thread
From: Otavio Salvador @ 2017-01-12 13:21 UTC (permalink / raw)
  To: Stepan Salenikovich, Tom Hochstein; +Cc: meta-freescale

Hello Tom, could you take a look at this?

On Wed, Jan 11, 2017 at 4:37 PM, Stepan Salenikovich
<stepan.salenikovich@savoirfairelinux.com> wrote:
> Hi,
> I'm trying to build fsl-image-multimedia-full on current master
> for the nitrogen6x with the distro set to fslc-wayland.
>
> The do_install for imx-gpu-sdk fails with the following error.
> There are also many warnings before it about the include and library
> paths being set to /usr/include and /usr/lib... so it seems there
> is possibly a prefix missing somewhere causing the wrong header
> to be included?
>
> eabi/imx-gpu-sdk/2.3.2-r0/imx-gpu-sdk-2.3.2/DemoFramework/FslBase/obj/Yocto/Release/libFslBase.a -lIL -lEGL -lGLESv2 -lwayland-cursor -lwayland-client -lm -ldl -Wl,--library-path=/usr/lib,-rpath-link=/usr/lib
> | /home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/x86_64-linux/usr/libexec/arm-fslc-linux-gnueabi/gcc/arm-fslc-linux-gnueabi/6.3.0/ld: warning: library search path "/usr/lib" is unsafe for cross-compilation
> | Installed to: /home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0/imx-gpu-sdk-2.3.2/bin/GLES3/E1_1_VBOs
> | arm-fslc-linux-gnueabi-g++  -march=armv7-a -mthumb -mfpu=neon  -mfloat-abi=hard --sysroot=/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/nitrogen6x   -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0=/usr/src/debug/imx-gpu-sdk/2.3.2-r0 -fdebug-prefix-map=/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/x86_64-linux= -fdebug-prefix-map=/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/nitrogen6x=  -fvisibility-inlines-hidden -Wall -fPIC -DPIC -std=c++11 -g -DFSL_ENABLE_GRAPHICS_ES3 -DEGL_API_WL -DEGL_API_FB -pthread -DFSL_PLATFORM_YOCTO -fno-strict-aliasing -fno-optimize-sibling-calls  -DLINUX -I/usr/include -I/inc -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0/imx-gpu-sdk-2.
>  3.2/DemoFramework/FslBase/include -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0/imx-gpu-sdk-2.3.2/DemoFramework/FslDemoApp/include -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0/imx-gpu-sdk-2.3.2/DemoFramework/FslDemoAppGLES3/include -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0/imx-gpu-sdk-2.3.2/DemoFramework/FslGraphics/include -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0/imx-gpu-sdk-2.3.2/DemoFramework/FslGraphicsGLES3/include -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/nitrogen6x/usr/include/glib-2.0 -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/nitrogen6x/usr/includ
>  e/gstreamer-1.0 -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/nitrogen6x/usr/lib/glib-2.0/include -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/nitrogen6x/usr/lib/gstreamer-1.0/include -o obj/Yocto_Wayland/Release/source/DirectMultiSamplingVideoYUV.o -c source/DirectMultiSamplingVideoYUV.cpp
> | cc1plus: warning: include location "/usr/include" is unsafe for cross-compilation [-Wpoison-system-directories]
> | source/DirectMultiSamplingVideoYUV.cpp: In member function 'virtual void Fsl::DirectMultiSamplingVideoYUV::Draw()':
> | source/DirectMultiSamplingVideoYUV.cpp:321:83: error: 'glTexDirectVIVMap' was not declared in this scope
> |          glTexDirectVIVMap(GL_TEXTURE_2D, WIDTH, HEIGHT, GL_ALPHA, &logical, &yAddr);
> |                                                                                    ^
> | source/DirectMultiSamplingVideoYUV.cpp:322:47: error: 'glTexDirectInvalidateVIV' was not declared in this scope
> |          glTexDirectInvalidateVIV(GL_TEXTURE_2D);
> |                                                ^
> | GNUmakefile_Yocto:173: recipe for target 'obj/Yocto_Wayland/Release/source/DirectMultiSamplingVideoYUV.o' failed
> | make: *** [obj/Yocto_Wayland/Release/source/DirectMultiSamplingVideoYUV.o] Error 1
> | WARNING: exit code 2 from a shell command.
> | ERROR: Function failed: do_install (log file is located at /home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0/temp/log.do_install.15970)
> ERROR: Task (/home/ssalenikovich/projects/fsl-community-bsp-master/sources/meta-freescale-distro/recipes-graphics/imx-gpu-sdk/imx-gpu-sdk_2.3.2.bb:do_install) failed with exit code '1'
> NOTE: Tasks Summary: Attempted 4044 tasks of which 4008 didn't need to be rerun and 1 failed.
> NOTE: Writing buildhistory
>
> Summary: 1 task failed:
>   /home/ssalenikovich/projects/fsl-community-bsp-master/sources/meta-freescale-distro/recipes-graphics/imx-gpu-sdk/imx-gpu-sdk_2.3.2.bb:do_install
> Summary: There was 1 WARNING message shown.
> Summary: There was 1 ERROR message shown, returning a non-zero exit code.
>
> -stepan
> --
> _______________________________________________
> meta-freescale mailing list
> meta-freescale@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale



-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: imx-gpu-sdk do_install fails
  2017-01-12 13:21 ` Otavio Salvador
@ 2017-01-12 15:02   ` Tom Hochstein
  2017-01-12 19:19   ` Tom Hochstein
  1 sibling, 0 replies; 8+ messages in thread
From: Tom Hochstein @ 2017-01-12 15:02 UTC (permalink / raw)
  To: Otavio Salvador, Stepan Salenikovich; +Cc: meta-freescale

Yes, building now...

-----Original Message-----
From: Otavio Salvador [mailto:otavio.salvador@ossystems.com.br] 
Sent: Thursday, January 12, 2017 7:21 AM
To: Stepan Salenikovich <stepan.salenikovich@savoirfairelinux.com>; Tom Hochstein <tom.hochstein@nxp.com>
Cc: meta-freescale@yoctoproject.org
Subject: Re: [meta-freescale] imx-gpu-sdk do_install fails

Hello Tom, could you take a look at this?

On Wed, Jan 11, 2017 at 4:37 PM, Stepan Salenikovich
<stepan.salenikovich@savoirfairelinux.com> wrote:
> Hi,
> I'm trying to build fsl-image-multimedia-full on current master
> for the nitrogen6x with the distro set to fslc-wayland.
>
> The do_install for imx-gpu-sdk fails with the following error.
> There are also many warnings before it about the include and library
> paths being set to /usr/include and /usr/lib... so it seems there
> is possibly a prefix missing somewhere causing the wrong header
> to be included?
>
> eabi/imx-gpu-sdk/2.3.2-r0/imx-gpu-sdk-2.3.2/DemoFramework/FslBase/obj/Yocto/Release/libFslBase.a -lIL -lEGL -lGLESv2 -lwayland-cursor -lwayland-client -lm -ldl -Wl,--library-path=/usr/lib,-rpath-link=/usr/lib
> | /home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/x86_64-linux/usr/libexec/arm-fslc-linux-gnueabi/gcc/arm-fslc-linux-gnueabi/6.3.0/ld: warning: library search path "/usr/lib" is unsafe for cross-compilation
> | Installed to: /home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0/imx-gpu-sdk-2.3.2/bin/GLES3/E1_1_VBOs
> | arm-fslc-linux-gnueabi-g++  -march=armv7-a -mthumb -mfpu=neon  -mfloat-abi=hard --sysroot=/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/nitrogen6x   -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0=/usr/src/debug/imx-gpu-sdk/2.3.2-r0 -fdebug-prefix-map=/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/x86_64-linux= -fdebug-prefix-map=/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/nitrogen6x=  -fvisibility-inlines-hidden -Wall -fPIC -DPIC -std=c++11 -g -DFSL_ENABLE_GRAPHICS_ES3 -DEGL_API_WL -DEGL_API_FB -pthread -DFSL_PLATFORM_YOCTO -fno-strict-aliasing -fno-optimize-sibling-calls  -DLINUX -I/usr/include -I/inc -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0/imx-gpu-sdk-2.
>  3.2/DemoFramework/FslBase/include -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0/imx-gpu-sdk-2.3.2/DemoFramework/FslDemoApp/include -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0/imx-gpu-sdk-2.3.2/DemoFramework/FslDemoAppGLES3/include -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0/imx-gpu-sdk-2.3.2/DemoFramework/FslGraphics/include -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0/imx-gpu-sdk-2.3.2/DemoFramework/FslGraphicsGLES3/include -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/nitrogen6x/usr/include/glib-2.0 -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/nitrogen6x/usr/includ
>  e/gstreamer-1.0 -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/nitrogen6x/usr/lib/glib-2.0/include -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/nitrogen6x/usr/lib/gstreamer-1.0/include -o obj/Yocto_Wayland/Release/source/DirectMultiSamplingVideoYUV.o -c source/DirectMultiSamplingVideoYUV.cpp
> | cc1plus: warning: include location "/usr/include" is unsafe for cross-compilation [-Wpoison-system-directories]
> | source/DirectMultiSamplingVideoYUV.cpp: In member function 'virtual void Fsl::DirectMultiSamplingVideoYUV::Draw()':
> | source/DirectMultiSamplingVideoYUV.cpp:321:83: error: 'glTexDirectVIVMap' was not declared in this scope
> |          glTexDirectVIVMap(GL_TEXTURE_2D, WIDTH, HEIGHT, GL_ALPHA, &logical, &yAddr);
> |                                                                                    ^
> | source/DirectMultiSamplingVideoYUV.cpp:322:47: error: 'glTexDirectInvalidateVIV' was not declared in this scope
> |          glTexDirectInvalidateVIV(GL_TEXTURE_2D);
> |                                                ^
> | GNUmakefile_Yocto:173: recipe for target 'obj/Yocto_Wayland/Release/source/DirectMultiSamplingVideoYUV.o' failed
> | make: *** [obj/Yocto_Wayland/Release/source/DirectMultiSamplingVideoYUV.o] Error 1
> | WARNING: exit code 2 from a shell command.
> | ERROR: Function failed: do_install (log file is located at /home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0/temp/log.do_install.15970)
> ERROR: Task (/home/ssalenikovich/projects/fsl-community-bsp-master/sources/meta-freescale-distro/recipes-graphics/imx-gpu-sdk/imx-gpu-sdk_2.3.2.bb:do_install) failed with exit code '1'
> NOTE: Tasks Summary: Attempted 4044 tasks of which 4008 didn't need to be rerun and 1 failed.
> NOTE: Writing buildhistory
>
> Summary: 1 task failed:
>   /home/ssalenikovich/projects/fsl-community-bsp-master/sources/meta-freescale-distro/recipes-graphics/imx-gpu-sdk/imx-gpu-sdk_2.3.2.bb:do_install
> Summary: There was 1 WARNING message shown.
> Summary: There was 1 ERROR message shown, returning a non-zero exit code.
>
> -stepan
> --
> _______________________________________________
> meta-freescale mailing list
> meta-freescale@yoctoproject.org
> https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.yoctoproject.org%2Flistinfo%2Fmeta-freescale&data=01%7C01%7Ctom.hochstein%40nxp.com%7C144cff8338564f8cee9708d43aeddd4d%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0&sdata=fOvfgznpuE%2FTzLWdZcc%2BmWEWo7twpmUeLDqpfPLw6sg%3D&reserved=0



-- 
Otavio Salvador                             O.S. Systems
https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.ossystems.com.br&data=01%7C01%7Ctom.hochstein%40nxp.com%7C144cff8338564f8cee9708d43aeddd4d%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0&sdata=Z42ftfW%2Blc6VkQ7IylMDgTBECg%2BD4hFcKD7TjN7WICw%3D&reserved=0        https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcode.ossystems.com.br&data=01%7C01%7Ctom.hochstein%40nxp.com%7C144cff8338564f8cee9708d43aeddd4d%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0&sdata=S%2Fty5XNWC6H%2BjoCF6XpZoYj9I2Bf07uuBpZEK5bJIEA%3D&reserved=0
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: imx-gpu-sdk do_install fails
  2017-01-12 13:21 ` Otavio Salvador
  2017-01-12 15:02   ` Tom Hochstein
@ 2017-01-12 19:19   ` Tom Hochstein
  2017-01-12 20:26     ` Stepan Salenikovich
  1 sibling, 1 reply; 8+ messages in thread
From: Tom Hochstein @ 2017-01-12 19:19 UTC (permalink / raw)
  To: Otavio Salvador, Stepan Salenikovich; +Cc: meta-freescale

[-- Attachment #1: Type: text/plain, Size: 7481 bytes --]

Hi Stepan,

I was not able to reproduce the problem. I have 3 things for you to try, in order:

1. Clean sstate [1] and rebuild:

$ bitbake imx-gpu-sdk -c cleansstate

2. If that doesn't work, we do have a change internally which might at least fix the include file warnings. Please apply the attached patch and rebuild.

3. If that doesn't work, the other fear would be a missing dependency on imx-gpu-viv. Try building imx-gpu-viv separately and then rebuild your image:

$ bitbake imx-gpu-viv

Tom

[1] http://lists.openembedded.org/pipermail/openembedded-core/2012-February/057250.html

-----Original Message-----
From: Otavio Salvador [mailto:otavio.salvador@ossystems.com.br] 
Sent: Thursday, January 12, 2017 7:21 AM
To: Stepan Salenikovich <stepan.salenikovich@savoirfairelinux.com>; Tom Hochstein <tom.hochstein@nxp.com>
Cc: meta-freescale@yoctoproject.org
Subject: Re: [meta-freescale] imx-gpu-sdk do_install fails

Hello Tom, could you take a look at this?

On Wed, Jan 11, 2017 at 4:37 PM, Stepan Salenikovich
<stepan.salenikovich@savoirfairelinux.com> wrote:
> Hi,
> I'm trying to build fsl-image-multimedia-full on current master
> for the nitrogen6x with the distro set to fslc-wayland.
>
> The do_install for imx-gpu-sdk fails with the following error.
> There are also many warnings before it about the include and library
> paths being set to /usr/include and /usr/lib... so it seems there
> is possibly a prefix missing somewhere causing the wrong header
> to be included?
>
> eabi/imx-gpu-sdk/2.3.2-r0/imx-gpu-sdk-2.3.2/DemoFramework/FslBase/obj/Yocto/Release/libFslBase.a -lIL -lEGL -lGLESv2 -lwayland-cursor -lwayland-client -lm -ldl -Wl,--library-path=/usr/lib,-rpath-link=/usr/lib
> | /home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/x86_64-linux/usr/libexec/arm-fslc-linux-gnueabi/gcc/arm-fslc-linux-gnueabi/6.3.0/ld: warning: library search path "/usr/lib" is unsafe for cross-compilation
> | Installed to: /home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0/imx-gpu-sdk-2.3.2/bin/GLES3/E1_1_VBOs
> | arm-fslc-linux-gnueabi-g++  -march=armv7-a -mthumb -mfpu=neon  -mfloat-abi=hard --sysroot=/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/nitrogen6x   -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0=/usr/src/debug/imx-gpu-sdk/2.3.2-r0 -fdebug-prefix-map=/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/x86_64-linux= -fdebug-prefix-map=/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/nitrogen6x=  -fvisibility-inlines-hidden -Wall -fPIC -DPIC -std=c++11 -g -DFSL_ENABLE_GRAPHICS_ES3 -DEGL_API_WL -DEGL_API_FB -pthread -DFSL_PLATFORM_YOCTO -fno-strict-aliasing -fno-optimize-sibling-calls  -DLINUX -I/usr/include -I/inc -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0/imx-gpu-sdk-2.
>  3.2/DemoFramework/FslBase/include -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0/imx-gpu-sdk-2.3.2/DemoFramework/FslDemoApp/include -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0/imx-gpu-sdk-2.3.2/DemoFramework/FslDemoAppGLES3/include -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0/imx-gpu-sdk-2.3.2/DemoFramework/FslGraphics/include -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0/imx-gpu-sdk-2.3.2/DemoFramework/FslGraphicsGLES3/include -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/nitrogen6x/usr/include/glib-2.0 -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/nitrogen6x/usr/includ
>  e/gstreamer-1.0 -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/nitrogen6x/usr/lib/glib-2.0/include -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/nitrogen6x/usr/lib/gstreamer-1.0/include -o obj/Yocto_Wayland/Release/source/DirectMultiSamplingVideoYUV.o -c source/DirectMultiSamplingVideoYUV.cpp
> | cc1plus: warning: include location "/usr/include" is unsafe for cross-compilation [-Wpoison-system-directories]
> | source/DirectMultiSamplingVideoYUV.cpp: In member function 'virtual void Fsl::DirectMultiSamplingVideoYUV::Draw()':
> | source/DirectMultiSamplingVideoYUV.cpp:321:83: error: 'glTexDirectVIVMap' was not declared in this scope
> |          glTexDirectVIVMap(GL_TEXTURE_2D, WIDTH, HEIGHT, GL_ALPHA, &logical, &yAddr);
> |                                                                                    ^
> | source/DirectMultiSamplingVideoYUV.cpp:322:47: error: 'glTexDirectInvalidateVIV' was not declared in this scope
> |          glTexDirectInvalidateVIV(GL_TEXTURE_2D);
> |                                                ^
> | GNUmakefile_Yocto:173: recipe for target 'obj/Yocto_Wayland/Release/source/DirectMultiSamplingVideoYUV.o' failed
> | make: *** [obj/Yocto_Wayland/Release/source/DirectMultiSamplingVideoYUV.o] Error 1
> | WARNING: exit code 2 from a shell command.
> | ERROR: Function failed: do_install (log file is located at /home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0/temp/log.do_install.15970)
> ERROR: Task (/home/ssalenikovich/projects/fsl-community-bsp-master/sources/meta-freescale-distro/recipes-graphics/imx-gpu-sdk/imx-gpu-sdk_2.3.2.bb:do_install) failed with exit code '1'
> NOTE: Tasks Summary: Attempted 4044 tasks of which 4008 didn't need to be rerun and 1 failed.
> NOTE: Writing buildhistory
>
> Summary: 1 task failed:
>   /home/ssalenikovich/projects/fsl-community-bsp-master/sources/meta-freescale-distro/recipes-graphics/imx-gpu-sdk/imx-gpu-sdk_2.3.2.bb:do_install
> Summary: There was 1 WARNING message shown.
> Summary: There was 1 ERROR message shown, returning a non-zero exit code.
>
> -stepan
> --
> _______________________________________________
> meta-freescale mailing list
> meta-freescale@yoctoproject.org
> https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.yoctoproject.org%2Flistinfo%2Fmeta-freescale&data=01%7C01%7Ctom.hochstein%40nxp.com%7C144cff8338564f8cee9708d43aeddd4d%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0&sdata=fOvfgznpuE%2FTzLWdZcc%2BmWEWo7twpmUeLDqpfPLw6sg%3D&reserved=0



-- 
Otavio Salvador                             O.S. Systems
https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.ossystems.com.br&data=01%7C01%7Ctom.hochstein%40nxp.com%7C144cff8338564f8cee9708d43aeddd4d%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0&sdata=Z42ftfW%2Blc6VkQ7IylMDgTBECg%2BD4hFcKD7TjN7WICw%3D&reserved=0        https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcode.ossystems.com.br&data=01%7C01%7Ctom.hochstein%40nxp.com%7C144cff8338564f8cee9708d43aeddd4d%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0&sdata=S%2Fty5XNWC6H%2BjoCF6XpZoYj9I2Bf07uuBpZEK5bJIEA%3D&reserved=0
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750

[-- Attachment #2: 0001-imx-gpu-sdk-Fix-cross-compilation-error.patch --]
[-- Type: application/octet-stream, Size: 1239 bytes --]

From 1f78d3eab273b0f12aaf47a4da1c4988ea81d412 Mon Sep 17 00:00:00 2001
From: Tom Hochstein <tom.hochstein@nxp.com>
Date: Thu, 12 Jan 2017 13:00:38 -0600
Subject: [PATCH] imx-gpu-sdk: Fix cross-compilation error

The environment variable ROOTFS was not being used properly,
during compilation, so pass it directly.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
---
 recipes-graphics/imx-gpu-sdk/imx-gpu-sdk_2.3.2.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/recipes-graphics/imx-gpu-sdk/imx-gpu-sdk_2.3.2.bb b/recipes-graphics/imx-gpu-sdk/imx-gpu-sdk_2.3.2.bb
index 6b80baa..a84bbc5 100644
--- a/recipes-graphics/imx-gpu-sdk/imx-gpu-sdk_2.3.2.bb
+++ b/recipes-graphics/imx-gpu-sdk/imx-gpu-sdk_2.3.2.bb
@@ -34,9 +34,9 @@ do_compile () {
     export FSL_PLATFORM_NAME=Yocto
     export ROOTFS=${STAGING_DIR_HOST}
     if [ "${IMXGPU}" = "3d" ]; then
-        ./build.sh -f GNUmakefile_Yocto EGLBackend=${BACKEND}
+        ./build.sh -f GNUmakefile_Yocto EGLBackend=${BACKEND} ROOTFS=${STAGING_DIR_HOST}
     else
-        ./build_OpenVG.sh -f GNUmakefile_Yocto EGLBackend=${BACKEND}
+        ./build_OpenVG.sh -f GNUmakefile_Yocto EGLBackend=${BACKEND} ROOTFS=${STAGING_DIR_HOST}
     fi
 }
 
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: imx-gpu-sdk do_install fails
  2017-01-12 19:19   ` Tom Hochstein
@ 2017-01-12 20:26     ` Stepan Salenikovich
  2017-01-13 15:43       ` Otavio Salvador
  0 siblings, 1 reply; 8+ messages in thread
From: Stepan Salenikovich @ 2017-01-12 20:26 UTC (permalink / raw)
  To: Tom Hochstein; +Cc: meta-freescale, Otavio Salvador



----- On Jan 12, 2017, at 2:19 PM, Tom Hochstein tom.hochstein@nxp.com wrote:

> Hi Stepan,
> 
> I was not able to reproduce the problem. I have 3 things for you to try, in
> order:
> 
> 1. Clean sstate [1] and rebuild:
> 
> $ bitbake imx-gpu-sdk -c cleansstate

This worked. Thanks! FYI, I got the issue after building the image, and then doing a
'repo sync' to update everything and trying to build again...

> 
> 2. If that doesn't work, we do have a change internally which might at least fix
> the include file warnings. Please apply the attached patch and rebuild.
> 
> 3. If that doesn't work, the other fear would be a missing dependency on
> imx-gpu-viv. Try building imx-gpu-viv separately and then rebuild your image:
> 
> $ bitbake imx-gpu-viv
> 
> Tom
> 
> [1]
> http://lists.openembedded.org/pipermail/openembedded-core/2012-February/057250.html
> 
> -----Original Message-----
> From: Otavio Salvador [mailto:otavio.salvador@ossystems.com.br]
> Sent: Thursday, January 12, 2017 7:21 AM
> To: Stepan Salenikovich <stepan.salenikovich@savoirfairelinux.com>; Tom
> Hochstein <tom.hochstein@nxp.com>
> Cc: meta-freescale@yoctoproject.org
> Subject: Re: [meta-freescale] imx-gpu-sdk do_install fails
> 
> Hello Tom, could you take a look at this?
> 
> On Wed, Jan 11, 2017 at 4:37 PM, Stepan Salenikovich
> <stepan.salenikovich@savoirfairelinux.com> wrote:
>> Hi,
>> I'm trying to build fsl-image-multimedia-full on current master
>> for the nitrogen6x with the distro set to fslc-wayland.
>>
>> The do_install for imx-gpu-sdk fails with the following error.
>> There are also many warnings before it about the include and library
>> paths being set to /usr/include and /usr/lib... so it seems there
>> is possibly a prefix missing somewhere causing the wrong header
>> to be included?
>>
>> eabi/imx-gpu-sdk/2.3.2-r0/imx-gpu-sdk-2.3.2/DemoFramework/FslBase/obj/Yocto/Release/libFslBase.a
>> -lIL -lEGL -lGLESv2 -lwayland-cursor -lwayland-client -lm -ldl
>> -Wl,--library-path=/usr/lib,-rpath-link=/usr/lib
>> | /home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/x86_64-linux/usr/libexec/arm-fslc-linux-gnueabi/gcc/arm-fslc-linux-gnueabi/6.3.0/ld:
>> | warning: library search path "/usr/lib" is unsafe for cross-compilation
>> | Installed to:
>> | /home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0/imx-gpu-sdk-2.3.2/bin/GLES3/E1_1_VBOs
>> | arm-fslc-linux-gnueabi-g++  -march=armv7-a -mthumb -mfpu=neon  -mfloat-abi=hard
>> | --sysroot=/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/nitrogen6x
>> | -O2 -pipe -g -feliminate-unused-debug-types
>> | -fdebug-prefix-map=/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0=/usr/src/debug/imx-gpu-sdk/2.3.2-r0
>> | -fdebug-prefix-map=/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/x86_64-linux=
>> | -fdebug-prefix-map=/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/nitrogen6x=
>> | -fvisibility-inlines-hidden -Wall -fPIC -DPIC -std=c++11 -g
>> | -DFSL_ENABLE_GRAPHICS_ES3 -DEGL_API_WL -DEGL_API_FB -pthread
>> | -DFSL_PLATFORM_YOCTO -fno-strict-aliasing -fno-optimize-sibling-calls  -DLINUX
>> | -I/usr/include -I/inc
>> | -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0/imx-gpu-sdk-2.
>>  3.2/DemoFramework/FslBase/include
>>  -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0/imx-gpu-sdk-2.3.2/DemoFramework/FslDemoApp/include
>>  -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0/imx-gpu-sdk-2.3.2/DemoFramework/FslDemoAppGLES3/include
>>  -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0/imx-gpu-sdk-2.3.2/DemoFramework/FslGraphics/include
>>  -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0/imx-gpu-sdk-2.3.2/DemoFramework/FslGraphicsGLES3/include
>>  -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/nitrogen6x/usr/include/glib-2.0
>>  -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/nitrogen6x/usr/includ
>>  e/gstreamer-1.0
>>  -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/nitrogen6x/usr/lib/glib-2.0/include
>>  -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/nitrogen6x/usr/lib/gstreamer-1.0/include
>>  -o obj/Yocto_Wayland/Release/source/DirectMultiSamplingVideoYUV.o -c
>>  source/DirectMultiSamplingVideoYUV.cpp
>> | cc1plus: warning: include location "/usr/include" is unsafe for
>> | cross-compilation [-Wpoison-system-directories]
>> | source/DirectMultiSamplingVideoYUV.cpp: In member function 'virtual void
>> | Fsl::DirectMultiSamplingVideoYUV::Draw()':
>> | source/DirectMultiSamplingVideoYUV.cpp:321:83: error: 'glTexDirectVIVMap' was
>> | not declared in this scope
>> |          glTexDirectVIVMap(GL_TEXTURE_2D, WIDTH, HEIGHT, GL_ALPHA, &logical, &yAddr);
>> |                                                                                    ^
>> | source/DirectMultiSamplingVideoYUV.cpp:322:47: error: 'glTexDirectInvalidateVIV'
>> | was not declared in this scope
>> |          glTexDirectInvalidateVIV(GL_TEXTURE_2D);
>> |                                                ^
>> | GNUmakefile_Yocto:173: recipe for target
>> | 'obj/Yocto_Wayland/Release/source/DirectMultiSamplingVideoYUV.o' failed
>> | make: *** [obj/Yocto_Wayland/Release/source/DirectMultiSamplingVideoYUV.o] Error
>> | 1
>> | WARNING: exit code 2 from a shell command.
>> | ERROR: Function failed: do_install (log file is located at
>> | /home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0/temp/log.do_install.15970)
>> ERROR: Task
>> (/home/ssalenikovich/projects/fsl-community-bsp-master/sources/meta-freescale-distro/recipes-graphics/imx-gpu-sdk/imx-gpu-sdk_2.3.2.bb:do_install)
>> failed with exit code '1'
>> NOTE: Tasks Summary: Attempted 4044 tasks of which 4008 didn't need to be rerun
>> and 1 failed.
>> NOTE: Writing buildhistory
>>
>> Summary: 1 task failed:
>>   /home/ssalenikovich/projects/fsl-community-bsp-master/sources/meta-freescale-distro/recipes-graphics/imx-gpu-sdk/imx-gpu-sdk_2.3.2.bb:do_install
>> Summary: There was 1 WARNING message shown.
>> Summary: There was 1 ERROR message shown, returning a non-zero exit code.
>>
>> -stepan
>> --
>> _______________________________________________
>> meta-freescale mailing list
>> meta-freescale@yoctoproject.org
>> https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.yoctoproject.org%2Flistinfo%2Fmeta-freescale&data=01%7C01%7Ctom.hochstein%40nxp.com%7C144cff8338564f8cee9708d43aeddd4d%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0&sdata=fOvfgznpuE%2FTzLWdZcc%2BmWEWo7twpmUeLDqpfPLw6sg%3D&reserved=0
> 
> 
> 
> --
> Otavio Salvador                             O.S. Systems
> https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.ossystems.com.br&data=01%7C01%7Ctom.hochstein%40nxp.com%7C144cff8338564f8cee9708d43aeddd4d%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0&sdata=Z42ftfW%2Blc6VkQ7IylMDgTBECg%2BD4hFcKD7TjN7WICw%3D&reserved=0
> https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcode.ossystems.com.br&data=01%7C01%7Ctom.hochstein%40nxp.com%7C144cff8338564f8cee9708d43aeddd4d%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0&sdata=S%2Fty5XNWC6H%2BjoCF6XpZoYj9I2Bf07uuBpZEK5bJIEA%3D&reserved=0
> Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: imx-gpu-sdk do_install fails
  2017-01-12 20:26     ` Stepan Salenikovich
@ 2017-01-13 15:43       ` Otavio Salvador
  2017-01-13 15:50         ` Tom Hochstein
  0 siblings, 1 reply; 8+ messages in thread
From: Otavio Salvador @ 2017-01-13 15:43 UTC (permalink / raw)
  To: Stepan Salenikovich; +Cc: meta-freescale

On Thu, Jan 12, 2017 at 6:26 PM, Stepan Salenikovich
<stepan.salenikovich@savoirfairelinux.com> wrote:
>> I was not able to reproduce the problem. I have 3 things for you to try, in
>> order:
>>
>> 1. Clean sstate [1] and rebuild:
>>
>> $ bitbake imx-gpu-sdk -c cleansstate
>
> This worked. Thanks! FYI, I got the issue after building the image, and then doing a
> 'repo sync' to update everything and trying to build again...

This makes clear something is messed up.

Tom, we need to make sure the SDK does not /build/ things in the
do_install task. Is it possible for you to take a look?

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: imx-gpu-sdk do_install fails
  2017-01-13 15:43       ` Otavio Salvador
@ 2017-01-13 15:50         ` Tom Hochstein
  0 siblings, 0 replies; 8+ messages in thread
From: Tom Hochstein @ 2017-01-13 15:50 UTC (permalink / raw)
  To: Otavio Salvador, Stepan Salenikovich; +Cc: meta-freescale

Thanks, Stepan for the info.

Thanks, Otavio, you are right, it does call the build script with an install command. I will investigate.

Tom

-----Original Message-----
From: Otavio Salvador [mailto:otavio.salvador@ossystems.com.br] 
Sent: Friday, January 13, 2017 9:44 AM
To: Stepan Salenikovich <stepan.salenikovich@savoirfairelinux.com>
Cc: Tom Hochstein <tom.hochstein@nxp.com>; meta-freescale@yoctoproject.org
Subject: Re: [meta-freescale] imx-gpu-sdk do_install fails

On Thu, Jan 12, 2017 at 6:26 PM, Stepan Salenikovich
<stepan.salenikovich@savoirfairelinux.com> wrote:
>> I was not able to reproduce the problem. I have 3 things for you to try, in
>> order:
>>
>> 1. Clean sstate [1] and rebuild:
>>
>> $ bitbake imx-gpu-sdk -c cleansstate
>
> This worked. Thanks! FYI, I got the issue after building the image, and then doing a
> 'repo sync' to update everything and trying to build again...

This makes clear something is messed up.

Tom, we need to make sure the SDK does not /build/ things in the
do_install task. Is it possible for you to take a look?

-- 
Otavio Salvador                             O.S. Systems
https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.ossystems.com.br&data=01%7C01%7Ctom.hochstein%40nxp.com%7C173520e81b14460022c208d43bcaee52%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0&sdata=Gf59UlxMEtEyQYoWKVQKg5Pm%2F95%2BfF%2BQvojn%2BvWV1g8%3D&reserved=0        https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcode.ossystems.com.br&data=01%7C01%7Ctom.hochstein%40nxp.com%7C173520e81b14460022c208d43bcaee52%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0&sdata=GuZ1PWZqlggwomxdb3r5Ol4nuBUNYYgGp8yY1w%2Fm1NU%3D&reserved=0
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: imx-gpu-sdk do_install fails
@ 2017-01-12 19:46 Tom Hochstein
  0 siblings, 0 replies; 8+ messages in thread
From: Tom Hochstein @ 2017-01-12 19:46 UTC (permalink / raw)
  To: Stepan Salenikovich; +Cc: meta-freescale, Otavio Salvador

If none of that helps, can you report back on the contents of the do_install log:

/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0/temp/log.do_install.15970

What is the actual error?

Tom

-----Original Message-----
From: Tom Hochstein 
Sent: Thursday, January 12, 2017 1:19 PM
To: 'Otavio Salvador' <otavio.salvador@ossystems.com.br>; Stepan Salenikovich <stepan.salenikovich@savoirfairelinux.com>
Cc: meta-freescale@yoctoproject.org
Subject: RE: [meta-freescale] imx-gpu-sdk do_install fails

Hi Stepan,

I was not able to reproduce the problem. I have 3 things for you to try, in order:

1. Clean sstate [1] and rebuild:

$ bitbake imx-gpu-sdk -c cleansstate

2. If that doesn't work, we do have a change internally which might at least fix the include file warnings. Please apply the attached patch and rebuild.

3. If that doesn't work, the other fear would be a missing dependency on imx-gpu-viv. Try building imx-gpu-viv separately and then rebuild your image:

$ bitbake imx-gpu-viv

Tom

[1] http://lists.openembedded.org/pipermail/openembedded-core/2012-February/057250.html

-----Original Message-----
From: Otavio Salvador [mailto:otavio.salvador@ossystems.com.br] 
Sent: Thursday, January 12, 2017 7:21 AM
To: Stepan Salenikovich <stepan.salenikovich@savoirfairelinux.com>; Tom Hochstein <tom.hochstein@nxp.com>
Cc: meta-freescale@yoctoproject.org
Subject: Re: [meta-freescale] imx-gpu-sdk do_install fails

Hello Tom, could you take a look at this?

On Wed, Jan 11, 2017 at 4:37 PM, Stepan Salenikovich
<stepan.salenikovich@savoirfairelinux.com> wrote:
> Hi,
> I'm trying to build fsl-image-multimedia-full on current master
> for the nitrogen6x with the distro set to fslc-wayland.
>
> The do_install for imx-gpu-sdk fails with the following error.
> There are also many warnings before it about the include and library
> paths being set to /usr/include and /usr/lib... so it seems there
> is possibly a prefix missing somewhere causing the wrong header
> to be included?
>
> eabi/imx-gpu-sdk/2.3.2-r0/imx-gpu-sdk-2.3.2/DemoFramework/FslBase/obj/Yocto/Release/libFslBase.a -lIL -lEGL -lGLESv2 -lwayland-cursor -lwayland-client -lm -ldl -Wl,--library-path=/usr/lib,-rpath-link=/usr/lib
> | /home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/x86_64-linux/usr/libexec/arm-fslc-linux-gnueabi/gcc/arm-fslc-linux-gnueabi/6.3.0/ld: warning: library search path "/usr/lib" is unsafe for cross-compilation
> | Installed to: /home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0/imx-gpu-sdk-2.3.2/bin/GLES3/E1_1_VBOs
> | arm-fslc-linux-gnueabi-g++  -march=armv7-a -mthumb -mfpu=neon  -mfloat-abi=hard --sysroot=/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/nitrogen6x   -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0=/usr/src/debug/imx-gpu-sdk/2.3.2-r0 -fdebug-prefix-map=/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/x86_64-linux= -fdebug-prefix-map=/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/nitrogen6x=  -fvisibility-inlines-hidden -Wall -fPIC -DPIC -std=c++11 -g -DFSL_ENABLE_GRAPHICS_ES3 -DEGL_API_WL -DEGL_API_FB -pthread -DFSL_PLATFORM_YOCTO -fno-strict-aliasing -fno-optimize-sibling-calls  -DLINUX -I/usr/include -I/inc -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0/imx-gpu-sdk-2.
>  3.2/DemoFramework/FslBase/include -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0/imx-gpu-sdk-2.3.2/DemoFramework/FslDemoApp/include -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0/imx-gpu-sdk-2.3.2/DemoFramework/FslDemoAppGLES3/include -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0/imx-gpu-sdk-2.3.2/DemoFramework/FslGraphics/include -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0/imx-gpu-sdk-2.3.2/DemoFramework/FslGraphicsGLES3/include -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/nitrogen6x/usr/include/glib-2.0 -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/nitrogen6x/usr/includ
>  e/gstreamer-1.0 -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/nitrogen6x/usr/lib/glib-2.0/include -I/home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/sysroots/nitrogen6x/usr/lib/gstreamer-1.0/include -o obj/Yocto_Wayland/Release/source/DirectMultiSamplingVideoYUV.o -c source/DirectMultiSamplingVideoYUV.cpp
> | cc1plus: warning: include location "/usr/include" is unsafe for cross-compilation [-Wpoison-system-directories]
> | source/DirectMultiSamplingVideoYUV.cpp: In member function 'virtual void Fsl::DirectMultiSamplingVideoYUV::Draw()':
> | source/DirectMultiSamplingVideoYUV.cpp:321:83: error: 'glTexDirectVIVMap' was not declared in this scope
> |          glTexDirectVIVMap(GL_TEXTURE_2D, WIDTH, HEIGHT, GL_ALPHA, &logical, &yAddr);
> |                                                                                    ^
> | source/DirectMultiSamplingVideoYUV.cpp:322:47: error: 'glTexDirectInvalidateVIV' was not declared in this scope
> |          glTexDirectInvalidateVIV(GL_TEXTURE_2D);
> |                                                ^
> | GNUmakefile_Yocto:173: recipe for target 'obj/Yocto_Wayland/Release/source/DirectMultiSamplingVideoYUV.o' failed
> | make: *** [obj/Yocto_Wayland/Release/source/DirectMultiSamplingVideoYUV.o] Error 1
> | WARNING: exit code 2 from a shell command.
> | ERROR: Function failed: do_install (log file is located at /home/ssalenikovich/projects/fsl-community-bsp-master/build/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/imx-gpu-sdk/2.3.2-r0/temp/log.do_install.15970)
> ERROR: Task (/home/ssalenikovich/projects/fsl-community-bsp-master/sources/meta-freescale-distro/recipes-graphics/imx-gpu-sdk/imx-gpu-sdk_2.3.2.bb:do_install) failed with exit code '1'
> NOTE: Tasks Summary: Attempted 4044 tasks of which 4008 didn't need to be rerun and 1 failed.
> NOTE: Writing buildhistory
>
> Summary: 1 task failed:
>   /home/ssalenikovich/projects/fsl-community-bsp-master/sources/meta-freescale-distro/recipes-graphics/imx-gpu-sdk/imx-gpu-sdk_2.3.2.bb:do_install
> Summary: There was 1 WARNING message shown.
> Summary: There was 1 ERROR message shown, returning a non-zero exit code.
>
> -stepan
> --
> _______________________________________________
> meta-freescale mailing list
> meta-freescale@yoctoproject.org
> https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.yoctoproject.org%2Flistinfo%2Fmeta-freescale&data=01%7C01%7Ctom.hochstein%40nxp.com%7C144cff8338564f8cee9708d43aeddd4d%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0&sdata=fOvfgznpuE%2FTzLWdZcc%2BmWEWo7twpmUeLDqpfPLw6sg%3D&reserved=0



-- 
Otavio Salvador                             O.S. Systems
https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.ossystems.com.br&data=01%7C01%7Ctom.hochstein%40nxp.com%7C144cff8338564f8cee9708d43aeddd4d%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0&sdata=Z42ftfW%2Blc6VkQ7IylMDgTBECg%2BD4hFcKD7TjN7WICw%3D&reserved=0        https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcode.ossystems.com.br&data=01%7C01%7Ctom.hochstein%40nxp.com%7C144cff8338564f8cee9708d43aeddd4d%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0&sdata=S%2Fty5XNWC6H%2BjoCF6XpZoYj9I2Bf07uuBpZEK5bJIEA%3D&reserved=0
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-01-13 16:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-11 18:37 imx-gpu-sdk do_install fails Stepan Salenikovich
2017-01-12 13:21 ` Otavio Salvador
2017-01-12 15:02   ` Tom Hochstein
2017-01-12 19:19   ` Tom Hochstein
2017-01-12 20:26     ` Stepan Salenikovich
2017-01-13 15:43       ` Otavio Salvador
2017-01-13 15:50         ` Tom Hochstein
2017-01-12 19:46 Tom Hochstein

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.