Skip to contentSkip to conversation

Error building gdk-pixbuf-native

DISCUSSION Gary Thomas 5 participants 13 messages Sep 22, 2015 – Sep 23, 2015

lore
Share & tools
lore
#0 lore raw

When building gdk-pixbuf-native, I got this error:

| DEBUG: Staging files from /home/local/rpi2_2015-03-05/tmp/work/i686-linux/gdk-pixbuf-native/2.30.8-r0/sysroot-destdir/home/local/rpi2_2015-03-05/tmp/sysroots/i686-linux to /home/local/rpi2_2015-03-05/tmp/sysroots/i686-linux
| DEBUG: Executing shell function pixbufcache_sstate_postinst
| g_module_open() failed for /home/local/rpi2_2015-03-05/tmp/sysroots/i686-linux/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so: libharfbuzz.so.0: cannot open shared object file: No such file or directory

It seems that [at least] gdk-pixbuf-native needs harfbuzz-native I looked at the recipe, but it's not 100% obvious to me how to add this, especially w.r.t. all of the PACKAGECONFIG options.

Guidance?

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#1 lore raw
Quoted 9 lines · Gary Thomas

When building gdk-pixbuf-native, I got this error:
| DEBUG: Staging files from /home/local/rpi2_2015-03-05/tmp/work/i686-linux/gdk-pixbuf-native/2.30.8-r0/sysroot-destdir/home/local/rpi2_2015-03-05/tmp/sysroots/i686-linux to /home/local/rpi2_2015-03-05/tmp/sysroots/i686-linux
| DEBUG: Executing shell function pixbufcache_sstate_postinst
| g_module_open() failed for /home/local/rpi2_2015-03-05/tmp/sysroots/i686-linux/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so:
libharfbuzz.so.0: cannot open shared object file: No such file or directory

Quoted 5 lines

It seems that [at least] gdk-pixbuf-native needs harfbuzz-native I looked at the recipe, but it's not 100% obvious to me how to add this, especially w.r.t. all of the PACKAGECONFIG options.

Guidance?

I had similar failures[1] at O.S. Systems autobuilder and rebuilding made it work.

1. http://ci.ossystems.com.br/view/FSL%20Community%20BSP%20-%20master-next/job/fsl-community-bsp-master-next_wayland-imx28evk/827/console

The builds are now succeeding but I did no change to fix it. This seems like a race for me.

I tried very hard to reproduce the issue locally at my laptop without success. Do you can reliably reproduce it?

Signature · 3 lines
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
#2 lore raw
Quoted 19 lines · Otavio Salvador
Quoted 9 lines · Gary Thomas

When building gdk-pixbuf-native, I got this error:
| DEBUG: Staging files from /home/local/rpi2_2015-03-05/tmp/work/i686-linux/gdk-pixbuf-native/2.30.8-r0/sysroot-destdir/home/local/rpi2_2015-03-05/tmp/sysroots/i686-linux to /home/local/rpi2_2015-03-05/tmp/sysroots/i686-linux
| DEBUG: Executing shell function pixbufcache_sstate_postinst
| g_module_open() failed for /home/local/rpi2_2015-03-05/tmp/sysroots/i686-linux/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so:
libharfbuzz.so.0: cannot open shared object file: No such file or directory

Quoted 5 lines

It seems that [at least] gdk-pixbuf-native needs harfbuzz-native I looked at the recipe, but it's not 100% obvious to me how to add this, especially w.r.t. all of the PACKAGECONFIG options.

Guidance?

I had similar failures[1] at O.S. Systems autobuilder and rebuilding made it work.

Quoted 8 lines

1. http://ci.ossystems.com.br/view/FSL%20Community%20BSP%20-%20master-next/job/fsl-community-bsp-master-next_wayland-imx28evk/827/console

The builds are now succeeding but I did no change to fix it. This seems like a race for me.

I tried very hard to reproduce the issue locally at my laptop without success. Do you can reliably reproduce it?

Yes, I had a full tree and this rebuild was kicked off by a meta-data update. Once it happened, I tried this:
% bitbake harfbuzz-native gdk-pixbuf-native -c cleansstate % bitbake gdk-pixbuf-native
failed. However the manual sequence
% bitbake harfbuzz-native
% bitbake gdk-pixbuf-native
succeeded.

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#3 lore raw
Quoted 36 lines · Gary Thomas
Quoted 25 lines · Otavio Salvador
Quoted 13 lines · Gary Thomas

When building gdk-pixbuf-native, I got this error:
| DEBUG: Staging files from

/home/local/rpi2_2015-03-05/tmp/work/i686-linux/gdk-pixbuf-native/2.30.8-r0/sysroot-destdir/home/local/rpi2_2015-03-05/tmp/sysroots/i686-linux to /home/local/rpi2_2015-03-05/tmp/sysroots/i686-linux
| DEBUG: Executing shell function pixbufcache_sstate_postinst
| g_module_open() failed for

/home/local/rpi2_2015-03-05/tmp/sysroots/i686-linux/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so:
libharfbuzz.so.0: cannot open shared object file: No such file or
directory

Quoted 5 lines

It seems that [at least] gdk-pixbuf-native needs harfbuzz-native I looked at the recipe, but it's not 100% obvious to me how to add this, especially w.r.t. all of the PACKAGECONFIG options.

Guidance?

I had similar failures[1] at O.S. Systems autobuilder and rebuilding made it work.

Quoted 9 lines

1.
http://ci.ossystems.com.br/view/FSL%20Community%20BSP%20-%20master-next/job/fsl-community-bsp-master-next_wayland-imx28evk/827/console

The builds are now succeeding but I did no change to fix it. This seems like a race for me.

I tried very hard to reproduce the issue locally at my laptop without success. Do you can reliably reproduce it?

Quoted 8 lines

Yes, I had a full tree and this rebuild was kicked off by a meta-data update. Once it happened, I tried this:
% bitbake harfbuzz-native gdk-pixbuf-native -c cleansstate % bitbake gdk-pixbuf-native
failed. However the manual sequence
% bitbake harfbuzz-native
% bitbake gdk-pixbuf-native
succeeded.

