Skip to contentSkip to conversation

minimal-uclibc: freesmartphone/libfsobasics_git.bb: do_compile() failed: utilities.c:35:22: fatal error: execinfo.h: No such file or directory

DISCUSSION Paul Menzel 4 participants 9 messages Sep 11, 2010 – Sep 22, 2010

lore
Share & tools
lore
#0 lore raw

Dear OE folks,

do_compile() of freesmartphone/libfsobasics_git.bb fails for me reliably since today. As with my other reported failure of gtk+ [1] nothing was changed regarding this recipe in the last days and it worked for me before. Even yesterday because I could build gtk+ which is supposed to happen after libfsobasics_git.bb. But several things get build in parallel so that statement could be wrong.

Minimal compiles fine with EGLIBC and glibc.

	$ find . -name execinfo.h

did not return anything in my build directory.

	$ more log.do_compile
	NOTE: make
	make  all-recursive
	make[1]: Entering directory `/oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/libfsobasics-1_0.9.10+gitr0+b163e36f9c960c6fea92168e88201be98dcceaef-r2.0/git/libfsobasics'
	Making all in fsobasics
	make[2]: Entering directory `/oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/libfsobasics-1_0.9.10+gitr0+b163e36f9c960c6fea92168e88201be98dcceaef-r2.0/git/libfsobasics/fsobasics'
	/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/i686-linux/usr/bin/valac -C --basedir .. --vapidir ../vapi --pkg posix --pkg linux --pkg libnl-2.0 --pkg glib-2.0 --pkg gio-2.0 --header fsobasics.h --library fsobasics-2.0  asyncworker.vala inotifier.vala kobjectnotifier.vala libinitexit.vala logger.vala netlinknotifier.vala netlinkutils.vala overlay.vala process.vala smartkeyfile.vala syncasync.vala threading.vala types.vala utilities.vala
	fsobasics/logger.vala:300.17-300.33: warning: unreachable code detected
		              return "UNKNOWN";
		              ^^^^^^^^^^^^^^^^^
	fsobasics/smartkeyfile.vala:117.13-117.25: warning: unreachable code detected
		          return false;
		          ^^^^^^^^^^^^^
	Compilation succeeded - 2 warning(s)
	touch fsobasics.vala.stamp
	make  all-am
	make[3]: Entering directory `/oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/libfsobasics-1_0.9.10+gitr0+b163e36f9c960c6fea92168e88201be98dcceaef-r2.0/git/libfsobasics/fsobasics'
		CC     asyncworker.lo
		CC     inotifier.lo
	inotifier.c: In function 'fso_framework_inotifier_construct':
	inotifier.c:173:2: warning: passing argument 4 of 'g_hash_table_new_full' from incompatible pointer type
	/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/glib-2.0/glib/ghash.h:62:13: note: expected 'GDestroyNotify' but argument is of type 'void (*)(struct INotifyDelegateHolder *)'
		CC     kobjectnotifier.lo
	kobjectnotifier.c: In function 'fso_framework_base_kobject_notifier_construct':
	kobjectnotifier.c:182:2: warning: passing argument 4 of 'g_hash_table_new_full' from incompatible pointer type
	/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/glib-2.0/glib/ghash.h:62:13: note: expected 'GDestroyNotify' but argument is of type 'void (*)(struct GList *)'
	kobjectnotifier.c:183:2: warning: passing argument 4 of 'g_hash_table_new_full' from incompatible pointer type
	/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/glib-2.0/glib/ghash.h:62:13: note: expected 'GDestroyNotify' but argument is of type 'void (*)(struct GList *)'
	kobjectnotifier.c:184:2: warning: passing argument 4 of 'g_hash_table_new_full' from incompatible pointer type
	/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/glib-2.0/glib/ghash.h:62:13: note: expected 'GDestroyNotify' but argument is of type 'void (*)(struct GList *)'
	kobjectnotifier.c:188:52: warning: passing argument 2 of 'bind' from incompatible pointer type
	/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/sys/socket.h:115:12: note: expected 'const struct sockaddr *' but argument is of type 'struct sockaddr_nl *'
		CC     libinitexit.lo
		CC     logger.lo
		CC     netlinknotifier.lo
	netlinknotifier.c: In function 'fso_framework_base_netlink_notifier_construct':
	netlinknotifier.c:206:2: warning: passing argument 4 of 'g_hash_table_new_full' from incompatible pointer type
	/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/glib-2.0/glib/ghash.h:62:13: note: expected 'GDestroyNotify' but argument is of type 'void (*)(struct GList *)'
	netlinknotifier.c: In function '_lambda0_':
	netlinknotifier.c:260:162: warning: assignment discards qualifiers from pointer target type
	netlinknotifier.c: In function 'fso_framework_base_netlink_notifier_handleNetlinkMessage':
	netlinknotifier.c:296:15: warning: assignment makes pointer from integer without a cast
	netlinknotifier.c: In function 'fso_framework_base_netlink_notifier_handleMessage':
	netlinknotifier.c:344:56: warning: cast to pointer from integer of different size
	netlinknotifier.c: In function '_fso_framework_base_netlink_notifier_addMatch':
	netlinknotifier.c:366:56: warning: cast to pointer from integer of different size
	netlinknotifier.c:372:41: warning: cast to pointer from integer of different size
		CC     netlinkutils.lo
		CC     overlay.lo
		CC     process.lo
		CC     smartkeyfile.lo
		CC     syncasync.lo
		CC     threading.lo
	threading.c: In function 'fso_framework_threading_callDelegateOnMainThread':
	threading.c:451:4: warning: passing argument 4 of 'g_idle_add_full' from incompatible pointer type
	/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/glib-2.0/glib/gmain.h:291:10: note: expected 'GDestroyNotify' but argument is of type 'void (*)(struct Block3Data *)'
	threading.c:455:4: warning: passing argument 4 of 'g_idle_add_full' from incompatible pointer type
	/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/glib-2.0/glib/gmain.h:291:10: note: expected 'GDestroyNotify' but argument is of type 'void (*)(struct Block3Data *)'
	threading.c:458:4: warning: passing argument 4 of 'g_idle_add_full' from incompatible pointer type
	/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/glib-2.0/glib/gmain.h:291:10: note: expected 'GDestroyNotify' but argument is of type 'void (*)(struct Block3Data *)'
		CC     types.lo
		CC     utilities.lo
	utilities.c:35:22: fatal error: execinfo.h: No such file or directory
	compilation terminated.
	make[3]: *** [utilities.lo] Error 1
	make[3]: Leaving directory `/oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/libfsobasics-1_0.9.10+gitr0+b163e36f9c960c6fea92168e88201be98dcceaef-r2.0/git/libfsobasics/fsobasics'
	make[2]: *** [all] Error 2
	make[2]: Leaving directory `/oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/libfsobasics-1_0.9.10+gitr0+b163e36f9c960c6fea92168e88201be98dcceaef-r2.0/git/libfsobasics/fsobasics'
	make[1]: *** [all-recursive] Error 1
	make[1]: Leaving directory `/oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/libfsobasics-1_0.9.10+gitr0+b163e36f9c960c6fea92168e88201be98dcceaef-r2.0/git/libfsobasics'
	make: *** [all] Error 2
	FATAL: oe_runmake failed
	ERROR: Function do_compile failed

