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

cube-builder missing libomp cant build yocto/meta-overc #291

Open
outbackdingo opened this issue Jul 17, 2020 · 4 comments
Open

cube-builder missing libomp cant build yocto/meta-overc #291

outbackdingo opened this issue Jul 17, 2020 · 4 comments

Comments

@outbackdingo
Copy link

cube-builder appears to be missing libomp, as it cannot build poky meta-overc

| ../x86_64-linux-libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I../../git -I../include/ -I../../git/misc -isystem/home/dingo/overc/build/tmp/work/x86_64-linux/rpm-native/1_4.15.1-r0/recipe-sysroot-native/usr/include -I/home/dingo/overc/build/tmp/work/x86_64-linux/rpm-native/1_4.15.1-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include -D_REENTRANT -Wall -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -fno-strict-aliasing -fstack-protector -Wempty-body -isystem/home/dingo/overc/build/tmp/work/x86_64-linux/rpm-native/1_4.15.1-r0/recipe-sysroot-native/usr/include -O2 -pipe -c -o spec.lo ../../git/build/spec.c
| ../../git/build/parseSpec.c:10:10: fatal error: omp.h: No such file or directory
| 10 | #include <omp.h>
| | ^~~~~~~
| compilation terminated.
| make[2]: *** [Makefile:642: parseSpec.lo] Error 1
| make[2]: *** Waiting for unfinished jobs....
| x86_64-linux-libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I../../git -I../include/ -I../../git/misc -isystem/home/dingo/overc/build/tmp/work/x86_64-linux/rpm-native/1_4.15.1-r0/recipe-sysroot-native/usr/include -I/home/dingo/overc/build/tmp/work/x86_64-linux/rpm-native/1_4.15.1-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include -D_REENTRANT -Wall -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -fno-strict-aliasing -fstack-protector -Wempty-body -isystem/home/dingo/overc/build/tmp/work/x86_64-linux/rpm-native/1_4.15.1-r0/recipe-sysroot-native/usr/include -O2 -pipe -c ../../git/build/spec.c -fPIC -DPIC -o .libs/spec.o
| make[2]: Leaving directory '/home/dingo/overc/build/tmp/work/x86_64-linux/rpm-native/1_4.15.1-r0/build/build'
| make[1]: *** [Makefile:1359: all-recursive] Error 1
| make[1]: Leaving directory '/home/dingo/overc/build/tmp/work/x86_64-linux/rpm-native/1_4.15.1-r0/build'
| make: *** [Makefile:788: all] Error 2
| WARNING: /home/dingo/overc/build/tmp/work/x86_64-linux/rpm-native/1_4.15.1-r0/temp/run.do_compile.825994:1 exit 1 from 'exit 1'
|
ERROR: Task (virtual:native:/home/dingo/overc/poky/meta/recipes-devtools/rpm/rpm_4.15.1.bb:do_compile) failed with exit code '1'

@outbackdingo
Copy link
Author

ive worked through a temporary fix for cube-builder, adding the following to conf/local.conf adds the required missing pieces
so that when you generate an install image, cube builder from that image can actually rebuild itself. 1st issue was omp.h missing header, the second was
*** The system does not provide a working iconv function. Please
| *** install a suitable library; for example GNU Libiconv which is
| *** available at:
| *** https://ftp.gnu.org/gnu/libiconv/

the below additions resolve... the self hosting builder issue

IMAGE_INSTALL_append = " libgomp libgomp-dev libgomp-staticdev glibc-gconvs glibc-utils"

@zeddii
Copy link
Contributor

zeddii commented Jul 19, 2020

Thanks for the update. Easy enough to add those to the default package list. I'll keep this open as a reminder to get that done.

@outbackdingo
Copy link
Author

I can forward patches / pull requests if its easier ...willing to help out ... also which cube/bb recipe should i add to for it to be available in all cubes? essential ? say i wanted node / npm availble to desktop / builder / k8s is there a single place to add it in the bb recipes?

@zeddii
Copy link
Contributor

zeddii commented Jul 20, 2020 via email

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