OverC / meta-overc

OverC + cubes distribution layer
MIT License
13 stars 28 forks source link

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

Open outbackdingo opened 4 years ago

outbackdingo commented 4 years ago

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 ^~~ 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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

I'm happy to get pull requests.

There is no one common packagelist, since the requirements of the components is so diverse, we inevitably end up with too much installed in some places. There has been some factoring though, and you can see overc-common-pkgdefs.inc, and we tend to use the dom0 packagegroup as a baseline of functionality for other containers .. but dom0 is kept small.

So for something like you are wondering, a new packagelist in the overc-common-pkgdefs.inc would be the right place, with the other containers inheriting the list.

Bruce

On Mon, Jul 20, 2020 at 5:23 AM outbackdingo notifications@github.com wrote:

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?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

--