I still do not reproduce it :-(

Signature · 3 lines
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
#4 lore raw
Quoted 46 lines · Otavio Salvador
Quoted 36 lines · Gary Thomas
Quoted 25 lines · Otavio Salvador
Quoted 13 lines · Gary Thomas

When building gdk-pixbuf-native, I got this error:
| DEBUG: Staging files from

/home/local/rpi2_2015-03-05/tmp/work/i686-linux/gdk-pixbuf-native/2.30.8-r0/sysroot-destdir/home/local/rpi2_2015-03-05/tmp/sysroots/i686-linux to /home/local/rpi2_2015-03-05/tmp/sysroots/i686-linux
| DEBUG: Executing shell function pixbufcache_sstate_postinst
| g_module_open() failed for

/home/local/rpi2_2015-03-05/tmp/sysroots/i686-linux/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so:
libharfbuzz.so.0: cannot open shared object file: No such file or
directory

Quoted 5 lines

It seems that [at least] gdk-pixbuf-native needs harfbuzz-native I looked at the recipe, but it's not 100% obvious to me how to add this, especially w.r.t. all of the PACKAGECONFIG options.

Guidance?

I had similar failures[1] at O.S. Systems autobuilder and rebuilding made it work.

Quoted 9 lines

1.
http://ci.ossystems.com.br/view/FSL%20Community%20BSP%20-%20master-next/job/fsl-community-bsp-master-next_wayland-imx28evk/827/console

The builds are now succeeding but I did no change to fix it. This seems like a race for me.

I tried very hard to reproduce the issue locally at my laptop without success. Do you can reliably reproduce it?

Quoted 8 lines

Yes, I had a full tree and this rebuild was kicked off by a meta-data update. Once it happened, I tried this:
% bitbake harfbuzz-native gdk-pixbuf-native -c cleansstate % bitbake gdk-pixbuf-native
failed. However the manual sequence
% bitbake harfbuzz-native
% bitbake gdk-pixbuf-native
succeeded.

Quoted 2 lines

I still do not reproduce it :-(

It seems to be a host [contamination?] issue. I get this error on a build host that does not have libharfbuzz.so installed. On a build host which does, there is no error.

Note that it is only for the native package, so perhaps that's where the dependency needs to be updated/checked (hence my original query)

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#5 lore raw

Hello Gary,

Quoted 7 lines · Gary Thomas

It seems to be a host [contamination?] issue. I get this error on a build host that does not have libharfbuzz.so installed. On a build host which does, there is no error.

Note that it is only for the native package, so perhaps that's where the dependency needs to be updated/checked (hence my original query)

Thanks for helping to reproduce it however it always work for me.

One thing I noticed is that the svg pixbuf backend is provided by librsvg and the error seems to come from it. However, looking at the dependencies it seems the harfbuzz dependency comes from 'pango'.

I am clueless about how to debug it. Richard, any hints?

Signature · 3 lines
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
#6 lore raw
In reply to Gary Thomas
Quoted 50 lines · Gary Thomas
Quoted 46 lines · Otavio Salvador
Quoted 44 lines · Gary Thomas
Quoted 25 lines · Otavio Salvador
Quoted 13 lines · Gary Thomas

When building gdk-pixbuf-native, I got this error:
| DEBUG: Staging files from

/home/local/rpi2_2015-03-05/tmp/work/i686-linux/gdk-pixbuf-native/2.30.8-r0/sysroot-destdir/home/local/rpi2_2015-03-05/tmp/sysroots/i686-linux to /home/local/rpi2_2015-03-05/tmp/sysroots/i686-linux
| DEBUG: Executing shell function pixbufcache_sstate_postinst
| g_module_open() failed for

/home/local/rpi2_2015-03-05/tmp/sysroots/i686-linux/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so:
libharfbuzz.so.0: cannot open shared object file: No such file or
directory

Quoted 5 lines

It seems that [at least] gdk-pixbuf-native needs harfbuzz-native I looked at the recipe, but it's not 100% obvious to me how to add this, especially w.r.t. all of the PACKAGECONFIG options.

Guidance?

I had similar failures[1] at O.S. Systems autobuilder and rebuilding made it work.

Quoted 9 lines

1.
http://ci.ossystems.com.br/view/FSL%20Community%20BSP%20-%20master-next/job/fsl-community-bsp-master-next_wayland-imx28evk/827/console

The builds are now succeeding but I did no change to fix it. This seems like a race for me.

I tried very hard to reproduce the issue locally at my laptop without success. Do you can reliably reproduce it?

Yes, I had a full tree and this rebuild was kicked off by a meta-data update. Once it happened, I tried this:
% bitbake harfbuzz-native gdk-pixbuf-native -c cleansstate % bitbake gdk-pixbuf-native
failed. However the manual sequence
% bitbake harfbuzz-native
% bitbake gdk-pixbuf-native
succeeded.

Quoted 7 lines
Quoted 2 lines

I still do not reproduce it :-(

It seems to be a host [contamination?] issue. I get this error on a build host that does not have libharfbuzz.so installed. On a build host which does, there is no error.

its normal for build to use libraries from build host for native tools. If we want to abstract that from host deps then creating a dependency on package-native is the way

Quoted 14 lines

Note that it is only for the native package, so perhaps that's where the dependency needs to be updated/checked (hence my original query)

Signature · 9 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
#7 lore raw
Quoted 2 lines · Khem Raj

its normal for build to use libraries from build host for native tools. If we want to abstract that from host deps then creating a dependency on package-native is the way

The point is this seems to be not deterministic. Sometimes this works, others it does not.

Signature · 3 lines
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
#8 lore raw
Quoted 9 lines · Otavio Salvador
Quoted 2 lines · Khem Raj

its normal for build to use libraries from build host for native tools. If we want to abstract that from host deps then creating a dependency on package-native is the way

The point is this seems to be not deterministic. Sometimes this works, others it does not.

you can debug it by moving the dependency from default task to earlier or later task and see where its failing sometimes some configure might run where we do not expect it to.

Quoted 5 lines
Signature · 4 lines
-- 
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
#9 lore raw
Quoted 7 lines · Khem Raj
Quoted 7 lines · Otavio Salvador
Quoted 2 lines · Khem Raj

its normal for build to use libraries from build host for native tools. If we want to abstract that from host deps then creating a dependency on package-native is the way

Quoted 6 lines
Quoted 2 lines

The point is this seems to be not deterministic. Sometimes this works, others it does not.

you can debug it by moving the dependency from default task to earlier or later task and see where its failing sometimes some configure might run where we do not expect it to.

I cannot reproduce it locally, just in my autobuilder and now it does not fail anymore. Gary is the only one seeing it.

Signature · 3 lines
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
#10 lore raw
Quoted 12 lines · Otavio Salvador
Quoted 11 lines · Khem Raj
Quoted 9 lines · Otavio Salvador
Quoted 2 lines · Khem Raj

its normal for build to use libraries from build host for native tools. If we want to abstract that from host deps then creating a dependency on package-native is the way

The point is this seems to be not deterministic. Sometimes this works, others it does not.

Quoted 5 lines
Quoted 2 lines

you can debug it by moving the dependency from default task to earlier or later task and see where its failing sometimes some configure might run where we do not expect it to.

I cannot reproduce it locally, just in my autobuilder and now it does not fail anymore. Gary is the only one seeing it.

I think the way to reproduce this is to build gdk-pixbuf-native along with harfbuzz-native and librsvg-native, then make a small change to the gdk-pixbuf recipe that would cause it to rebuild, clean harfbuzz-native and then build gdk-pixbuf.

I'm going to send out a patch which at least unblocked my own builds when I ran into this locally.

Cheers,

Richard

#11 lore raw
In reply to Gary Thomas
Quoted 4 lines · Gary Thomas

| g_module_open() failed for /home/local/rpi2_2015-03-05/tmp/sysroots/i686-linux/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so:
libharfbuzz.so.0: cannot open shared object file: No such file or directory

Here's my guess at what happened. Starting state was a complete sysroot with at least gdk-pixbuf, harfbuzz, librsvg installed. Yhen you did a new build. At least harfbuzz and gdk-pixbuf were being rebuilt, so purged from the sysroot. gdk-pixbuf rebuilt, installed into sysroot, ran the update-cache script which then found the rsvg loader from the previous sysroot that was not (yet?) removed that links to harfbuzz. Harfbuzz still isn't reinstall yet, linkage fails.

Is this with master or a release? There are changes in master compared to fido to improve situations like this.

Ross

#12 lore raw
Quoted 7 lines · Ross

On 22 September 2015 at 16:28, Gary Thomas <[email protected] <mailto:[email protected]>> wrote:

| g_module_open() failed for /home/local/rpi2_2015-03-05/tmp/sysroots/i686-linux/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so: libharfbuzz.so.0: cannot open shared object file: No such file or directory

Quoted 5 lines

Here's my guess at what happened. Starting state was a complete sysroot with at least gdk-pixbuf, harfbuzz, librsvg installed. Yhen you did a new build. At least harfbuzz and gdk-pixbuf were being rebuilt, so purged from the sysroot. gdk-pixbuf rebuilt, installed into sysroot, ran the update-cache script which then found the rsvg loader from the previous sysroot that was not (yet?) removed that links to harfbuzz. Harfbuzz still isn't reinstall yet, linkage fails.

Is this with master or a release? There are changes in master compared to fido to improve situations like this.

Master updated 2015-09-22 (7b86c771c80d0759c2ca0e57c46c4c966f89c49e)

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------