Skip to contentSkip to conversation

recipes-devtools: New ltp-ddt_1.0.0 recipe

PATCH Superseded Carlos Hernandez 3 participants 24 messages Mar 10, 2015 – Mar 12, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 recipes-devtools: New ltp-ddt_1.0.0 recipe

Latest ltp release was recently merge to ltp-ddt and there is a new way to configure and compile ltp-ddt.

---
 ...ite-Make-sure-to-include-generated-header.patch | 33 ++++++++
 .../recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb      | 87 ++++++++++++++++++++++
 2 files changed, 120 insertions(+)
 create mode 100644 meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt/0001-wdt_test_suite-Make-sure-to-include-generated-header.patch
 create mode 100644 meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb
meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt/0001-wdt_test_suite-Make-sure-to-include-generated-header.patch new file +33 -0
new file mode 100644
index 0000000..31df16d
@@ -0,0 +1,33 @@
+From 4a8f24892514cd5e4d11b9105c843db49eea921b Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Wed, 19 Feb 2014 19:41:33 -0800
+Subject: [PATCH] wdt_test_suite: Make sure to include generated headers
+
+This makes sure that its using the generated headers
+and not the raw headers from kernel, generated headers
+are built for the given machine already when kernel is
+built and are available in configured/compiled kernel tree
+already
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+ testcases/ddt/wdt_test_suite/Makefile | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/testcases/ddt/wdt_test_suite/Makefile b/testcases/ddt/wdt_test_suite/Makefile
+index 90a6a90..22a1cfd 100644
+--- a/testcases/ddt/wdt_test_suite/Makefile
++++ b/testcases/ddt/wdt_test_suite/Makefile
+@@ -20,8 +20,8 @@ INCLUDES        = -I $(KERNEL_INC) -I src/interface/common -I ../utils/user
+ INCLUDES        = -I src/parser \
+                   -I src/interface/common \
+                   -I ../utils/user \
+-                  -I $(KERNEL_INC)/include \
+-                  -I $(KERNEL_INC)/arch/arm/include
++                  -I $(KERNEL_INC)/include/generated \
++                  -I $(KERNEL_INC)/arch/arm/include/generated \
+
+#List of source files- Update this on adding a new C file
+ SOURCES := \
+--
+1.9.0
meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb new file +87 -0

87 lines not on this page · raw message

Signature · 1 line
1.9.1
#1 lore raw
Quoted 2 lines · Carlos Hernandez

Latest ltp release was recently merge to ltp-ddt and there is a new way to configure and compile ltp-ddt.

Thanks, Carlos! Few comments inline.

meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt/0001-wdt_test_suite-Make-sure-to-include-generated-header.patch

Quoted 9 lines
---
 ...ite-Make-sure-to-include-generated-header.patch | 33 ++++++++
 .../recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb      | 87 ++++++++++++++++++++++
 2 files changed, 120 insertions(+)
 create mode 100644 meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt/0001-wdt_test_suite-Make-sure-to-include-generated-header.patch
 create mode 100644 meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb
meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt/0001-wdt_test_suite-Make-sure-to-include-generated-header.patch +0 -0

First of all, this should probably go to meta-arago-extras, if not even to meta-ti... Although, if the plan is to upstream it to meta-openembedded, then meta-arago-extras should be fine as temp location.

Quoted 5 lines

new file mode 100644
index 0000000..31df16d

meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt/0001-wdt_test_suite-Make-sure-to-include-generated-header.patch line 10

Quoted 10 lines
meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt/0001-wdt_test_suite-Make-sure-to-include-generated-header.patch new file +10 -0
@@ -0,0 +1,33 @@
+From 4a8f24892514cd5e4d11b9105c843db49eea921b Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Wed, 19 Feb 2014 19:41:33 -0800
+Subject: [PATCH] wdt_test_suite: Make sure to include generated headers
+
+This makes sure that its using the generated headers
+and not the raw headers from kernel, generated headers
+are built for the given machine already when kernel is
+built and are available in configured/compiled kernel tree
+already

Have you looked into merging this patch back to ltp-ddt Makefile? Will it break your regular outside of OE builds?

Quoted 33 lines
meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt/0001-wdt_test_suite-Make-sure-to-include-generated-header.patch new file +22 -0
+Signed-off-by: Khem Raj <[email protected]>
+---
+ testcases/ddt/wdt_test_suite/Makefile | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/testcases/ddt/wdt_test_suite/Makefile b/testcases/ddt/wdt_test_suite/Makefile
+index 90a6a90..22a1cfd 100644
+--- a/testcases/ddt/wdt_test_suite/Makefile
++++ b/testcases/ddt/wdt_test_suite/Makefile
+@@ -20,8 +20,8 @@ INCLUDES        = -I $(KERNEL_INC) -I src/interface/common -I ../utils/user
+ INCLUDES        = -I src/parser \
+                   -I src/interface/common \
+                   -I ../utils/user \
+-                  -I $(KERNEL_INC)/include \
+-                  -I $(KERNEL_INC)/arch/arm/include
++                  -I $(KERNEL_INC)/include/generated \
++                  -I $(KERNEL_INC)/arch/arm/include/generated \
+
+#List of source files- Update this on adding a new C file
+ SOURCES := \
+--
+1.9.0
meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb new file +5 -0
new file mode 100644
index 0000000..c321242
@@ -0,0 +1,87 @@
+SUMMARY = "Embedded Linux Device Driver Tests based on Linux Test Project"
+HOMEPAGE = "http://arago-project.org/git/projects/test-automation/ltp-ddt.git"
+SECTION = "console/utils"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"

meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb line 15

Quoted 10 lines
meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb new file +10 -0
+PR = "r1"
+
+PROVIDES += "ltp"
+DEPENDS += "zip-native virtual/kernel alsa-lib"
+
+inherit autotools module-base kernel-module-split
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+SRCREV = "ltp-ddt_1.0.0"

It's not recommended to use git tags in SRCREV, as those would need to be resolved on every parsing, which is rather expensive and requires network connection at parsing time, even if you don't want to build (i.e. bitbake -g or -e mode). Please use the actual commid id hash for SRCREV - we've stoped using tags in recipes some time ago.

Quoted 51 lines
meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb new file +51 -0
+BRANCH ?= "master"
+
+SRC_URI = "git://arago-project.org/git/projects/test-automation/ltp-ddt.git;branch=${BRANCH} \
+           file://0001-wdt_test_suite-Make-sure-to-include-generated-header.patch \
+          "
+
+S = "${WORKDIR}/git"
+
+LTPROOT = "/opt/ltp"
+
+EXTRA_OEMAKE_append = " \
+    prefix=${LTPROOT} \
+    CROSS_COMPILE=${HOST_PREFIX} \
+    SKIP_IDCHECK=1 \
+    KERNEL_INC=${STAGING_KERNEL_DIR} \
+    KERNEL_USR_INC=${STAGING_INCDIR} \
+    ALSA_INCPATH=${STAGING_INCDIR} \
+    ALSA_LIBPATH=${STAGING_LIBDIR} \
+    PLATFORM=${MACHINE} \
+    RANLIB=${RANLIB} \
+"
+
+TARGET_CC_ARCH += "${LDFLAGS}"
+
+FILES_${PN}-dbg += " \
+    ${LTPROOT}/.debug \
+    ${LTPROOT}/bin/.debug \
+    ${LTPROOT}/runtest/.debug \
+    ${LTPROOT}/testcases/bin/.debug \
+    ${LTPROOT}/testcases/bin/*/bin/.debug \
+    ${LTPROOT}/testcases/bin/*/test/.debug \
+    ${LTPROOT}/testcases/bin/ddt/.debug \
+    ${LTPROOT}/testcases/bin/ddt/*/bin/.debug \
+    ${LTPROOT}/testcases/bin/ddt/*/test/.debug \
+    ${LTPROOT}/testcases/realtime/*/*/.debug \
+"
+
+FILES_${PN}-staticdev += "${LTPROOT}/lib"
+FILES_${PN} += "${LTPROOT}/*"
+
+# ltp doesn't regenerate ffsb-6.0-rc2 configure and hardcode configure call.
+# we explicitly force regeneration of that directory and pass configure options.
+do_configure_append() {
+    (cd utils/ffsb-6.0-rc2; autoreconf -fvi; ./configure ${CONFIGUREOPTS})
+}
+
+kmoddir = "/lib/modules/${KERNEL_VERSION}/kernel/drivers/ddt"
+
+do_compile_append () {
+    unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
+    oe_runmake KERNEL_CC="${KERNEL_CC}" DESTDIR=${D} modules

meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb line 76

Quoted 10 lines
meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb new file +10 -0
+}
+
+do_install() {
+    oe_runmake DESTDIR=${D} install
+    install -d ${D}${datadir}
+    install -d ${D}${kmoddir}
+    mv ${D}${LTPROOT}/testcases/bin/ddt/*.ko ${D}${kmoddir}
+}
+
+PR_append = "-arago10+gitr${SRCPV}"

And this will go into meta-arago-distro/.../*.bbappend, unless you want the +gitr${SRCPV} portion to go in the main recipe, in which case should probably be merged with the above PR assignment at the top.

meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb line 80

Quoted 3 lines
meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb new file +3 -0
+RDEPENDS_${PN} += "linaro-pm-qa-utils serialcheck"
+
+EXTRA_OEMAKE += "KERNEL_PATH="${STAGING_KERNEL_DIR}""

Can you combine this EXTRA_OEMAKE with the one above in the recipe? I understand this recipe combined the original bb and our arago bbappend, but this is a good time to clean it up.

meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb line 82

Quoted 1 line
meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb new file +1 -0
+KERNEL_MODULES_META_PACKAGE = "${PN}"

BTW, would be better to move the above variables (RDEPENDS, KERNEL_MODULES_META_PACKAGE, etc.) above the do_compile and do_install functions for better readability.

Quoted 11 lines
meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb new file +4 -0
+# do_make_scripts should be a separate task for the lock to work
+addtask make_scripts before do_compile
+do_make_scripts[lockfiles] = "${TMPDIR}/kernel-scripts.lock"
+do_make_scripts[deptask] = "do_populate_sysroot"
Signature · 6 lines
1.9.1

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
#2 lore raw

PATCH v2 1/1 recipes-devtools: New ltp-ddt_1.0.0 recipe

Latest ltp release was recently merge to ltp-ddt and there is a new way to configure and compile ltp-ddt.

---
 .../recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb      | 84 ++++++++++++++++++++++
 1 file changed, 84 insertions(+)
 create mode 100644 meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb
meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb new file +84 -0
new file mode 100644
index 0000000..db66ed4
@@ -0,0 +1,84 @@
+SUMMARY = "Embedded Linux Device Driver Tests based on Linux Test Project"
+HOMEPAGE = "http://arago-project.org/git/projects/test-automation/ltp-ddt.git"
+SECTION = "console/utils"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"
+
+PROVIDES += "ltp"
+DEPENDS += "zip-native virtual/kernel alsa-lib"
+RDEPENDS_${PN} += "linaro-pm-qa-utils serialcheck"
+
+inherit autotools module-base kernel-module-split
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+SRCREV = "eef6281052f36f6fe41059eadcf3b4a94f0d85ea"
+BRANCH ?= "master"
+PR = "r1-arago10+gitr${SRCPV}"
+
+SRC_URI = "git://arago-project.org/git/projects/test-automation/ltp-ddt.git;branch=${BRANCH} \
+          "
+
+S = "${WORKDIR}/git"
+
+LTPROOT = "/opt/ltp"
+
+EXTRA_OEMAKE_append = " \
+    prefix=${LTPROOT} \
+    CROSS_COMPILE=${HOST_PREFIX} \
+    SKIP_IDCHECK=1 \
+    KERNEL_INC=${STAGING_KERNEL_DIR} \
+    KERNEL_USR_INC=${STAGING_INCDIR} \
+    ALSA_INCPATH=${STAGING_INCDIR} \
+    ALSA_LIBPATH=${STAGING_LIBDIR} \
+    PLATFORM=${MACHINE} \
+    RANLIB=${RANLIB} \
+    KERNEL_PATH=${STAGING_KERNEL_DIR} \
+"
+
+TARGET_CC_ARCH += "${LDFLAGS}"
+
+FILES_${PN}-dbg += " \
+    ${LTPROOT}/.debug \
+    ${LTPROOT}/bin/.debug \
+    ${LTPROOT}/runtest/.debug \
+    ${LTPROOT}/testcases/bin/.debug \
+    ${LTPROOT}/testcases/bin/*/bin/.debug \
+    ${LTPROOT}/testcases/bin/*/test/.debug \
+    ${LTPROOT}/testcases/bin/ddt/.debug \
+    ${LTPROOT}/testcases/bin/ddt/*/bin/.debug \
+    ${LTPROOT}/testcases/bin/ddt/*/test/.debug \
+    ${LTPROOT}/testcases/realtime/*/*/.debug \
+"
+
+FILES_${PN}-staticdev += "${LTPROOT}/lib"
+FILES_${PN} += "${LTPROOT}/*"
+
+KERNEL_MODULES_META_PACKAGE = "${PN}"
+
+kmoddir = "/lib/modules/${KERNEL_VERSION}/kernel/drivers/ddt"
+
+# ltp doesn't regenerate ffsb-6.0-rc2 configure and hardcode configure call.
+# we explicitly force regeneration of that directory and pass configure options.
+do_configure_append() {
+    (cd utils/ffsb-6.0-rc2; autoreconf -fvi; ./configure ${CONFIGUREOPTS})
+}
+
+
+do_compile_append () {
+    unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
+    oe_runmake KERNEL_CC="${KERNEL_CC}" DESTDIR=${D} modules
+}
+
+do_install() {
+    oe_runmake DESTDIR=${D} install
+    install -d ${D}${datadir}
+    install -d ${D}${kmoddir}
+    mv ${D}${LTPROOT}/testcases/bin/ddt/*.ko ${D}${kmoddir}
+}
+
+
+# do_make_scripts should be a separate task for the lock to work
+addtask make_scripts before do_compile
+do_make_scripts[lockfiles] = "${TMPDIR}/kernel-scripts.lock"
+do_make_scripts[deptask] = "do_populate_sysroot"
Signature · 1 line
1.9.1
#3 lore raw
In reply to Carlos Hernandez

Carlos,

ltp-ddt 1.0 fails to build now:

| arm-linux-gnueabihf-gcc -march=armv7-a -marm -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a8 -L/opt/linaro-2013.03/arm-linux-gnueabihf/lib -Wl,-rpath-li nk,/opt/linaro-2013.03/arm-linux-gnueabihf/lib -Wl,-O1 -Wl,--hash-style=gnu --sysroot=/home/jenkins/tisdk-build/build-CORTEX_1/arago-tmp-external-linaro-toolchain/sysroots /am335x-evm -isystem/opt/linaro-2013.03/arm-linux-gnueabihf/include -fstack-protector -O2 -pipe -g -feliminate-unused-debug-types -g -O2 -fno-strict-aliasing -pipe -Wall -W -isystem/opt/linaro-2013.03/arm-linux-gnueabihf/include -fstack-protector -O2 -pipe -g -feliminate-unused-debug-types -Wold-style-definition -isystem/opt/linaro-2013. 03/arm-linux-gnueabihf/include -fstack-protector -D_FORTIFY_SOURCE=2 -I/home/jenkins/tisdk-build/build-CORTEX_1/arago-tmp-external-linaro-toolchain/work/am335x_evm-oe-lin ux-gnueabi/ltp-ddt/1.0.0-r0/git/testcases/kernel/include -D_GNU_SOURCE -I/home/jenkins/tisdk-build/build-CORTEX_1/arago-tmp-external-linaro-toolchain/work/am335x_evm-oe-li nux-gnueabi/ltp-ddt/1.0.0-r0/git/testcases/kernel/timers/timer_create/../include -I../../../../include -I../../../../include -L/opt/linaro-2013.03/arm-linux-gnueabihf/lib
-Wl,-rpath-link,/opt/linaro-2013.03/arm-linux-gnueabihf/lib -Wl,-O1 -Wl,--hash-style=gnu -L../../../../lib timer_create02.c -lltp -lpthread -lrt -o timer_create02

| /home/jenkins/tisdk-build/build-CORTEX_1/arago-tmp-external-linaro-toolchain/sysroots/am335x-evm/usr/lib/libfl.so: undefined reference to `yylex'
| collect2: error: ld returned 1 exit status
| make[1]: *** [ltp-bump] Error 1

Looks like flex doesn't have the right symbol - is it wrong version?

Signature · 1 line
Denys
Quoted 150 lines · Carlos Hernandez

Latest ltp release was recently merge to ltp-ddt and there is a new way to configure and compile ltp-ddt.

---
 ...ite-Make-sure-to-include-generated-header.patch | 33 ++++++++
 .../recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb      | 87 ++++++++++++++++++++++
 2 files changed, 120 insertions(+)
 create mode 100644 meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt/0001-wdt_test_suite-Make-sure-to-include-generated-header.patch
 create mode 100644 meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb
meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt/0001-wdt_test_suite-Make-sure-to-include-generated-header.patch new file +33 -0
new file mode 100644
index 0000000..31df16d
@@ -0,0 +1,33 @@
+From 4a8f24892514cd5e4d11b9105c843db49eea921b Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Wed, 19 Feb 2014 19:41:33 -0800
+Subject: [PATCH] wdt_test_suite: Make sure to include generated headers
+
+This makes sure that its using the generated headers
+and not the raw headers from kernel, generated headers
+are built for the given machine already when kernel is
+built and are available in configured/compiled kernel tree
+already
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+ testcases/ddt/wdt_test_suite/Makefile | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/testcases/ddt/wdt_test_suite/Makefile b/testcases/ddt/wdt_test_suite/Makefile
+index 90a6a90..22a1cfd 100644
+--- a/testcases/ddt/wdt_test_suite/Makefile
++++ b/testcases/ddt/wdt_test_suite/Makefile
+@@ -20,8 +20,8 @@ INCLUDES        = -I $(KERNEL_INC) -I src/interface/common -I ../utils/user
+ INCLUDES        = -I src/parser \
+                   -I src/interface/common \
+                   -I ../utils/user \
+-                  -I $(KERNEL_INC)/include \
+-                  -I $(KERNEL_INC)/arch/arm/include
++                  -I $(KERNEL_INC)/include/generated \
++                  -I $(KERNEL_INC)/arch/arm/include/generated \
+
+#List of source files- Update this on adding a new C file
+ SOURCES := \
+--
+1.9.0
meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb new file +87 -0
new file mode 100644
index 0000000..c321242
@@ -0,0 +1,87 @@
+SUMMARY = "Embedded Linux Device Driver Tests based on Linux Test Project"
+HOMEPAGE = "http://arago-project.org/git/projects/test-automation/ltp-ddt.git"
+SECTION = "console/utils"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"
+PR = "r1"
+
+PROVIDES += "ltp"
+DEPENDS += "zip-native virtual/kernel alsa-lib"
+
+inherit autotools module-base kernel-module-split
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+SRCREV = "ltp-ddt_1.0.0"
+BRANCH ?= "master"
+
+SRC_URI = "git://arago-project.org/git/projects/test-automation/ltp-ddt.git;branch=${BRANCH} \
+           file://0001-wdt_test_suite-Make-sure-to-include-generated-header.patch \
+          "
+
+S = "${WORKDIR}/git"
+
+LTPROOT = "/opt/ltp"
+
+EXTRA_OEMAKE_append = " \
+    prefix=${LTPROOT} \
+    CROSS_COMPILE=${HOST_PREFIX} \
+    SKIP_IDCHECK=1 \
+    KERNEL_INC=${STAGING_KERNEL_DIR} \
+    KERNEL_USR_INC=${STAGING_INCDIR} \
+    ALSA_INCPATH=${STAGING_INCDIR} \
+    ALSA_LIBPATH=${STAGING_LIBDIR} \
+    PLATFORM=${MACHINE} \
+    RANLIB=${RANLIB} \
+"
+
+TARGET_CC_ARCH += "${LDFLAGS}"
+
+FILES_${PN}-dbg += " \
+    ${LTPROOT}/.debug \
+    ${LTPROOT}/bin/.debug \
+    ${LTPROOT}/runtest/.debug \
+    ${LTPROOT}/testcases/bin/.debug \
+    ${LTPROOT}/testcases/bin/*/bin/.debug \
+    ${LTPROOT}/testcases/bin/*/test/.debug \
+    ${LTPROOT}/testcases/bin/ddt/.debug \
+    ${LTPROOT}/testcases/bin/ddt/*/bin/.debug \
+    ${LTPROOT}/testcases/bin/ddt/*/test/.debug \
+    ${LTPROOT}/testcases/realtime/*/*/.debug \
+"
+
+FILES_${PN}-staticdev += "${LTPROOT}/lib"
+FILES_${PN} += "${LTPROOT}/*"
+
+# ltp doesn't regenerate ffsb-6.0-rc2 configure and hardcode configure call.
+# we explicitly force regeneration of that directory and pass configure options.
+do_configure_append() {
+    (cd utils/ffsb-6.0-rc2; autoreconf -fvi; ./configure ${CONFIGUREOPTS})
+}
+
+kmoddir = "/lib/modules/${KERNEL_VERSION}/kernel/drivers/ddt"
+
+do_compile_append () {
+    unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
+    oe_runmake KERNEL_CC="${KERNEL_CC}" DESTDIR=${D} modules
+}
+
+do_install() {
+    oe_runmake DESTDIR=${D} install
+    install -d ${D}${datadir}
+    install -d ${D}${kmoddir}
+    mv ${D}${LTPROOT}/testcases/bin/ddt/*.ko ${D}${kmoddir}
+}
+
+PR_append = "-arago10+gitr${SRCPV}"
+
+RDEPENDS_${PN} += "linaro-pm-qa-utils serialcheck"
+
+EXTRA_OEMAKE += "KERNEL_PATH="${STAGING_KERNEL_DIR}""
+
+KERNEL_MODULES_META_PACKAGE = "${PN}"
+
+# do_make_scripts should be a separate task for the lock to work
+addtask make_scripts before do_compile
+do_make_scripts[lockfiles] = "${TMPDIR}/kernel-scripts.lock"
+do_make_scripts[deptask] = "do_populate_sysroot"
Signature · 6 lines
1.9.1

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
#4 lore raw

Did you do a clean ltp-ddt build? The v2 patch ran successfully for me. Carlos

Sent from my Android phone using TouchDown (www.nitrodesk.com)

-----Original Message-----
From: Dmytriyenko, Denys [[email protected]]
Received: Wednesday, 11 Mar 2015, 7:53PM
To: Hernandez, Carlos [[email protected]]
CC: [email protected] [[email protected]]
Subject: Re: [meta-arago] [PATCH] recipes-devtools: New ltp-ddt_1.0.0 recipe

Carlos,

ltp-ddt 1.0 fails to build now:

| arm-linux-gnueabihf-gcc -march=armv7-a -marm -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a8 -L/opt/linaro-2013.03/arm-linux-gnueabihf/lib -Wl,-rpath-li nk,/opt/linaro-2013.03/arm-linux-gnueabihf/lib -Wl,-O1 -Wl,--hash-style=gnu --sysroot=/home/jenkins/tisdk-build/build-CORTEX_1/arago-tmp-external-linaro-toolchain/sysroots /am335x-evm -isystem/opt/linaro-2013.03/arm-linux-gnueabihf/include -fstack-protector -O2 -pipe -g -feliminate-unused-debug-types -g -O2 -fno-strict-aliasing -pipe -Wall -W -isystem/opt/linaro-2013.03/arm-linux-gnueabihf/include -fstack-protector -O2 -pipe -g -feliminate-unused-debug-types -Wold-style-definition -isystem/opt/linaro-2013. 03/arm-linux-gnueabihf/include -fstack-protector -D_FORTIFY_SOURCE=2 -I/home/jenkins/tisdk-build/build-CORTEX_1/arago-tmp-external-linaro-toolchain/work/am335x_evm-oe-lin ux-gnueabi/ltp-ddt/1.0.0-r0/git/testcases/kernel/include -D_GNU_SOURCE -I/home/jenkins/tisdk-build/build-CORTEX_1/arago-tmp-external-linaro-toolchain/work/am335x_evm-oe-li nux-gnueabi/ltp-ddt/1.0.0-r0/git/testcases/kernel/timers/timer_create/../include -I../../../../include -I../../../../include -L/opt/linaro-2013.03/arm-linux-gnueabihf/lib
-Wl,-rpath-link,/opt/linaro-2013.03/arm-linux-gnueabihf/lib -Wl,-O1 -Wl,--hash-style=gnu -L../../../../lib timer_create02.c -lltp -lpthread -lrt -o timer_create02

| /home/jenkins/tisdk-build/build-CORTEX_1/arago-tmp-external-linaro-toolchain/sysroots/am335x-evm/usr/lib/libfl.so: undefined reference to `yylex'
| collect2: error: ld returned 1 exit status
| make[1]: *** [ltp-bump] Error 1

Looks like flex doesn't have the right symbol - is it wrong version?

--
Denys

Quoted 150 lines · Carlos Hernandez

Latest ltp release was recently merge to ltp-ddt and there is a new way to configure and compile ltp-ddt.

---
 ...ite-Make-sure-to-include-generated-header.patch | 33 ++++++++
 .../recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb      | 87 ++++++++++++++++++++++
 2 files changed, 120 insertions(+)
 create mode 100644 meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt/0001-wdt_test_suite-Make-sure-to-include-generated-header.patch
 create mode 100644 meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb
meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt/0001-wdt_test_suite-Make-sure-to-include-generated-header.patch new file +33 -0
new file mode 100644
index 0000000..31df16d
@@ -0,0 +1,33 @@
+From 4a8f24892514cd5e4d11b9105c843db49eea921b Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Wed, 19 Feb 2014 19:41:33 -0800
+Subject: [PATCH] wdt_test_suite: Make sure to include generated headers
+
+This makes sure that its using the generated headers
+and not the raw headers from kernel, generated headers
+are built for the given machine already when kernel is
+built and are available in configured/compiled kernel tree
+already
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+ testcases/ddt/wdt_test_suite/Makefile | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/testcases/ddt/wdt_test_suite/Makefile b/testcases/ddt/wdt_test_suite/Makefile
+index 90a6a90..22a1cfd 100644
+--- a/testcases/ddt/wdt_test_suite/Makefile
++++ b/testcases/ddt/wdt_test_suite/Makefile
+@@ -20,8 +20,8 @@ INCLUDES        = -I $(KERNEL_INC) -I src/interface/common -I ../utils/user
+ INCLUDES        = -I src/parser \
+                   -I src/interface/common \
+                   -I ../utils/user \
+-                  -I $(KERNEL_INC)/include \
+-                  -I $(KERNEL_INC)/arch/arm/include
++                  -I $(KERNEL_INC)/include/generated \
++                  -I $(KERNEL_INC)/arch/arm/include/generated \
+
+#List of source files- Update this on adding a new C file
+ SOURCES := \
+--
+1.9.0
meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb new file +87 -1
new file mode 100644
index 0000000..c321242
@@ -0,0 +1,87 @@
+SUMMARY = "Embedded Linux Device Driver Tests based on Linux Test Project"
+HOMEPAGE = "http://arago-project.org/git/projects/test-automation/ltp-ddt.git"
+SECTION = "console/utils"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"
+PR = "r1"
+
+PROVIDES += "ltp"
+DEPENDS += "zip-native virtual/kernel alsa-lib"
+
+inherit autotools module-base kernel-module-split
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+SRCREV = "ltp-ddt_1.0.0"
+BRANCH ?= "master"
+
+SRC_URI = "git://arago-project.org/git/projects/test-automation/ltp-ddt.git;branch=${BRANCH} \
+           file://0001-wdt_test_suite-Make-sure-to-include-generated-header.patch \
+          "
+
+S = "${WORKDIR}/git"
+
+LTPROOT = "/opt/ltp"
+
+EXTRA_OEMAKE_append = " \
+    prefix=${LTPROOT} \
+    CROSS_COMPILE=${HOST_PREFIX} \
+    SKIP_IDCHECK=1 \
+    KERNEL_INC=${STAGING_KERNEL_DIR} \
+    KERNEL_USR_INC=${STAGING_INCDIR} \
+    ALSA_INCPATH=${STAGING_INCDIR} \
+    ALSA_LIBPATH=${STAGING_LIBDIR} \
+    PLATFORM=${MACHINE} \
+    RANLIB=${RANLIB} \
+"
+
+TARGET_CC_ARCH += "${LDFLAGS}"
+
+FILES_${PN}-dbg += " \
+    ${LTPROOT}/.debug \
+    ${LTPROOT}/bin/.debug \
+    ${LTPROOT}/runtest/.debug \
+    ${LTPROOT}/testcases/bin/.debug \
+    ${LTPROOT}/testcases/bin/*/bin/.debug \
+    ${LTPROOT}/testcases/bin/*/test/.debug \
+    ${LTPROOT}/testcases/bin/ddt/.debug \
+    ${LTPROOT}/testcases/bin/ddt/*/bin/.debug \
+    ${LTPROOT}/testcases/bin/ddt/*/test/.debug \
+    ${LTPROOT}/testcases/realtime/*/*/.debug \
+"
+
+FILES_${PN}-staticdev += "${LTPROOT}/lib"
+FILES_${PN} += "${LTPROOT}/*"
+
+# ltp doesn't regenerate ffsb-6.0-rc2 configure and hardcode configure call.
+# we explicitly force regeneration of that directory and pass configure options.
+do_configure_append() {
+    (cd utils/ffsb-6.0-rc2; autoreconf -fvi; ./configure ${CONFIGUREOPTS})
+}
+
+kmoddir = "/lib/modules/${KERNEL_VERSION}/kernel/drivers/ddt"
+
+do_compile_append () {
+    unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
+    oe_runmake KERNEL_CC="${KERNEL_CC}" DESTDIR=${D} modules
+}
+
+do_install() {
+    oe_runmake DESTDIR=${D} install
+    install -d ${D}${datadir}
+    install -d ${D}${kmoddir}
+    mv ${D}${LTPROOT}/testcases/bin/ddt/*.ko ${D}${kmoddir}
+}
+
+PR_append = "-arago10+gitr${SRCPV}"
+
+RDEPENDS_${PN} += "linaro-pm-qa-utils serialcheck"
+
+EXTRA_OEMAKE += "KERNEL_PATH="${STAGING_KERNEL_DIR}""
+
+KERNEL_MODULES_META_PACKAGE = "${PN}"
+
+# do_make_scripts should be a separate task for the lock to work
+addtask make_scripts before do_compile
+do_make_scripts[lockfiles] = "${TMPDIR}/kernel-scripts.lock"
+do_make_scripts[deptask] = "do_populate_sysroot"
--

1.9.1

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

#5 lore raw

No, it wasn't a clean build. I'll try that next, but I think I need to drop "share" part I've added first...

Quoted 219 lines · Carlos
   Did you do a clean ltp-ddt build? The v2 patch ran successfully for me.
   Carlos

   Sent from my Android phone using TouchDown (www.nitrodesk.com)

   -----Original Message-----
   From: Dmytriyenko, Denys [[email protected]]
   Received: Wednesday, 11 Mar 2015, 7:53PM
   To: Hernandez, Carlos [[email protected]]
   CC: [email protected] [[email protected]]
   Subject: Re: [meta-arago] [PATCH] recipes-devtools: New ltp-ddt_1.0.0
   recipe

   Carlos,

   ltp-ddt 1.0 fails to build now:

   | arm-linux-gnueabihf-gcc  -march=armv7-a -marm -mthumb-interwork
   -mfloat-abi=hard -mfpu=neon -mtune=cortex-a8 
   -L/opt/linaro-2013.03/arm-linux-gnueabihf/lib -Wl,-rpath-li
   nk,/opt/linaro-2013.03/arm-linux-gnueabihf/lib -Wl,-O1
   -Wl,--hash-style=gnu
   --sysroot=/home/jenkins/tisdk-build/build-CORTEX_1/arago-tmp-external-linaro-toolchain/sysroots
   /am335x-evm -isystem/opt/linaro-2013.03/arm-linux-gnueabihf/include 
   -fstack-protector -O2 -pipe -g -feliminate-unused-debug-types -g -O2
   -fno-strict-aliasing -pipe -Wall
   -W  -isystem/opt/linaro-2013.03/arm-linux-gnueabihf/include 
   -fstack-protector -O2 -pipe -g -feliminate-unused-debug-types
   -Wold-style-definition -isystem/opt/linaro-2013.
   03/arm-linux-gnueabihf/include  -fstack-protector -D_FORTIFY_SOURCE=2
   -I/home/jenkins/tisdk-build/build-CORTEX_1/arago-tmp-external-linaro-toolchain/work/am335x_evm-oe-lin
   ux-gnueabi/ltp-ddt/1.0.0-r0/git/testcases/kernel/include -D_GNU_SOURCE
   -I/home/jenkins/tisdk-build/build-CORTEX_1/arago-tmp-external-linaro-toolchain/work/am335x_evm-oe-li
   nux-gnueabi/ltp-ddt/1.0.0-r0/git/testcases/kernel/timers/timer_create/../include
   -I../../../../include -I../../../../include
   -L/opt/linaro-2013.03/arm-linux-gnueabihf/lib
   -Wl,-rpath-link,/opt/linaro-2013.03/arm-linux-gnueabihf/lib -Wl,-O1
   -Wl,--hash-style=gnu  -L../../../../lib  timer_create02.c   -lltp
   -lpthread -lrt -o timer_create02
   |
   /home/jenkins/tisdk-build/build-CORTEX_1/arago-tmp-external-linaro-toolchain/sysroots/am335x-evm/usr/lib/libfl.so:
   undefined reference to `yylex'
   | collect2: error: ld returned 1 exit status
   | make[1]: *** [ltp-bump] Error 1

   Looks like flex doesn't have the right symbol - is it wrong version?

   --
   Denys

   On Tue, Mar 10, 2015 at 09:13:33AM -0400, Carlos Hernandez wrote:
   > Latest ltp release was recently merge to ltp-ddt and there is a new
   > way to configure and compile ltp-ddt.
   >
   > Signed-off-by: Carlos Hernandez <[email protected]>
   > ---
   >  ...ite-Make-sure-to-include-generated-header.patch | 33 ++++++++
   >  .../recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb      | 87
   ++++++++++++++++++++++
   >  2 files changed, 120 insertions(+)
   >  create mode 100644
   meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt/0001-wdt_test_suite-Make-sure-to-include-generated-header.patch
   >  create mode 100644
   meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb
   >
   > diff --git
   a/meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt/0001-wdt_test_suite-Make-sure-to-include-generated-header.patch
   b/meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt/0001-wdt_test_suite-Make-sure-to-include-generated-header.patch
   > new file mode 100644
   > index 0000000..31df16d
   > --- /dev/null
   > +++
   b/meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt/0001-wdt_test_suite-Make-sure-to-include-generated-header.patch
   > @@ -0,0 +1,33 @@
   > +From 4a8f24892514cd5e4d11b9105c843db49eea921b Mon Sep 17 00:00:00 2001
   > +From: Khem Raj <[email protected]>
   > +Date: Wed, 19 Feb 2014 19:41:33 -0800
   > +Subject: [PATCH] wdt_test_suite: Make sure to include generated headers
   > +
   > +This makes sure that its using the generated headers
   > +and not the raw headers from kernel, generated headers
   > +are built for the given machine already when kernel is
   > +built and are available in configured/compiled kernel tree
   > +already
   > +
   > +Signed-off-by: Khem Raj <[email protected]>
   > +---
   > + testcases/ddt/wdt_test_suite/Makefile | 4 ++--
   > + 1 file changed, 2 insertions(+), 2 deletions(-)
   > +
   > +diff --git a/testcases/ddt/wdt_test_suite/Makefile
   b/testcases/ddt/wdt_test_suite/Makefile
   > +index 90a6a90..22a1cfd 100644
   > +--- a/testcases/ddt/wdt_test_suite/Makefile
   > ++++ b/testcases/ddt/wdt_test_suite/Makefile
   > +@@ -20,8 +20,8 @@ INCLUDES        = -I $(KERNEL_INC) -I
   src/interface/common -I ../utils/user
   > + INCLUDES        = -I src/parser \
   > +                   -I src/interface/common \
   > +                   -I ../utils/user \
   > +-                  -I $(KERNEL_INC)/include \
   > +-                  -I $(KERNEL_INC)/arch/arm/include
   > ++                  -I $(KERNEL_INC)/include/generated \
   > ++                  -I $(KERNEL_INC)/arch/arm/include/generated \
   > +
   > +#List of source files- Update this on adding a new C file
   > + SOURCES := \
   > +--
   > +1.9.0
   > diff --git a/meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb
   b/meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb
   > new file mode 100644
   > index 0000000..c321242
   > --- /dev/null
   > +++ b/meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb
   > @@ -0,0 +1,87 @@
   > +SUMMARY = "Embedded Linux Device Driver Tests based on Linux Test
   Project"
   > +HOMEPAGE =
   "http://arago-project.org/git/projects/test-automation/ltp-ddt.git"
   > +SECTION = "console/utils"
   > +LICENSE = "GPLv2"
   > +LIC_FILES_CHKSUM =
   "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"
   > +PR = "r1"
   > +
   > +PROVIDES += "ltp"
   > +DEPENDS += "zip-native virtual/kernel alsa-lib"
   > +
   > +inherit autotools module-base kernel-module-split
   > +
   > +PACKAGE_ARCH = "${MACHINE_ARCH}"
   > +
   > +SRCREV = "ltp-ddt_1.0.0"
   > +BRANCH ?= "master"
   > +
   > +SRC_URI =
   "git://arago-project.org/git/projects/test-automation/ltp-ddt.git;branch=${BRANCH}
   \
   > +          
   file://0001-wdt_test_suite-Make-sure-to-include-generated-header.patch \
   > +          "
   > +
   > +S = "${WORKDIR}/git"
   > +
   > +LTPROOT = "/opt/ltp"
   > +
   > +EXTRA_OEMAKE_append = " \
   > +    prefix=${LTPROOT} \
   > +    CROSS_COMPILE=${HOST_PREFIX} \
   > +    SKIP_IDCHECK=1 \
   > +    KERNEL_INC=${STAGING_KERNEL_DIR} \
   > +    KERNEL_USR_INC=${STAGING_INCDIR} \
   > +    ALSA_INCPATH=${STAGING_INCDIR} \
   > +    ALSA_LIBPATH=${STAGING_LIBDIR} \
   > +    PLATFORM=${MACHINE} \
   > +    RANLIB=${RANLIB} \
   > +"
   > +
   > +TARGET_CC_ARCH += "${LDFLAGS}"
   > +
   > +FILES_${PN}-dbg += " \
   > +    ${LTPROOT}/.debug \
   > +    ${LTPROOT}/bin/.debug \
   > +    ${LTPROOT}/runtest/.debug \
   > +    ${LTPROOT}/testcases/bin/.debug \
   > +    ${LTPROOT}/testcases/bin/*/bin/.debug \
   > +    ${LTPROOT}/testcases/bin/*/test/.debug \
   > +    ${LTPROOT}/testcases/bin/ddt/.debug \
   > +    ${LTPROOT}/testcases/bin/ddt/*/bin/.debug \
   > +    ${LTPROOT}/testcases/bin/ddt/*/test/.debug \
   > +    ${LTPROOT}/testcases/realtime/*/*/.debug \
   > +"
   > +
   > +FILES_${PN}-staticdev += "${LTPROOT}/lib"
   > +FILES_${PN} += "${LTPROOT}/*"
   > +
   > +# ltp doesn't regenerate ffsb-6.0-rc2 configure and hardcode configure
   call.
   > +# we explicitly force regeneration of that directory and pass configure
   options.
   > +do_configure_append() {
   > +    (cd utils/ffsb-6.0-rc2; autoreconf -fvi; ./configure
   ${CONFIGUREOPTS})
   > +}
   > +
   > +kmoddir = "/lib/modules/${KERNEL_VERSION}/kernel/drivers/ddt"
   > +
   > +do_compile_append () {
   > +    unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
   > +    oe_runmake KERNEL_CC="${KERNEL_CC}" DESTDIR=${D} modules
   > +}
   > +
   > +do_install() {
   > +    oe_runmake DESTDIR=${D} install
   > +    install -d ${D}${datadir}
   > +    install -d ${D}${kmoddir}
   > +    mv ${D}${LTPROOT}/testcases/bin/ddt/*.ko ${D}${kmoddir}
   > +}
   > +
   > +PR_append = "-arago10+gitr${SRCPV}"
   > +
   > +RDEPENDS_${PN} += "linaro-pm-qa-utils serialcheck"
   > +
   > +EXTRA_OEMAKE += "KERNEL_PATH="${STAGING_KERNEL_DIR}""
   > +
   > +KERNEL_MODULES_META_PACKAGE = "${PN}"
   > +
   > +# do_make_scripts should be a separate task for the lock to work
   > +addtask make_scripts before do_compile
   > +do_make_scripts[lockfiles] = "${TMPDIR}/kernel-scripts.lock"
   > +do_make_scripts[deptask] = "do_populate_sysroot"
   > --
   > 1.9.1
   >
   > _______________________________________________
   > meta-arago mailing list
   > [email protected]
   > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
#6 lore raw

Doesn't help. It still fails for am57xx-evm. It seems to build fine for am335x-evm...

Besides the undefined yylex error (which might be non-fatal), I also see these:

| clock_gettime03.c:141:4: error: '__NR_clock_gettime' undeclared (first use in this function)

| clock_gettime03.c:168:31: error: 'cleanup' undeclared (first use in this function)

| faccessat01.c:70:21: error: '__NR_faccessat' undeclared (first use in this function)

Signature · 1 line
Denys
Quoted 224 lines · Denys Dmytriyenko

No, it wasn't a clean build. I'll try that next, but I think I need to drop "share" part I've added first...

Quoted 219 lines · Carlos
   Did you do a clean ltp-ddt build? The v2 patch ran successfully for me.
   Carlos

   Sent from my Android phone using TouchDown (www.nitrodesk.com)

   -----Original Message-----
   From: Dmytriyenko, Denys [[email protected]]
   Received: Wednesday, 11 Mar 2015, 7:53PM
   To: Hernandez, Carlos [[email protected]]
   CC: [email protected] [[email protected]]
   Subject: Re: [meta-arago] [PATCH] recipes-devtools: New ltp-ddt_1.0.0
   recipe

   Carlos,

   ltp-ddt 1.0 fails to build now:

   | arm-linux-gnueabihf-gcc  -march=armv7-a -marm -mthumb-interwork
   -mfloat-abi=hard -mfpu=neon -mtune=cortex-a8 
   -L/opt/linaro-2013.03/arm-linux-gnueabihf/lib -Wl,-rpath-li
   nk,/opt/linaro-2013.03/arm-linux-gnueabihf/lib -Wl,-O1
   -Wl,--hash-style=gnu
   --sysroot=/home/jenkins/tisdk-build/build-CORTEX_1/arago-tmp-external-linaro-toolchain/sysroots
   /am335x-evm -isystem/opt/linaro-2013.03/arm-linux-gnueabihf/include 
   -fstack-protector -O2 -pipe -g -feliminate-unused-debug-types -g -O2
   -fno-strict-aliasing -pipe -Wall
   -W  -isystem/opt/linaro-2013.03/arm-linux-gnueabihf/include 
   -fstack-protector -O2 -pipe -g -feliminate-unused-debug-types
   -Wold-style-definition -isystem/opt/linaro-2013.
   03/arm-linux-gnueabihf/include  -fstack-protector -D_FORTIFY_SOURCE=2
   -I/home/jenkins/tisdk-build/build-CORTEX_1/arago-tmp-external-linaro-toolchain/work/am335x_evm-oe-lin
   ux-gnueabi/ltp-ddt/1.0.0-r0/git/testcases/kernel/include -D_GNU_SOURCE
   -I/home/jenkins/tisdk-build/build-CORTEX_1/arago-tmp-external-linaro-toolchain/work/am335x_evm-oe-li
   nux-gnueabi/ltp-ddt/1.0.0-r0/git/testcases/kernel/timers/timer_create/../include
   -I../../../../include -I../../../../include
   -L/opt/linaro-2013.03/arm-linux-gnueabihf/lib
   -Wl,-rpath-link,/opt/linaro-2013.03/arm-linux-gnueabihf/lib -Wl,-O1
   -Wl,--hash-style=gnu  -L../../../../lib  timer_create02.c   -lltp
   -lpthread -lrt -o timer_create02
   |
   /home/jenkins/tisdk-build/build-CORTEX_1/arago-tmp-external-linaro-toolchain/sysroots/am335x-evm/usr/lib/libfl.so:
   undefined reference to `yylex'
   | collect2: error: ld returned 1 exit status
   | make[1]: *** [ltp-bump] Error 1

   Looks like flex doesn't have the right symbol - is it wrong version?

   --
   Denys

   On Tue, Mar 10, 2015 at 09:13:33AM -0400, Carlos Hernandez wrote:
   > Latest ltp release was recently merge to ltp-ddt and there is a new
   > way to configure and compile ltp-ddt.
   >
   > Signed-off-by: Carlos Hernandez <[email protected]>
   > ---
   >  ...ite-Make-sure-to-include-generated-header.patch | 33 ++++++++
   >  .../recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb      | 87
   ++++++++++++++++++++++
   >  2 files changed, 120 insertions(+)
   >  create mode 100644
   meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt/0001-wdt_test_suite-Make-sure-to-include-generated-header.patch
   >  create mode 100644
   meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb
   >
   > diff --git
   a/meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt/0001-wdt_test_suite-Make-sure-to-include-generated-header.patch
   b/meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt/0001-wdt_test_suite-Make-sure-to-include-generated-header.patch
   > new file mode 100644
   > index 0000000..31df16d
   > --- /dev/null
   > +++
   b/meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt/0001-wdt_test_suite-Make-sure-to-include-generated-header.patch
   > @@ -0,0 +1,33 @@
   > +From 4a8f24892514cd5e4d11b9105c843db49eea921b Mon Sep 17 00:00:00 2001
   > +From: Khem Raj <[email protected]>
   > +Date: Wed, 19 Feb 2014 19:41:33 -0800
   > +Subject: [PATCH] wdt_test_suite: Make sure to include generated headers
   > +
   > +This makes sure that its using the generated headers
   > +and not the raw headers from kernel, generated headers
   > +are built for the given machine already when kernel is
   > +built and are available in configured/compiled kernel tree
   > +already
   > +
   > +Signed-off-by: Khem Raj <[email protected]>
   > +---
   > + testcases/ddt/wdt_test_suite/Makefile | 4 ++--
   > + 1 file changed, 2 insertions(+), 2 deletions(-)
   > +
   > +diff --git a/testcases/ddt/wdt_test_suite/Makefile
   b/testcases/ddt/wdt_test_suite/Makefile
   > +index 90a6a90..22a1cfd 100644
   > +--- a/testcases/ddt/wdt_test_suite/Makefile
   > ++++ b/testcases/ddt/wdt_test_suite/Makefile
   > +@@ -20,8 +20,8 @@ INCLUDES        = -I $(KERNEL_INC) -I
   src/interface/common -I ../utils/user
   > + INCLUDES        = -I src/parser \
   > +                   -I src/interface/common \
   > +                   -I ../utils/user \
   > +-                  -I $(KERNEL_INC)/include \
   > +-                  -I $(KERNEL_INC)/arch/arm/include
   > ++                  -I $(KERNEL_INC)/include/generated \
   > ++                  -I $(KERNEL_INC)/arch/arm/include/generated \
   > +
   > +#List of source files- Update this on adding a new C file
   > + SOURCES := \
   > +--
   > +1.9.0
   > diff --git a/meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb
   b/meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb
   > new file mode 100644
   > index 0000000..c321242
   > --- /dev/null
   > +++ b/meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb
   > @@ -0,0 +1,87 @@
   > +SUMMARY = "Embedded Linux Device Driver Tests based on Linux Test
   Project"
   > +HOMEPAGE =
   "http://arago-project.org/git/projects/test-automation/ltp-ddt.git"
   > +SECTION = "console/utils"
   > +LICENSE = "GPLv2"
   > +LIC_FILES_CHKSUM =
   "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"
   > +PR = "r1"
   > +
   > +PROVIDES += "ltp"
   > +DEPENDS += "zip-native virtual/kernel alsa-lib"
   > +
   > +inherit autotools module-base kernel-module-split
   > +
   > +PACKAGE_ARCH = "${MACHINE_ARCH}"
   > +
   > +SRCREV = "ltp-ddt_1.0.0"
   > +BRANCH ?= "master"
   > +
   > +SRC_URI =
   "git://arago-project.org/git/projects/test-automation/ltp-ddt.git;branch=${BRANCH}
   \
   > +          
   file://0001-wdt_test_suite-Make-sure-to-include-generated-header.patch \
   > +          "
   > +
   > +S = "${WORKDIR}/git"
   > +
   > +LTPROOT = "/opt/ltp"
   > +
   > +EXTRA_OEMAKE_append = " \
   > +    prefix=${LTPROOT} \
   > +    CROSS_COMPILE=${HOST_PREFIX} \
   > +    SKIP_IDCHECK=1 \
   > +    KERNEL_INC=${STAGING_KERNEL_DIR} \
   > +    KERNEL_USR_INC=${STAGING_INCDIR} \
   > +    ALSA_INCPATH=${STAGING_INCDIR} \
   > +    ALSA_LIBPATH=${STAGING_LIBDIR} \
   > +    PLATFORM=${MACHINE} \
   > +    RANLIB=${RANLIB} \
   > +"
   > +
   > +TARGET_CC_ARCH += "${LDFLAGS}"
   > +
   > +FILES_${PN}-dbg += " \
   > +    ${LTPROOT}/.debug \
   > +    ${LTPROOT}/bin/.debug \
   > +    ${LTPROOT}/runtest/.debug \
   > +    ${LTPROOT}/testcases/bin/.debug \
   > +    ${LTPROOT}/testcases/bin/*/bin/.debug \
   > +    ${LTPROOT}/testcases/bin/*/test/.debug \
   > +    ${LTPROOT}/testcases/bin/ddt/.debug \
   > +    ${LTPROOT}/testcases/bin/ddt/*/bin/.debug \
   > +    ${LTPROOT}/testcases/bin/ddt/*/test/.debug \
   > +    ${LTPROOT}/testcases/realtime/*/*/.debug \
   > +"
   > +
   > +FILES_${PN}-staticdev += "${LTPROOT}/lib"
   > +FILES_${PN} += "${LTPROOT}/*"
   > +
   > +# ltp doesn't regenerate ffsb-6.0-rc2 configure and hardcode configure
   call.
   > +# we explicitly force regeneration of that directory and pass configure
   options.
   > +do_configure_append() {
   > +    (cd utils/ffsb-6.0-rc2; autoreconf -fvi; ./configure
   ${CONFIGUREOPTS})
   > +}
   > +
   > +kmoddir = "/lib/modules/${KERNEL_VERSION}/kernel/drivers/ddt"
   > +
   > +do_compile_append () {
   > +    unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
   > +    oe_runmake KERNEL_CC="${KERNEL_CC}" DESTDIR=${D} modules
   > +}
   > +
   > +do_install() {
   > +    oe_runmake DESTDIR=${D} install
   > +    install -d ${D}${datadir}
   > +    install -d ${D}${kmoddir}
   > +    mv ${D}${LTPROOT}/testcases/bin/ddt/*.ko ${D}${kmoddir}
   > +}
   > +
   > +PR_append = "-arago10+gitr${SRCPV}"
   > +
   > +RDEPENDS_${PN} += "linaro-pm-qa-utils serialcheck"
   > +
   > +EXTRA_OEMAKE += "KERNEL_PATH="${STAGING_KERNEL_DIR}""
   > +
   > +KERNEL_MODULES_META_PACKAGE = "${PN}"
   > +
   > +# do_make_scripts should be a separate task for the lock to work
   > +addtask make_scripts before do_compile
   > +do_make_scripts[lockfiles] = "${TMPDIR}/kernel-scripts.lock"
   > +do_make_scripts[deptask] = "do_populate_sysroot"
   > --
   > 1.9.1
   >
   > _______________________________________________
   > meta-arago mailing list
   > [email protected]
   > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
#7 lore raw

I get an error on am335x-evm, am437x-evm, and am57xx-evm. I only see the 'yylex' error.

- Jake

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Dmytriyenko, Denys
Sent: Thursday, March 12, 2015 12:05 AM
To: Hernandez, Carlos
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] recipes-devtools: New ltp-ddt_1.0.0 recipe

Doesn't help. It still fails for am57xx-evm. It seems to build fine for am335x-evm...

Besides the undefined yylex error (which might be non-fatal), I also see these:

| clock_gettime03.c:141:4: error: '__NR_clock_gettime' undeclared (first use in this function)

| clock_gettime03.c:168:31: error: 'cleanup' undeclared (first use in this function)

| faccessat01.c:70:21: error: '__NR_faccessat' undeclared (first use in this function)

Signature · 1 line
Denys
Quoted 4 lines · Denys Dmytriyenko

No, it wasn't a clean build. I'll try that next, but I think I need to drop "share" part I've added first...

Quoted 220 lines
Quoted 219 lines · Carlos
   Did you do a clean ltp-ddt build? The v2 patch ran successfully for me.
   Carlos

   Sent from my Android phone using TouchDown (www.nitrodesk.com)

   -----Original Message-----
   From: Dmytriyenko, Denys [[email protected]]
   Received: Wednesday, 11 Mar 2015, 7:53PM
   To: Hernandez, Carlos [[email protected]]
   CC: [email protected] [[email protected]]
   Subject: Re: [meta-arago] [PATCH] recipes-devtools: New ltp-ddt_1.0.0
   recipe

   Carlos,

   ltp-ddt 1.0 fails to build now:

   | arm-linux-gnueabihf-gcc  -march=armv7-a -marm -mthumb-interwork
   -mfloat-abi=hard -mfpu=neon -mtune=cortex-a8 
   -L/opt/linaro-2013.03/arm-linux-gnueabihf/lib -Wl,-rpath-li
   nk,/opt/linaro-2013.03/arm-linux-gnueabihf/lib -Wl,-O1
   -Wl,--hash-style=gnu
   --sysroot=/home/jenkins/tisdk-build/build-CORTEX_1/arago-tmp-external-linaro-toolchain/sysroots
   /am335x-evm -isystem/opt/linaro-2013.03/arm-linux-gnueabihf/include 
   -fstack-protector -O2 -pipe -g -feliminate-unused-debug-types -g -O2
   -fno-strict-aliasing -pipe -Wall
   -W  -isystem/opt/linaro-2013.03/arm-linux-gnueabihf/include 
   -fstack-protector -O2 -pipe -g -feliminate-unused-debug-types
   -Wold-style-definition -isystem/opt/linaro-2013.
   03/arm-linux-gnueabihf/include  -fstack-protector -D_FORTIFY_SOURCE=2
   -I/home/jenkins/tisdk-build/build-CORTEX_1/arago-tmp-external-linaro-toolchain/work/am335x_evm-oe-lin
   ux-gnueabi/ltp-ddt/1.0.0-r0/git/testcases/kernel/include -D_GNU_SOURCE
   -I/home/jenkins/tisdk-build/build-CORTEX_1/arago-tmp-external-linaro-toolchain/work/am335x_evm-oe-li
   nux-gnueabi/ltp-ddt/1.0.0-r0/git/testcases/kernel/timers/timer_create/../include
   -I../../../../include -I../../../../include
   -L/opt/linaro-2013.03/arm-linux-gnueabihf/lib
   -Wl,-rpath-link,/opt/linaro-2013.03/arm-linux-gnueabihf/lib -Wl,-O1
   -Wl,--hash-style=gnu  -L../../../../lib  timer_create02.c   -lltp
   -lpthread -lrt -o timer_create02
   |
   /home/jenkins/tisdk-build/build-CORTEX_1/arago-tmp-external-linaro-toolchain/sysroots/am335x-evm/usr/lib/libfl.so:
   undefined reference to `yylex'
   | collect2: error: ld returned 1 exit status
   | make[1]: *** [ltp-bump] Error 1

   Looks like flex doesn't have the right symbol - is it wrong version?

   --
   Denys

   On Tue, Mar 10, 2015 at 09:13:33AM -0400, Carlos Hernandez wrote:
   > Latest ltp release was recently merge to ltp-ddt and there is a new
   > way to configure and compile ltp-ddt.
   >
   > Signed-off-by: Carlos Hernandez <[email protected]>
   > ---
   >  ...ite-Make-sure-to-include-generated-header.patch | 33 ++++++++
   >  .../recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb      | 87
   ++++++++++++++++++++++
   >  2 files changed, 120 insertions(+)
   >  create mode 100644
   meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt/0001-wdt_test_suite-Make-sure-to-include-generated-header.patch
   >  create mode 100644
   meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb
   >
   > diff --git
   a/meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt/0001-wdt_test_suite-Make-sure-to-include-generated-header.patch
   b/meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt/0001-wdt_test_suite-Make-sure-to-include-generated-header.patch
   > new file mode 100644
   > index 0000000..31df16d
   > --- /dev/null
   > +++
   b/meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt/0001-wdt_test_suite-Make-sure-to-include-generated-header.patch
   > @@ -0,0 +1,33 @@
   > +From 4a8f24892514cd5e4d11b9105c843db49eea921b Mon Sep 17 00:00:00 2001
   > +From: Khem Raj <[email protected]>
   > +Date: Wed, 19 Feb 2014 19:41:33 -0800
   > +Subject: [PATCH] wdt_test_suite: Make sure to include generated headers
   > +
   > +This makes sure that its using the generated headers
   > +and not the raw headers from kernel, generated headers
   > +are built for the given machine already when kernel is
   > +built and are available in configured/compiled kernel tree
   > +already
   > +
   > +Signed-off-by: Khem Raj <[email protected]>
   > +---
   > + testcases/ddt/wdt_test_suite/Makefile | 4 ++--
   > + 1 file changed, 2 insertions(+), 2 deletions(-)
   > +
   > +diff --git a/testcases/ddt/wdt_test_suite/Makefile
   b/testcases/ddt/wdt_test_suite/Makefile
   > +index 90a6a90..22a1cfd 100644
   > +--- a/testcases/ddt/wdt_test_suite/Makefile
   > ++++ b/testcases/ddt/wdt_test_suite/Makefile
   > +@@ -20,8 +20,8 @@ INCLUDES        = -I $(KERNEL_INC) -I
   src/interface/common -I ../utils/user
   > + INCLUDES        = -I src/parser \
   > +                   -I src/interface/common \
   > +                   -I ../utils/user \
   > +-                  -I $(KERNEL_INC)/include \
   > +-                  -I $(KERNEL_INC)/arch/arm/include
   > ++                  -I $(KERNEL_INC)/include/generated \
   > ++                  -I $(KERNEL_INC)/arch/arm/include/generated \
   > +
   > +#List of source files- Update this on adding a new C file
   > + SOURCES := \
   > +--
   > +1.9.0
   > diff --git a/meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb
   b/meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb
   > new file mode 100644
   > index 0000000..c321242
   > --- /dev/null
   > +++ b/meta-arago-distro/recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb
   > @@ -0,0 +1,87 @@
   > +SUMMARY = "Embedded Linux Device Driver Tests based on Linux Test
   Project"
   > +HOMEPAGE =
   "http://arago-project.org/git/projects/test-automation/ltp-ddt.git"
   > +SECTION = "console/utils"
   > +LICENSE = "GPLv2"
   > +LIC_FILES_CHKSUM =
   "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"
   > +PR = "r1"
   > +
   > +PROVIDES += "ltp"
   > +DEPENDS += "zip-native virtual/kernel alsa-lib"
   > +
   > +inherit autotools module-base kernel-module-split
   > +
   > +PACKAGE_ARCH = "${MACHINE_ARCH}"
   > +
   > +SRCREV = "ltp-ddt_1.0.0"
   > +BRANCH ?= "master"
   > +
   > +SRC_URI =
   "git://arago-project.org/git/projects/test-automation/ltp-ddt.git;branch=${BRANCH}
   \
   > +          
   file://0001-wdt_test_suite-Make-sure-to-include-generated-header.patch \
   > +          "
   > +
   > +S = "${WORKDIR}/git"
   > +
   > +LTPROOT = "/opt/ltp"
   > +
   > +EXTRA_OEMAKE_append = " \
   > +    prefix=${LTPROOT} \
   > +    CROSS_COMPILE=${HOST_PREFIX} \
   > +    SKIP_IDCHECK=1 \
   > +    KERNEL_INC=${STAGING_KERNEL_DIR} \
   > +    KERNEL_USR_INC=${STAGING_INCDIR} \
   > +    ALSA_INCPATH=${STAGING_INCDIR} \
   > +    ALSA_LIBPATH=${STAGING_LIBDIR} \
   > +    PLATFORM=${MACHINE} \
   > +    RANLIB=${RANLIB} \
   > +"
   > +
   > +TARGET_CC_ARCH += "${LDFLAGS}"
   > +
   > +FILES_${PN}-dbg += " \
   > +    ${LTPROOT}/.debug \
   > +    ${LTPROOT}/bin/.debug \
   > +    ${LTPROOT}/runtest/.debug \
   > +    ${LTPROOT}/testcases/bin/.debug \
   > +    ${LTPROOT}/testcases/bin/*/bin/.debug \
   > +    ${LTPROOT}/testcases/bin/*/test/.debug \
   > +    ${LTPROOT}/testcases/bin/ddt/.debug \
   > +    ${LTPROOT}/testcases/bin/ddt/*/bin/.debug \
   > +    ${LTPROOT}/testcases/bin/ddt/*/test/.debug \
   > +    ${LTPROOT}/testcases/realtime/*/*/.debug \
   > +"
   > +
   > +FILES_${PN}-staticdev += "${LTPROOT}/lib"
   > +FILES_${PN} += "${LTPROOT}/*"
   > +
   > +# ltp doesn't regenerate ffsb-6.0-rc2 configure and hardcode configure
   call.
   > +# we explicitly force regeneration of that directory and pass configure
   options.
   > +do_configure_append() {
   > +    (cd utils/ffsb-6.0-rc2; autoreconf -fvi; ./configure
   ${CONFIGUREOPTS})
   > +}
   > +
   > +kmoddir = "/lib/modules/${KERNEL_VERSION}/kernel/drivers/ddt"
   > +
   > +do_compile_append () {
   > +    unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
   > +    oe_runmake KERNEL_CC="${KERNEL_CC}" DESTDIR=${D} modules
   > +}
   > +
   > +do_install() {
   > +    oe_runmake DESTDIR=${D} install
   > +    install -d ${D}${datadir}
   > +    install -d ${D}${kmoddir}
   > +    mv ${D}${LTPROOT}/testcases/bin/ddt/*.ko ${D}${kmoddir}
   > +}
   > +
   > +PR_append = "-arago10+gitr${SRCPV}"
   > +
   > +RDEPENDS_${PN} += "linaro-pm-qa-utils serialcheck"
   > +
   > +EXTRA_OEMAKE += "KERNEL_PATH="${STAGING_KERNEL_DIR}""
   > +
   > +KERNEL_MODULES_META_PACKAGE = "${PN}"
   > +
   > +# do_make_scripts should be a separate task for the lock to work
   > +addtask make_scripts before do_compile
   > +do_make_scripts[lockfiles] = "${TMPDIR}/kernel-scripts.lock"
   > +do_make_scripts[deptask] = "do_populate_sysroot"
   > --
   > 1.9.1
   >
   > _______________________________________________
   > meta-arago mailing list
   > [email protected]
   > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

#8 lore raw
In reply to Denys Dmytriyenko
Quoted 11 lines · Denys Dmytriyenko

Doesn't help. It still fails for am57xx-evm. It seems to build fine for am335x-evm...

Besides the undefined yylex error (which might be non-fatal), I also see these:

| clock_gettime03.c:141:4: error: '__NR_clock_gettime' undeclared (first use in this function)

| clock_gettime03.c:168:31: error: 'cleanup' undeclared (first use in this function)

| faccessat01.c:70:21: error: '__NR_faccessat' undeclared (first use in this function)

I saw that error but it went away after cleaning ltp-ddt and rebuilding. See log below.

a0850405@a0850405-off1:~/code/tisdk/build$ MACHINE=dra7xx-evm bitbake ltp-ddt -c clean
Loading cache: 100% |###################################################################################################################################################################################################| ETA:  00:00:00
Loaded 2194 entries from dependency cache.
Parsing recipes: 100% |#################################################################################################################################################################################################| Time: 00:00:02
Parsing of 1766 .bb files complete (1758 cached, 8 parsed). 2201 targets, 199 skipped, 0 masked, 0 errors.
WARNING: No recipes available for:
/home/a0850405/code/tisdk/sources/meta-arago/meta-arago-distro/recipes-qt/qt5/qtbase_5.4.1.bbappend 

/home/a0850405/code/tisdk/sources/meta-arago/meta-arago-distro/recipes-qt/qt5/qtwebkit_5.4.1.bbappend

NOTE: Resolving any missing task queue dependencies

Build Configuration:

BB_VERSION        = "1.22.0"
BUILD_SYS         = "i686-linux"
NATIVELSBSTRING   = "Ubuntu-14.04"
TARGET_SYS        = "arm-oe-linux-gnueabi"
MACHINE           = "dra7xx-evm"
DISTRO            = "arago"
DISTRO_VERSION    = "2015.02"
TUNE_FEATURES     = "armv7a vfp thumb neon callconvention-hard cortexa15"
TARGET_FPU        = "vfp-neon"

meta-arago-distro
meta-arago-extras = "master:7362ca23ba513bc8af251da6b8b8a7a029aeafca"
meta-qt5 = "master:adeaa6128b665920eb98eb7c064f4aacbd74b873"
toolchain-layer
meta-networking
meta-ruby
meta-oe = "daisy:91dbdff2e1a0ca3dae72dfe0aaa022fc28974314"
meta-ti = "daisy:a47fe3573ec2c7662eb385049807dea4f81fa284"
meta-linaro-toolchain = "daisy:bc63e777ad2748b8bfa7fa70ffd74700fa21a567"
meta = "daisy:f34de2175f1d6a443f219b8ceaaf796cfbc6efd5"

NOTE: Preparing runqueue
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 1 tasks of which 0 didn't need to be rerun and all succeeded.

Summary: There was 1 WARNING message shown.

a0850405@a0850405-off1:~/code/tisdk/build$ MACHINE=dra7xx-evm bitbake ltp-ddt
Loading cache: 100% |###################################################################################################################################################################################################| ETA:  00:00:00
Loaded 2194 entries from dependency cache.
Parsing recipes: 100% |#################################################################################################################################################################################################| Time: 00:00:01
Parsing of 1766 .bb files complete (1758 cached, 8 parsed). 2201 targets, 199 skipped, 0 masked, 0 errors.
WARNING: No recipes available for:
/home/a0850405/code/tisdk/sources/meta-arago/meta-arago-distro/recipes-qt/qt5/qtbase_5.4.1.bbappend 

/home/a0850405/code/tisdk/sources/meta-arago/meta-arago-distro/recipes-qt/qt5/qtwebkit_5.4.1.bbappend

NOTE: Resolving any missing task queue dependencies

Build Configuration:

BB_VERSION        = "1.22.0"
BUILD_SYS         = "i686-linux"
NATIVELSBSTRING   = "Ubuntu-14.04"
TARGET_SYS        = "arm-oe-linux-gnueabi"
MACHINE           = "dra7xx-evm"
DISTRO            = "arago"
DISTRO_VERSION    = "2015.02"
TUNE_FEATURES     = "armv7a vfp thumb neon callconvention-hard cortexa15"
TARGET_FPU        = "vfp-neon"

meta-arago-distro
meta-arago-extras = "master:7362ca23ba513bc8af251da6b8b8a7a029aeafca"
meta-qt5 = "master:adeaa6128b665920eb98eb7c064f4aacbd74b873"
toolchain-layer
meta-networking
meta-ruby
meta-oe = "daisy:91dbdff2e1a0ca3dae72dfe0aaa022fc28974314"
meta-ti = "daisy:a47fe3573ec2c7662eb385049807dea4f81fa284"
meta-linaro-toolchain = "daisy:bc63e777ad2748b8bfa7fa70ffd74700fa21a567"
meta = "daisy:f34de2175f1d6a443f219b8ceaaf796cfbc6efd5"

NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 465 tasks of which 452 didn't need to be rerun and all succeeded.

Summary: There was 1 WARNING message shown.

a0850405@a0850405-off1:~/code/tisdk/build$ ls arago-tmp-external-linaro-toolchain/
abi_version     buildstats/     cache/          deploy/ log/            qa.log          saved_tmpdir    sstate-control/ stamps/         sysroots/       work/
a0850405@a0850405-off1:~/code/tisdk/build$ ls arago-tmp-external-linaro-toolchain/deploy/
images/   ipk/      licenses/
a0850405@a0850405-off1:~/code/tisdk/build$ ls arago-tmp-external-linaro-toolchain/deploy/ipk/
all/                    cortexa15t2hf-vfp-neon/ dra7xx_evm/
a0850405@a0850405-off1:~/code/tisdk/build$ ls arago-tmp-external-linaro-toolchain/deploy/ipk/dra7xx_evm/ -ltr
...
...
-rw-r--r-- 2 a0850405 a0850405  38745494 Mar 10 16:32 ltp-ddt-dbg_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk
-rw-r--r-- 2 a0850405 a0850405       952 Mar 10 16:32 ltp-ddt-dev_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk
-rw-r--r-- 2 a0850405 a0850405     26224 Mar 10 16:32 ltp-ddt-doc_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk
-rw-r--r-- 2 a0850405 a0850405  12129096 Mar 10 16:32 ltp-ddt_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk
-rw-r--r-- 2 a0850405 a0850405      3822 Mar 10 16:32 kernel-module-coproc-devfreq_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk
-rw-r--r-- 2 a0850405 a0850405      3132 Mar 10 16:32 kernel-module-gpio-test_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk
-rw-r--r-- 2 a0850405 a0850405      2452 Mar 10 16:32 kernel-module-kst-timer_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk
-rw-r--r-- 2 a0850405 a0850405      2828 Mar 10 16:32 kernel-module-rpmsg-client-sample_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk
#9 lore raw

Sounds like a missing dependency issue if an initial clean build fails, then cleaning ltp-ddt before continuing the build allows it to succeed in some cases.

- Jake

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Hernandez, Carlos
Sent: Thursday, March 12, 2015 9:10 AM
To: Dmytriyenko, Denys
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] recipes-devtools: New ltp-ddt_1.0.0 recipe

Quoted 6 lines · Denys Dmytriyenko

Doesn't help. It still fails for am57xx-evm. It seems to build fine for am335x-evm...

Besides the undefined yylex error (which might be non-fatal), I also see
these:

Quoted 9 lines

| clock_gettime03.c:141:4: error: '__NR_clock_gettime' undeclared | (first use in this function)

| clock_gettime03.c:168:31: error: 'cleanup' undeclared (first use in | this function)

| faccessat01.c:70:21: error: '__NR_faccessat' undeclared (first use | in this function)

I saw that error but it went away after cleaning ltp-ddt and rebuilding. See log below.

a0850405@a0850405-off1:~/code/tisdk/build$ MACHINE=dra7xx-evm bitbake ltp-ddt -c clean Loading cache: 100% 
|#######################################################################
|#######################################################################
|#####################################################|
ETA:  00:00:00
Loaded 2194 entries from dependency cache.
Parsing recipes: 100% 
|#######################################################################
|#######################################################################
|###################################################|
Time: 00:00:02
Parsing of 1766 .bb files complete (1758 cached, 8 parsed). 2201 targets, 199 skipped, 0 masked, 0 errors.
WARNING: No recipes available for:
/home/a0850405/code/tisdk/sources/meta-arago/meta-arago-distro/recipes-qt/qt5/qtbase_5.4.1.bbappend 

/home/a0850405/code/tisdk/sources/meta-arago/meta-arago-distro/recipes-qt/qt5/qtwebkit_5.4.1.bbappend

NOTE: Resolving any missing task queue dependencies

Build Configuration:

BB_VERSION        = "1.22.0"
BUILD_SYS         = "i686-linux"
NATIVELSBSTRING   = "Ubuntu-14.04"
TARGET_SYS        = "arm-oe-linux-gnueabi"
MACHINE           = "dra7xx-evm"
DISTRO            = "arago"
DISTRO_VERSION    = "2015.02"
TUNE_FEATURES     = "armv7a vfp thumb neon callconvention-hard cortexa15"
TARGET_FPU        = "vfp-neon"

meta-arago-distro
meta-arago-extras = "master:7362ca23ba513bc8af251da6b8b8a7a029aeafca"
meta-qt5 = "master:adeaa6128b665920eb98eb7c064f4aacbd74b873"
toolchain-layer
meta-networking
meta-ruby
meta-oe = "daisy:91dbdff2e1a0ca3dae72dfe0aaa022fc28974314"
meta-ti = "daisy:a47fe3573ec2c7662eb385049807dea4f81fa284"
meta-linaro-toolchain = "daisy:bc63e777ad2748b8bfa7fa70ffd74700fa21a567"
meta = "daisy:f34de2175f1d6a443f219b8ceaaf796cfbc6efd5"

NOTE: Preparing runqueue
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 1 tasks of which 0 didn't need to be rerun and all succeeded.

Summary: There was 1 WARNING message shown.

a0850405@a0850405-off1:~/code/tisdk/build$ MACHINE=dra7xx-evm bitbake ltp-ddt Loading cache: 100% 
|#######################################################################
|#######################################################################
|#####################################################|
ETA:  00:00:00
Loaded 2194 entries from dependency cache.
Parsing recipes: 100% 
|#######################################################################
|#######################################################################
|###################################################|
Time: 00:00:01
Parsing of 1766 .bb files complete (1758 cached, 8 parsed). 2201 targets, 199 skipped, 0 masked, 0 errors.
WARNING: No recipes available for:
/home/a0850405/code/tisdk/sources/meta-arago/meta-arago-distro/recipes-qt/qt5/qtbase_5.4.1.bbappend 

/home/a0850405/code/tisdk/sources/meta-arago/meta-arago-distro/recipes-qt/qt5/qtwebkit_5.4.1.bbappend

NOTE: Resolving any missing task queue dependencies

Build Configuration:

BB_VERSION        = "1.22.0"
BUILD_SYS         = "i686-linux"
NATIVELSBSTRING   = "Ubuntu-14.04"
TARGET_SYS        = "arm-oe-linux-gnueabi"
MACHINE           = "dra7xx-evm"
DISTRO            = "arago"
DISTRO_VERSION    = "2015.02"
TUNE_FEATURES     = "armv7a vfp thumb neon callconvention-hard cortexa15"
TARGET_FPU        = "vfp-neon"

meta-arago-distro
meta-arago-extras = "master:7362ca23ba513bc8af251da6b8b8a7a029aeafca"
meta-qt5 = "master:adeaa6128b665920eb98eb7c064f4aacbd74b873"
toolchain-layer
meta-networking
meta-ruby
meta-oe = "daisy:91dbdff2e1a0ca3dae72dfe0aaa022fc28974314"
meta-ti = "daisy:a47fe3573ec2c7662eb385049807dea4f81fa284"
meta-linaro-toolchain = "daisy:bc63e777ad2748b8bfa7fa70ffd74700fa21a567"
meta = "daisy:f34de2175f1d6a443f219b8ceaaf796cfbc6efd5"

NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 465 tasks of which 452 didn't need to be rerun and all succeeded.

Summary: There was 1 WARNING message shown.

a0850405@a0850405-off1:~/code/tisdk/build$ ls arago-tmp-external-linaro-toolchain/
abi_version     buildstats/     cache/          deploy/ log/            
qa.log          saved_tmpdir    sstate-control/ stamps/         
sysroots/       work/
a0850405@a0850405-off1:~/code/tisdk/build$ ls arago-tmp-external-linaro-toolchain/deploy/
images/   ipk/      licenses/
a0850405@a0850405-off1:~/code/tisdk/build$ ls arago-tmp-external-linaro-toolchain/deploy/ipk/
all/                    cortexa15t2hf-vfp-neon/ dra7xx_evm/
a0850405@a0850405-off1:~/code/tisdk/build$ ls arago-tmp-external-linaro-toolchain/deploy/ipk/dra7xx_evm/ -ltr ...
...
-rw-r--r-- 2 a0850405 a0850405  38745494 Mar 10 16:32 ltp-ddt-dbg_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk
-rw-r--r-- 2 a0850405 a0850405       952 Mar 10 16:32 
ltp-ddt-dev_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk
-rw-r--r-- 2 a0850405 a0850405     26224 Mar 10 16:32 
ltp-ddt-doc_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk
-rw-r--r-- 2 a0850405 a0850405  12129096 Mar 10 16:32 ltp-ddt_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk
-rw-r--r-- 2 a0850405 a0850405      3822 Mar 10 16:32 
kernel-module-coproc-devfreq_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk
-rw-r--r-- 2 a0850405 a0850405      3132 Mar 10 16:32 
kernel-module-gpio-test_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk
-rw-r--r-- 2 a0850405 a0850405      2452 Mar 10 16:32 
kernel-module-kst-timer_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk
-rw-r--r-- 2 a0850405 a0850405      2828 Mar 10 16:32 
kernel-module-rpmsg-client-sample_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

#10 lore raw

Denys, Jake,

clock_gettime03.c includes common_timers.h, which includes linux_syscall_numbers.h and this file defines __NR_clock_gettime.

Carlos

Quoted 154 lines · Jacob

Sounds like a missing dependency issue if an initial clean build fails, then cleaning ltp-ddt before continuing the build allows it to succeed in some cases.

- Jake

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Hernandez, Carlos
Sent: Thursday, March 12, 2015 9:10 AM
To: Dmytriyenko, Denys
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] recipes-devtools: New ltp-ddt_1.0.0 recipe

Quoted 6 lines · Denys Dmytriyenko

Doesn't help. It still fails for am57xx-evm. It seems to build fine for am335x-evm...

Besides the undefined yylex error (which might be non-fatal), I also see
these:

Quoted 9 lines

| clock_gettime03.c:141:4: error: '__NR_clock_gettime' undeclared | (first use in this function)

| clock_gettime03.c:168:31: error: 'cleanup' undeclared (first use in | this function)

| faccessat01.c:70:21: error: '__NR_faccessat' undeclared (first use | in this function)

I saw that error but it went away after cleaning ltp-ddt and rebuilding. See log below.

a0850405@a0850405-off1:~/code/tisdk/build$ MACHINE=dra7xx-evm bitbake ltp-ddt -c clean Loading cache: 100%
|#######################################################################
|#######################################################################
|#####################################################|
ETA:  00:00:00
Loaded 2194 entries from dependency cache.
Parsing recipes: 100%
|#######################################################################
|#######################################################################
|###################################################|
Time: 00:00:02
Parsing of 1766 .bb files complete (1758 cached, 8 parsed). 2201 targets, 199 skipped, 0 masked, 0 errors.
WARNING: No recipes available for:
/home/a0850405/code/tisdk/sources/meta-arago/meta-arago-distro/recipes-qt/qt5/qtbase_5.4.1.bbappend

/home/a0850405/code/tisdk/sources/meta-arago/meta-arago-distro/recipes-qt/qt5/qtwebkit_5.4.1.bbappend

NOTE: Resolving any missing task queue dependencies

Build Configuration:

BB_VERSION        = "1.22.0"
BUILD_SYS         = "i686-linux"
NATIVELSBSTRING   = "Ubuntu-14.04"
TARGET_SYS        = "arm-oe-linux-gnueabi"
MACHINE           = "dra7xx-evm"
DISTRO            = "arago"
DISTRO_VERSION    = "2015.02"
TUNE_FEATURES     = "armv7a vfp thumb neon callconvention-hard cortexa15"
TARGET_FPU        = "vfp-neon"

meta-arago-distro
meta-arago-extras = "master:7362ca23ba513bc8af251da6b8b8a7a029aeafca"
meta-qt5 = "master:adeaa6128b665920eb98eb7c064f4aacbd74b873"
toolchain-layer
meta-networking
meta-ruby
meta-oe = "daisy:91dbdff2e1a0ca3dae72dfe0aaa022fc28974314"
meta-ti = "daisy:a47fe3573ec2c7662eb385049807dea4f81fa284"
meta-linaro-toolchain = "daisy:bc63e777ad2748b8bfa7fa70ffd74700fa21a567"
meta = "daisy:f34de2175f1d6a443f219b8ceaaf796cfbc6efd5"

NOTE: Preparing runqueue
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 1 tasks of which 0 didn't need to be rerun and all succeeded.

Summary: There was 1 WARNING message shown.

a0850405@a0850405-off1:~/code/tisdk/build$ MACHINE=dra7xx-evm bitbake ltp-ddt Loading cache: 100%
|#######################################################################
|#######################################################################
|#####################################################|
ETA:  00:00:00
Loaded 2194 entries from dependency cache.
Parsing recipes: 100%
|#######################################################################
|#######################################################################
|###################################################|
Time: 00:00:01
Parsing of 1766 .bb files complete (1758 cached, 8 parsed). 2201 targets, 199 skipped, 0 masked, 0 errors.
WARNING: No recipes available for:
/home/a0850405/code/tisdk/sources/meta-arago/meta-arago-distro/recipes-qt/qt5/qtbase_5.4.1.bbappend

/home/a0850405/code/tisdk/sources/meta-arago/meta-arago-distro/recipes-qt/qt5/qtwebkit_5.4.1.bbappend

NOTE: Resolving any missing task queue dependencies

Build Configuration:

BB_VERSION        = "1.22.0"
BUILD_SYS         = "i686-linux"
NATIVELSBSTRING   = "Ubuntu-14.04"
TARGET_SYS        = "arm-oe-linux-gnueabi"
MACHINE           = "dra7xx-evm"
DISTRO            = "arago"
DISTRO_VERSION    = "2015.02"
TUNE_FEATURES     = "armv7a vfp thumb neon callconvention-hard cortexa15"
TARGET_FPU        = "vfp-neon"

meta-arago-distro
meta-arago-extras = "master:7362ca23ba513bc8af251da6b8b8a7a029aeafca"
meta-qt5 = "master:adeaa6128b665920eb98eb7c064f4aacbd74b873"
toolchain-layer
meta-networking
meta-ruby
meta-oe = "daisy:91dbdff2e1a0ca3dae72dfe0aaa022fc28974314"
meta-ti = "daisy:a47fe3573ec2c7662eb385049807dea4f81fa284"
meta-linaro-toolchain = "daisy:bc63e777ad2748b8bfa7fa70ffd74700fa21a567"
meta = "daisy:f34de2175f1d6a443f219b8ceaaf796cfbc6efd5"

NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 465 tasks of which 452 didn't need to be rerun and all succeeded.

Summary: There was 1 WARNING message shown.

a0850405@a0850405-off1:~/code/tisdk/build$ ls arago-tmp-external-linaro-toolchain/
abi_version     buildstats/     cache/          deploy/ log/
qa.log          saved_tmpdir    sstate-control/ stamps/
sysroots/       work/
a0850405@a0850405-off1:~/code/tisdk/build$ ls arago-tmp-external-linaro-toolchain/deploy/
images/   ipk/      licenses/
a0850405@a0850405-off1:~/code/tisdk/build$ ls arago-tmp-external-linaro-toolchain/deploy/ipk/
all/                    cortexa15t2hf-vfp-neon/ dra7xx_evm/
a0850405@a0850405-off1:~/code/tisdk/build$ ls arago-tmp-external-linaro-toolchain/deploy/ipk/dra7xx_evm/ -ltr ...
...
(quoted diff) +0 -2
-rw-r--r-- 2 a0850405 a0850405  38745494 Mar 10 16:32 ltp-ddt-dbg_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk
-rw-r--r-- 2 a0850405 a0850405       952 Mar 10 16:32

ltp-ddt-dev_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk
-rw-r--r-- 2 a0850405 a0850405 26224 Mar 10 16:32
ltp-ddt-doc_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk

(quoted diff) +0 -2
-rw-r--r-- 2 a0850405 a0850405  12129096 Mar 10 16:32 ltp-ddt_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk
-rw-r--r-- 2 a0850405 a0850405      3822 Mar 10 16:32

kernel-module-coproc-devfreq_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk
-rw-r--r-- 2 a0850405 a0850405 3132 Mar 10 16:32
kernel-module-gpio-test_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk
-rw-r--r-- 2 a0850405 a0850405 2452 Mar 10 16:32
kernel-module-kst-timer_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk
-rw-r--r-- 2 a0850405 a0850405 2828 Mar 10 16:32
kernel-module-rpmsg-client-sample_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

#11 lore raw
In reply to Stiffler, Jacob

I've done some more research since this is breaking all of my builds. Here is the command causing the error:

arm-linux-gnueabihf-gcc -march=armv7-a -marm -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a9 -L/opt/linaro-2013.03/arm-linux-gnueabihf/lib -Wl,-rpath-link,/opt/linaro-2013.03/arm-linux-gnueabihf/lib -Wl,-O1 -Wl,--hash-style=gnu --sysroot=/home/gtbldadm/ti/oe-layersetup/build-CORTEX_1/arago-tmp-external-linaro-toolchain/sysroots/am437x-evm -L/opt/linaro-2013.03/arm-linux-gnueabihf/lib -Wl,-rpath-link,/opt/linaro-2013.03/arm-linux-gnueabihf/lib -Wl,-O1 -Wl,--hash-style=gnu -L../lib ltp-bump.o zoolib.o -lm -lfl -o ltp-bump
/home/gtbldadm/ti/oe-layersetup/build-CORTEX_1/arago-tmp-external-linaro-toolchain/sysroots/am437x-evm/usr/lib/libfl.so: undefined reference to `yylex'
collect2: error: ld returned 1 exit status
make[1]: *** [ltp-bump] Error 1
make[1]: *** Waiting for unfinished jobs....

The symbol 'yylex' comes from a flex generated file. Not sure how this isn't being seen in all builds... This will need to link with a flex generated file. In this case, all I can see is scan.c, which is generated from scan.l. So should ltp_bump link with scan.o? If not, then why would ltp-bump need to link with libfl.so?

Can you find the log for linking 'ltp-bump' in one of the successful builds?

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Stiffler, Jacob
Sent: Thursday, March 12, 2015 9:20 AM
To: Hernandez, Carlos; Dmytriyenko, Denys
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] recipes-devtools: New ltp-ddt_1.0.0 recipe

Sounds like a missing dependency issue if an initial clean build fails, then cleaning ltp-ddt before continuing the build allows it to succeed in some cases.

- Jake

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Hernandez, Carlos
Sent: Thursday, March 12, 2015 9:10 AM
To: Dmytriyenko, Denys
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] recipes-devtools: New ltp-ddt_1.0.0 recipe

Quoted 6 lines · Denys Dmytriyenko

Doesn't help. It still fails for am57xx-evm. It seems to build fine for am335x-evm...

Besides the undefined yylex error (which might be non-fatal), I also see
these:

Quoted 9 lines

| clock_gettime03.c:141:4: error: '__NR_clock_gettime' undeclared | (first use in this function)

| clock_gettime03.c:168:31: error: 'cleanup' undeclared (first use in | this function)

| faccessat01.c:70:21: error: '__NR_faccessat' undeclared (first use | in this function)

I saw that error but it went away after cleaning ltp-ddt and rebuilding. See log below.

a0850405@a0850405-off1:~/code/tisdk/build$ MACHINE=dra7xx-evm bitbake ltp-ddt -c clean Loading cache: 100% 
|#######################################################################
|#######################################################################
|#####################################################|
ETA:  00:00:00
Loaded 2194 entries from dependency cache.
Parsing recipes: 100% 
|#######################################################################
|#######################################################################
|###################################################|
Time: 00:00:02
Parsing of 1766 .bb files complete (1758 cached, 8 parsed). 2201 targets, 199 skipped, 0 masked, 0 errors.
WARNING: No recipes available for:
/home/a0850405/code/tisdk/sources/meta-arago/meta-arago-distro/recipes-qt/qt5/qtbase_5.4.1.bbappend 

/home/a0850405/code/tisdk/sources/meta-arago/meta-arago-distro/recipes-qt/qt5/qtwebkit_5.4.1.bbappend

NOTE: Resolving any missing task queue dependencies

Build Configuration:

BB_VERSION        = "1.22.0"
BUILD_SYS         = "i686-linux"
NATIVELSBSTRING   = "Ubuntu-14.04"
TARGET_SYS        = "arm-oe-linux-gnueabi"
MACHINE           = "dra7xx-evm"
DISTRO            = "arago"
DISTRO_VERSION    = "2015.02"
TUNE_FEATURES     = "armv7a vfp thumb neon callconvention-hard cortexa15"
TARGET_FPU        = "vfp-neon"

meta-arago-distro
meta-arago-extras = "master:7362ca23ba513bc8af251da6b8b8a7a029aeafca"
meta-qt5 = "master:adeaa6128b665920eb98eb7c064f4aacbd74b873"
toolchain-layer
meta-networking
meta-ruby
meta-oe = "daisy:91dbdff2e1a0ca3dae72dfe0aaa022fc28974314"
meta-ti = "daisy:a47fe3573ec2c7662eb385049807dea4f81fa284"
meta-linaro-toolchain = "daisy:bc63e777ad2748b8bfa7fa70ffd74700fa21a567"
meta = "daisy:f34de2175f1d6a443f219b8ceaaf796cfbc6efd5"

NOTE: Preparing runqueue
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 1 tasks of which 0 didn't need to be rerun and all succeeded.

Summary: There was 1 WARNING message shown.

a0850405@a0850405-off1:~/code/tisdk/build$ MACHINE=dra7xx-evm bitbake ltp-ddt Loading cache: 100% 
|#######################################################################
|#######################################################################
|#####################################################|
ETA:  00:00:00
Loaded 2194 entries from dependency cache.
Parsing recipes: 100% 
|#######################################################################
|#######################################################################
|###################################################|
Time: 00:00:01
Parsing of 1766 .bb files complete (1758 cached, 8 parsed). 2201 targets, 199 skipped, 0 masked, 0 errors.
WARNING: No recipes available for:
/home/a0850405/code/tisdk/sources/meta-arago/meta-arago-distro/recipes-qt/qt5/qtbase_5.4.1.bbappend 

/home/a0850405/code/tisdk/sources/meta-arago/meta-arago-distro/recipes-qt/qt5/qtwebkit_5.4.1.bbappend

NOTE: Resolving any missing task queue dependencies

Build Configuration:

BB_VERSION        = "1.22.0"
BUILD_SYS         = "i686-linux"
NATIVELSBSTRING   = "Ubuntu-14.04"
TARGET_SYS        = "arm-oe-linux-gnueabi"
MACHINE           = "dra7xx-evm"
DISTRO            = "arago"
DISTRO_VERSION    = "2015.02"
TUNE_FEATURES     = "armv7a vfp thumb neon callconvention-hard cortexa15"
TARGET_FPU        = "vfp-neon"

meta-arago-distro
meta-arago-extras = "master:7362ca23ba513bc8af251da6b8b8a7a029aeafca"
meta-qt5 = "master:adeaa6128b665920eb98eb7c064f4aacbd74b873"
toolchain-layer
meta-networking
meta-ruby
meta-oe = "daisy:91dbdff2e1a0ca3dae72dfe0aaa022fc28974314"
meta-ti = "daisy:a47fe3573ec2c7662eb385049807dea4f81fa284"
meta-linaro-toolchain = "daisy:bc63e777ad2748b8bfa7fa70ffd74700fa21a567"
meta = "daisy:f34de2175f1d6a443f219b8ceaaf796cfbc6efd5"

NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 465 tasks of which 452 didn't need to be rerun and all succeeded.

Summary: There was 1 WARNING message shown.

a0850405@a0850405-off1:~/code/tisdk/build$ ls arago-tmp-external-linaro-toolchain/
abi_version     buildstats/     cache/          deploy/ log/            
qa.log          saved_tmpdir    sstate-control/ stamps/         
sysroots/       work/
a0850405@a0850405-off1:~/code/tisdk/build$ ls arago-tmp-external-linaro-toolchain/deploy/
images/   ipk/      licenses/
a0850405@a0850405-off1:~/code/tisdk/build$ ls arago-tmp-external-linaro-toolchain/deploy/ipk/
all/                    cortexa15t2hf-vfp-neon/ dra7xx_evm/
a0850405@a0850405-off1:~/code/tisdk/build$ ls arago-tmp-external-linaro-toolchain/deploy/ipk/dra7xx_evm/ -ltr ...
...
-rw-r--r-- 2 a0850405 a0850405  38745494 Mar 10 16:32 ltp-ddt-dbg_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk
-rw-r--r-- 2 a0850405 a0850405       952 Mar 10 16:32 
ltp-ddt-dev_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk
-rw-r--r-- 2 a0850405 a0850405     26224 Mar 10 16:32 
ltp-ddt-doc_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk
-rw-r--r-- 2 a0850405 a0850405  12129096 Mar 10 16:32 ltp-ddt_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk
-rw-r--r-- 2 a0850405 a0850405      3822 Mar 10 16:32 
kernel-module-coproc-devfreq_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk
-rw-r--r-- 2 a0850405 a0850405      3132 Mar 10 16:32 
kernel-module-gpio-test_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk
-rw-r--r-- 2 a0850405 a0850405      2452 Mar 10 16:32 
kernel-module-kst-timer_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk
-rw-r--r-- 2 a0850405 a0850405      2828 Mar 10 16:32 
kernel-module-rpmsg-client-sample_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

#23 lore raw
In reply to Stiffler, Jacob

There's definitely some implicit dependency going on there - just repeating a failed build of ltp-ddt makes it work the second time. It might be something internal to ltp-ddt, but I'm looking for any missing external deps for now...

Quoted 157 lines · Jacob

Sounds like a missing dependency issue if an initial clean build fails, then cleaning ltp-ddt before continuing the build allows it to succeed in some cases.

- Jake

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Hernandez, Carlos
Sent: Thursday, March 12, 2015 9:10 AM
To: Dmytriyenko, Denys
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] recipes-devtools: New ltp-ddt_1.0.0 recipe

Quoted 6 lines · Denys Dmytriyenko

Doesn't help. It still fails for am57xx-evm. It seems to build fine for am335x-evm...

Besides the undefined yylex error (which might be non-fatal), I also see
these:

Quoted 9 lines

| clock_gettime03.c:141:4: error: '__NR_clock_gettime' undeclared | (first use in this function)

| clock_gettime03.c:168:31: error: 'cleanup' undeclared (first use in | this function)

| faccessat01.c:70:21: error: '__NR_faccessat' undeclared (first use | in this function)

I saw that error but it went away after cleaning ltp-ddt and rebuilding. See log below.

a0850405@a0850405-off1:~/code/tisdk/build$ MACHINE=dra7xx-evm bitbake ltp-ddt -c clean Loading cache: 100% 
|#######################################################################
|#######################################################################
|#####################################################|
ETA:  00:00:00
Loaded 2194 entries from dependency cache.
Parsing recipes: 100% 
|#######################################################################
|#######################################################################
|###################################################|
Time: 00:00:02
Parsing of 1766 .bb files complete (1758 cached, 8 parsed). 2201 targets, 199 skipped, 0 masked, 0 errors.
WARNING: No recipes available for:
/home/a0850405/code/tisdk/sources/meta-arago/meta-arago-distro/recipes-qt/qt5/qtbase_5.4.1.bbappend 

/home/a0850405/code/tisdk/sources/meta-arago/meta-arago-distro/recipes-qt/qt5/qtwebkit_5.4.1.bbappend

NOTE: Resolving any missing task queue dependencies

Build Configuration:

BB_VERSION        = "1.22.0"
BUILD_SYS         = "i686-linux"
NATIVELSBSTRING   = "Ubuntu-14.04"
TARGET_SYS        = "arm-oe-linux-gnueabi"
MACHINE           = "dra7xx-evm"
DISTRO            = "arago"
DISTRO_VERSION    = "2015.02"
TUNE_FEATURES     = "armv7a vfp thumb neon callconvention-hard cortexa15"
TARGET_FPU        = "vfp-neon"

meta-arago-distro
meta-arago-extras = "master:7362ca23ba513bc8af251da6b8b8a7a029aeafca"
meta-qt5 = "master:adeaa6128b665920eb98eb7c064f4aacbd74b873"
toolchain-layer
meta-networking
meta-ruby
meta-oe = "daisy:91dbdff2e1a0ca3dae72dfe0aaa022fc28974314"
meta-ti = "daisy:a47fe3573ec2c7662eb385049807dea4f81fa284"
meta-linaro-toolchain = "daisy:bc63e777ad2748b8bfa7fa70ffd74700fa21a567"
meta = "daisy:f34de2175f1d6a443f219b8ceaaf796cfbc6efd5"

NOTE: Preparing runqueue
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 1 tasks of which 0 didn't need to be rerun and all succeeded.

Summary: There was 1 WARNING message shown.

a0850405@a0850405-off1:~/code/tisdk/build$ MACHINE=dra7xx-evm bitbake ltp-ddt Loading cache: 100% 
|#######################################################################
|#######################################################################
|#####################################################|
ETA:  00:00:00
Loaded 2194 entries from dependency cache.
Parsing recipes: 100% 
|#######################################################################
|#######################################################################
|###################################################|
Time: 00:00:01
Parsing of 1766 .bb files complete (1758 cached, 8 parsed). 2201 targets, 199 skipped, 0 masked, 0 errors.
WARNING: No recipes available for:
/home/a0850405/code/tisdk/sources/meta-arago/meta-arago-distro/recipes-qt/qt5/qtbase_5.4.1.bbappend 

/home/a0850405/code/tisdk/sources/meta-arago/meta-arago-distro/recipes-qt/qt5/qtwebkit_5.4.1.bbappend

NOTE: Resolving any missing task queue dependencies

Build Configuration:

BB_VERSION        = "1.22.0"
BUILD_SYS         = "i686-linux"
NATIVELSBSTRING   = "Ubuntu-14.04"
TARGET_SYS        = "arm-oe-linux-gnueabi"
MACHINE           = "dra7xx-evm"
DISTRO            = "arago"
DISTRO_VERSION    = "2015.02"
TUNE_FEATURES     = "armv7a vfp thumb neon callconvention-hard cortexa15"
TARGET_FPU        = "vfp-neon"

meta-arago-distro
meta-arago-extras = "master:7362ca23ba513bc8af251da6b8b8a7a029aeafca"
meta-qt5 = "master:adeaa6128b665920eb98eb7c064f4aacbd74b873"
toolchain-layer
meta-networking
meta-ruby
meta-oe = "daisy:91dbdff2e1a0ca3dae72dfe0aaa022fc28974314"
meta-ti = "daisy:a47fe3573ec2c7662eb385049807dea4f81fa284"
meta-linaro-toolchain = "daisy:bc63e777ad2748b8bfa7fa70ffd74700fa21a567"
meta = "daisy:f34de2175f1d6a443f219b8ceaaf796cfbc6efd5"

NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 465 tasks of which 452 didn't need to be rerun and all succeeded.

Summary: There was 1 WARNING message shown.

a0850405@a0850405-off1:~/code/tisdk/build$ ls arago-tmp-external-linaro-toolchain/
abi_version     buildstats/     cache/          deploy/ log/            
qa.log          saved_tmpdir    sstate-control/ stamps/         
sysroots/       work/
a0850405@a0850405-off1:~/code/tisdk/build$ ls arago-tmp-external-linaro-toolchain/deploy/
images/   ipk/      licenses/
a0850405@a0850405-off1:~/code/tisdk/build$ ls arago-tmp-external-linaro-toolchain/deploy/ipk/
all/                    cortexa15t2hf-vfp-neon/ dra7xx_evm/
a0850405@a0850405-off1:~/code/tisdk/build$ ls arago-tmp-external-linaro-toolchain/deploy/ipk/dra7xx_evm/ -ltr ...
...
(quoted diff) +0 -2
-rw-r--r-- 2 a0850405 a0850405  38745494 Mar 10 16:32 ltp-ddt-dbg_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk
-rw-r--r-- 2 a0850405 a0850405       952 Mar 10 16:32 

ltp-ddt-dev_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk
-rw-r--r-- 2 a0850405 a0850405 26224 Mar 10 16:32
ltp-ddt-doc_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk

(quoted diff) +0 -2
-rw-r--r-- 2 a0850405 a0850405  12129096 Mar 10 16:32 ltp-ddt_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk
-rw-r--r-- 2 a0850405 a0850405      3822 Mar 10 16:32 

kernel-module-coproc-devfreq_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk
-rw-r--r-- 2 a0850405 a0850405 3132 Mar 10 16:32
kernel-module-gpio-test_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk
-rw-r--r-- 2 a0850405 a0850405 2452 Mar 10 16:32
kernel-module-kst-timer_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk
-rw-r--r-- 2 a0850405 a0850405 2828 Mar 10 16:32
kernel-module-rpmsg-client-sample_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

#12 lore raw
In reply to Stiffler, Jacob

The issue appears to be in pan/Makfile. All targets link with $(LEXLIB), but only ltp-scanner should require it, and scan is the only lex file. Was this that old issue with parallel make?

LDLIBS += -lm $(LEXLIB)

LFLAGS += -l

INSTALL_DIR := bin

MAKE_TARGETS := ltp-bump ltp-pan

ifeq ($(strip $(LEXLIB)),)
$(warning ltp-scanner will not be built because a working copy of lex was not found) else
MAKE_TARGETS += ltp-scanner
endif

ltp-bump: ltp-bump.o zoolib.o

ltp-pan: ltp-pan.o zoolib.o splitstr.o

ltp-scanner: scan.o ltp-scanner.o reporter.o tag_report.o symbol.o splitstr.o debug.o

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Stiffler, Jacob
Sent: Thursday, March 12, 2015 10:22 AM
To: Hernandez, Carlos; Dmytriyenko, Denys
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] recipes-devtools: New ltp-ddt_1.0.0 recipe

I've done some more research since this is breaking all of my builds. Here is the command causing the error:

arm-linux-gnueabihf-gcc -march=armv7-a -marm -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a9 -L/opt/linaro-2013.03/arm-linux-gnueabihf/lib -Wl,-rpath-link,/opt/linaro-2013.03/arm-linux-gnueabihf/lib -Wl,-O1 -Wl,--hash-style=gnu --sysroot=/home/gtbldadm/ti/oe-layersetup/build-CORTEX_1/arago-tmp-external-linaro-toolchain/sysroots/am437x-evm -L/opt/linaro-2013.03/arm-linux-gnueabihf/lib -Wl,-rpath-link,/opt/linaro-2013.03/arm-linux-gnueabihf/lib -Wl,-O1 -Wl,--hash-style=gnu -L../lib ltp-bump.o zoolib.o -lm -lfl -o ltp-bump
/home/gtbldadm/ti/oe-layersetup/build-CORTEX_1/arago-tmp-external-linaro-toolchain/sysroots/am437x-evm/usr/lib/libfl.so: undefined reference to `yylex'
collect2: error: ld returned 1 exit status
make[1]: *** [ltp-bump] Error 1
make[1]: *** Waiting for unfinished jobs....

The symbol 'yylex' comes from a flex generated file. Not sure how this isn't being seen in all builds... This will need to link with a flex generated file. In this case, all I can see is scan.c, which is generated from scan.l. So should ltp_bump link with scan.o? If not, then why would ltp-bump need to link with libfl.so?

Can you find the log for linking 'ltp-bump' in one of the successful builds?

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Stiffler, Jacob
Sent: Thursday, March 12, 2015 9:20 AM
To: Hernandez, Carlos; Dmytriyenko, Denys
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] recipes-devtools: New ltp-ddt_1.0.0 recipe

Sounds like a missing dependency issue if an initial clean build fails, then cleaning ltp-ddt before continuing the build allows it to succeed in some cases.

- Jake

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Hernandez, Carlos
Sent: Thursday, March 12, 2015 9:10 AM
To: Dmytriyenko, Denys
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] recipes-devtools: New ltp-ddt_1.0.0 recipe

Quoted 6 lines · Denys Dmytriyenko

Doesn't help. It still fails for am57xx-evm. It seems to build fine for am335x-evm...

Besides the undefined yylex error (which might be non-fatal), I also see
these:

Quoted 9 lines

| clock_gettime03.c:141:4: error: '__NR_clock_gettime' undeclared | (first use in this function)

| clock_gettime03.c:168:31: error: 'cleanup' undeclared (first use in | this function)

| faccessat01.c:70:21: error: '__NR_faccessat' undeclared (first use | in this function)

I saw that error but it went away after cleaning ltp-ddt and rebuilding. See log below.

a0850405@a0850405-off1:~/code/tisdk/build$ MACHINE=dra7xx-evm bitbake ltp-ddt -c clean Loading cache: 100% 
|#######################################################################
|#######################################################################
|#####################################################|
ETA:  00:00:00
Loaded 2194 entries from dependency cache.
Parsing recipes: 100% 
|#######################################################################
|#######################################################################
|###################################################|
Time: 00:00:02
Parsing of 1766 .bb files complete (1758 cached, 8 parsed). 2201 targets, 199 skipped, 0 masked, 0 errors.
WARNING: No recipes available for:
/home/a0850405/code/tisdk/sources/meta-arago/meta-arago-distro/recipes-qt/qt5/qtbase_5.4.1.bbappend 

/home/a0850405/code/tisdk/sources/meta-arago/meta-arago-distro/recipes-qt/qt5/qtwebkit_5.4.1.bbappend

NOTE: Resolving any missing task queue dependencies

Build Configuration:

BB_VERSION        = "1.22.0"
BUILD_SYS         = "i686-linux"
NATIVELSBSTRING   = "Ubuntu-14.04"
TARGET_SYS        = "arm-oe-linux-gnueabi"
MACHINE           = "dra7xx-evm"
DISTRO            = "arago"
DISTRO_VERSION    = "2015.02"
TUNE_FEATURES     = "armv7a vfp thumb neon callconvention-hard cortexa15"
TARGET_FPU        = "vfp-neon"

meta-arago-distro
meta-arago-extras = "master:7362ca23ba513bc8af251da6b8b8a7a029aeafca"
meta-qt5 = "master:adeaa6128b665920eb98eb7c064f4aacbd74b873"
toolchain-layer
meta-networking
meta-ruby
meta-oe = "daisy:91dbdff2e1a0ca3dae72dfe0aaa022fc28974314"
meta-ti = "daisy:a47fe3573ec2c7662eb385049807dea4f81fa284"
meta-linaro-toolchain = "daisy:bc63e777ad2748b8bfa7fa70ffd74700fa21a567"
meta = "daisy:f34de2175f1d6a443f219b8ceaaf796cfbc6efd5"

NOTE: Preparing runqueue
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 1 tasks of which 0 didn't need to be rerun and all succeeded.

Summary: There was 1 WARNING message shown.

a0850405@a0850405-off1:~/code/tisdk/build$ MACHINE=dra7xx-evm bitbake ltp-ddt Loading cache: 100% 
|#######################################################################
|#######################################################################
|#####################################################|
ETA:  00:00:00
Loaded 2194 entries from dependency cache.
Parsing recipes: 100% 
|#######################################################################
|#######################################################################
|###################################################|
Time: 00:00:01
Parsing of 1766 .bb files complete (1758 cached, 8 parsed). 2201 targets, 199 skipped, 0 masked, 0 errors.
WARNING: No recipes available for:
/home/a0850405/code/tisdk/sources/meta-arago/meta-arago-distro/recipes-qt/qt5/qtbase_5.4.1.bbappend 

/home/a0850405/code/tisdk/sources/meta-arago/meta-arago-distro/recipes-qt/qt5/qtwebkit_5.4.1.bbappend

NOTE: Resolving any missing task queue dependencies

Build Configuration:

BB_VERSION        = "1.22.0"
BUILD_SYS         = "i686-linux"
NATIVELSBSTRING   = "Ubuntu-14.04"
TARGET_SYS        = "arm-oe-linux-gnueabi"
MACHINE           = "dra7xx-evm"
DISTRO            = "arago"
DISTRO_VERSION    = "2015.02"
TUNE_FEATURES     = "armv7a vfp thumb neon callconvention-hard cortexa15"
TARGET_FPU        = "vfp-neon"

meta-arago-distro
meta-arago-extras = "master:7362ca23ba513bc8af251da6b8b8a7a029aeafca"
meta-qt5 = "master:adeaa6128b665920eb98eb7c064f4aacbd74b873"
toolchain-layer
meta-networking
meta-ruby
meta-oe = "daisy:91dbdff2e1a0ca3dae72dfe0aaa022fc28974314"
meta-ti = "daisy:a47fe3573ec2c7662eb385049807dea4f81fa284"
meta-linaro-toolchain = "daisy:bc63e777ad2748b8bfa7fa70ffd74700fa21a567"
meta = "daisy:f34de2175f1d6a443f219b8ceaaf796cfbc6efd5"

NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 465 tasks of which 452 didn't need to be rerun and all succeeded.

Summary: There was 1 WARNING message shown.

a0850405@a0850405-off1:~/code/tisdk/build$ ls arago-tmp-external-linaro-toolchain/
abi_version     buildstats/     cache/          deploy/ log/            
qa.log          saved_tmpdir    sstate-control/ stamps/         
sysroots/       work/
a0850405@a0850405-off1:~/code/tisdk/build$ ls arago-tmp-external-linaro-toolchain/deploy/
images/   ipk/      licenses/
a0850405@a0850405-off1:~/code/tisdk/build$ ls arago-tmp-external-linaro-toolchain/deploy/ipk/
all/                    cortexa15t2hf-vfp-neon/ dra7xx_evm/
a0850405@a0850405-off1:~/code/tisdk/build$ ls arago-tmp-external-linaro-toolchain/deploy/ipk/dra7xx_evm/ -ltr ...
...
-rw-r--r-- 2 a0850405 a0850405  38745494 Mar 10 16:32 ltp-ddt-dbg_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk
-rw-r--r-- 2 a0850405 a0850405       952 Mar 10 16:32 
ltp-ddt-dev_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk
-rw-r--r-- 2 a0850405 a0850405     26224 Mar 10 16:32 
ltp-ddt-doc_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk
-rw-r--r-- 2 a0850405 a0850405  12129096 Mar 10 16:32 ltp-ddt_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk
-rw-r--r-- 2 a0850405 a0850405      3822 Mar 10 16:32 
kernel-module-coproc-devfreq_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk
-rw-r--r-- 2 a0850405 a0850405      3132 Mar 10 16:32 
kernel-module-gpio-test_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk
-rw-r--r-- 2 a0850405 a0850405      2452 Mar 10 16:32 
kernel-module-kst-timer_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk
-rw-r--r-- 2 a0850405 a0850405      2828 Mar 10 16:32 
kernel-module-rpmsg-client-sample_1.0.0-r1-arago10+gitrAUTOINC+eef6281052_dra7xx_evm.ipk

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

#13 lore raw
In reply to Stiffler, Jacob
Quoted 3 lines · Jacob

The symbol 'yylex' comes from a flex generated file. Not sure how this isn't being seen in all builds... This will need to link with a flex generated file. In this case, all I can see is scan.c, which is generated from scan.l. So should ltp_bump link with scan.o? If not, then why would ltp-bump need to link with libfl.so?

Can you find the log for linking 'ltp-bump' in one of the successful builds?

*14:59:13*  make[1]: Entering directory `/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan'
*14:59:13*  /scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan/Makefile:43: ltp-scanner will not be built because a working copy of lex was not found
*14:59:13*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -g -O2 -Wold-style-definition -D_FORTIFY_SOURCE=2 -Wno-error -I/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan -I../include -I../include  -c -o ltp-bump.o ltp-bump.c
*14:59:13*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -g -O2 -Wold-style-definition -D_FORTIFY_SOURCE=2 -Wno-error -I/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan -I../include -I../include  -c -o zoolib.o zoolib.c
*14:59:13*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc   -L../lib  ltp-bump.o zoolib.o   -lm  -o ltp-bump
*14:59:13*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -g -O2 -Wold-style-definition -D_FORTIFY_SOURCE=2 -Wno-error -I/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan -I../include -I../include  -c -o ltp-pan.o ltp-pan.c
*14:59:14*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -g -O2 -Wold-style-definition -D_FORTIFY_SOURCE=2 -Wno-error -I/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan -I../include -I../include  -c -o splitstr.o splitstr.c
*14:59:14*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc   -L../lib  ltp-pan.o zoolib.o splitstr.o   -lm  -o ltp-pan
*14:59:14*  make[1]: Leaving directory `/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan'
#14 lore raw

The successful build doesn't have -lfl after the ltp-scanner skip warning.

Quoted 16 lines · Carlos Hernandez
Quoted 3 lines · Jacob

The symbol 'yylex' comes from a flex generated file. Not sure how this isn't being seen in all builds... This will need to link with a flex generated file. In this case, all I can see is scan.c, which is generated from scan.l. So should ltp_bump link with scan.o? If not, then why would ltp-bump need to link with libfl.so?

Can you find the log for linking 'ltp-bump' in one of the successful builds?

*14:59:13*  make[1]: Entering directory `/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan'
*14:59:13*  /scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan/Makefile:43: ltp-scanner will not be built because a working copy of lex was not found
*14:59:13*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -g -O2 -Wold-style-definition -D_FORTIFY_SOURCE=2 -Wno-error -I/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan -I../include -I../include  -c -o ltp-bump.o ltp-bump.c
*14:59:13*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -g -O2 -Wold-style-definition -D_FORTIFY_SOURCE=2 -Wno-error -I/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan -I../include -I../include  -c -o zoolib.o zoolib.c
*14:59:13*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc   -L../lib  ltp-bump.o zoolib.o   -lm  -o ltp-bump
*14:59:13*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -g -O2 -Wold-style-definition -D_FORTIFY_SOURCE=2 -Wno-error -I/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan -I../include -I../include  -c -o ltp-pan.o ltp-pan.c
*14:59:14*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -g -O2 -Wold-style-definition -D_FORTIFY_SOURCE=2 -Wno-error -I/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan -I../include -I../include  -c -o splitstr.o splitstr.c
*14:59:14*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc   -L../lib  ltp-pan.o zoolib.o splitstr.o   -lm  -o ltp-pan
*14:59:14*  make[1]: Leaving directory `/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan'
#15 lore raw

The warning implies that LEXLIB is not defined. Therefore LEXLIB should not be linked for all targets in pan/Makefile, only ltp-scanner.

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Thursday, March 12, 2015 10:42 AM
To: Hernandez, Carlos
Cc: Stiffler, Jacob; [email protected]
Subject: Re: [meta-arago] [PATCH] recipes-devtools: New ltp-ddt_1.0.0 recipe

The successful build doesn't have -lfl after the ltp-scanner skip warning.

Quoted 16 lines · Carlos Hernandez
Quoted 3 lines · Jacob

The symbol 'yylex' comes from a flex generated file. Not sure how this isn't being seen in all builds... This will need to link with a flex generated file. In this case, all I can see is scan.c, which is generated from scan.l. So should ltp_bump link with scan.o? If not, then why would ltp-bump need to link with libfl.so?

Can you find the log for linking 'ltp-bump' in one of the successful builds?

*14:59:13*  make[1]: Entering directory `/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan'
*14:59:13*  /scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan/Makefile:43: ltp-scanner will not be built because a working copy of lex was not found
*14:59:13*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -g -O2 -Wold-style-definition -D_FORTIFY_SOURCE=2 -Wno-error -I/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan -I../include -I../include  -c -o ltp-bump.o ltp-bump.c
*14:59:13*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -g -O2 -Wold-style-definition -D_FORTIFY_SOURCE=2 -Wno-error -I/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan -I../include -I../include  -c -o zoolib.o zoolib.c
*14:59:13*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc   -L../lib  ltp-bump.o zoolib.o   -lm  -o ltp-bump
*14:59:13*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -g -O2 -Wold-style-definition -D_FORTIFY_SOURCE=2 -Wno-error -I/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan -I../include -I../include  -c -o ltp-pan.o ltp-pan.c
*14:59:14*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -g -O2 -Wold-style-definition -D_FORTIFY_SOURCE=2 -Wno-error -I/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan -I../include -I../include  -c -o splitstr.o splitstr.c
*14:59:14*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc   -L../lib  ltp-pan.o zoolib.o splitstr.o   -lm  -o ltp-pan
*14:59:14*  make[1]: Leaving directory `/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan'
#16 lore raw

The file ./include/mk/config.mk.default makes sure that LEXLIB is undefined.

The meta-oe version of the recipe for v 0.0.4 has a custom configure stage to make sure that ./include/mk/config.mk.default is the config.mk used:

do_configure() {
    cp ${S}/include/config.h.default ${S}/include/config.h
    cp ${S}/include/mk/config.mk.default ${S}/include/mk/config.mk
    cp ${S}/include/mk/features.mk.default ${S}/include/mk/features.mk
    echo "${TAG}" > ${S}/ChangeLog
}

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Stiffler, Jacob
Sent: Thursday, March 12, 2015 10:44 AM
To: Dmytriyenko, Denys; Hernandez, Carlos
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] recipes-devtools: New ltp-ddt_1.0.0 recipe

The warning implies that LEXLIB is not defined. Therefore LEXLIB should not be linked for all targets in pan/Makefile, only ltp-scanner.

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Thursday, March 12, 2015 10:42 AM
To: Hernandez, Carlos
Cc: Stiffler, Jacob; [email protected]
Subject: Re: [meta-arago] [PATCH] recipes-devtools: New ltp-ddt_1.0.0 recipe

The successful build doesn't have -lfl after the ltp-scanner skip warning.

Quoted 5 lines · Carlos Hernandez
Quoted 3 lines · Jacob

The symbol 'yylex' comes from a flex generated file. Not sure how this isn't being seen in all builds... This will need to link with a flex generated file. In this case, all I can see is scan.c, which is generated from scan.l. So should ltp_bump link with scan.o? If not, then why would ltp-bump need to link with libfl.so?

Can you find the log for linking 'ltp-bump' in one of the successful builds?

Quoted 11 lines
*14:59:13*  make[1]: Entering directory `/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan'
*14:59:13*  /scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan/Makefile:43: ltp-scanner will not be built because a working copy of lex was not found
*14:59:13*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -g -O2 -Wold-style-definition -D_FORTIFY_SOURCE=2 -Wno-error -I/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan -I../include -I../include  -c -o ltp-bump.o ltp-bump.c
*14:59:13*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -g -O2 -Wold-style-definition -D_FORTIFY_SOURCE=2 -Wno-error -I/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan -I../include -I../include  -c -o zoolib.o zoolib.c
*14:59:13*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc   -L../lib  ltp-bump.o zoolib.o   -lm  -o ltp-bump
*14:59:13*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -g -O2 -Wold-style-definition -D_FORTIFY_SOURCE=2 -Wno-error -I/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan -I../include -I../include  -c -o ltp-pan.o ltp-pan.c
*14:59:14*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -g -O2 -Wold-style-definition -D_FORTIFY_SOURCE=2 -Wno-error -I/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan -I../include -I../include  -c -o splitstr.o splitstr.c
*14:59:14*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc   -L../lib  ltp-pan.o zoolib.o splitstr.o   -lm  -o ltp-pan
*14:59:14*  make[1]: Leaving directory `/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan'

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

#22 lore raw
In reply to Stiffler, Jacob

Yes, I understand that. The question is why LEXLIB is not defined and is it needed along with ltp-scanner?

Now, libfl library provides a standard main() stub that calls yylex() externally, which you have to provide for lexical analyser. And since only scan.c provides yylex(), that compile line should be the only one to link against libfl.

Quoted 30 lines · Jacob

The warning implies that LEXLIB is not defined. Therefore LEXLIB should not be linked for all targets in pan/Makefile, only ltp-scanner.

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Thursday, March 12, 2015 10:42 AM
To: Hernandez, Carlos
Cc: Stiffler, Jacob; [email protected]
Subject: Re: [meta-arago] [PATCH] recipes-devtools: New ltp-ddt_1.0.0 recipe

The successful build doesn't have -lfl after the ltp-scanner skip warning.

Quoted 16 lines · Carlos Hernandez
Quoted 3 lines · Jacob

The symbol 'yylex' comes from a flex generated file. Not sure how this isn't being seen in all builds... This will need to link with a flex generated file. In this case, all I can see is scan.c, which is generated from scan.l. So should ltp_bump link with scan.o? If not, then why would ltp-bump need to link with libfl.so?

Can you find the log for linking 'ltp-bump' in one of the successful builds?

*14:59:13*  make[1]: Entering directory `/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan'
*14:59:13*  /scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan/Makefile:43: ltp-scanner will not be built because a working copy of lex was not found
*14:59:13*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -g -O2 -Wold-style-definition -D_FORTIFY_SOURCE=2 -Wno-error -I/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan -I../include -I../include  -c -o ltp-bump.o ltp-bump.c
*14:59:13*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -g -O2 -Wold-style-definition -D_FORTIFY_SOURCE=2 -Wno-error -I/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan -I../include -I../include  -c -o zoolib.o zoolib.c
*14:59:13*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc   -L../lib  ltp-bump.o zoolib.o   -lm  -o ltp-bump
*14:59:13*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -g -O2 -Wold-style-definition -D_FORTIFY_SOURCE=2 -Wno-error -I/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan -I../include -I../include  -c -o ltp-pan.o ltp-pan.c
*14:59:14*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -g -O2 -Wold-style-definition -D_FORTIFY_SOURCE=2 -Wno-error -I/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan -I../include -I../include  -c -o splitstr.o splitstr.c
*14:59:14*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc   -L../lib  ltp-pan.o zoolib.o splitstr.o   -lm  -o ltp-pan
*14:59:14*  make[1]: Leaving directory `/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan'
#17 lore raw
In reply to Stiffler, Jacob

I'm fine putting those lines back - I didn't know if those were still required, as they were missing from Carlos' version.

But, again, that will skip ltp-scanner - is that needed at all?

Quoted 54 lines · Jacob

The file ./include/mk/config.mk.default makes sure that LEXLIB is undefined.

The meta-oe version of the recipe for v 0.0.4 has a custom configure stage to make sure that ./include/mk/config.mk.default is the config.mk used:

do_configure() {
    cp ${S}/include/config.h.default ${S}/include/config.h
    cp ${S}/include/mk/config.mk.default ${S}/include/mk/config.mk
    cp ${S}/include/mk/features.mk.default ${S}/include/mk/features.mk
    echo "${TAG}" > ${S}/ChangeLog
}

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Stiffler, Jacob
Sent: Thursday, March 12, 2015 10:44 AM
To: Dmytriyenko, Denys; Hernandez, Carlos
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] recipes-devtools: New ltp-ddt_1.0.0 recipe

The warning implies that LEXLIB is not defined. Therefore LEXLIB should not be linked for all targets in pan/Makefile, only ltp-scanner.

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Thursday, March 12, 2015 10:42 AM
To: Hernandez, Carlos
Cc: Stiffler, Jacob; [email protected]
Subject: Re: [meta-arago] [PATCH] recipes-devtools: New ltp-ddt_1.0.0 recipe

The successful build doesn't have -lfl after the ltp-scanner skip warning.

Quoted 5 lines · Carlos Hernandez
Quoted 3 lines · Jacob

The symbol 'yylex' comes from a flex generated file. Not sure how this isn't being seen in all builds... This will need to link with a flex generated file. In this case, all I can see is scan.c, which is generated from scan.l. So should ltp_bump link with scan.o? If not, then why would ltp-bump need to link with libfl.so?

Can you find the log for linking 'ltp-bump' in one of the successful builds?

Quoted 11 lines
*14:59:13*  make[1]: Entering directory `/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan'
*14:59:13*  /scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan/Makefile:43: ltp-scanner will not be built because a working copy of lex was not found
*14:59:13*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -g -O2 -Wold-style-definition -D_FORTIFY_SOURCE=2 -Wno-error -I/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan -I../include -I../include  -c -o ltp-bump.o ltp-bump.c
*14:59:13*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -g -O2 -Wold-style-definition -D_FORTIFY_SOURCE=2 -Wno-error -I/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan -I../include -I../include  -c -o zoolib.o zoolib.c
*14:59:13*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc   -L../lib  ltp-bump.o zoolib.o   -lm  -o ltp-bump
*14:59:13*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -g -O2 -Wold-style-definition -D_FORTIFY_SOURCE=2 -Wno-error -I/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan -I../include -I../include  -c -o ltp-pan.o ltp-pan.c
*14:59:14*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -g -O2 -Wold-style-definition -D_FORTIFY_SOURCE=2 -Wno-error -I/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan -I../include -I../include  -c -o splitstr.o splitstr.c
*14:59:14*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc   -L../lib  ltp-pan.o zoolib.o splitstr.o   -lm  -o ltp-pan
*14:59:14*  make[1]: Leaving directory `/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan'

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

#19 lore raw
In reply to Stiffler, Jacob

configure does set LEXLIB to blank.

$ cat 1.0.0-r1-arago10+gitrAUTOINC+91a8baa2f8/git/config.log | grep LEXLIB
LEXLIB=''
Quoted 52 lines · Jacob

The file ./include/mk/config.mk.default makes sure that LEXLIB is undefined.

The meta-oe version of the recipe for v 0.0.4 has a custom configure stage to make sure that ./include/mk/config.mk.default is the config.mk used:

do_configure() {
     cp ${S}/include/config.h.default ${S}/include/config.h
     cp ${S}/include/mk/config.mk.default ${S}/include/mk/config.mk
     cp ${S}/include/mk/features.mk.default ${S}/include/mk/features.mk
     echo "${TAG}" > ${S}/ChangeLog
}

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Stiffler, Jacob
Sent: Thursday, March 12, 2015 10:44 AM
To: Dmytriyenko, Denys; Hernandez, Carlos
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] recipes-devtools: New ltp-ddt_1.0.0 recipe

The warning implies that LEXLIB is not defined. Therefore LEXLIB should not be linked for all targets in pan/Makefile, only ltp-scanner.

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Thursday, March 12, 2015 10:42 AM
To: Hernandez, Carlos
Cc: Stiffler, Jacob; [email protected]
Subject: Re: [meta-arago] [PATCH] recipes-devtools: New ltp-ddt_1.0.0 recipe

The successful build doesn't have -lfl after the ltp-scanner skip warning.

Quoted 4 lines · Carlos Hernandez
Quoted 3 lines · Jacob

The symbol 'yylex' comes from a flex generated file. Not sure how this isn't being seen in all builds... This will need to link with a flex generated file. In this case, all I can see is scan.c, which is generated from scan.l. So should ltp_bump link with scan.o? If not, then why would ltp-bump need to link with libfl.so?

Can you find the log for linking 'ltp-bump' in one of the successful builds?

Quoted 11 lines
*14:59:13*  make[1]: Entering directory `/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan'
*14:59:13*  /scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan/Makefile:43: ltp-scanner will not be built because a working copy of lex was not found
*14:59:13*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -g -O2 -Wold-style-definition -D_FORTIFY_SOURCE=2 -Wno-error -I/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan -I../include -I../include  -c -o ltp-bump.o ltp-bump.c
*14:59:13*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -g -O2 -Wold-style-definition -D_FORTIFY_SOURCE=2 -Wno-error -I/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan -I../include -I../include  -c -o zoolib.o zoolib.c
*14:59:13*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc   -L../lib  ltp-bump.o zoolib.o   -lm  -o ltp-bump
*14:59:13*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -g -O2 -Wold-style-definition -D_FORTIFY_SOURCE=2 -Wno-error -I/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan -I../include -I../include  -c -o ltp-pan.o ltp-pan.c
*14:59:14*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -g -O2 -Wold-style-definition -D_FORTIFY_SOURCE=2 -Wno-error -I/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan -I../include -I../include  -c -o splitstr.o splitstr.c
*14:59:14*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc   -L../lib  ltp-pan.o zoolib.o splitstr.o   -lm  -o ltp-pan
*14:59:14*  make[1]: Leaving directory `/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan'

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

#20 lore raw

I get something different:

work/am437x_evm-oe-linux-gnueabi/ltp-ddt/1.0.0-r0/git$ cat config.log | grep LEXLIB LEXLIB='-lfl'

-----Original Message-----
From: Hernandez, Carlos
Sent: Thursday, March 12, 2015 10:56 AM
To: Stiffler, Jacob; Dmytriyenko, Denys
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] recipes-devtools: New ltp-ddt_1.0.0 recipe

configure does set LEXLIB to blank.

$ cat 1.0.0-r1-arago10+gitrAUTOINC+91a8baa2f8/git/config.log | grep LEXLIB LEXLIB=''
Quoted 71 lines · Jacob

The file ./include/mk/config.mk.default makes sure that LEXLIB is undefined.

The meta-oe version of the recipe for v 0.0.4 has a custom configure stage to make sure that ./include/mk/config.mk.default is the config.mk used:

do_configure() {
     cp ${S}/include/config.h.default ${S}/include/config.h
     cp ${S}/include/mk/config.mk.default ${S}/include/mk/config.mk
     cp ${S}/include/mk/features.mk.default ${S}/include/mk/features.mk
     echo "${TAG}" > ${S}/ChangeLog
}

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Stiffler, Jacob
Sent: Thursday, March 12, 2015 10:44 AM
To: Dmytriyenko, Denys; Hernandez, Carlos
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] recipes-devtools: New ltp-ddt_1.0.0 recipe

The warning implies that LEXLIB is not defined. Therefore LEXLIB should not be linked for all targets in pan/Makefile, only ltp-scanner.

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Thursday, March 12, 2015 10:42 AM
To: Hernandez, Carlos
Cc: Stiffler, Jacob; [email protected]
Subject: Re: [meta-arago] [PATCH] recipes-devtools: New ltp-ddt_1.0.0 recipe

The successful build doesn't have -lfl after the ltp-scanner skip warning.

Quoted 25 lines · Carlos Hernandez
Quoted 3 lines · Jacob

The symbol 'yylex' comes from a flex generated file. Not sure how this isn't being seen in all builds... This will need to link with a flex generated file. In this case, all I can see is scan.c, which is generated from scan.l. So should ltp_bump link with scan.o? If not, then why would ltp-bump need to link with libfl.so?

Can you find the log for linking 'ltp-bump' in one of the successful builds?

*14:59:13* make[1]: Entering directory `/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan' *14:59:13*
/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-dd
t/pan/Makefile:43: ltp-scanner will not be built because a working
copy of lex was not found
*14:59:13*
/home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integrati on/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc -g -O2 -g -O2

(quoted diff) +0 -3
-fno-strict-aliasing -pipe -Wall -W -g -O2 -Wold-style-definition 
-D_FORTIFY_SOURCE=2 -Wno-error 
-I/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-

ddt/pan -I../include -I../include -c -o ltp-bump.o ltp-bump.c
*14:59:13* /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -g -O2 -Wold-style-definition -D_FORTIFY_SOURCE=2 -Wno-error -I/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan -I../include -I../include -c -o zoolib.o zoolib.c
*14:59:13* /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc -L../lib ltp-bump.o zoolib.o -lm -o ltp-bump
*14:59:13*
/home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integrati
on/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc -g -O2 -g -O2

(quoted diff) +0 -3
-fno-strict-aliasing -pipe -Wall -W -g -O2 -Wold-style-definition 
-D_FORTIFY_SOURCE=2 -Wno-error 
-I/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-

ddt/pan -I../include -I../include -c -o ltp-pan.o ltp-pan.c

Quoted 5 lines
*14:59:14*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -g -O2 -Wold-style-definition -D_FORTIFY_SOURCE=2 -Wno-error -I/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan -I../include -I../include  -c -o splitstr.o splitstr.c
*14:59:14*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc   -L../lib  ltp-pan.o zoolib.o splitstr.o   -lm  -o ltp-pan
*14:59:14*  make[1]: Leaving directory `/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan'

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

#18 lore raw
In reply to Denys Dmytriyenko

I don't think ltp-scanner is needed. However, we do want to run configure as it defines bunch of symbols required to build.

Carlos

Quoted 60 lines · Denys Dmytriyenko

I'm fine putting those lines back - I didn't know if those were still required, as they were missing from Carlos' version.

But, again, that will skip ltp-scanner - is that needed at all?

Quoted 53 lines · Jacob

The file ./include/mk/config.mk.default makes sure that LEXLIB is undefined.

The meta-oe version of the recipe for v 0.0.4 has a custom configure stage to make sure that ./include/mk/config.mk.default is the config.mk used:

do_configure() {
     cp ${S}/include/config.h.default ${S}/include/config.h
     cp ${S}/include/mk/config.mk.default ${S}/include/mk/config.mk
     cp ${S}/include/mk/features.mk.default ${S}/include/mk/features.mk
     echo "${TAG}" > ${S}/ChangeLog
}

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Stiffler, Jacob
Sent: Thursday, March 12, 2015 10:44 AM
To: Dmytriyenko, Denys; Hernandez, Carlos
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] recipes-devtools: New ltp-ddt_1.0.0 recipe

The warning implies that LEXLIB is not defined. Therefore LEXLIB should not be linked for all targets in pan/Makefile, only ltp-scanner.

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Thursday, March 12, 2015 10:42 AM
To: Hernandez, Carlos
Cc: Stiffler, Jacob; [email protected]
Subject: Re: [meta-arago] [PATCH] recipes-devtools: New ltp-ddt_1.0.0 recipe

The successful build doesn't have -lfl after the ltp-scanner skip warning.

Quoted 4 lines · Carlos Hernandez
Quoted 3 lines · Jacob

The symbol 'yylex' comes from a flex generated file. Not sure how this isn't being seen in all builds... This will need to link with a flex generated file. In this case, all I can see is scan.c, which is generated from scan.l. So should ltp_bump link with scan.o? If not, then why would ltp-bump need to link with libfl.so?

Can you find the log for linking 'ltp-bump' in one of the successful builds?

Quoted 11 lines
*14:59:13*  make[1]: Entering directory `/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan'
*14:59:13*  /scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan/Makefile:43: ltp-scanner will not be built because a working copy of lex was not found
*14:59:13*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -g -O2 -Wold-style-definition -D_FORTIFY_SOURCE=2 -Wno-error -I/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan -I../include -I../include  -c -o ltp-bump.o ltp-bump.c
*14:59:13*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -g -O2 -Wold-style-definition -D_FORTIFY_SOURCE=2 -Wno-error -I/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan -I../include -I../include  -c -o zoolib.o zoolib.c
*14:59:13*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc   -L../lib  ltp-bump.o zoolib.o   -lm  -o ltp-bump
*14:59:13*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -g -O2 -Wold-style-definition -D_FORTIFY_SOURCE=2 -Wno-error -I/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan -I../include -I../include  -c -o ltp-pan.o ltp-pan.c
*14:59:14*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -g -O2 -Wold-style-definition -D_FORTIFY_SOURCE=2 -Wno-error -I/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan -I../include -I../include  -c -o splitstr.o splitstr.c
*14:59:14*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc   -L../lib  ltp-pan.o zoolib.o splitstr.o   -lm  -o ltp-pan
*14:59:14*  make[1]: Leaving directory `/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan'

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

#21 lore raw
In reply to Stiffler, Jacob

Heh, and now my build passed the yylex() issue due to LEXLIB being magically empty this time around, but failed due to all __NR_* issues...

Quoted 91 lines · Jacob

I get something different:

work/am437x_evm-oe-linux-gnueabi/ltp-ddt/1.0.0-r0/git$ cat config.log | grep LEXLIB LEXLIB='-lfl'

-----Original Message-----
From: Hernandez, Carlos
Sent: Thursday, March 12, 2015 10:56 AM
To: Stiffler, Jacob; Dmytriyenko, Denys
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] recipes-devtools: New ltp-ddt_1.0.0 recipe

configure does set LEXLIB to blank.

$ cat 1.0.0-r1-arago10+gitrAUTOINC+91a8baa2f8/git/config.log | grep LEXLIB LEXLIB=''
Quoted 71 lines · Jacob

The file ./include/mk/config.mk.default makes sure that LEXLIB is undefined.

The meta-oe version of the recipe for v 0.0.4 has a custom configure stage to make sure that ./include/mk/config.mk.default is the config.mk used:

do_configure() {
     cp ${S}/include/config.h.default ${S}/include/config.h
     cp ${S}/include/mk/config.mk.default ${S}/include/mk/config.mk
     cp ${S}/include/mk/features.mk.default ${S}/include/mk/features.mk
     echo "${TAG}" > ${S}/ChangeLog
}

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Stiffler, Jacob
Sent: Thursday, March 12, 2015 10:44 AM
To: Dmytriyenko, Denys; Hernandez, Carlos
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] recipes-devtools: New ltp-ddt_1.0.0 recipe

The warning implies that LEXLIB is not defined. Therefore LEXLIB should not be linked for all targets in pan/Makefile, only ltp-scanner.

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Thursday, March 12, 2015 10:42 AM
To: Hernandez, Carlos
Cc: Stiffler, Jacob; [email protected]
Subject: Re: [meta-arago] [PATCH] recipes-devtools: New ltp-ddt_1.0.0 recipe

The successful build doesn't have -lfl after the ltp-scanner skip warning.

Quoted 25 lines · Carlos Hernandez
Quoted 3 lines · Jacob

The symbol 'yylex' comes from a flex generated file. Not sure how this isn't being seen in all builds... This will need to link with a flex generated file. In this case, all I can see is scan.c, which is generated from scan.l. So should ltp_bump link with scan.o? If not, then why would ltp-bump need to link with libfl.so?

Can you find the log for linking 'ltp-bump' in one of the successful builds?

*14:59:13* make[1]: Entering directory `/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan' *14:59:13*
/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-dd
t/pan/Makefile:43: ltp-scanner will not be built because a working
copy of lex was not found
*14:59:13*
/home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integrati on/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc -g -O2 -g -O2

(quoted diff) +0 -3
-fno-strict-aliasing -pipe -Wall -W -g -O2 -Wold-style-definition 
-D_FORTIFY_SOURCE=2 -Wno-error 
-I/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-

ddt/pan -I../include -I../include -c -o ltp-bump.o ltp-bump.c
*14:59:13* /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -g -O2 -Wold-style-definition -D_FORTIFY_SOURCE=2 -Wno-error -I/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan -I../include -I../include -c -o zoolib.o zoolib.c
*14:59:13* /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc -L../lib ltp-bump.o zoolib.o -lm -o ltp-bump
*14:59:13*
/home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integrati
on/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc -g -O2 -g -O2

(quoted diff) +0 -3
-fno-strict-aliasing -pipe -Wall -W -g -O2 -Wold-style-definition 
-D_FORTIFY_SOURCE=2 -Wno-error 
-I/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-

ddt/pan -I../include -I../include -c -o ltp-pan.o ltp-pan.c

Quoted 5 lines
*14:59:14*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -g -O2 -Wold-style-definition -D_FORTIFY_SOURCE=2 -Wno-error -I/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan -I../include -I../include  -c -o splitstr.o splitstr.c
*14:59:14*  /home/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/integration/toolchain/linaro-4.7/bin/arm-linux-gnueabihf-gcc   -L../lib  ltp-pan.o zoolib.o splitstr.o   -lm  -o ltp-pan
*14:59:14*  make[1]: Leaving directory `/scratch/lcpdbld/jenkins_ws/workspace/start-ltp-ddt-next-build/ltp-ddt/pan'

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago