[oe] gcc_4.5.inc: setting BINV value

Elvis Dowson elvis.dowson at gmail.com
Fri Aug 10 05:32:23 UTC 2012


Hi,
       I'm working on writing a gcc-4.5 recipe inside the meta-openembedded/toolchain-layer folder, against the current yocto and meta-openembedded master. 

I have a small problem, which is that the correct target directory for copying the limits.h file is not being created in the filesystem.

This is the error that I'm getting is as follows:

| cp: cannot create regular file `/tool/yocto/poky/build/tmp/work/ppc440-poky-linux/gcc-cross-initial-4.5.1+svnr162773-r13/image/tool/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/lib/ppc440-poky-linux.gcc-cross-initial/gcc/powerpc-poky-linux/4.5.2/include-fixed/limits.h': No such file or directory
| ERROR: Function failed: do_install (see /tool/yocto/poky/build/tmp/work/ppc440-poky-linux/gcc-cross-initial-4.5.1+svnr162773-r13/temp/log.do_install.54176 for further information)
NOTE: package gcc-cross-initial-4.5.1+svnr162773-r13: task do_install: Failed
ERROR: Task 952 (/tool/yocto/meta-openembedded/toolchain-layer/recipes-devtools/gcc/gcc-cross-initial_4.5.bb, do_install) failed with exit code '1'
NOTE: Tasks Summary: Attempted 792 tasks of which 246 didn't need to be rerun and 1 failed.

The 4.5.2 directory doesn't exist on the filesystem:

/tool/yocto/poky/build/tmp/work/ppc440-poky-linux/gcc-cross-initial-4.5.1+svnr162773-r13/image/tool/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/lib/ppc440-poky-linux.gcc-cross-initial/gcc/powerpc-poky-linux/4.5.2

but it does have a 4.5.1 directory:

/tool/yocto/poky/build/tmp/work/ppc440-poky-linux/gcc-cross-initial-4.5.1+svnr162773-r13/image/tool/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/lib/ppc440-poky-linux.gcc-cross-initial/gcc/powerpc-poky-linux/4.5.1

The 4.5.2 value is probably being picked up by the BINV variable, which is set to 4.5.2. I modelled the gcc-4.5.inc file after the gcc-4.6.inc and gcc-4.7.inc.

file: gcc-4.5.inc

require recipes-devtools/gcc/gcc-common.inc

PR = "r13"

# Third digit in PV should be incremented after a minor release
# happens from this branch on gcc e.g. currently its 4.5.4
# when 4.5.5 is released and we bump SRCREV beyond the release
# on branch then PV should be incremented to 4.5.5+svnr${SRCPV}
# to reflect that change

PV = "4.5.1+svnr${SRCPV}"

# BINV should be incremented after updating to a revision
# after a minor gcc release (e.g. 4.5.3 or 4.5.4) has been made
# the value will be minor-release+1 e.g. if current minor release was
# 4.5.4 then the value below will have 5 which will mean 4.5.5
# which will be next minor release and so on.

BINV = "4.5.2"

SRCREV = "162773"
BRANCH = "gcc-4_5-branch"
FILESPATH = "${@base_set_filespath([ '${FILE_DIRNAME}/gcc-4.5' ], d)}"

DEPENDS =+ "mpfr gmp libmpc elfutils"
NATIVEDEPS = "mpfr-native gmp-native gettext-native libmpc-native elfutils-native"

LICENSE="GPL-3.0-with-GCC-exception & GPLv3"

What should I do? Set BINV = "4.5.1" ?

Best regards,

Elvis Dowson


More information about the Openembedded-devel mailing list