Does anyone have a clue on how that can be fixed.

Thanks,

Paul

[1] http://lists.linuxtogo.org/pipermail/openembedded-devel/2010-September/024097.html

#1 lore raw

Am Samstag, den 11.09.2010, 20:01 +0200 schrieb Paul Menzel:

[…]

Quoted 87 lines

do_compile() of freesmartphone/libfsobasics_git.bb fails for me reliably since today. As with my other reported failure of gtk+ [1] nothing was changed regarding this recipe in the last days and it worked for me before. Even yesterday because I could build gtk+ which is supposed to happen after libfsobasics_git.bb. But several things get build in parallel so that statement could be wrong.

Minimal compiles fine with EGLIBC and glibc.

	$ find . -name execinfo.h

did not return anything in my build directory.

	$ more log.do_compile
	NOTE: make
	make  all-recursive
	make[1]: Entering directory `/oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/libfsobasics-1_0.9.10+gitr0+b163e36f9c960c6fea92168e88201be98dcceaef-r2.0/git/libfsobasics'
	Making all in fsobasics
	make[2]: Entering directory `/oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/libfsobasics-1_0.9.10+gitr0+b163e36f9c960c6fea92168e88201be98dcceaef-r2.0/git/libfsobasics/fsobasics'
	/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/i686-linux/usr/bin/valac -C --basedir .. --vapidir ../vapi --pkg posix --pkg linux --pkg libnl-2.0 --pkg glib-2.0 --pkg gio-2.0 --header fsobasics.h --library fsobasics-2.0  asyncworker.vala inotifier.vala kobjectnotifier.vala libinitexit.vala logger.vala netlinknotifier.vala netlinkutils.vala overlay.vala process.vala smartkeyfile.vala syncasync.vala threading.vala types.vala utilities.vala
	fsobasics/logger.vala:300.17-300.33: warning: unreachable code detected
		              return "UNKNOWN";
		              ^^^^^^^^^^^^^^^^^
	fsobasics/smartkeyfile.vala:117.13-117.25: warning: unreachable code detected
		          return false;
		          ^^^^^^^^^^^^^
	Compilation succeeded - 2 warning(s)
	touch fsobasics.vala.stamp
	make  all-am
	make[3]: Entering directory `/oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/libfsobasics-1_0.9.10+gitr0+b163e36f9c960c6fea92168e88201be98dcceaef-r2.0/git/libfsobasics/fsobasics'
		CC     asyncworker.lo
		CC     inotifier.lo
	inotifier.c: In function 'fso_framework_inotifier_construct':
	inotifier.c:173:2: warning: passing argument 4 of 'g_hash_table_new_full' from incompatible pointer type
	/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/glib-2.0/glib/ghash.h:62:13: note: expected 'GDestroyNotify' but argument is of type 'void (*)(struct INotifyDelegateHolder *)'
		CC     kobjectnotifier.lo
	kobjectnotifier.c: In function 'fso_framework_base_kobject_notifier_construct':
	kobjectnotifier.c:182:2: warning: passing argument 4 of 'g_hash_table_new_full' from incompatible pointer type
	/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/glib-2.0/glib/ghash.h:62:13: note: expected 'GDestroyNotify' but argument is of type 'void (*)(struct GList *)'
	kobjectnotifier.c:183:2: warning: passing argument 4 of 'g_hash_table_new_full' from incompatible pointer type
	/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/glib-2.0/glib/ghash.h:62:13: note: expected 'GDestroyNotify' but argument is of type 'void (*)(struct GList *)'
	kobjectnotifier.c:184:2: warning: passing argument 4 of 'g_hash_table_new_full' from incompatible pointer type
	/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/glib-2.0/glib/ghash.h:62:13: note: expected 'GDestroyNotify' but argument is of type 'void (*)(struct GList *)'
	kobjectnotifier.c:188:52: warning: passing argument 2 of 'bind' from incompatible pointer type
	/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/sys/socket.h:115:12: note: expected 'const struct sockaddr *' but argument is of type 'struct sockaddr_nl *'
		CC     libinitexit.lo
		CC     logger.lo
		CC     netlinknotifier.lo
	netlinknotifier.c: In function 'fso_framework_base_netlink_notifier_construct':
	netlinknotifier.c:206:2: warning: passing argument 4 of 'g_hash_table_new_full' from incompatible pointer type
	/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/glib-2.0/glib/ghash.h:62:13: note: expected 'GDestroyNotify' but argument is of type 'void (*)(struct GList *)'
	netlinknotifier.c: In function '_lambda0_':
	netlinknotifier.c:260:162: warning: assignment discards qualifiers from pointer target type
	netlinknotifier.c: In function 'fso_framework_base_netlink_notifier_handleNetlinkMessage':
	netlinknotifier.c:296:15: warning: assignment makes pointer from integer without a cast
	netlinknotifier.c: In function 'fso_framework_base_netlink_notifier_handleMessage':
	netlinknotifier.c:344:56: warning: cast to pointer from integer of different size
	netlinknotifier.c: In function '_fso_framework_base_netlink_notifier_addMatch':
	netlinknotifier.c:366:56: warning: cast to pointer from integer of different size
	netlinknotifier.c:372:41: warning: cast to pointer from integer of different size
		CC     netlinkutils.lo
		CC     overlay.lo
		CC     process.lo
		CC     smartkeyfile.lo
		CC     syncasync.lo
		CC     threading.lo
	threading.c: In function 'fso_framework_threading_callDelegateOnMainThread':
	threading.c:451:4: warning: passing argument 4 of 'g_idle_add_full' from incompatible pointer type
	/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/glib-2.0/glib/gmain.h:291:10: note: expected 'GDestroyNotify' but argument is of type 'void (*)(struct Block3Data *)'
	threading.c:455:4: warning: passing argument 4 of 'g_idle_add_full' from incompatible pointer type
	/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/glib-2.0/glib/gmain.h:291:10: note: expected 'GDestroyNotify' but argument is of type 'void (*)(struct Block3Data *)'
	threading.c:458:4: warning: passing argument 4 of 'g_idle_add_full' from incompatible pointer type
	/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/glib-2.0/glib/gmain.h:291:10: note: expected 'GDestroyNotify' but argument is of type 'void (*)(struct Block3Data *)'
		CC     types.lo
		CC     utilities.lo
	utilities.c:35:22: fatal error: execinfo.h: No such file or directory
	compilation terminated.
	make[3]: *** [utilities.lo] Error 1
	make[3]: Leaving directory `/oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/libfsobasics-1_0.9.10+gitr0+b163e36f9c960c6fea92168e88201be98dcceaef-r2.0/git/libfsobasics/fsobasics'
	make[2]: *** [all] Error 2
	make[2]: Leaving directory `/oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/libfsobasics-1_0.9.10+gitr0+b163e36f9c960c6fea92168e88201be98dcceaef-r2.0/git/libfsobasics/fsobasics'
	make[1]: *** [all-recursive] Error 1
	make[1]: Leaving directory `/oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/libfsobasics-1_0.9.10+gitr0+b163e36f9c960c6fea92168e88201be98dcceaef-r2.0/git/libfsobasics'
	make: *** [all] Error 2
	FATAL: oe_runmake failed
	ERROR: Function do_compile failed
