On Wed, Mar 13, 2013 at 8:34 PM, Hans Beckérus <[email protected]>wrote:
> Hi. I just moved from a x86 Ubuntu host to SuSE x86_64. Now I have issues > getting my ARM image to build due to compilation errors in util-linux? > It seems it is the util-linux-native that fails even though I get this in > the end: > > * ERROR: Task 432 > (virtual:native:/home/poky/meta/recipes-core/util-linux/ > util-linux_2.22.2.bb, do_compile) failed with exit code '1'* > > > Here is the actual error reported from the log: > > | *gcc -std=gnu99 -DHAVE_CONFIG_H -I. -include config.h -I./include > -DLOCALEDIR=\"/home/poky/build/tmp/sysroots/x86_64-linux/usr/share/locale\" > -D_PATH_LOCALSTATEDIR=\"/home/poky/build/tmp/sysroots/x86_64-linux/var\" > -isystem/home/poky/build/tmp/sysroots/x86_64-linux/usr/include > -fsigned-char -fno-common -Wall -Werror=sequence-point -Wextra > -Wmissing-declarations -Wmissing-parameter-type -Wmissing-prototypes > -Wno-missing-field-initializers -Wredundant-decls -Wsign-compare > -Wtype-limits -Wuninitialized -Wunused-parameter -Wunused-result > -Wunused-variable > -isystem/home/poky/build/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe -c > -o misc-utils/procs.o misc-utils/procs.c > | In file included from misc-utils/lsblk.c:46:0: > | /usr/include/libudev.h:28:2: error: #error "#define > LIBUDEV_I_KNOW_THE_API_IS_SUBJECT_TO_CHANGE is needed to use this > experimental library version"* > > > I dit not get this error on the Ubuntu host. In fact > /usr/include/libudev.h does not even exist and I dont think > util-linux-native is even built. > Why is it built on the SuSE host? Trying to define > LIBUDEV_I_KNOW_THE_API_IS_SUBJECT_TO_CHANGE only made be pass the first > error, then I got into issues with unresolved udev symbols instead. Is a > no-go to try to use the Yocto environment on this SuSE host? It does warn > about it :( > > *WARNING: Host distribution "SUSE-LINUX-11" has not been validated with > this version of the build system; you may possibly experience unexpected > failures. It is recommended that you use a tested distribution.* > > I am currently on branch:master > > Hans > > Ok, I seem to have worked around this particular problem. I have new ones but I post them separately ;) In this case it seems the *libudev* installed on my host is too old and breaks the build. I solved it in my layer using a util-linux_2.22.2.bbappend file by doing: * EXTRA_OECONF_append_class-native = " --without-udev"* This is ok in my case since I will use mdev rather than udev. Hans
_______________________________________________ yocto mailing list [email protected] https://lists.yoctoproject.org/listinfo/yocto
