Skip to contentSkip to conversation

Trouble building mono (when building an image)

DISCUSSION [email protected] 2 participants 4 messages Jan 16, 2020 – Jan 17, 2020

lore
Share & tools
lore
#0 lore raw

I'm trying to include mono in my image. I can successfully build the mono recipe by itself, but when I try to build my image it fails with the following error message:
Error:
Problem: package test-sw-9.1.1b3-r0.aarch64 requires mono, but none of the providers can be installed
- conflicting requests
- nothing provides mono-gac needed by mono-5.12.0.226-r0.aarch64

This is a bit confusing since:
a) I can build mono by itself
b) the mono recipe should provide the mono-gac package

If I run 'bitbake -e mono | grep PACKAGES' I get the output:
PACKAGES="mono-dbg mono-doc mono-staticdev mono-locale mono-libs mono-dev  mono-config mono-binaries mono-libs-core  mono-libs-2.0 mono-libs-3.5 mono-libs-4.0 mono-libs-4.5  mono-api-4.5.1 mono-api-4.5.2 mono-api-4.6 mono-api-4.6.1 mono-api-4.6.2 mono-api-4.7  mono-libs-compat-2.0 mono-gac mono-configuration-crypto  mono-libs-monodoc mono-xbuild  mono-lldb  mono  mono-profiler " PACKAGESPLITFUNCS="                 package_do_split_locales                 populate_packages"
PACKAGES_DYNAMIC="^mono-locale-.*"

So it would seem that bitbake agrees that mono provides mono-gac. The recipe for test-sw is a binary package, and depends on mono via:
RDEPENDS_${PN} = " \
...
mono \
"
I am quite new to Yocto, so it could be something very basic that I am missing. I can actually build the image on my regular development machine, but when setting up the build on a second machine I started getting this error. I have verified that the new machine is using the same revisions of all layers, and there is nothing funny in the local.conf on my dev-machine. Any tips on what could be wrong would be most welcome!

I am using the Sumo release of Yocto.

Thanks,
Pelle

#1 lore raw

Just a quick thing for you to try: can you delete /usr/bin/monodis from your host and retry building? (remember to clean sstate for your package)

Alex

Quoted 48 lines · On Thu, 16 Jan 2020 at 14:10, <[email protected]> wrote:

I'm trying to include mono in my image. I can successfully build the mono recipe by itself, but when I try to build my image it fails with the following error message:
Error:
Problem: package test-sw-9.1.1b3-r0.aarch64 requires mono, but none of
the providers can be installed
- conflicting requests
- nothing provides mono-gac needed by mono-5.12.0.226-r0.aarch64

This is a bit confusing since:
a) I can build mono by itself
b) the mono recipe should provide the mono-gac package

If I run 'bitbake -e mono | grep PACKAGES' I get the output:
PACKAGES="mono-dbg mono-doc mono-staticdev mono-locale mono-libs mono-dev mono-config mono-binaries mono-libs-core mono-libs-2.0 mono-libs-3.5 mono-libs-4.0 mono-libs-4.5 mono-api-4.5.1 mono-api-4.5.2 mono-api-4.6 mono-api-4.6.1 mono-api-4.6.2 mono-api-4.7 mono-libs-compat-2.0 mono-gac mono-configuration-crypto mono-libs-monodoc mono-xbuild mono-lldb mono mono-profiler "
PACKAGESPLITFUNCS="
package_do_split_locales populate_packages"
PACKAGES_DYNAMIC="^mono-locale-.*"

So it would seem that bitbake agrees that mono provides mono-gac. The recipe for test-sw is a binary package, and depends on mono via:
RDEPENDS_${PN} = " \
...
mono \
"
I am quite new to Yocto, so it could be something very basic that I am missing. I can actually build the image on my regular development machine, but when setting up the build on a second machine I started getting this error. I have verified that the new machine is using the same revisions of all layers, and there is nothing funny in the local.conf on my dev-machine. Any tips on what could be wrong would be most welcome!

I am using the Sumo release of Yocto.

Thanks,
Pelle

#2 lore raw
Quoted 2 lines

Just a quick thing for you to try: can you delete /usr/bin/monodis from your host and retry building? (remember to clean sstate for your package)

It seems like I do not have a /usr/bin/monodis on my host, unfortunately.

#3 lore raw

Subject: RE: [yocto] Trouble building mono (when building an image)

Quoted 7 lines
Quoted 4 lines

Just a quick thing for you to try: can you delete /usr/bin/monodis from your host and retry building? (remember to clean sstate for your package)

It seems like I do not have a /usr/bin/monodis on my host, unfortunately.

I managed to resolve this issue, not sure if it's the correct way or not, by creating a .bbappend file for mono which sets PACKAGECONFIG = "".