Quoted 1 line

Does anyone have a clue on how that can be fixed.

execinfo.h is not available in uClibc and is a “GNUism” [2]. The dependency in in linux.vapi [3] and got included in [4].

Unfortunately I do not know how to exclude that. I guess Autotools should check if execinfo.h is available and only use it if it is. But I do not know how to do that. Michael, are those libraries intended to be used with uClibc?

If this is too much work, how can I exclude this recipe from console-image for minimal-uclibc?

Thanks,

Paul

Quoted 1 line

[1] http://lists.linuxtogo.org/pipermail/openembedded-devel/2010-September/024097.html

[2] https://bugs.gentoo.org/show_bug.cgi?id=146693#c2
[3] http://git.freesmartphone.org/?p=cornucopia.git;a=blob;f=libfsobasics/vapi/linux.vapi
[4] http://mail.gnome.org/archives/commits-list/2009-November/msg02423.html

#2 lore raw
Quoted 107 lines · Paul Menzel

Am Samstag, den 11.09.2010, 20:01 +0200 schrieb Paul Menzel:

[…]

Quoted 87 lines

do_compile() of freesmartphone/libfsobasics_git.bb fails for me reliably since today. As with my other reported failure of gtk+ [1] nothing was changed regarding this recipe in the last days and it worked for me before. Even yesterday because I could build gtk+ which is supposed to happen after libfsobasics_git.bb. But several things get build in parallel so that statement could be wrong.

Minimal compiles fine with EGLIBC and glibc.

	$ find . -name execinfo.h

did not return anything in my build directory.

	$ more log.do_compile
	NOTE: make
	make  all-recursive
	make[1]: Entering directory `/oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/libfsobasics-1_0.9.10+gitr0+b163e36f9c960c6fea92168e88201be98dcceaef-r2.0/git/libfsobasics'
	Making all in fsobasics
	make[2]: Entering directory `/oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/libfsobasics-1_0.9.10+gitr0+b163e36f9c960c6fea92168e88201be98dcceaef-r2.0/git/libfsobasics/fsobasics'
	/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/i686-linux/usr/bin/valac -C --basedir .. --vapidir ../vapi --pkg posix --pkg linux --pkg libnl-2.0 --pkg glib-2.0 --pkg gio-2.0 --header fsobasics.h --library fsobasics-2.0  asyncworker.vala inotifier.vala kobjectnotifier.vala libinitexit.vala logger.vala netlinknotifier.vala netlinkutils.vala overlay.vala process.vala smartkeyfile.vala syncasync.vala threading.vala types.vala utilities.vala
	fsobasics/logger.vala:300.17-300.33: warning: unreachable code detected
		              return "UNKNOWN";
		              ^^^^^^^^^^^^^^^^^
	fsobasics/smartkeyfile.vala:117.13-117.25: warning: unreachable code detected
		          return false;
		          ^^^^^^^^^^^^^
	Compilation succeeded - 2 warning(s)
	touch fsobasics.vala.stamp
	make  all-am
	make[3]: Entering directory `/oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/libfsobasics-1_0.9.10+gitr0+b163e36f9c960c6fea92168e88201be98dcceaef-r2.0/git/libfsobasics/fsobasics'
		CC     asyncworker.lo
		CC     inotifier.lo
	inotifier.c: In function 'fso_framework_inotifier_construct':
	inotifier.c:173:2: warning: passing argument 4 of 'g_hash_table_new_full' from incompatible pointer type
	/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/glib-2.0/glib/ghash.h:62:13: note: expected 'GDestroyNotify' but argument is of type 'void (*)(struct INotifyDelegateHolder *)'
		CC     kobjectnotifier.lo
	kobjectnotifier.c: In function 'fso_framework_base_kobject_notifier_construct':
	kobjectnotifier.c:182:2: warning: passing argument 4 of 'g_hash_table_new_full' from incompatible pointer type
	/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/glib-2.0/glib/ghash.h:62:13: note: expected 'GDestroyNotify' but argument is of type 'void (*)(struct GList *)'
	kobjectnotifier.c:183:2: warning: passing argument 4 of 'g_hash_table_new_full' from incompatible pointer type
	/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/glib-2.0/glib/ghash.h:62:13: note: expected 'GDestroyNotify' but argument is of type 'void (*)(struct GList *)'
	kobjectnotifier.c:184:2: warning: passing argument 4 of 'g_hash_table_new_full' from incompatible pointer type
	/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/glib-2.0/glib/ghash.h:62:13: note: expected 'GDestroyNotify' but argument is of type 'void (*)(struct GList *)'
	kobjectnotifier.c:188:52: warning: passing argument 2 of 'bind' from incompatible pointer type
	/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/sys/socket.h:115:12: note: expected 'const struct sockaddr *' but argument is of type 'struct sockaddr_nl *'
		CC     libinitexit.lo
		CC     logger.lo
		CC     netlinknotifier.lo
	netlinknotifier.c: In function 'fso_framework_base_netlink_notifier_construct':
	netlinknotifier.c:206:2: warning: passing argument 4 of 'g_hash_table_new_full' from incompatible pointer type
	/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/glib-2.0/glib/ghash.h:62:13: note: expected 'GDestroyNotify' but argument is of type 'void (*)(struct GList *)'
	netlinknotifier.c: In function '_lambda0_':
	netlinknotifier.c:260:162: warning: assignment discards qualifiers from pointer target type
	netlinknotifier.c: In function 'fso_framework_base_netlink_notifier_handleNetlinkMessage':
	netlinknotifier.c:296:15: warning: assignment makes pointer from integer without a cast
	netlinknotifier.c: In function 'fso_framework_base_netlink_notifier_handleMessage':
	netlinknotifier.c:344:56: warning: cast to pointer from integer of different size
	netlinknotifier.c: In function '_fso_framework_base_netlink_notifier_addMatch':
	netlinknotifier.c:366:56: warning: cast to pointer from integer of different size
	netlinknotifier.c:372:41: warning: cast to pointer from integer of different size
		CC     netlinkutils.lo
		CC     overlay.lo
		CC     process.lo
		CC     smartkeyfile.lo
		CC     syncasync.lo
		CC     threading.lo
	threading.c: In function 'fso_framework_threading_callDelegateOnMainThread':
	threading.c:451:4: warning: passing argument 4 of 'g_idle_add_full' from incompatible pointer type
	/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/glib-2.0/glib/gmain.h:291:10: note: expected 'GDestroyNotify' but argument is of type 'void (*)(struct Block3Data *)'
	threading.c:455:4: warning: passing argument 4 of 'g_idle_add_full' from incompatible pointer type
	/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/glib-2.0/glib/gmain.h:291:10: note: expected 'GDestroyNotify' but argument is of type 'void (*)(struct Block3Data *)'
	threading.c:458:4: warning: passing argument 4 of 'g_idle_add_full' from incompatible pointer type
	/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/glib-2.0/glib/gmain.h:291:10: note: expected 'GDestroyNotify' but argument is of type 'void (*)(struct Block3Data *)'
		CC     types.lo
		CC     utilities.lo
	utilities.c:35:22: fatal error: execinfo.h: No such file or directory
	compilation terminated.
	make[3]: *** [utilities.lo] Error 1
	make[3]: Leaving directory `/oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/libfsobasics-1_0.9.10+gitr0+b163e36f9c960c6fea92168e88201be98dcceaef-r2.0/git/libfsobasics/fsobasics'
	make[2]: *** [all] Error 2
	make[2]: Leaving directory `/oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/libfsobasics-1_0.9.10+gitr0+b163e36f9c960c6fea92168e88201be98dcceaef-r2.0/git/libfsobasics/fsobasics'
	make[1]: *** [all-recursive] Error 1
	make[1]: Leaving directory `/oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/libfsobasics-1_0.9.10+gitr0+b163e36f9c960c6fea92168e88201be98dcceaef-r2.0/git/libfsobasics'
	make: *** [all] Error 2
	FATAL: oe_runmake failed
	ERROR: Function do_compile failed
