Skip to contentSkip to conversation

Can't build glib-2.0

DISCUSSION Gary Thomas 3 participants 6 messages Dec 5, 2011 – Dec 7, 2011

lore
Share & tools
lore
#0 lore raw

OE Build Configuration:

BB_VERSION        = "1.15.0"
TARGET_ARCH       = "arm"
TARGET_OS         = "linux-gnueabi"
MACHINE           = "cobra3530p60"
DISTRO            = "amltd"
DISTRO_VERSION    = "1.1+snapshot-20111205"
TUNE_FEATURES     = "armv7a vfp neon cortexa8"
TARGET_FPU        = "vfp-neon"

meta
meta-yocto = "master:e5b9ac3b71b6c16fb9a629f12e4d83103db2d5b0"
...
NOTE: package glib-2.0-1_2.30.1-r0: task do_install: Started
ERROR: Function 'do_install' failed (see /home/local/p60_poky/tmp/work/armv7a-vfp-neon-amltd-linux-gnueabi/glib-2.0-1_2.30.1-r0/temp/log.do_install.8610 for further information)
ERROR: Logfile of failure stored in: /home/local/p60_poky/tmp/work/armv7a-vfp-neon-amltd-linux-gnueabi/glib-2.0-1_2.30.1-r0/temp/log.do_install.8610 Log data follows:

| DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
| ERROR: Function 'do_install' failed (see /home/local/p60_poky/tmp/work/armv7a-vfp-neon-amltd-linux-gnueabi/glib-2.0-1_2.30.1-r0/temp/log.do_install.8610 for further information)
| /home/local/p60_poky/tmp/work/armv7a-vfp-neon-amltd-linux-gnueabi/glib-2.0-1_2.30.1-r0/temp/run.do_install.8610: line 96: oe_runmake: command not found

NOTE: package glib-2.0-1_2.30.1-r0: task do_install: Failed

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#1 lore raw
Quoted 8 lines · Gary Thomas

NOTE: package glib-2.0-1_2.30.1-r0: task do_install: Started
ERROR: Function 'do_install' failed (see /home/local/p60_poky/tmp/work/armv7a-vfp-neon-amltd-linux-gnueabi/glib-2.0-1_2.30.1-r0/temp/log.do_install.8610 for further information)
ERROR: Logfile of failure stored in:
/home/local/p60_poky/tmp/work/armv7a-vfp-neon-amltd-linux-gnueabi/glib-2.0-1_2.30.1-r0/temp/log.do_install.8610 Log data follows:
| DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common',

Quoted 8 lines

'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
| ERROR: Function 'do_install' failed (see /home/local/p60_poky/tmp/work/armv7a-vfp-neon-amltd-linux-gnueabi/glib-2.0-1_2.30.1-r0/temp/log.do_install.8610 for further information)
| /home/local/p60_poky/tmp/work/armv7a-vfp-neon-amltd-linux-gnueabi/glib-2.0-1_2.30.1-r0/temp/run.do_install.8610:
line 96: oe_runmake: command not found
NOTE: package glib-2.0-1_2.30.1-r0: task do_install: Failed

What's on line 96?

-M

#2 lore raw
Quoted 18 lines · On 2011-12-05 10:18, McClintock Matthew-B29882 wrote:
Quoted 8 lines · Gary Thomas

NOTE: package glib-2.0-1_2.30.1-r0: task do_install: Started
ERROR: Function 'do_install' failed (see /home/local/p60_poky/tmp/work/armv7a-vfp-neon-amltd-linux-gnueabi/glib-2.0-1_2.30.1-r0/temp/log.do_install.8610 for further information)
ERROR: Logfile of failure stored in:
/home/local/p60_poky/tmp/work/armv7a-vfp-neon-amltd-linux-gnueabi/glib-2.0-1_2.30.1-r0/temp/log.do_install.8610 Log data follows:
| DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common',

Quoted 8 lines

'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
| ERROR: Function 'do_install' failed (see /home/local/p60_poky/tmp/work/armv7a-vfp-neon-amltd-linux-gnueabi/glib-2.0-1_2.30.1-r0/temp/log.do_install.8610 for further information)
| /home/local/p60_poky/tmp/work/armv7a-vfp-neon-amltd-linux-gnueabi/glib-2.0-1_2.30.1-r0/temp/run.do_install.8610:
line 96: oe_runmake: command not found
NOTE: package glib-2.0-1_2.30.1-r0: task do_install: Failed

Quoted 1 line

What's on line 96?

The normal 'autotools_do_install' boilerplate:

autotools_do_install() {
        oe_runmake 'DESTDIR=/home/local/p60_poky/tmp/work/armv7a-vfp-neon-amltd-linux-gnueabi/glib-2.0-1_2.30.1-r0/image' install
        # Info dir listing isn't interesting at this point so remove it if it exists.
        if [ -e "/home/local/p60_poky/tmp/work/armv7a-vfp-neon-amltd-linux-gnueabi/glib-2.0-1_2.30.1-r0/image/usr/share/info/dir" ]; then
                rm -f /home/local/p60_poky/tmp/work/armv7a-vfp-neon-amltd-linux-gnueabi/glib-2.0-1_2.30.1-r0/image/usr/share/info/dir
        fi

}

What's missing is the functions which should be coming from base.bbclass. I looked at an older build of glib-2.0 and these functions are missing:
==============================================================

oe_runmake() {
        if [ x"$MAKE" = x ]; then MAKE=make; fi
        bbnote make -j 4  "$@"
        make -j 4  "$@" || die "oe_runmake failed"

}

die() {
        bbfatal "$*"

}

bbnote() {
        echo "NOTE: $*"

}

bbfatal() {
        echo "ERROR: $*"
        exit 1

}
==============================================================

Why would they be missing from this run.do_install script?

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#3 lore raw
Quoted 20 lines · Gary Thomas

What's missing is the functions which should be coming from base.bbclass. I looked at an older build of glib-2.0 and these functions are missing:
==============================================================
oe_runmake() {
       if [ x"$MAKE" = x ]; then MAKE=make; fi
       bbnote make -j 4  "$@"
       make -j 4  "$@" || die "oe_runmake failed"

}

die() {
       bbfatal "$*"

}

bbnote() {
       echo "NOTE: $*"

}

Quoted 8 lines

bbfatal() {
       echo "ERROR: $*"
       exit 1

}
==============================================================

Why would they be missing from this run.do_install script?

Is your recipe inheriting anything from base.bbclass?

-M

#4 lore raw
In reply to Gary Thomas
Quoted 20 lines · Gary Thomas

OE Build Configuration:
BB_VERSION        = "1.15.0"
TARGET_ARCH       = "arm"
TARGET_OS         = "linux-gnueabi"
MACHINE           = "cobra3530p60"
DISTRO            = "amltd"
DISTRO_VERSION    = "1.1+snapshot-20111205"
TUNE_FEATURES     = "armv7a vfp neon cortexa8"
TARGET_FPU        = "vfp-neon"
meta
meta-yocto        = "master:e5b9ac3b71b6c16fb9a629f12e4d83103db2d5b0"
 ...
NOTE: package glib-2.0-1_2.30.1-r0: task do_install: Started
ERROR: Function 'do_install' failed (see /home/local/p60_poky/tmp/work/armv7a-vfp-neon-amltd-linux-gnueabi/glib-2.0-1_2.30.1-r0/temp/log.do_install.8610 for further information)
ERROR: Logfile of failure stored in:
/home/local/p60_poky/tmp/work/armv7a-vfp-neon-amltd-linux-gnueabi/glib-2.0-1_2.30.1-r0/temp/log.do_install.8610 Log data follows:
| DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common',

Quoted 9 lines

'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
| ERROR: Function 'do_install' failed (see /home/local/p60_poky/tmp/work/armv7a-vfp-neon-amltd-linux-gnueabi/glib-2.0-1_2.30.1-r0/temp/log.do_install.8610 for further information)
| /home/local/p60_poky/tmp/work/armv7a-vfp-neon-amltd-linux-gnueabi/glib-2.0-1_2.30.1-r0/temp/run.do_install.8610:
line 96: oe_runmake: command not found
NOTE: package glib-2.0-1_2.30.1-r0: task do_install: Failed

Have you made any changes recently? Often this is a mismatch ', `, " or similar somewhere.

Signature · 1 line
Tom
#5 lore raw
Quoted 31 lines · Tom Rini
Quoted 20 lines · Gary Thomas

OE Build Configuration:

BB_VERSION        = "1.15.0"
TARGET_ARCH       = "arm"
TARGET_OS         = "linux-gnueabi"
MACHINE           = "cobra3530p60"
DISTRO            = "amltd"
DISTRO_VERSION    = "1.1+snapshot-20111205"
TUNE_FEATURES     = "armv7a vfp neon cortexa8"
TARGET_FPU        = "vfp-neon"

meta
meta-yocto = "master:e5b9ac3b71b6c16fb9a629f12e4d83103db2d5b0"
...
NOTE: package glib-2.0-1_2.30.1-r0: task do_install: Started
ERROR: Function 'do_install' failed (see /home/local/p60_poky/tmp/work/armv7a-vfp-neon-amltd-linux-gnueabi/glib-2.0-1_2.30.1-r0/temp/log.do_install.8610 for further information)
ERROR: Logfile of failure stored in:
/home/local/p60_poky/tmp/work/armv7a-vfp-neon-amltd-linux-gnueabi/glib-2.0-1_2.30.1-r0/temp/log.do_install.8610 Log data follows:
| DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common',

Quoted 9 lines

'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
| ERROR: Function 'do_install' failed (see /home/local/p60_poky/tmp/work/armv7a-vfp-neon-amltd-linux-gnueabi/glib-2.0-1_2.30.1-r0/temp/log.do_install.8610 for further information)
| /home/local/p60_poky/tmp/work/armv7a-vfp-neon-amltd-linux-gnueabi/glib-2.0-1_2.30.1-r0/temp/run.do_install.8610:
line 96: oe_runmake: command not found
NOTE: package glib-2.0-1_2.30.1-r0: task do_install: Failed

Quoted 3 lines

Have you made any changes recently? Often this is a mismatch ', `, " or similar somewhere.

No local changes, it just wasn't working. I updated master (again) to
meta
meta-yocto = "master:f17e0ae38b2e6c4cbe7f0f9d76c3e1a386335fd1"
and now it builds. Don't know what the problem was, but I'm happy with it working once again.

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------