All of lore.kernel.org
 help / color / mirror / Atom feed
* Trouble building mono (when building an image)
@ 2020-01-16 13:10 pelle.windestam
  2020-01-16 13:40 ` [yocto] " Alexander Kanavin
  0 siblings, 1 reply; 4+ messages in thread
From: pelle.windestam @ 2020-01-16 13:10 UTC (permalink / raw)
  To: yocto

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

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

[-- Attachment #2: Type: text/html, Size: 2102 bytes --]

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

* Re: [yocto] Trouble building mono (when building an image)
  2020-01-16 13:10 Trouble building mono (when building an image) pelle.windestam
@ 2020-01-16 13:40 ` Alexander Kanavin
  2020-01-16 13:56   ` pelle.windestam
  0 siblings, 1 reply; 4+ messages in thread
From: Alexander Kanavin @ 2020-01-16 13:40 UTC (permalink / raw)
  To: pelle.windestam; +Cc: yocto

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

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

On Thu, 16 Jan 2020 at 14:10, <pelle.windestam@tagmaster.com> 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
>
>
>
>
>
> 
>

[-- Attachment #2: Type: text/html, Size: 2469 bytes --]

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

* Re: [yocto] Trouble building mono (when building an image)
  2020-01-16 13:40 ` [yocto] " Alexander Kanavin
@ 2020-01-16 13:56   ` pelle.windestam
  2020-01-17  8:13     ` Pelle Windestam
  0 siblings, 1 reply; 4+ messages in thread
From: pelle.windestam @ 2020-01-16 13:56 UTC (permalink / raw)
  To: Alexander Kanavin; +Cc: yocto

> 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.



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

* Re: [yocto] Trouble building mono (when building an image)
  2020-01-16 13:56   ` pelle.windestam
@ 2020-01-17  8:13     ` Pelle Windestam
  0 siblings, 0 replies; 4+ messages in thread
From: Pelle Windestam @ 2020-01-17  8:13 UTC (permalink / raw)
  To: Alexander Kanavin; +Cc: yocto

Subject: RE: [yocto] Trouble building mono (when building an image)
> 
> > 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 = "".

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

end of thread, other threads:[~2020-01-17  8:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-16 13:10 Trouble building mono (when building an image) pelle.windestam
2020-01-16 13:40 ` [yocto] " Alexander Kanavin
2020-01-16 13:56   ` pelle.windestam
2020-01-17  8:13     ` Pelle Windestam

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.