Quoted 1 line

Does anyone have a clue on how that can be fixed.

execinfo.h is not available in uClibc and is a “GNUism” [2]. The dependency in in linux.vapi [3] and got included in [4].

Unfortunately I do not know how to exclude that. I guess Autotools should check if execinfo.h is available and only use it if it is. But I do not know how to do that. Michael, are those libraries intended to be used with uClibc?

If this is too much work, how can I exclude this recipe from console-image for minimal-uclibc?

Thanks,

Quoted 7 lines

Paul

Quoted 1 line

[1] http://lists.linuxtogo.org/pipermail/openembedded-devel/2010-September/024097.html

[2] https://bugs.gentoo.org/show_bug.cgi?id=146693#c2
[3] http://git.freesmartphone.org/?p=cornucopia.git;a=blob;f=libfsobasics/vapi/linux.vapi
[4] http://mail.gnome.org/archives/commits-list/2009-November/msg02423.html

Hi,

fso is quit untested with none GNU libcs and we partly depend on it. I wrote a short patch which add a --enable-no-gnuism switch for configure, but want to talk to Michael, before commiting it. Could you test it and report more gnuism in our code? And is possible to get a backtrace with uClibc which is not gnuism, but available in all none-GNU implementations?

Regards Frederik

Quoted 4 lines

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Signature · 3 lines
IRC: playya @ Freenode, Gimpnet
xmpp: [email protected]
identi.ca: playya
libfsobasics/configure.ac +6 -0
index ba06907..d9d4172 100644
@@ -48,6 +48,12 @@ AC_ARG_ENABLE(debug,
   [debug="no"])
 AM_CONDITIONAL( [WANT_DEBUG], [test x"$debug" = x"yes"])
 
+AC_ARG_ENABLE(no_gnuism,
+  [  --enable-no-gnuism        Enable build for none GNU-libc (default=disabled)],
+  [no_gnuism=$enableval],
+  [no_gnuism="no"])
+AM_CONDITIONAL( [WANT_NO_GNUISM], [test x"$no_gnuism" = x"yes"])
+
 # git version
 GITV=`cat ../.git/refs/heads/master || echo "unknown"`
 AC_DEFINE_UNQUOTED([PACKAGE_GITV], ["${GITV}"], [git version])
libfsobasics/fsobasics/Makefile.am +4 -0
index 66a7cd7..0fc534a 100644
@@ -23,6 +23,10 @@ VALAC_ARGS += -g -D DEBUG
 AM_CFLAGS += -ggdb -O0
 endif
 
+if WANT_NO_GNUISM
+VALAC_ARGS += -D NO_GNUISM
+endif
+
 BUILT_SOURCES = fsobasics.vala.stamp
 
 lib_LTLIBRARIES = \
