All of lore.kernel.org
 help / color / mirror / Atom feed
* gpu-viv-mx6q and libEGL.so/libEGL.so.1
@ 2013-07-26  0:44 Eric Nelson
  2013-07-26  9:54 ` Philip Craig
  0 siblings, 1 reply; 8+ messages in thread
From: Eric Nelson @ 2013-07-26  0:44 UTC (permalink / raw)
  To: meta-freescale

Hi all,

When running the sample apps in /opt/viv_samples/vdk
under strace on a frame-buffer only build, I can see that
something is trying to load libEGL.so (no trailing 1).

Looking at the recipe, I'm not quite grokking how this is
placed into the image though.

I can see a symlink being created pointing libEGL.so at
libEGL.so.1 here:

	https://github.com/Freescale/meta-fsl-arm/blob/master/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc#L130

Somehow or another, the symlink is ending up in the -dev package
though:

$ find gpu-viv-bin-mx6q/1_3.0.35-4.0.0-r5.0/packages-split/ \
	-name libEGL\*
gpu-viv-bin-mx6q/1_3.0.35-4.0.0-r5.0/packages-split/libegl-mx6-dev/usr/lib/libEGL.so
gpu-viv-bin-mx6q/1_3.0.35-4.0.0-r5.0/packages-split/libegl-mx6/usr/lib/libEGL.so.1

Can anybody give some guidance on where and how that's happening?

Does anybody know where the missing reference to libEGL.so
might be coming from? This doesn't appear to be a hard-coded
linker dependency from any of the sample apps or from the
other shared libraries.

Please advise,


Eric


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

* Re: gpu-viv-mx6q and libEGL.so/libEGL.so.1
  2013-07-26  0:44 gpu-viv-mx6q and libEGL.so/libEGL.so.1 Eric Nelson
@ 2013-07-26  9:54 ` Philip Craig
  2013-07-26 10:05   ` Philip Craig
                     ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Philip Craig @ 2013-07-26  9:54 UTC (permalink / raw)
  To: Eric Nelson; +Cc: meta-freescale

On Fri, Jul 26, 2013 at 10:44 AM, Eric Nelson
<eric.nelson@boundarydevices.com> wrote:
> Hi all,
>
> When running the sample apps in /opt/viv_samples/vdk
> under strace on a frame-buffer only build, I can see that
> something is trying to load libEGL.so (no trailing 1).
>
> Looking at the recipe, I'm not quite grokking how this is
> placed into the image though.
>
> I can see a symlink being created pointing libEGL.so at
> libEGL.so.1 here:
>
>
> https://github.com/Freescale/meta-fsl-arm/blob/master/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc#L130
>
> Somehow or another, the symlink is ending up in the -dev package
> though:
>
> $ find gpu-viv-bin-mx6q/1_3.0.35-4.0.0-r5.0/packages-split/ \
>         -name libEGL\*
> gpu-viv-bin-mx6q/1_3.0.35-4.0.0-r5.0/packages-split/libegl-mx6-dev/usr/lib/libEGL.so
> gpu-viv-bin-mx6q/1_3.0.35-4.0.0-r5.0/packages-split/libegl-mx6/usr/lib/libEGL.so.1
>
> Can anybody give some guidance on where and how that's happening?

See lines 152 and 153 of gpu-viv-bin-mx6q.inc. If something needs
libEGL.so then this probably needs to be changed to how libgles and
libgles2 are done. It would be nice to document exactly where the
dependency is though so that we know when we can remove the hack once
it is fixed.

> Does anybody know where the missing reference to libEGL.so
> might be coming from? This doesn't appear to be a hard-coded
> linker dependency from any of the sample apps or from the
> other shared libraries.

I can't see the dependency from inspection. What's the exact error message?


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

* Re: gpu-viv-mx6q and libEGL.so/libEGL.so.1
  2013-07-26  9:54 ` Philip Craig
