[oe] build errors bitbaking gnumail_1.1.2.bb

Khem Raj raj.khem at gmail.com
Thu Sep 2 19:02:09 UTC 2010


On Thu, Sep 2, 2010 at 11:32 AM, Khem Raj <raj.khem at gmail.com> wrote:
> Hi
>
> When I bitbake above recipe for qemuarm/minimal it ends up with this error
>
> | checking for a BSD-compatible install...
> /scratch/oe/sysroots/x86_64-linux/usr/bin/install -c
> | checking whether build environment is sane... yes
> | checking for arm-oe-linux-gnueabi-strip... arm-oe-linux-gnueabi-strip
> | checking for a thread-safe mkdir -p...
> /scratch/oe/sysroots/x86_64-linux/usr/bin/mkdir -p
> | checking for gawk... gawk
> | checking whether make sets $(MAKE)... yes
> | checking if /scratch/oe/sysroots/x86_64-linux/usr/bin/javac works... yes
> | checking for fastjar... fastjar
> | checking for /scratch/oe/sysroots/java/activation.jar... yes
> | checking for /scratch/oe/sysroots/java/inetlib.jar... configure:
> error: can't find inetlib.jar in specified path
>
>

something like below fixes it

diff --git a/recipes/classpathx/gnumail_1.1.2.bb
b/recipes/classpathx/gnumail_1.1.2.bb
index 3eab0f6..f4a8f87 100644
--- a/recipes/classpathx/gnumail_1.1.2.bb
+++ b/recipes/classpathx/gnumail_1.1.2.bb
@@ -23,7 +23,7 @@ export JAVA = "${STAGING_BINDIR_NATIVE}/java"
 export JAVADOC = "true"

 EXTRA_OECONF = "\
-  --with-inetlib-jar=${STAGING_DATADIR_JAVA} \
+  --with-inetlib-jar=${STAGING_DIR_TARGET}${datadir_java} \
   --with-activation-jar=${STAGING_DATADIR_JAVA} \
   "

> This jar file is actually staged in
>
> ./x86_64-linux/usr/share/java/inetlib.jar
> ./armv5te-oe-linux-gnueabi/usr/share/java/inetlib.jar
>
>
> for native and target in my sysroot but then I looked into
> /scratch/oe/sysroots/java/
> and indeed it has some .jar there but not the one its looking for and
> recipe specifically
> asks to look into this location via
>
>  EXTRA_OECONF = "\
>  --with-inetlib-jar=${STAGING_DATADIR_JAVA} \
>  --with-activation-jar=${STAGING_DATADIR_JAVA} \
>  "
>
>
> As Andy also found out that
>
> we have
>
> native.bbclass:
> STAGING_DIR_JAVA = "${STAGING_DATADIR_JAVA_NATIVE}"
>
> java.bbclass:
> STAGING_DATADIR_JAVA ?= ${STAGING_DIR_JAVA}
> STAGING_DATADIR_JAVA_NATIVE ?= ${STAGING_DATADIR_NATIVE}/java
>
> Who sets what here ?
>
> Thanks for your help
>
> -Khem
>




More information about the Openembedded-devel mailing list