libfsobasics/fsobasics/utilities.vala +4 -0
index 22d107d..6ed5fc8 100644
@@ -420,6 +420,9 @@ namespace FsoFramework { namespace Utility {
     public string[] createBacktrace()
     {
         string[] result = new string[] { };
+#if NO_GNUISM
+        result += "Backtrace not support for none GNU libcs";
+#else
         void* buffer = malloc0( BACKTRACE_SIZE * sizeof(string) );
         var size = Linux.backtrace( buffer, BACKTRACE_SIZE );
         string[] symbols = Linux.backtrace_symbols( buffer, size );
@@ -429,6 +432,7 @@ namespace FsoFramework { namespace Utility {
             result += "%s\n".printf( symbols[i] );
         }
         result += "--- END BACKTRACE ---\n";
+#endif
         return result;
     }
 
#3 lore raw
Quoted 115 lines · Frederik Sdun
Quoted 107 lines · Paul Menzel

Am Samstag, den 11.09.2010, 20:01 +0200 schrieb Paul Menzel:

[…]

Quoted 87 lines

do_compile() of freesmartphone/libfsobasics_git.bb fails for me reliably since today. As with my other reported failure of gtk+ [1] nothing was changed regarding this recipe in the last days and it worked for me before. Even yesterday because I could build gtk+ which is supposed to happen after libfsobasics_git.bb. But several things get build in parallel so that statement could be wrong.

Minimal compiles fine with EGLIBC and glibc.

    $ find . -name execinfo.h

did not return anything in my build directory.

    $ more log.do_compile
    NOTE: make
    make  all-recursive
    make[1]: Entering directory `/oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/libfsobasics-1_0.9.10+gitr0+b163e36f9c960c6fea92168e88201be98dcceaef-r2.0/git/libfsobasics'
    Making all in fsobasics
    make[2]: Entering directory `/oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/libfsobasics-1_0.9.10+gitr0+b163e36f9c960c6fea92168e88201be98dcceaef-r2.0/git/libfsobasics/fsobasics'
    /oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/i686-linux/usr/bin/valac -C --basedir .. --vapidir ../vapi --pkg posix --pkg linux --pkg libnl-2.0 --pkg glib-2.0 --pkg gio-2.0 --header fsobasics.h --library fsobasics-2.0  asyncworker.vala inotifier.vala kobjectnotifier.vala libinitexit.vala logger.vala netlinknotifier.vala netlinkutils.vala overlay.vala process.vala smartkeyfile.vala syncasync.vala threading.vala types.vala utilities.vala
    fsobasics/logger.vala:300.17-300.33: warning: unreachable code detected
                          return "UNKNOWN";
                          ^^^^^^^^^^^^^^^^^
    fsobasics/smartkeyfile.vala:117.13-117.25: warning: unreachable code detected
                      return false;
                      ^^^^^^^^^^^^^
    Compilation succeeded - 2 warning(s)
    touch fsobasics.vala.stamp
    make  all-am
    make[3]: Entering directory `/oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/libfsobasics-1_0.9.10+gitr0+b163e36f9c960c6fea92168e88201be98dcceaef-r2.0/git/libfsobasics/fsobasics'
            CC     asyncworker.lo
            CC     inotifier.lo
    inotifier.c: In function 'fso_framework_inotifier_construct':
    inotifier.c:173:2: warning: passing argument 4 of 'g_hash_table_new_full' from incompatible pointer type
    /oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/glib-2.0/glib/ghash.h:62:13: note: expected 'GDestroyNotify' but argument is of type 'void (*)(struct INotifyDelegateHolder *)'
            CC     kobjectnotifier.lo
    kobjectnotifier.c: In function 'fso_framework_base_kobject_notifier_construct':
    kobjectnotifier.c:182:2: warning: passing argument 4 of 'g_hash_table_new_full' from incompatible pointer type
    /oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/glib-2.0/glib/ghash.h:62:13: note: expected 'GDestroyNotify' but argument is of type 'void (*)(struct GList *)'
    kobjectnotifier.c:183:2: warning: passing argument 4 of 'g_hash_table_new_full' from incompatible pointer type
    /oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/glib-2.0/glib/ghash.h:62:13: note: expected 'GDestroyNotify' but argument is of type 'void (*)(struct GList *)'
    kobjectnotifier.c:184:2: warning: passing argument 4 of 'g_hash_table_new_full' from incompatible pointer type
    /oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/glib-2.0/glib/ghash.h:62:13: note: expected 'GDestroyNotify' but argument is of type 'void (*)(struct GList *)'
    kobjectnotifier.c:188:52: warning: passing argument 2 of 'bind' from incompatible pointer type
    /oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/sys/socket.h:115:12: note: expected 'const struct sockaddr *' but argument is of type 'struct sockaddr_nl *'
            CC     libinitexit.lo
            CC     logger.lo
            CC     netlinknotifier.lo
    netlinknotifier.c: In function 'fso_framework_base_netlink_notifier_construct':
    netlinknotifier.c:206:2: warning: passing argument 4 of 'g_hash_table_new_full' from incompatible pointer type
    /oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/glib-2.0/glib/ghash.h:62:13: note: expected 'GDestroyNotify' but argument is of type 'void (*)(struct GList *)'
    netlinknotifier.c: In function '_lambda0_':
    netlinknotifier.c:260:162: warning: assignment discards qualifiers from pointer target type
    netlinknotifier.c: In function 'fso_framework_base_netlink_notifier_handleNetlinkMessage':
    netlinknotifier.c:296:15: warning: assignment makes pointer from integer without a cast
    netlinknotifier.c: In function 'fso_framework_base_netlink_notifier_handleMessage':
    netlinknotifier.c:344:56: warning: cast to pointer from integer of different size
    netlinknotifier.c: In function '_fso_framework_base_netlink_notifier_addMatch':
    netlinknotifier.c:366:56: warning: cast to pointer from integer of different size
    netlinknotifier.c:372:41: warning: cast to pointer from integer of different size
            CC     netlinkutils.lo
            CC     overlay.lo
            CC     process.lo
            CC     smartkeyfile.lo
            CC     syncasync.lo
            CC     threading.lo
    threading.c: In function 'fso_framework_threading_callDelegateOnMainThread':
    threading.c:451:4: warning: passing argument 4 of 'g_idle_add_full' from incompatible pointer type
    /oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/glib-2.0/glib/gmain.h:291:10: note: expected 'GDestroyNotify' but argument is of type 'void (*)(struct Block3Data *)'
    threading.c:455:4: warning: passing argument 4 of 'g_idle_add_full' from incompatible pointer type
    /oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/glib-2.0/glib/gmain.h:291:10: note: expected 'GDestroyNotify' but argument is of type 'void (*)(struct Block3Data *)'
    threading.c:458:4: warning: passing argument 4 of 'g_idle_add_full' from incompatible pointer type
    /oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/glib-2.0/glib/gmain.h:291:10: note: expected 'GDestroyNotify' but argument is of type 'void (*)(struct Block3Data *)'
            CC     types.lo
            CC     utilities.lo
    utilities.c:35:22: fatal error: execinfo.h: No such file or directory
    compilation terminated.
    make[3]: *** [utilities.lo] Error 1
    make[3]: Leaving directory `/oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/libfsobasics-1_0.9.10+gitr0+b163e36f9c960c6fea92168e88201be98dcceaef-r2.0/git/libfsobasics/fsobasics'
    make[2]: *** [all] Error 2
    make[2]: Leaving directory `/oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/libfsobasics-1_0.9.10+gitr0+b163e36f9c960c6fea92168e88201be98dcceaef-r2.0/git/libfsobasics/fsobasics'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/libfsobasics-1_0.9.10+gitr0+b163e36f9c960c6fea92168e88201be98dcceaef-r2.0/git/libfsobasics'
    make: *** [all] Error 2
    FATAL: oe_runmake failed
    ERROR: Function do_compile failed
Quoted 1 line

Does anyone have a clue on how that can be fixed.

execinfo.h is not available in uClibc and is a “GNUism” [2]. The dependency in in linux.vapi [3] and got included in [4].

Unfortunately I do not know how to exclude that. I guess Autotools should check if execinfo.h is available and only use it if it is. But I do not know how to do that. Michael, are those libraries intended to be used with uClibc?

If this is too much work, how can I exclude this recipe from console-image for minimal-uclibc?

Thanks,

Quoted 7 lines

Paul

Quoted 1 line

[1] http://lists.linuxtogo.org/pipermail/openembedded-devel/2010-September/024097.html

[2] https://bugs.gentoo.org/show_bug.cgi?id=146693#c2
[3] http://git.freesmartphone.org/?p=cornucopia.git;a=blob;f=libfsobasics/vapi/linux.vapi
[4] http://mail.gnome.org/archives/commits-list/2009-November/msg02423.html

Quoted 8 lines

Hi,

fso is quit untested with none GNU libcs and we partly depend on it. I wrote a short patch which add a --enable-no-gnuism switch for configure, but want to talk to Michael, before commiting it. Could you test it and report more gnuism in our code? And is possible to get a backtrace with uClibc which is not gnuism, but available in all none-GNU implementations?

instead you could use the defines like __UCLIBC__ which are there when using uclibc.

Quoted 29 lines

Regards Frederik

Quoted 4 lines

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

--
IRC: playya @ Freenode, Gimpnet
xmpp: [email protected]
identi.ca: playya

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEUEARECAAYFAkyYP/sACgkQvbwBzXsbjyqGHACgoWj4wP2twlAXMSfh4NWsH19C dQUAmJOg鬥獃➊폰뿪刮힎辍=
=ieUZ
-----END PGP SIGNATURE-----

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Signature · 1 line
-Khem
#4 lore raw
Quoted 12 lines · Khem Raj
Quoted 9 lines · Frederik Sdun

* Paul Menzel <[email protected]> [21.09.2010 00:18]:
Hi,

fso is quit untested with none GNU libcs and we partly depend on it. I wrote a short patch which add a --enable-no-gnuism switch for configure, but want to talk to Michael, before commiting it. Could you test it and report more gnuism in our code? And is possible to get a backtrace with uClibc which is not gnuism, but available in all none-GNU implementations?

Quoted 3 lines

instead you could use the defines like __UCLIBC__ which are there when using uclibc.

This is only available when compiling the C code. In the stage of compiling vala code it's not available.

Signature · 3 lines
IRC: playya @ Freenode, Gimpnet
xmpp: [email protected]
identi.ca: playya
#5 lore raw
Quoted 13 lines · Frederik Sdun
Quoted 12 lines · Khem Raj
Quoted 9 lines · Frederik Sdun

* Paul Menzel <[email protected]> [21.09.2010 00:18]:
Hi,

fso is quit untested with none GNU libcs and we partly depend on it. I wrote a short patch which add a --enable-no-gnuism switch for configure, but want to talk to Michael, before commiting it. Could you test it and report more gnuism in our code? And is possible to get a backtrace with uClibc which is not gnuism, but available in all none-GNU implementations?

Quoted 5 lines
Quoted 3 lines

instead you could use the defines like __UCLIBC__ which are there when using uclibc.

This is only available when compiling the C code. In the stage of compiling vala code it's not available.

I see, adding builtin defines to vala compiler can also help.

Quoted 19 lines

--
IRC: playya @ Freenode, Gimpnet
xmpp: [email protected]
identi.ca: playya

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkyYYCwACgkQvbwBzXsbjyqPvACfaz9IB5VoEOryse0Ny1azfqC3 ahEAn1UvFeSUj+s9KXdG7opBUqeiNyGv
=fQ+e
-----END PGP SIGNATURE-----

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Signature · 1 line
-Khem
#6 lore raw

Re: minimal-uclibc: freesmartphone/libfsobasics_git.bb: do_compile() failed: utilities.c:35:25: error: sys/eventfd.h: No such file or directory (was: utilities.c:35:22: fatal error: execinfo.h: No such file or directory)

In reply to Frederik Sdun

Dear Frederik,

Am Dienstag, den 21.09.2010, 07:17 +0200 schrieb Frederik Sdun:

[…]

Quoted 4 lines

fso is quit untested with none GNU libcs and we partly depend on it. I wrote a short patch which add a --enable-no-gnuism switch for configure, but want to talk to Michael, before commiting it. Could you test it and report more gnuism in our code?

thank you for your patch. It partly reduced the problem. It now chokes on eventfd.h. Unfortunately I do not know anything about if there are any non glibc equivalents.

[…]
| kobjectnotifier.c:188: warning: passing argument 2 of 'bind' from incompatible pointer type
| /oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/sys/socket.h:115: note: expected 'const struct sockaddr *' but argument is of type 'struct sockaddr_nl *'
| CC libinitexit.lo
| CC logger.lo
| CC netlinknotifier.lo
| netlinknotifier.c: In function 'fso_framework_base_netlink_notifier_construct':
| netlinknotifier.c:206: warning: passing argument 4 of 'g_hash_table_new_full' from incompatible pointer type
| /oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/glib-2.0/glib/ghash.h:62: note: expected 'GDestroyNotify' but argument is of type 'void (*)(struct GList *)' | netlinknotifier.c: In function '_lambda0_':
| netlinknotifier.c:260: warning: assignment discards qualifiers from pointer target type
| netlinknotifier.c: In function 'fso_framework_base_netlink_notifier_handleNetlinkMessage':
| netlinknotifier.c:296: warning: assignment makes pointer from integer without a cast
| netlinknotifier.c: In function 'fso_framework_base_netlink_notifier_handleMessage':
| netlinknotifier.c:344: warning: cast to pointer from integer of different size
| netlinknotifier.c: In function '_fso_framework_base_netlink_notifier_addMatch':
| netlinknotifier.c:366: warning: cast to pointer from integer of different size
| netlinknotifier.c:372: warning: cast to pointer from integer of different size
| CC netlinkutils.lo
| CC overlay.lo
| CC process.lo
| CC smartkeyfile.lo
| CC syncasync.lo
| CC threading.lo
| threading.c: In function 'fso_framework_threading_callDelegateOnMainThread':
| threading.c:451: warning: passing argument 4 of 'g_idle_add_full' from incompatible pointer type
| /oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/glib-2.0/glib/gmain.h:291: note: expected 'GDestroyNotify' but argument is of type 'void (*)(struct Block3Data *)' | threading.c:455: warning: passing argument 4 of 'g_idle_add_full' from incompatible pointer type
| /oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/glib-2.0/glib/gmain.h:291: note: expected 'GDestroyNotify' but argument is of type 'void (*)(struct Block3Data *)' | threading.c:458: warning: passing argument 4 of 'g_idle_add_full' from incompatible pointer type
| /oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/glib-2.0/glib/gmain.h:291: note: expected 'GDestroyNotify' but argument is of type 'void (*)(struct Block3Data *)'
| CC types.lo
| CC utilities.lo
| utilities.c:35:25: error: sys/eventfd.h: No such file or directory
| make[3]: *** [utilities.lo] Error 1
| make[3]: Leaving directory `/oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/libfsobasics-1_0.9.10+gitr0+2f8221fea7c667d2ee46ff6b8dace2d53b8860cc-r2.0/git/libfsobasics/fsobasics' | make[2]: *** [all] Error 2
| make[2]: Leaving directory `/oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/libfsobasics-1_0.9.10+gitr0+2f8221fea7c667d2ee46ff6b8dace2d53b8860cc-r2.0/git/libfsobasics/fsobasics' | make[1]: *** [all-recursive] Error 1
| make[1]: Leaving directory `/oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/libfsobasics-1_0.9.10+gitr0+2f8221fea7c667d2ee46ff6b8dace2d53b8860cc-r2.0/git/libfsobasics' | make: *** [all] Error 2
| FATAL: oe_runmake failed
| ERROR: Function do_compile failed

I am attaching the patch file to include your patch into OE easily for testing.

Thanks,

Paul

From 6b7dc740f29e5f2db5b7b971fb403a8d29cb53a1 Mon Sep 17 00:00:00 2001
From: Paul Menzel <[email protected]>
Date: Tue, 21 Sep 2010 10:58:20 +0200
Subject: [PATCH] libfsobascis_git.bb: Add patch to compile with uClibc.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

uClibc does not provide execinfo.h, which is a “GNUism” [1].

Applying this patch from Frederik Sdun [1] and passing --enable-no-gnuism to configure when compiling with uClibc lets libfsobasics_git.bb build with uClibc.

I just compile tested this and it solves the execinfo.h error. Now it fails with eventfd.h.

[1] http://lists.linuxtogo.org/pipermail/openembedded-devel/2010-September/024411.html

---
 recipes/freesmartphone/libfsobasics/nognuism.patch |   54 ++++++++++++++++++++
 recipes/freesmartphone/libfsobasics_git.bb         |    6 ++-
 2 files changed, 59 insertions(+), 1 deletions(-)
 create mode 100644 recipes/freesmartphone/libfsobasics/nognuism.patch
recipes/freesmartphone/libfsobasics/nognuism.patch new file +54 -0
new file mode 100644
index 0000000..455b76e
@@ -0,0 +1,54 @@
+diff --git a/libfsobasics/configure.ac b/libfsobasics/configure.ac
+index ba06907..d9d4172 100644
+--- a/libfsobasics/configure.ac
++++ b/libfsobasics/configure.ac
+@@ -48,6 +48,12 @@ AC_ARG_ENABLE(debug,
+   [debug="no"])
+ AM_CONDITIONAL( [WANT_DEBUG], [test x"$debug" = x"yes"])
+ 
++AC_ARG_ENABLE(no_gnuism,
++  [  --enable-no-gnuism        Enable build for none GNU-libc (default=disabled)],
++  [no_gnuism=$enableval],
++  [no_gnuism="no"])
++AM_CONDITIONAL( [WANT_NO_GNUISM], [test x"$no_gnuism" = x"yes"])
++
+ # git version
+ GITV=`cat ../.git/refs/heads/master || echo "unknown"`
+ AC_DEFINE_UNQUOTED([PACKAGE_GITV], ["${GITV}"], [git version])
+diff --git a/libfsobasics/fsobasics/Makefile.am b/libfsobasics/fsobasics/Makefile.am
+index 66a7cd7..0fc534a 100644
+--- a/libfsobasics/fsobasics/Makefile.am
++++ b/libfsobasics/fsobasics/Makefile.am
+@@ -23,6 +23,10 @@ VALAC_ARGS += -g -D DEBUG
+ AM_CFLAGS += -ggdb -O0
+ endif
+ 
++if WANT_NO_GNUISM
++VALAC_ARGS += -D NO_GNUISM
++endif
++
+ BUILT_SOURCES = fsobasics.vala.stamp
+ 
+ lib_LTLIBRARIES = \
+diff --git a/libfsobasics/fsobasics/utilities.vala b/libfsobasics/fsobasics/utilities.vala
+index 22d107d..6ed5fc8 100644
+--- a/libfsobasics/fsobasics/utilities.vala
++++ b/libfsobasics/fsobasics/utilities.vala
+@@ -420,6 +420,9 @@ namespace FsoFramework { namespace Utility {
+     public string[] createBacktrace()
+     {
+         string[] result = new string[] { };
++#if NO_GNUISM
++        result += "Backtrace not support for none GNU libcs";
++#else
+         void* buffer = malloc0( BACKTRACE_SIZE * sizeof(string) );
+         var size = Linux.backtrace( buffer, BACKTRACE_SIZE );
+         string[] symbols = Linux.backtrace_symbols( buffer, size );
+@@ -429,6 +432,7 @@ namespace FsoFramework { namespace Utility {
+             result += "%s\n".printf( symbols[i] );
+         }
+         result += "--- END BACKTRACE ---\n";
++#endif
+         return result;
+     }
+ 
recipes/freesmartphone/libfsobasics_git.bb +5 -1
index 42b2ed7..018e0d2 100644
@@ -5,4 +5,8 @@ DEPENDS += "libnl2"
 SRCREV = "${FSO_CORNUCOPIA_SRCREV}"
 PV = "0.9.10+gitr${SRCPV}"
 PE = "1"
-PR = "${INC_PR}.0"
+PR = "${INC_PR}.1"
+
+SRC_URI += "file://nognuism.patch;striplevel=2"
+
+EXTRA_OECONF_append_uclinux-uclibc = " --enable-no-gnuism"
Signature · 1 line
1.7.1
#7 lore raw

Re: minimal-uclibc: freesmartphone/libfsobasics_git.bb: do_compile() failed: utilities.c:35:25: error: sys/eventfd.h: No such file or directory (was: utilities.c:35:22: fatal error: execinfo.h: No such file or directory)

Quoted 42 lines · Paul Menzel

Dear Frederik,

Am Dienstag, den 21.09.2010, 07:17 +0200 schrieb Frederik Sdun:

[…]

Quoted 4 lines

fso is quit untested with none GNU libcs and we partly depend on it. I wrote a short patch which add a --enable-no-gnuism switch for configure, but want to talk to Michael, before commiting it. Could you test it and report more gnuism in our code?

thank you for your patch. It partly reduced the problem. It now chokes on eventfd.h. Unfortunately I do not know anything about if there are any non glibc equivalents.

       […]

       | kobjectnotifier.c:188: warning: passing argument 2 of 'bind' from incompatible pointer type
       | /oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/sys/socket.h:115: note: expected 'const struct sockaddr *' but argument is of type 'struct sockaddr_nl *'
       |   CC     libinitexit.lo
       |   CC     logger.lo
       |   CC     netlinknotifier.lo
       | netlinknotifier.c: In function 'fso_framework_base_netlink_notifier_construct':
       | netlinknotifier.c:206: warning: passing argument 4 of 'g_hash_table_new_full' from incompatible pointer type
       | /oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/glib-2.0/glib/ghash.h:62: note: expected 'GDestroyNotify' but argument is of type 'void (*)(struct GList *)'
       | netlinknotifier.c: In function '_lambda0_':
       | netlinknotifier.c:260: warning: assignment discards qualifiers from pointer target type
       | netlinknotifier.c: In function 'fso_framework_base_netlink_notifier_handleNetlinkMessage':
       | netlinknotifier.c:296: warning: assignment makes pointer from integer without a cast
       | netlinknotifier.c: In function 'fso_framework_base_netlink_notifier_handleMessage':
       | netlinknotifier.c:344: warning: cast to pointer from integer of different size
       | netlinknotifier.c: In function '_fso_framework_base_netlink_notifier_addMatch':
       | netlinknotifier.c:366: warning: cast to pointer from integer of different size
       | netlinknotifier.c:372: warning: cast to pointer from integer of different size
       |   CC     netlinkutils.lo
       |   CC     overlay.lo
       |   CC     process.lo
       |   CC     smartkeyfile.lo
       |   CC     syncasync.lo
       |   CC     threading.lo
       | threading.c: In function 'fso_framework_threading_callDelegateOnMainThread':
       | threading.c:451: warning: passing argument 4 of 'g_idle_add_full' from incompatible pointer type
Quoted 8 lines
       | /oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/glib-2.0/glib/gmain.h:291: note: expected 'GDestroyNotify' but argument is of type 'void (*)(struct Block3Data *)'
       | threading.c:455: warning: passing argument 4 of 'g_idle_add_full' from incompatible pointer type
       | /oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/glib-2.0/glib/gmain.h:291: note: expected 'GDestroyNotify' but argument is of type 'void (*)(struct Block3Data *)'
       | threading.c:458: warning: passing argument 4 of 'g_idle_add_full' from incompatible pointer type
       | /oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/glib-2.0/glib/gmain.h:291: note: expected 'GDestroyNotify' but argument is of type 'void (*)(struct Block3Data *)'
       |   CC     types.lo
       |   CC     utilities.lo
       | utilities.c:35:25: error: sys/eventfd.h: No such file or directory

eventfd is unimplemented in uclibc.

Quoted 23 lines
       | make[3]: *** [utilities.lo] Error 1
       | make[3]: Leaving directory `/oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/libfsobasics-1_0.9.10+gitr0+2f8221fea7c667d2ee46ff6b8dace2d53b8860cc-r2.0/git/libfsobasics/fsobasics'
       | make[2]: *** [all] Error 2
       | make[2]: Leaving directory `/oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/libfsobasics-1_0.9.10+gitr0+2f8221fea7c667d2ee46ff6b8dace2d53b8860cc-r2.0/git/libfsobasics/fsobasics'
       | make[1]: *** [all-recursive] Error 1
       | make[1]: Leaving directory `/oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/libfsobasics-1_0.9.10+gitr0+2f8221fea7c667d2ee46ff6b8dace2d53b8860cc-r2.0/git/libfsobasics'
       | make: *** [all] Error 2
       | FATAL: oe_runmake failed
       | ERROR: Function do_compile failed

I am attaching the patch file to include your patch into OE easily for testing.

Thanks,

Paul

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Signature · 1 line
-Khem
#8 lore raw
In reply to Paul Menzel

Hi Paul,

Quoted 14 lines
Quoted 12 lines
	utilities.c:35:22: fatal error: execinfo.h: No such file or directory
	compilation terminated.
	make[3]: *** [utilities.lo] Error 1
	make[3]: Leaving directory `/oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/libfsobasics-1_0.9.10+gitr0+b163e36f9c960c6fea92168e88201be98dcceaef-r2.0/git/libfsobasics/fsobasics'
	make[2]: *** [all] Error 2
	make[2]: Leaving directory `/oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/libfsobasics-1_0.9.10+gitr0+b163e36f9c960c6fea92168e88201be98dcceaef-r2.0/git/libfsobasics/fsobasics'
	make[1]: *** [all-recursive] Error 1
	make[1]: Leaving directory `/oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/libfsobasics-1_0.9.10+gitr0+b163e36f9c960c6fea92168e88201be98dcceaef-r2.0/git/libfsobasics'
	make: *** [all] Error 2
	FATAL: oe_runmake failed
	ERROR: Function do_compile failed
Quoted 1 line

Does anyone have a clue on how that can be fixed.

Quoted 7 lines

execinfo.h is not available in uClibc and is a “GNUism” [2]. The dependency in in linux.vapi [3] and got included in [4].

Unfortunately I do not know how to exclude that. I guess Autotools should check if execinfo.h is available and only use it if it is. But I do not know how to do that. Michael, are those libraries intended to be used with uClibc?

Yeah. I'll think about a way to fix it when I'm back end of next week (currently on vacation).

Quoted 2 lines

If this is too much work, how can I exclude this recipe from console-image for minimal-uclibc?

I bet there are some of my debugging utilities dragging this in, check – and remove for now – these.

Cheers,

:M: