Skip to contentSkip to conversation

Problem with library recipe

DISCUSSION jim Schimpf 3 participants 4 messages Oct 26, 2015

lore
Share & tools
lore
#0 lore raw

Hi,
I am attempting to add a recipe to build libmill (http://libmill.org <http://libmill.org/>). So far my recipe does the fetch and config but fails the compile.

The recipe is:

# -----------------------------------------------------
# Header Meta data
SUMMARY = "Co-routine & Network Library"
DESCRIPTION = "Easy network use and co-routine operation" AUTHOR = "Martin Sustrik"
HOMEPAGE = "https://libmill.org"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=6d82245bd22227ca739abaf3dcd3b80d" PR = "1.0"

# -----------------------------------------------------
# Source data
SRCREV = "cdbd5e24e99964fdf65e701df099155ff484667e"
SRC_URI = "git://github.com/sustrik/libmill.git;user=jschimpf-pandora;protocol=http" inherit autotools gettext

S = "${WORKDIR}/git”

The compile failure is:

./doltlibtool --tag=CC --mode=link arm-poky-linux-gnueabi-gcc -march=armv7-a -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a8 --sysroot=/home/jim/yocto/poky/BB1/tmp/sysroots/beaglebone -std=gnu99 -fvisibility=hidden -DMILL_EXPORTS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 -O2 -pipe -g -feliminate-unused-debug-types -no-undefined -version-info 10:1:0 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o libmill.la -rpath /usr/lib libmill_la-chan.lo libmill_la-cr.lo libmill_la-debug.lo libmill_la-ip.lo libmill_la-list.lo libmill_la-poller.lo libmill_la-slist.lo libmill_la-stack.lo libmill_la-tcp.lo libmill_la-udp.lo libmill_la-unix.lo libmill_la-utils.lo -lanl -lrt
./doltlibtool: line 18: /home/jim/yocto/poky/BB1/tmp/work/cortexa8hf-vfp-neon-poky-linux-gnueabi/libmill/1.0-1.0/git/libtool: No such file or directory
make: *** [libmill.la] Error 127
make: *** Waiting for unfinished jobs....
ERROR: oe_runmake failed
WARNING: exit code 1 from a shell command.
ERROR: Function failed: do_compile (log file is located at /home/jim/yocto/poky/BB1/tmp/work/cortexa8hf-vfp-neon-poky-linux-gnueabi/libmill/1.0-1.0/temp/log.do_compile.6506)

The failure of the script ./doitlibtool is that it cannot find the script libtool which should be created (it’s not in the repository) in the git directory. When i run ./configure on OS X or Ubuntu that libtool appears but it does not when Yocto runs it.

I guess the failure is really in the configure state and only errors in the compile step.

Thanks for the help. Any suggestions for things to try would be appreciated.

—jim schimpf

#1 lore raw

Hi Jim

Quoted 49 lines · On Monday 26 October 2015 06:58:53 jim Schimpf wrote:

Hi,
I am attempting to add a recipe to build libmill (http://libmill.org
<http://libmill.org/>). So far my recipe does the fetch and config but fails the compile.

The recipe is:

# -----------------------------------------------------
# Header Meta data
SUMMARY = "Co-routine & Network Library"
DESCRIPTION = "Easy network use and co-routine operation" AUTHOR = "Martin Sustrik"
HOMEPAGE = "https://libmill.org"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=6d82245bd22227ca739abaf3dcd3b80d" PR = "1.0"

# -----------------------------------------------------
# Source data
SRCREV = "cdbd5e24e99964fdf65e701df099155ff484667e"
SRC_URI = "git://github.com/sustrik/libmill.git;user=jschimpf-pandora;protocol=http" inherit autotools gettext

S = "${WORKDIR}/git”

The compile failure is:

./doltlibtool --tag=CC --mode=link arm-poky-linux-gnueabi-gcc

(quoted diff) +0 -6
-march=armv7-a -mthumb-interwork -mfloat-abi=hard -mfpu=neon
-mtune=cortex-a8 --sysroot=/home/jim/yocto/poky/BB1/tmp/sysroots/beaglebone
-std=gnu99 -fvisibility=hidden -DMILL_EXPORTS -U_FORTIFY_SOURCE
-D_FORTIFY_SOURCE=0 -O2 -pipe -g -feliminate-unused-debug-types
-no-undefined -version-info 10:1:0 -Wl,-O1 -Wl,--hash-style=gnu
-Wl,--as-needed -o libmill.la -rpath /usr/lib libmill_la-chan.lo

libmill_la-cr.lo libmill_la-debug.lo libmill_la-ip.lo libmill_la-list.lo libmill_la-poller.lo libmill_la-slist.lo libmill_la-stack.lo libmill_la-tcp.lo libmill_la-udp.lo libmill_la-unix.lo libmill_la-utils.lo -lanl -lrt ./doltlibtool: line 18:
/home/jim/yocto/poky/BB1/tmp/work/cortexa8hf-vfp-neon-poky-linux-gnueabi/li bmill/1.0-1.0/git/libtool: No such file or directory make: *** [libmill.la] Error 127
make: *** Waiting for unfinished jobs....
ERROR: oe_runmake failed
WARNING: exit code 1 from a shell command.
ERROR: Function failed: do_compile (log file is located at /home/jim/yocto/poky/BB1/tmp/work/cortexa8hf-vfp-neon-poky-linux-gnueabi/li bmill/1.0-1.0/temp/log.do_compile.6506)

Quoted 7 lines

The failure of the script ./doitlibtool is that it cannot find the script libtool which should be created (it’s not in the repository) in the git directory. When i run ./configure on OS X or Ubuntu that libtool appears but it does not when Yocto runs it.

I guess the failure is really in the configure state and only errors in the compile step.

It looks like this library is using DOLT. Anyone remember how to deal with that? Ross?

One thing to try would be to simply drop the DOLT line from configure.ac and see if that helps.

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#2 lore raw
Quoted 7 lines · Paul Eggleton

It looks like this library is using DOLT. Anyone remember how to deal with that? Ross?

One thing to try would be to simply drop the DOLT line from configure.ac and
see if that helps.

Yeah, DOLT is broken and it's trying to invoke "libtool" directly when our cross-aware binaries get prefixed with the toolchain triplet. Removing the DOLT line from configure.ac should let it just use libtool properly, and I recommend telling upstream that DOLT isn't really needed these days now that libtool is a lot faster.

Ross

#3 lore raw

Hi,
I think I found it in the configure.ac

################################################################################
# Libtool #
################################################################################

LT_INIT

DOLT <— This invokes doitlibtool

I removed this line and it worked, compiled, moved to sysroot and packaged just fine. Thank you guys for the help. I will send a note to the maintainer and ask him to change it in GitHub.

Thanks again.
—jim

Quoted 13 lines · Ross

On 26 October 2015 at 14:29, Paul Eggleton <[email protected] <mailto:[email protected]>> wrote:
It looks like this library is using DOLT. Anyone remember how to deal with
that? Ross?

One thing to try would be to simply drop the DOLT line from configure.ac <http://configure.ac/> and see if that helps.

Yeah, DOLT is broken and it's trying to invoke "libtool" directly when our cross-aware binaries get prefixed with the toolchain triplet. Removing the DOLT line from configure.ac <http://configure.ac/> should let it just use libtool properly, and I recommend telling upstream that DOLT isn't really needed these days now that libtool is a lot faster.

Ross