Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package build errors #1

Open
thinhp opened this issue Aug 13, 2018 · 1 comment
Open

Package build errors #1

thinhp opened this issue Aug 13, 2018 · 1 comment

Comments

@thinhp
Copy link

thinhp commented Aug 13, 2018

Hi,
I try to build this package by executing bitbake phosphor-pid-control and have several errors as below:

ERROR: Nothing PROVIDES 'virtual/phosphor-fans-sensor-inventory' (but /AMP/thhpham/git/openbmc/meta-phosphor/common/recipes-phosphor/fans/phosphor-pid-control.bb DEPENDS on or otherwise
requires it). Close matches:
virtual/phosphor-ipmi-sensor-inventory
virtual/phosphor-ipmi-fru-inventory
virtual/phosphor-ipmi-fru-read-inventory
ERROR: Required build target 'phosphor-pid-control' has no buildable providers.
Missing or unbuildable dependency chain was: ['phosphor-pid-control', 'virtual/phosphor-fans-sensor-inventory']

So I create a dummy bb file to provide phosphor-fans-sensor-inventory like below to temporarily by-pass this build error

SUMMARY = "Fan sensors inventory"
PR = "r1"

inherit native
inherit obmc-phosphor-license
inherit phosphor-dbus-monitor

PROVIDES += "virtual/phosphor-fans-sensor-inventory"

Then I see another error with qemu:

ERROR: qemu-native-2.11.1-r0 do_compile: oe_runmake failed
ERROR: qemu-native-2.11.1-r0 do_compile: Function failed: do_compile (log file is located at /AMP/thhpham/git/openbmc/build/tmp/work/x86_64-linux/qemu-native/2.11.1-r0/temp/log.do_compile.30844)
ERROR: Logfile of failure stored in: /AMP/thhpham/git/openbmc/build/tmp/work/x86_64-linux/qemu-native/2.11.1-r0/temp/log.do_compile.30844
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 8 LD=ld AR=ar OBJCOPY=objcopy LDFLAGS=-L/AMP/thhpham/git/openbmc/build/tmp/work/x86_64-linux/qemu-native/2.11.1-r0/recipe-sysroot-native/usr/lib -L/AMP/thhpham/git/openbmc/build/tmp/work/x86_64-linux/qemu-native/2.11.1-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/AMP/thhpham/git/openbmc/build/tmp/work/x86_64-linux/qemu-native/2.11.1-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/AMP/thhpham/git/openbmc/build/tmp/work/x86_64-linux/qemu-native/2.11.1-r0/recipe-sysroot-native/lib -Wl,-rpath,/AMP/thhpham/git/openbmc/build/tmp/work/x86_64-linux/qemu-native/2.11.1-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/AMP/thhpham/git/openbmc/build/tmp/work/x86_64-linux/qemu-native/2.11.1-r0/recipe-sysroot-native/lib -Wl,-O1 -fuse-ld=bfd
| make[1]: `/AMP/thhpham/git/openbmc/build/tmp/work/x86_64-linux/qemu-native/2.11.1-r0/build/capstone/libcapstone.a' is up to date.
| CC qemu-keymap.o
| CC block/qcow2-snapshot.o
| CC block/qcow2-cache.o
| CC block/qcow2-bitmap.o
| CC block/qed.o
| CC block/qed-l2-cache.o
| CC block/qed-table.o
| CC block/qed-cluster.o
| /AMP/thhpham/git/openbmc/build/tmp/work/x86_64-linux/qemu-native/2.11.1-r0/qemu-2.11.1/qemu-keymap.c: In function ‘main’:
| /AMP/thhpham/git/openbmc/build/tmp/work/x86_64-linux/qemu-native/2.11.1-r0/qemu-2.11.1/qemu-keymap.c:203:27: error: ‘XKB_CONTEXT_NO_FLAGS’ undeclared (first use in this function)
| ctx = xkb_context_new(XKB_CONTEXT_NO_FLAGS);
| ^
| /AMP/thhpham/git/openbmc/build/tmp/work/x86_64-linux/qemu-native/2.11.1-r0/qemu-2.11.1/qemu-keymap.c:203:27: note: each undeclared identifier is reported only once for each function it appears in
| /AMP/thhpham/git/openbmc/build/tmp/work/x86_64-linux/qemu-native/2.11.1-r0/qemu-2.11.1/qemu-keymap.c:204:50: error: ‘XKB_KEYMAP_COMPILE_NO_FLAGS’ undeclared (first use in this function)
| map = xkb_keymap_new_from_names(ctx, &names, XKB_KEYMAP_COMPILE_NO_FLAGS);
| ^
| /AMP/thhpham/git/openbmc/build/tmp/work/x86_64-linux/qemu-native/2.11.1-r0/qemu-2.11.1/qemu-keymap.c:229:5: warning: implicit declaration of function ‘xkb_keymap_key_for_each’ [-Wimplicit-function-declaration]
| xkb_keymap_key_for_each(map, walk_map, state);
| ^
| /AMP/thhpham/git/openbmc/build/tmp/work/x86_64-linux/qemu-native/2.11.1-r0/qemu-2.11.1/qemu-keymap.c:229:5: warning: nested extern declaration of ‘xkb_keymap_key_for_each’ [-Wnested-externs]
| make: *** [qemu-keymap.o] Error 1
| make: *** Waiting for unfinished jobs....
| ERROR: oe_runmake failed
| WARNING: /AMP/thhpham/git/openbmc/build/tmp/work/x86_64-linux/qemu-native/2.11.1-r0/temp/run.do_compile.30844:1 exit 1 from 'exit 1'
| ERROR: Function failed: do_compile (log file is located at /AMP/thhpham/git/openbmc/build/tmp/work/x86_64-linux/qemu-native/2.11.1-r0/temp/log.do_compile.30844)
ERROR: Task (virtual:native:/AMP/thhpham/git/openbmc/meta/recipes-devtools/qemu/qemu_2.11.1.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2029 tasks of which 2017 didn't need to be rerun and 1 failed.

I don't know if someone has seen these error before. Advices to resolve these errors are appreciated.

SRCREV of phosphor-pid-control in phosphor-pid-control.bb is ba00343.

Thanks in advance,
Thinh

@pstrinkle
Copy link
Member

I've never tried to build for qemu. I'll give it a shot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants