* [PATCH] mozjs: fix build failure due to missing dependency on libxt
@ 2015-02-12 0:00 Paul Gortmaker
2015-02-12 3:56 ` Peter Urbanec
0 siblings, 1 reply; 4+ messages in thread
From: Paul Gortmaker @ 2015-02-12 0:00 UTC (permalink / raw)
To: openembedded-core
The failure intermittently shows up as follows:
ERROR: This autoconf log indicates errors, it looked at host include and/or library paths while determining system capabilities.
Rerun configure task after fixing this. The path was 'poky/build/tmp/work/core2-64-poky-linux/mozjs/17.0.0-r0/build'
ERROR: Function failed: do_qa_configure
ERROR: Logfile of failure stored in: poky/build/tmp/work/core2-64-poky-linux/mozjs/17.0.0-r0/temp/log.do_configure.8047
ERROR: Task 5 (poky/meta-openembedded/meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb, do_configure) failed with exit code '1'
The configure log has:
configure:5494: checking for IceConnectionNumber in -lICE
configure:5513: x86_64-poky-linux-gcc -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse --sysroot=poky/build/tmp/sysroots/genericx86-64 -o conftest -O2 -pipe -g -feliminate-unused-debug-types -Wl, -O1 -Wl,--hash-style=gnu -Wl,--as-needed -L/usr/lib conftest.c -lICE 1>&5
poky/build/tmp/sysroots/x86_64-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/4.9.1/ld: warning: library search path "/usr/lib" is unsafe for cross-compilation
Checking build/config/autoconf.mk we find:
X_CFLAGS = -I/usr/include
X_EXTRA_LIBS =
X_LIBS = -L/usr/lib
Looking at the configure script, we see these invalid values are output
when the autoconf test for X11 fails. That test fails in the following
fashion:
configure:4768:27: fatal error: X11/Intrinsic.h: No such file or directory
This header in turn gets put in the sysroot by our build of libxt. So we
get build fails whenever mozjs is built before libxt.
Since the package clearly has never been built in a no-X11 OE environment,
we assume that all OE users to date are X11 users and hence simply add a
dependency on libxt.
Cc: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
---
meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb b/meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb
index ab01471d0bab..94f73ba8e418 100644
--- a/meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb
+++ b/meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb
@@ -13,7 +13,7 @@ S = "${WORKDIR}/${PN}${PV}/js/src"
inherit autotools pkgconfig perlnative
-DEPENDS += "nspr zlib"
+DEPENDS += "nspr zlib libxt"
# nspr's package-config is ignored so set libs manually
EXTRA_OECONF = " \
--
2.2.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] mozjs: fix build failure due to missing dependency on libxt
2015-02-12 0:00 [PATCH] mozjs: fix build failure due to missing dependency on libxt Paul Gortmaker
@ 2015-02-12 3:56 ` Peter Urbanec
2015-02-13 6:56 ` Paul Gortmaker
0 siblings, 1 reply; 4+ messages in thread
From: Peter Urbanec @ 2015-02-12 3:56 UTC (permalink / raw)
To: Paul Gortmaker, openembedded-core
On 12/02/15 11:00, Paul Gortmaker wrote:
> Looking at the configure script, we see these invalid values are output
> when the autoconf test for X11 fails. That test fails in the following
> fashion:
...
> Since the package clearly has never been built in a no-X11 OE environment,
> we assume that all OE users to date are X11 users and hence simply add a
> dependency on libxt.
I've run into this problem quite a while ago. My fix for this was a
.bbappend file that passes --without-x to configure, since my target has
no X11.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] mozjs: fix build failure due to missing dependency on libxt
2015-02-12 3:56 ` Peter Urbanec
@ 2015-02-13 6:56 ` Paul Gortmaker
2015-02-13 15:17 ` Burton, Ross
0 siblings, 1 reply; 4+ messages in thread
From: Paul Gortmaker @ 2015-02-13 6:56 UTC (permalink / raw)
To: Peter Urbanec; +Cc: openembedded-core
[Re: [OE-core] [PATCH] mozjs: fix build failure due to missing dependency on libxt] On 12/02/2015 (Thu 14:56) Peter Urbanec wrote:
> On 12/02/15 11:00, Paul Gortmaker wrote:
> >Looking at the configure script, we see these invalid values are output
> >when the autoconf test for X11 fails. That test fails in the following
> >fashion:
> ...
> >Since the package clearly has never been built in a no-X11 OE environment,
> >we assume that all OE users to date are X11 users and hence simply add a
> >dependency on libxt.
>
> I've run into this problem quite a while ago. My fix for this was a
> .bbappend file that passes --without-x to configure, since my target
> has no X11.
>
Since it isn't a run time dependency, your local tweak to select a non-X
build of the package should still give you that even with the libxt
build dependency added. My point still stands that in its current
state, the only successful builds have been X11-enabled ones; so my
patch fixes the random build failures without changing the build output.
If we want to come at mozjs and enhance it at the same time to support
non-x11 without the need for an append like you are using, we'd need
to do something like:
DEPENDS_append = "${@bb.utils.contains('DISTRO_FEATURES','x11','libxt','',d)}"
...or perhaps:
EXTRA_OECONF_X = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '--with-x', '--without-x', d)}"
I've not tested either of the above; I've just found them in existing
recipes; I'll wait to see if the maintainers have any preference for one
of the three possible solutions (the original and now the above two) as
doing one of the above two now implies we are supporting non-x11 builds
of it, when clearly we were not up to this point.
Paul.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] mozjs: fix build failure due to missing dependency on libxt
2015-02-13 6:56 ` Paul Gortmaker
@ 2015-02-13 15:17 ` Burton, Ross
0 siblings, 0 replies; 4+ messages in thread
From: Burton, Ross @ 2015-02-13 15:17 UTC (permalink / raw)
To: Paul Gortmaker; +Cc: Peter Urbanec, OE-core
[-- Attachment #1: Type: text/plain, Size: 630 bytes --]
On 13 February 2015 at 06:56, Paul Gortmaker <paul.gortmaker@windriver.com>
wrote:
> DEPENDS_append =
> "${@bb.utils.contains('DISTRO_FEATURES','x11','libxt','',d)}"
>
> ...or perhaps:
>
> EXTRA_OECONF_X = "${@bb.utils.contains('DISTRO_FEATURES', 'x11',
> '--with-x', '--without-x', d)}"
>
I'm mostly surprised the mozjs has an X11 dependency at all, but yes
something like respecting DISTRO_FEATURES to enable/disable X11 is
sensible, unless the X11 support is so meaningless it might as well be
disabled globally.
Also, wrong list - this is in meta-oe so should go to the
openembedded-devel@ list.
Ross
[-- Attachment #2: Type: text/html, Size: 1132 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-02-13 15:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-12 0:00 [PATCH] mozjs: fix build failure due to missing dependency on libxt Paul Gortmaker
2015-02-12 3:56 ` Peter Urbanec
2015-02-13 6:56 ` Paul Gortmaker
2015-02-13 15:17 ` Burton, Ross
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox