From: Tom Zanussi <tom.zanussi@intel.com>
To: Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Subject: Re: systemtap build fails
Date: Mon, 04 Jun 2012 09:20:42 -0500 [thread overview]
Message-ID: <1338819642.28421.26.camel@elmorro> (raw)
In-Reply-To: <CALbNGRQ_9XmHOQyPZUoT4rUKmjzH_vxBidYp_eJ0vsLAZNe1rw@mail.gmail.com>
On Fri, 2012-06-01 at 01:18 +0200, Andreas Müller wrote:
> Hi,
>
> I pulled today, started a build from scratch and ran into trouble with
> systemtap:
> ...
> | In file included from csclient.h:12:0,
> | from main.cxx:24:
> | cscommon.h:8:17: fatal error: ssl.h: No such file or directory
> | compilation terminated.
> | In file included from csclient.h:12:0,
> | from session.cxx:18:
> | cscommon.h:8:17: fatal error: ssl.h: No such file or directory
> | compilation terminated.
> | make[2]: *** [stap-session.o] Error 1
> | make[2]: *** Waiting for unfinished jobs....
> | make[2]: *** [stap-main.o] Error 1
> | make[2]: Leaving directory
> `/home/Superandy/tmp/oe-core-eglibc/work/armv7a-angstrom-linux-gnueabi/systemtap-1.7+git1+83bd2699d8cff2f2d6b9eaf5ea254e4cb6b33e81-r4/git'
> | make[1]: *** [all-recursive] Error 1
> | make[1]: Leaving directory
> `/home/Superandy/tmp/oe-core-eglibc/work/armv7a-angstrom-linux-gnueabi/systemtap-1.7+git1+83bd2699d8cff2f2d6b9eaf5ea254e4cb6b33e81-r4/git'
> | make: *** [all] Error 2
> | ERROR: oe_runmake failed
> ...
>
> I added --without-nss to EXTRA_OECONF and rebuild. Now stap-main.o and
> stap-session.o were build but now I get
> ...
> | modverify.c:28:21: fatal error: pk11pub.h: No such file or directory
> | compilation terminated.
> | make[3]: *** [staprun-modverify.o] Error 1
> | make[3]: *** Waiting for unfinished jobs....
> | ../../nsscommon.cxx:37:17: fatal error: ssl.h: No such file or directory
> | compilation terminated.
> | make[3]: *** [staprun-nsscommon.o] Error 1
> | make[3]: Leaving directory
> `/home/Superandy/tmp/oe-core-eglibc/work/armv7a-angstrom-linux-gnueabi/systemtap-1.7+git1+83bd2699d8cff2f2d6b9eaf5ea254e4cb6b33e81-r5/git/runtime/staprun'
> | make[2]: *** [all] Error 2
> | make[2]: Leaving directory
> `/home/Superandy/tmp/oe-core-eglibc/work/armv7a-angstrom-linux-gnueabi/systemtap-1.7+git1+83bd2699d8cff2f2d6b9eaf5ea254e4cb6b33e81-r5/git/runtime/staprun'
> | make[1]: *** [all-recursive] Error 1
> | make[1]: Leaving directory
> `/home/Superandy/tmp/oe-core-eglibc/work/armv7a-angstrom-linux-gnueabi/systemtap-1.7+git1+83bd2699d8cff2f2d6b9eaf5ea254e4cb6b33e81-r5/git'
> | make: *** [all] Error 2
> | ERROR: oe_runmake failed
> ...
>
> In config.log I find
> ...
> HAVE_NSS_TRUE='#'
> ...
>
> This is strange: In runtime/staprun/Makefile.am the failed files
> should be excluded from build
> ...
> if HAVE_NSS
> staprun_SOURCES += modverify.c ../../nsscommon.cxx
> staprun_CFLAGS += $(nss_CFLAGS)
> staprun_CXXFLAGS += $(nss_CFLAGS)
> staprun_LDADD += $(nss_LIBS)
> endif
> ...
>
> Seems HAVE_NSS_TRUE='#' has not reached runtime/staprun
>
> Any thoughts?
>
Looks like systemtap changed some configuration that the recipe was
relying on. Could you try this patch and see if it fixes things?
Thanks,
Tom
[PATCH] systemtap: disable some optional features
Version 1.7 changed the way some of the configuration works,
specifically, it removed some of the header checks for nss and avahi
that the recipe was relying on and replaced them with a couple new
config options.
We'll also disable the server, which was the component making use of
nss in the first place, and the grapher, which isn't core
functionality either.
Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
---
meta/recipes-kernel/systemtap/systemtap_git.bb | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/meta/recipes-kernel/systemtap/systemtap_git.bb b/meta/recipes-kernel/systemtap/systemtap_git.bb
index 4d340fc..3b727b8 100644
--- a/meta/recipes-kernel/systemtap/systemtap_git.bb
+++ b/meta/recipes-kernel/systemtap/systemtap_git.bb
@@ -6,19 +6,15 @@ DEPENDS = "elfutils sqlite3 systemtap-native"
DEPENDS_virtclass-native = "elfutils-native sqlite3-native gettext-native"
DEPENDS_virtclass-nativesdk = "elfutils-nativesdk sqlite3-nativesdk gettext-nativesdk"
-PR = "r4"
+PR = "r5"
export CC_FOR_BUILD = "${BUILD_CC}"
export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS}"
export LDFLAGS_FOR_BUILD = "${BUILD_LDFLAGS}"
EXTRA_OECONF += "--with-libelf=${STAGING_DIR_TARGET} --without-rpm \
- ac_cv_file__usr_include_nss=no \
- ac_cv_file__usr_include_nss3=no \
- ac_cv_file__usr_include_nspr=no \
- ac_cv_file__usr_include_nspr4=no \
- ac_cv_file__usr_include_avahi_client=no \
- ac_cv_file__usr_include_avahi_common=no "
+ --without-nss --without-avahi \
+ --disable-server --disable-grapher "
STAP_DOCS ?= "--disable-docs --disable-publican --disable-refdocs"
--
1.7.0.4
> Andreas
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
next prev parent reply other threads:[~2012-06-04 14:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-31 23:18 systemtap build fails Andreas Müller
2012-06-04 14:20 ` Tom Zanussi [this message]
2012-06-04 22:46 ` Andreas Müller
2012-06-04 22:53 ` Tom Zanussi
2012-06-05 10:02 ` Andreas Müller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1338819642.28421.26.camel@elmorro \
--to=tom.zanussi@intel.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox