crops / poky-container

A container image that is able to run bitbake/poky. It has helpers to create users and groups within the container. This is so that the output generated in the container will be readable by the user on the host.
GNU General Public License v2.0
204 stars 95 forks source link

poky container missing a lot of dependencies #94

Closed minecraft2048 closed 2 months ago

minecraft2048 commented 1 year ago

I'm using crops/poky:latest and crops/poky:ubuntu-20.04 and my build failed at native tool compilation

Some of the errors:

| DEBUG: Python function relocatable_binaries_preprocess finished
| DEBUG: Executing shell function relocatable_native_pcfiles
| DEBUG: Shell function relocatable_native_pcfiles finished
| DEBUG: Python function do_populate_sysroot finished
| DEBUG: Executing python function do_qa_staging
| NOTE: QA checking staging
| DEBUG: Python function do_qa_staging finished
| DEBUG: Executing python function sstate_task_postfunc
| DEBUG: Executing python function do_siteconfig
| DEBUG: Executing python function siteconfig_do_siteconfig
| DEBUG: Staging files from /workdir/build/tmp-glibc/work/x86_64-linux/ncurses-native/6.3+20220423-r0/sysroot-destdir/workdir/build/tmp-glibc/work/x86_64-linux/ncurses-native/6.3+20220423-r0/recipe-sysroot-native to /workdir/build/tmp-glibc/sysroots-components/x86_64/ncurses-native
| DEBUG: Executing python function buildhistory_emit_pkghistory
| DEBUG: Executing shell function buildhistory_emit_sysroot
| DEBUG: Shell function buildhistory_emit_sysroot finished
| DEBUG: Python function buildhistory_emit_pkghistory finished
| DEBUG: Executing shell function do_siteconfig_gencache
| autom4te: error: need GNU m4 1.4 or later: m4
| WARNING: /workdir/build/tmp-glibc/work/x86_64-linux/ncurses-native/6.3+20220423-r0/temp/run.do_siteconfig_gencache.315:160 exit 1 from 'autoconf'
| WARNING: Backtrace (BB generated script):
|       #1: siteconfig_do_siteconfig_gencache, /workdir/build/tmp-glibc/work/x86_64-linux/ncurses-native/6.3+20220423-r0/temp/run.do_siteconfig_gencache.315, line 160
|       #2: do_siteconfig_gencache, /workdir/build/tmp-glibc/work/x86_64-linux/ncurses-native/6.3+20220423-r0/temp/run.do_siteconfig_gencache.315, line 151
|       #3: main, /workdir/build/tmp-glibc/work/x86_64-linux/ncurses-native/6.3+20220423-r0/temp/run.do_siteconfig_gencache.315, line 170
| DEBUG: Python function siteconfig_do_siteconfig finished
| DEBUG: Python function do_siteconfig finished
| DEBUG: Python function sstate_task_postfunc finished
ERROR: Task (virtual:native:/workdir/poky/meta/recipes-core/ncurses/ncurses_6.3+20220423.bb:do_populate_sysroot) failed with exit code '1'
ERROR: file-native-5.41-r0 do_configure: autoreconf execution failed.
ERROR: file-native-5.41-r0 do_configure: ExecutionError('/workdir/build/tmp-glibc/work/x86_64-linux/file-native/5.41-r0/temp/run.do_configure.319', 1, None, None)
ERROR: Logfile of failure stored in: /workdir/build/tmp-glibc/work/x86_64-linux/file-native/5.41-r0/temp/log.do_configure.319
1
| /workdir/build/tmp-glibc/hosttools/ld: ../libelf/libelf.so: undefined reference to `fstat@GLIBC_2.33'
| /workdir/build/tmp-glibc/hosttools/ld: ../libdw/libdw.so: undefined reference to `pthread_rwlock_unlock@GLIBC_2.34'
| /workdir/build/tmp-glibc/hosttools/ld: ../libdw/libdw.so: undefined reference to `pthread_rwlock_destroy@GLIBC_2.34'
| /workdir/build/tmp-glibc/hosttools/ld: ../libdw/libdw.so: undefined reference to `pthread_rwlock_wrlock@GLIBC_2.34'
| /workdir/build/tmp-glibc/hosttools/ld: ../libdw/libdw.so: undefined reference to `pthread_rwlock_tryrdlock@GLIBC_2.34'
| /workdir/build/tmp-glibc/hosttools/ld: ../libdw/libdw.so: undefined reference to `pthread_rwlock_init@GLIBC_2.34'
| /workdir/build/tmp-glibc/hosttools/ld: ../libdw/libdw.so: undefined reference to `stat@GLIBC_2.33'
| /workdir/build/tmp-glibc/hosttools/ld: ../libdw/libdw.so: undefined reference to `pthread_rwlock_rdlock@GLIBC_2.34'
| collect2: error: ld returned 1 exit status
| make[2]: *** [Makefile:702: stack] Error 1
| /workdir/build/tmp-glibc/hosttools/ld: ../libdw/libdw.so: undefined reference to `fstat@GLIBC_2.33'
| /workdir/build/tmp-glibc/hosttools/ld: ../libdw/libdw.so: undefined reference to `pthread_rwlock_unlock@GLIBC_2.34'
| /workdir/build/tmp-glibc/hosttools/ld: ../libdw/libdw.so: undefined reference to `pthread_rwlock_destroy@GLIBC_2.34'
| /workdir/build/tmp-glibc/hosttools/ld: ../libdw/libdw.so: undefined reference to `pthread_rwlock_wrlock@GLIBC_2.34'
| /workdir/build/tmp-glibc/hosttools/ld: ../libdw/libdw.so: undefined reference to `pthread_rwlock_tryrdlock@GLIBC_2.34'
| /workdir/build/tmp-glibc/hosttools/ld: ../libdw/libdw.so: undefined reference to `pthread_rwlock_init@GLIBC_2.34'
| /workdir/build/tmp-glibc/hosttools/ld: ../libdw/libdw.so: undefined reference to `stat@GLIBC_2.33'
| /workdir/build/tmp-glibc/hosttools/ld: ../libdw/libdw.so: undefined reference to `pthread_rwlock_rdlock@GLIBC_2.34'
| collect2: error: ld returned 1 exit status
| make[2]: *** [Makefile:682: nm] Error 1
| make[1]: *** [Makefile:525: all-recursive] Error 1
| make: *** [Makefile:441: all] Error 2
| ERROR: oe_runmake failed
| WARNING: /workdir/build/tmp-glibc/work/x86_64-linux/elfutils-native/0.186-r0/temp/run.do_compile.316:182 exit 1 from 'exit 1'
| WARNING: Backtrace (BB generated script):
|       #1: bbfatal_log, /workdir/build/tmp-glibc/work/x86_64-linux/elfutils-native/0.186-r0/temp/run.do_compile.316, line 182
|       #2: die, /workdir/build/tmp-glibc/work/x86_64-linux/elfutils-native/0.186-r0/temp/run.do_compile.316, line 166
|       #3: oe_runmake, /workdir/build/tmp-glibc/work/x86_64-linux/elfutils-native/0.186-r0/temp/run.do_compile.316, line 161
|       #4: autotools_do_compile, /workdir/build/tmp-glibc/work/x86_64-linux/elfutils-native/0.186-r0/temp/run.do_compile.316, line 156
|       #5: do_compile, /workdir/build/tmp-glibc/work/x86_64-linux/elfutils-native/0.186-r0/temp/run.do_compile.316, line 151
|       #6: main, /workdir/build/tmp-glibc/work/x86_64-linux/elfutils-native/0.186-r0/temp/run.do_compile.316, line 195
ERROR: Task (virtual:native:/workdir/poky/meta/recipes-devtools/elfutils/elfutils_0.186.bb:do_compile) failed with exit code '1'
ERROR: ncurses-native-6.3+20220423-r0 do_populate_sysroot: ExecutionError('/workdir/build/tmp-glibc/work/x86_64-linux/ncurses-native/6.3+20220423-r0/temp/run.do_siteconfig_gencache.315', 1, None, None)
ERROR: Logfile of failure stored in: /workdir/build/tmp-glibc/work/x86_64-linux/ncurses-native/6.3+20220423-r0/temp/log.do_populate_sysroot.315
moto-timo commented 1 year ago

Please tell us which Yocto Project release you are using, which layers you have added and what image/target you are trying to build. Saying a vague statement like "missing a lot of dependencies" does not help us help you. We need to know your build environment.

moto-timo commented 2 months ago

Closing this because of lack of response from the original reporter.