@ 2013-07-26 10:05   ` Philip Craig
  2013-07-26 13:46     ` Otavio Salvador
  2013-07-26 14:10     ` Eric Nelson
  2013-07-26 14:06   ` Eric Nelson
  2013-07-26 14:15   ` Eric Nelson
  2 siblings, 2 replies; 8+ messages in thread
From: Philip Craig @ 2013-07-26 10:05 UTC (permalink / raw)
  To: Eric Nelson; +Cc: meta-freescale

On Fri, Jul 26, 2013 at 7:54 PM, Philip Craig <phil@blackmoth.com.au> wrote:
> On Fri, Jul 26, 2013 at 10:44 AM, Eric Nelson
> <eric.nelson@boundarydevices.com> wrote:
>> Hi all,
>>
>> When running the sample apps in /opt/viv_samples/vdk
>> under strace on a frame-buffer only build, I can see that
>> something is trying to load libEGL.so (no trailing 1).
>>
>> Looking at the recipe, I'm not quite grokking how this is
>> placed into the image though.
>>
>> I can see a symlink being created pointing libEGL.so at
>> libEGL.so.1 here:
>>
>>
>> https://github.com/Freescale/meta-fsl-arm/blob/master/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc#L130
>>
>> Somehow or another, the symlink is ending up in the -dev package
>> though:
>>
>> $ find gpu-viv-bin-mx6q/1_3.0.35-4.0.0-r5.0/packages-split/ \
>>         -name libEGL\*
>> gpu-viv-bin-mx6q/1_3.0.35-4.0.0-r5.0/packages-split/libegl-mx6-dev/usr/lib/libEGL.so
>> gpu-viv-bin-mx6q/1_3.0.35-4.0.0-r5.0/packages-split/libegl-mx6/usr/lib/libEGL.so.1
>>
>> Can anybody give some guidance on where and how that's happening?
>
> See lines 152 and 153 of gpu-viv-bin-mx6q.inc. If something needs
> libEGL.so then this probably needs to be changed to how libgles and
> libgles2 are done. It would be nice to document exactly where the
> dependency is though so that we know when we can remove the hack once
> it is fixed.
>
>> Does anybody know where the missing reference to libEGL.so
>> might be coming from? This doesn't appear to be a hard-coded
>> linker dependency from any of the sample apps or from the
>> other shared libraries.
>
> I can't see the dependency from inspection. What's the exact error message?

I see now. The samples uses libGAL.so, and it contains the string
libEGL.so, as well as a gcoOS_LoadEGLLibrary function.


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

* Re: gpu-viv-mx6q and libEGL.so/libEGL.so.1
  2013-07-26 10:05   ` Philip Craig
@ 2013-07-26 13:46     ` Otavio Salvador
  2013-07-26 14:10     ` Eric Nelson
  1 sibling, 0 replies; 8+ messages in thread
From: Otavio Salvador @ 2013-07-26 13:46 UTC (permalink / raw)
  To: Philip Craig; +Cc: meta-freescale

On Fri, Jul 26, 2013 at 7:05 AM, Philip Craig <phil@blackmoth.com.au> wrote:
> On Fri, Jul 26, 2013 at 7:54 PM, Philip Craig <phil@blackmoth.com.au> wrote:
>> On Fri, Jul 26, 2013 at 10:44 AM, Eric Nelson
>> <eric.nelson@boundarydevices.com> wrote:
>>> Hi all,
>>>
>>> When running the sample apps in /opt/viv_samples/vdk
>>> under strace on a frame-buffer only build, I can see that
>>> something is trying to load libEGL.so (no trailing 1).
>>>
>>> Looking at the recipe, I'm not quite grokking how this is
>>> placed into the image though.
>>>
>>> I can see a symlink being created pointing libEGL.so at
>>> libEGL.so.1 here:
>>>
>>>
>>> https://github.com/Freescale/meta-fsl-arm/blob/master/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc#L130
>>>
>>> Somehow or another, the symlink is ending up in the -dev package
>>> though:
>>>
>>> $ find gpu-viv-bin-mx6q/1_3.0.35-4.0.0-r5.0/packages-split/ \
>>>         -name libEGL\*
>>> gpu-viv-bin-mx6q/1_3.0.35-4.0.0-r5.0/packages-split/libegl-mx6-dev/usr/lib/libEGL.so
>>> gpu-viv-bin-mx6q/1_3.0.35-4.0.0-r5.0/packages-split/libegl-mx6/usr/lib/libEGL.so.1
>>>
>>> Can anybody give some guidance on where and how that's happening?
>>
>> See lines 152 and 153 of gpu-viv-bin-mx6q.inc. If something needs
>> libEGL.so then this probably needs to be changed to how libgles and
>> libgles2 are done. It would be nice to document exactly where the
>> dependency is though so that we know when we can remove the hack once
>> it is fixed.
>>
>>> Does anybody know where the missing reference to libEGL.so
>>> might be coming from? This doesn't appear to be a hard-coded
>>> linker dependency from any of the sample apps or from the
>>> other shared libraries.
>>
>> I can't see the dependency from inspection. What's the exact error message?
>
> I see now. The samples uses libGAL.so, and it contains the string
> libEGL.so, as well as a gcoOS_LoadEGLLibrary function.

Philip, are you going to cook a patch for this?

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


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

* Re: gpu-viv-mx6q and libEGL.so/libEGL.so.1
  2013-07-26  9:54 ` Philip Craig
  2013-07-26 10:05   ` Philip Craig
@ 2013-07-26 14:06   ` Eric Nelson
  2013-07-26 14:15   ` Eric Nelson
  2 siblings, 0 replies; 8+ messages in thread
From: Eric Nelson @ 2013-07-26 14:06 UTC (permalink / raw)
  To: Philip Craig; +Cc: meta-freescale

Hi Philip,

On 07/26/2013 02:54 AM, Philip Craig wrote:
> On Fri, Jul 26, 2013 at 10:44 AM, Eric Nelson
> <eric.nelson@boundarydevices.com> wrote:
>> Hi all,
>>
>> When running the sample apps in /opt/viv_samples/vdk
>> under strace on a frame-buffer only build, I can see that
>> something is trying to load libEGL.so (no trailing 1).
>>
>> Looking at the recipe, I'm not quite grokking how this is
>> placed into the image though.
>>
>> I can see a symlink being created pointing libEGL.so at
>> libEGL.so.1 here:
>>
>>
>> https://github.com/Freescale/meta-fsl-arm/blob/master/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc#L130
>>
>> Somehow or another, the symlink is ending up in the -dev package
>> though:
>>
>> $ find gpu-viv-bin-mx6q/1_3.0.35-4.0.0-r5.0/packages-split/ \
>>          -name libEGL\*
>> gpu-viv-bin-mx6q/1_3.0.35-4.0.0-r5.0/packages-split/libegl-mx6-dev/usr/lib/libEGL.so
>> gpu-viv-bin-mx6q/1_3.0.35-4.0.0-r5.0/packages-split/libegl-mx6/usr/lib/libEGL.so.1
>>
>> Can anybody give some guidance on where and how that's happening?
>
> See lines 152 and 153 of gpu-viv-bin-mx6q.inc. If something needs
> libEGL.so then this probably needs to be changed to how libgles and
> libgles2 are done. It would be nice to document exactly where the
> dependency is though so that we know when we can remove the hack once
> it is fixed.
>
>> Does anybody know where the missing reference to libEGL.so
>> might be coming from? This doesn't appear to be a hard-coded
>> linker dependency from any of the sample apps or from the
>> other shared libraries.
>
> I can't see the dependency from inspection. What's the exact error message?
>

No error message was generated. The apps just silently exited.

strace showed attempts to load libEGL.so without the .1 trailer.



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

* Re: gpu-viv-mx6q and libEGL.so/libEGL.so.1
  2013-07-26 10:05   ` Philip Craig
  2013-07-26 13:46     ` Otavio Salvador
@ 2013-07-26 14:10     ` Eric Nelson
  1 sibling, 0 replies; 8+ messages in thread
From: Eric Nelson @ 2013-07-26 14:10 UTC (permalink / raw)
  To: Philip Craig; +Cc: meta-freescale

Hi Philip,

On 07/26/2013 03:05 AM, Philip Craig wrote:
> On Fri, Jul 26, 2013 at 7:54 PM, Philip Craig <phil@blackmoth.com.au> wrote:
>> On Fri, Jul 26, 2013 at 10:44 AM, Eric Nelson
>> <eric.nelson@boundarydevices.com> wrote:
>>> Hi all,
>>>
>>> When running the sample apps in /opt/viv_samples/vdk
>>> under strace on a frame-buffer only build, I can see that
>>> something is trying to load libEGL.so (no trailing 1).
>>>
>>> Looking at the recipe, I'm not quite grokking how this is
>>> placed into the image though.
>>>
>>> I can see a symlink being created pointing libEGL.so at
>>> libEGL.so.1 here:
>>>
>>>
>>> https://github.com/Freescale/meta-fsl-arm/blob/master/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc#L130
>>>
>>> Somehow or another, the symlink is ending up in the -dev package
>>> though:
>>>
>>> $ find gpu-viv-bin-mx6q/1_3.0.35-4.0.0-r5.0/packages-split/ \
>>>          -name libEGL\*
>>> gpu-viv-bin-mx6q/1_3.0.35-4.0.0-r5.0/packages-split/libegl-mx6-dev/usr/lib/libEGL.so
>>> gpu-viv-bin-mx6q/1_3.0.35-4.0.0-r5.0/packages-split/libegl-mx6/usr/lib/libEGL.so.1
>>>
>>> Can anybody give some guidance on where and how that's happening?
>>
>> See lines 152 and 153 of gpu-viv-bin-mx6q.inc. If something needs
>> libEGL.so then this probably needs to be changed to how libgles and
>> libgles2 are done. It would be nice to document exactly where the
>> dependency is though so that we know when we can remove the hack once
>> it is fixed.
>>
>>> Does anybody know where the missing reference to libEGL.so
>>> might be coming from? This doesn't appear to be a hard-coded
>>> linker dependency from any of the sample apps or from the
>>> other shared libraries.
>>
>> I can't see the dependency from inspection. What's the exact error message?
>
> I see now. The samples uses libGAL.so, and it contains the string
> libEGL.so, as well as a gcoOS_LoadEGLLibrary function.
>

Thanks for finding this.

Since these are binaries, we'll need to defer to Freescale/Vivante
for a proper fix.




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

* Re: gpu-viv-mx6q and libEGL.so/libEGL.so.1
  2013-07-26  9:54 ` Philip Craig
  2013-07-26 10:05   ` Philip Craig
  2013-07-26 14:06   ` Eric Nelson
