Bug 6389 - Possible parallel build issue on neard NFC daemon
Summary: Possible parallel build issue on neard NFC daemon
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: connectivity (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.7 M1
Assignee: Cristian Iorga
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-05-30 09:36 UTC by Cristian Iorga
Modified: 2014-06-11 15:43 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
neard build issue full log (1.47 MB, application/octet-stream)
2014-05-30 09:38 UTC, Cristian Iorga
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Cristian Iorga 2014-05-30 09:36:26 UTC
Possible parallel build issue on neard NFC daemon

Relevant part of the build log:

| ./src/genbuiltin nfctype1 nfctype2 nfctype3 nfctype4 p2p > src/builtin.h
| i586-poky-linux-gcc  -m32 -march=i586 --sysroot=/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-x86/build/build/tmp/sysroots/qemux86 -DHAVE_CONFIG_H -I.  -I./include -I./src -I./gdbus  -I/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-x86/build/build/tmp/sysroots/qemux86/usr/include/glib-2.0 -I/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-x86/build/build/tmp/sysroots/qemux86/usr/lib/glib-2.0/include  -I/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-x86/build/build/tmp/sysroots/qemux86/usr/include/dbus-1.0 -I/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-x86/build/build/tmp/sysroots/qemux86/usr/lib/dbus-1.0/include  -I/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-x86/build/build/tmp/sysroots/qemux86/usr/include/libnl3   -DNEAR_PLUGIN_BUILTIN -DPLUGINDIR=\""/usr/lib/near/plugins"\" -DCONFIGDIR=\""/etc/neard\"" -O2 -pipe -g -feliminate-unused-debug-types -c -o tools/snep-send.o tools/snep-send.c
| In file included from tools/snep-send.c:16:0:
| tools/../src/near.h:41:23: fatal error: near/dbus.h: No such file or directory
|  #include <near/dbus.h>
|                        ^
| compilation terminated.
| make[1]: *** [tools/snep-send.o] Error 1
| make[1]: *** Waiting for unfinished jobs....
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/pokybuild/yocto-autobuilder/yocto-slave/nightly-x86/build/build/tmp/work/i586-poky-linux/neard/0.14-r0/temp/log.do_compile.8182)
NOTE: recipe neard-0.14-r0: task do_compile: Failed
ERROR: Task 1450 (/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-x86/build/meta/recipes-connectivity/neard/neard_0.14.bb, do_compile) failed with exit code '1'
Comment 1 Cristian Iorga 2014-05-30 09:38:20 UTC
Created attachment 1986 [details]
neard build issue full log

neard build issue full log
Comment 3 Richard Purdie 2014-05-30 10:27:27 UTC
FWIW I've documented this bug as a case study for the manual in: https://bugzilla.yoctoproject.org/show_bug.cgi?id=6390

The patch needed is:

Index: neard-0.14/Makefile.am
===================================================================
--- neard-0.14.orig/Makefile.am	2014-05-30 10:10:16.887632182 +0000
+++ neard-0.14/Makefile.am	2014-05-30 10:18:28.711615328 +0000
@@ -99,6 +99,8 @@
 					src/agent.c
 tools_snep_send_LDADD = @GLIB_LIBS@ @DBUS_LIBS@
 
+tools/snep-send.$(OBJEXT): include/near/dbus.h
+
 tools_nfctool_nfctool_SOURCES = tools/nfctool/main.c \
 					tools/nfctool/nfctool.h \
 					tools/nfctool/adapter.h \

Cristi: I'm going to let you take this from here and prepare the patch, submit upstream etc.