Skip to contentSkip to conversation

qemu.inc: Non deterministic compile of qemu

PATCH In review Jason Wessel 4 participants 4 messages Mar 1, 2013 – Mar 2, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qemu.inc: Non deterministic compile of qemu

When you using a qemuppc target and sstate you might end up with the problem:

qemu-system-ppc: error while loading shared libraries:
libfdt.so.1: cannot open shared object file: No such file or directory

The way you can force this to happen assuming you are using sstate is as follows:

bitbake dtc-native
bitbake -c cleansstate qemu-native
bitbake qemu-native
bitbake -c clean dtc-native

Now go start qemu and it will fail. The solution is to always build the dtc libraries since they are used and needed by the qemuppc simulator.

---
 meta/recipes-devtools/qemu/qemu.inc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
meta/recipes-devtools/qemu/qemu.inc +2 -2
index 6c44b31..eb60d43 100644
@@ -2,8 +2,8 @@ DESCRIPTION = "open source processor emulator"
 HOMEPAGE = "http://qemu.org"
 LICENSE = "GPLv2 & LGPLv2.1"
 DEPENDS = "glib-2.0 zlib alsa-lib virtual/libx11 pixman"
-DEPENDS_class-native = "zlib-native alsa-lib-native glib-2.0-native pixman-native"
-DEPENDS_class-nativesdk = "nativesdk-zlib nativesdk-libsdl nativesdk-glib-2.0 nativesdk-pixman"
+DEPENDS_class-native = "zlib-native alsa-lib-native glib-2.0-native pixman-native dtc-native"
+DEPENDS_class-nativesdk = "nativesdk-zlib nativesdk-libsdl nativesdk-glib-2.0 nativesdk-pixman nativesdk-dtc"
 RDEPENDS_${PN}_class-nativesdk = "nativesdk-libsdl"
 
 require qemu-targets.inc
Signature · 1 line
1.7.1
Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · Jason Wessel

When you using a qemuppc target and sstate you might end up with the problem:

qemu-system-ppc: error while loading shared libraries:
libfdt.so.1: cannot open shared object file: No such file or directory

The way you can force this to happen assuming you are using sstate is as follows:

Quoted 8 lines

bitbake dtc-native
bitbake -c cleansstate qemu-native
bitbake qemu-native
bitbake -c clean dtc-native

Now go start qemu and it will fail. The solution is to always build the dtc libraries since they are used and needed by the qemuppc simulator.

I am carrying a local fix for same reason

Quoted 29 lines

---
meta/recipes-devtools/qemu/qemu.inc | 4 ++--

1 files changed, 2 insertions(+), 2 deletions(-)
meta/recipes-devtools/qemu/qemu.inc +0 -0
index 6c44b31..eb60d43 100644
@@ -2,8 +2,8 @@ DESCRIPTION = "open source processor emulator"

HOMEPAGE = "http://qemu.org"
LICENSE = "GPLv2 & LGPLv2.1"
DEPENDS = "glib-2.0 zlib alsa-lib virtual/libx11 pixman"

meta/recipes-devtools/qemu/qemu.inc +2 -2
-DEPENDS_class-native = "zlib-native alsa-lib-native glib-2.0-native pixman-native"
-DEPENDS_class-nativesdk = "nativesdk-zlib nativesdk-libsdl nativesdk-glib-2.0 nativesdk-pixman"
+DEPENDS_class-native = "zlib-native alsa-lib-native glib-2.0-native pixman-native dtc-native"
+DEPENDS_class-nativesdk = "nativesdk-zlib nativesdk-libsdl nativesdk-glib-2.0 nativesdk-pixman nativesdk-dtc"

RDEPENDS_${PN}_class-nativesdk = "nativesdk-libsdl"

require qemu-targets.inc

Signature · 7 lines
1.7.1


_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
#2 lore raw
In reply to Jason Wessel
Quoted 8 lines · Jason Wessel

When you using a qemuppc target and sstate you might end up with the problem:

meta/recipes-devtools/qemu/qemu.inc +0 -0
index 6c44b31..eb60d43 100644

meta/recipes-devtools/qemu/qemu.inc DESCRIPTION = "open source processor emulator" · line 7

Quoted 8 lines
meta/recipes-devtools/qemu/qemu.inc +2 -2
@@ -2,8 +2,8 @@ DESCRIPTION = "open source processor emulator"
 HOMEPAGE = "http://qemu.org"
 LICENSE = "GPLv2 & LGPLv2.1"
 DEPENDS = "glib-2.0 zlib alsa-lib virtual/libx11 pixman"
-DEPENDS_class-native = "zlib-native alsa-lib-native glib-2.0-native pixman-native"
-DEPENDS_class-nativesdk = "nativesdk-zlib nativesdk-libsdl nativesdk-glib-2.0 nativesdk-pixman"
+DEPENDS_class-native = "zlib-native alsa-lib-native glib-2.0-native pixman-native dtc-native"
+DEPENDS_class-nativesdk = "nativesdk-zlib nativesdk-libsdl nativesdk-glib-2.0 nativesdk-pixman nativesdk-dtc"
 RDEPENDS_${PN}_class-nativesdk = "nativesdk-libsdl"

Is there a way to instrument this in such a way that these depends are included only when the target machine is qemuppc? Some sort of @machine_depends or something?

#3 lore raw
Quoted 13 lines · Trevor Woerner
Quoted 12 lines · Jason Wessel

When you using a qemuppc target and sstate you might end up with the problem:

meta/recipes-devtools/qemu/qemu.inc +0 -1
index 6c44b31..eb60d43 100644
@@ -2,8 +2,8 @@ DESCRIPTION = "open source processor emulator"
 HOMEPAGE = "http://qemu.org"
 LICENSE = "GPLv2 & LGPLv2.1"
 DEPENDS = "glib-2.0 zlib alsa-lib virtual/libx11 pixman"
-DEPENDS_class-native = "zlib-native alsa-lib-native glib-2.0-native pixman-native"
Quoted 8 lines

meta/recipes-devtools/qemu/qemu.inc DESCRIPTION = "open source processor emulator" · line 7

Quoted 4 lines
meta/recipes-devtools/qemu/qemu.inc +2 -1
-DEPENDS_class-nativesdk = "nativesdk-zlib nativesdk-libsdl nativesdk-glib-2.0 nativesdk-pixman"
+DEPENDS_class-native = "zlib-native alsa-lib-native glib-2.0-native pixman-native dtc-native"
+DEPENDS_class-nativesdk = "nativesdk-zlib nativesdk-libsdl nativesdk-glib-2.0 nativesdk-pixman nativesdk-dtc"
 RDEPENDS_${PN}_class-nativesdk = "nativesdk-libsdl"

Is there a way to instrument this in such a way that these depends are included only when the target machine is qemuppc? Some sort of @machine_depends or something?

You could do that but it would mean you'd have a -native recipe rebuilding when changing machine. I'd not recommend it.

Cheers,

Richard