@ 2013-07-26 14:15   ` Eric Nelson
  2013-07-26 15:31     ` Otavio Salvador
  2 siblings, 1 reply; 8+ messages in thread
From: Eric Nelson @ 2013-07-26 14:15 UTC (permalink / raw)
  To: Philip Craig; +Cc: meta-freescale

Hi Philip,

On 07/26/2013 02:54 AM, Philip Craig wrote:
> On Fri, Jul 26, 2013 at 10:44 AM, Eric Nelson
> <eric.nelson@boundarydevices.com> wrote:
>> Hi all,
>>
>> When running the sample apps in /opt/viv_samples/vdk
>> under strace on a frame-buffer only build, I can see that
>> something is trying to load libEGL.so (no trailing 1).
>>
>> Looking at the recipe, I'm not quite grokking how this is
>> placed into the image though.
>>
>> I can see a symlink being created pointing libEGL.so at
>> libEGL.so.1 here:
>>
>>
>> https://github.com/Freescale/meta-fsl-arm/blob/master/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc#L130
>>
>> Somehow or another, the symlink is ending up in the -dev package
>> though:
>>
>> $ find gpu-viv-bin-mx6q/1_3.0.35-4.0.0-r5.0/packages-split/ \
>>          -name libEGL\*
>> gpu-viv-bin-mx6q/1_3.0.35-4.0.0-r5.0/packages-split/libegl-mx6-dev/usr/lib/libEGL.so
>> gpu-viv-bin-mx6q/1_3.0.35-4.0.0-r5.0/packages-split/libegl-mx6/usr/lib/libEGL.so.1
>>
>> Can anybody give some guidance on where and how that's happening?
>
> See lines 152 and 153 of gpu-viv-bin-mx6q.inc. If something needs
> libEGL.so then this probably needs to be changed to how libgles and
> libgles2 are done. It would be nice to document exactly where the
> dependency is though so that we know when we can remove the hack once
> it is fixed.
>

Seeing and understanding are completely different things ;)

I'm reading this to mean that this clause translates to
libEGL.so:
	libEGL${SOLIBSDEV}

I'm also unclear on whether simply moving that clause to
FILES_libegl-mx6 is the right thing to do.

Regards,


Eric


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

* Re: gpu-viv-mx6q and libEGL.so/libEGL.so.1
  2013-07-26 14:15   ` Eric Nelson
@ 2013-07-26 15:31     ` Otavio Salvador
  0 siblings, 0 replies; 8+ messages in thread
From: Otavio Salvador @ 2013-07-26 15:31 UTC (permalink / raw)
  To: Eric Nelson; +Cc: meta-freescale

On Fri, Jul 26, 2013 at 11:15 AM, Eric Nelson
<eric.nelson@boundarydevices.com> wrote:
> On 07/26/2013 02:54 AM, Philip Craig wrote:
>> See lines 152 and 153 of gpu-viv-bin-mx6q.inc. If something needs
>> libEGL.so then this probably needs to be changed to how libgles and
>> libgles2 are done. It would be nice to document exactly where the
>> dependency is though so that we know when we can remove the hack once
>> it is fixed.
>>
>
> Seeing and understanding are completely different things ;)
>
> I'm reading this to mean that this clause translates to
> libEGL.so:
>         libEGL${SOLIBSDEV}
>
> I'm also unclear on whether simply moving that clause to
> FILES_libegl-mx6 is the right thing to do.

The point is the binaries are wrong; the .so files shouldn't be used
at runtime but just at linking time.

So we can /workaround/ it and include another FIXME comment for it.

To add this to  the package, we'll also need to add an INSANE_SKIP for it.

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


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

end of thread, other threads:[~2013-07-26 15:31 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-26  0:44 gpu-viv-mx6q and libEGL.so/libEGL.so.1 Eric Nelson
2013-07-26  9:54 ` Philip Craig
2013-07-26 10:05   ` Philip Craig
2013-07-26 13:46     ` Otavio Salvador
2013-07-26 14:10     ` Eric Nelson
2013-07-26 14:06   ` Eric Nelson
2013-07-26 14:15   ` Eric Nelson
2013-07-26 15:31     ` Otavio Salvador

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.