[oe] gcc-cross-initial failure

Ozgun ozgun.gunay at gmail.com
Mon Jul 4 06:08:30 UTC 2011


Hi,

I am getting the following error, it looks like the compiler couldn't find
the gmp.h, also it is really absent under gcc folder.

NOTE: package gcc-cross-initial-4.3.3-r23.2: task do_compile: Failed
ERROR: Function 'do_compile' failed (see
/home/tmp/work/i686-linux/gcc-cross-initial-4.3.3-r23.2/temp/log.do_compile.20426
for further information)
ERROR: Task 3612 (/work/openembedded/recipes/gcc/gcc-cross-initial_4.3.3.bb,
do_compile) failed with exit code '1'
ERROR: '/work/openembedded/recipes/gcc/gcc-cross-initial_4.3.3.bb' failed

you can see my local.conf file and distro definiton, log.do_compile.20426
error log below.

Thanks,
Ozgun



________________________________________________________
*LOCAL.conf*
________________________________________________________

# Use this to specify where BitBake should place the downloaded sources into
DL_DIR = "${HOME}/sources"

# Delete the line below. Then specify which .bb files to consider for
# your build. Typically this will be something like BBFILES =
"/path/to/openembedded/packages/*/*.bb"
BBFILES = "/work/openembedded/recipes/*/*.bb"

MACHINE = "x86"
TARGET_ARCH = "i686"
DISTRO = "minimal_ozgun"
DISTRO_TYPE = "debug"
# DISTRO_TYPE = "release"



# Add the required image file system types below. Valid are
# jffs2, tar(.gz|bz2), cpio(.gz), cramfs, ext2(.gz), ext3(.gz),
ext4(.gz|.bz2),
# squashfs, squashfs-lzma
IMAGE_FSTYPES = "ext2 tar"


________________________________________________________
*DISTRO*
________________________________________________________

#############################################################################
#@TYPE: Distribution
#@NAME: Minimal
#@DESCRIPTION: Embedded Linux Distribution Configuration
#
#@COMMENT: This distribution configuration can serve as a starting point for
#@COMMENT: the integration of new target platforms, machines, or
distributions.
#############################################################################

#############################################################################
# NAME and VERSION
#############################################################################
DISTRO_NAME ?= "minimal"
DISTRO_VERSION = "dev-snapshot-${SRCDATE}"

# Ensure some form of release config, so error out if someone thinks he
knows better
DISTRO_CHECK := "${@bb.data.getVar('DISTRO_VERSION',d,1) or bb.fatal('Remove
this line or set a dummy DISTRO_VERSION')}"

#############################################################################
# FEATURE SELECTION
#############################################################################
# Use bluetooth 4.0
DISTRO_BLUETOOTH_MANAGER            = "bluez4"
PREFERRED_PROVIDER_bluez-utils-dbus = "bluez4"
PREFERRED_PROVIDER_bluez-libs       = "bluez4"
PREFERRED_PROVIDER_bluez-utils      = "bluez4"

# We want images supporting the following features (for task-base)
DISTRO_FEATURES = "ipv4 ext2 ext3 vfat pcmcia usbgadget usbhost pci"
# Following features are for ARM and E500 based machines
#DISTRO_FEATURES += "eabi"


#############################################################################
# LIBRARY NAMES
#############################################################################
# libfoo -> libfoo0-2 (etc)
INHERIT += "debian"

#############################################################################
# PACKAGING & FEEDS
#############################################################################
# Chose the packaging system
INHERIT += "package_ipk"
INHERIT += "package_tar"
IMAGE_FSTYPES ?= "tar.gz ext2"
PREFERRED_PKG_FORMAT ?= "ipk"

# Put links to sources in deploy/sources to make it easier for people to be
GPL compliant
INHERIT += "src_distribute_local"
SRC_DIST_LOCAL ?= "symlink"

# If we're using an .ipk based rootfs, we want to have opkg installed so
postinst script can run
IPKG_VARIANT = "opkg"

#############################################################################
# IMAGES
#############################################################################
# Name the generated images in a sane way
IMAGE_NAME =
"${DISTRO_NAME}-${IMAGE_BASENAME}-${LIBC}-${PREFERRED_PKG_FORMAT}-${DISTRO_VERSION}-${MACHINE}"
CACHE = "${TMPDIR}/cache/${LIBC}/${MACHINE}"
DEPLOY_DIR ?= "${TMPDIR}/deploy/${LIBC}"
DEPLOY_DIR_IMAGE = "${DEPLOY_DIR}/images/${MACHINE}"
SPLASH ?= '${@base_contains("MACHINE_FEATURES", "screen", "psplash", "",d)}'
PREFERRED_PROVIDER_virtual/psplash = "psplash"

# increase inode/block ratio for ext2 filesystem
EXTRA_IMAGECMD_ext2 = "-i 8192"

#############################################################################
# KERNEL
#############################################################################
KERNEL = "kernel26"
MACHINE_KERNEL_VERSION = "2.6"
PREFERRED_VERSION_linux-libc-headers ?= "2.6.34"
PREFERRED_VERSION_linux ?= "2.6.35"

#############################################################################
# Ensure MACHINE_CLASS is in OVERRIDES
#############################################################################
MACHINE_CLASS ?= ""
MACHINE_OVERRIDES += "${MACHINE_CLASS}"

#############################################################################
# TOOLCHAIN
#############################################################################
# Can be "glibc", "eglibc" or "uclibc"
LIBC ?= "glibc"
require conf/distro/include/sane-toolchain-${LIBC}.inc

TOOLCHAIN_TYPE ?= "internal"
require conf/distro/include/toolchain-${TOOLCHAIN_TYPE}.inc

#require conf/distro/include/sane-toolchain.inc
#require conf/distro/include/arm-thumb.inc


# gcc
PREFERRED_PROVIDERS += "
virtual/${TARGET_PREFIX}gcc-initial:gcc-cross-initial"
PREFERRED_PROVIDERS += "
virtual/${TARGET_PREFIX}gcc-intermediate:gcc-cross-intermediate"
PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}gcc:gcc-cross"
PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}g++:gcc-cross"

PREFERRED_GCC_VERSION                    ?= "4.3.3"
PREFERRED_VERSION_gcc                    ?= "${PREFERRED_GCC_VERSION}"
PREFERRED_VERSION_gcc-cross              ?= "${PREFERRED_GCC_VERSION}"
PREFERRED_VERSION_gcc-cross-sdk          ?= "${PREFERRED_GCC_VERSION}"
PREFERRED_VERSION_gcc-cross-initial      ?= "${PREFERRED_GCC_VERSION}"
PREFERRED_VERSION_gcc-cross-intermediate ?= "${PREFERRED_GCC_VERSION}"

# binutils
PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}binutils = "binutils-cross"
PREFERRED_VERSION_binutils ?= "2.18"
PREFERRED_VERSION_binutils-cross ?= "2.18"
PREFERRED_VERSION_binutils-cross-sdk ?= "2.18"

# *libc
TARGET_OS = "linux"
LIBC = "glibc"
require conf/distro/include/${LIBC}.inc

PREFERRED_VERSION_glibc ?= "2.5"
PREFERRED_VERSION_glibc-intermediate ?= "2.5"
PREFERRED_VERSION_glibc-initial ?= "2.5"
PREFERRED_VERSION_uclibc ?= "0.9.30"

# The things glibc can provide.  We default to wanting glibc to provide
them.
PREFERRED_PROVIDER_virtual/libiconv ?= "glibc"
PREFERRED_PROVIDER_virtual/libintl ?= "glibc"
PREFERRED_PROVIDER_virtual/libc ?= "glibc"
PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}libc-initial = "glibc-initial"
PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}libc-for-gcc = "glibc"

# libtool
PREFERRED_LIBTOOL_VERSION            ?= "2.2.6b"
LIBTOOL_HAS_SYSROOT                  ?= "no"
PREFERRED_VERSION_libtool            ?= "${PREFERRED_LIBTOOL_VERSION}"
PREFERRED_VERSION_libtool-cross      ?= "${PREFERRED_LIBTOOL_VERSION}"
PREFERRED_VERSION_libtool-native     ?= "${PREFERRED_LIBTOOL_VERSION}"
PREFERRED_VERSION_libtool-sdk        ?= "${PREFERRED_LIBTOOL_VERSION}"
PREFERRED_VERSION_libtool-nativesdk  ?= "${PREFERRED_LIBTOOL_VERSION}"

#############################################################################
# QA
#############################################################################

#run QA tests on builds and packages and log them
INHERIT += "insane"
QA_LOG = "1"

#run QA tests on recipes
INHERIT += "recipe_sanity"

#make devshell available as task
INHERIT += "devshell"

#############################################################################
# PREFERRED VERSIONS
#############################################################################
require conf/distro/include/preferred-e-versions.inc
require conf/distro/include/preferred-opie-versions-1.2.5.inc

PREFERRED_PROVIDER_opkg ?= "opkg"
PREFERRED_PROVIDER_virtual/update-alternatives ?= "opkg"
PREFERRED_QT_VERSION ?= "4.7.1"
PREFERRED_VERSION_qt4-tools-native = "${PREFERRED_QT_VERSION}"
PREFERRED_VERSION_qt4-tools-sdk = "${PREFERRED_QT_VERSION}"
PREFERRED_VERSION_qt4-embedded = "${PREFERRED_QT_VERSION}"
PREFERRED_VERSION_qt4-embedded-gles = "${PREFERRED_QT_VERSION}"
PREFERRED_VERSION_qt4-x11-free = "${PREFERRED_QT_VERSION}"
PREFERRED_VERSION_qt4-x11-free-gles = "${PREFERRED_QT_VERSION}"
#############################################################################
# CONTENTS
#############################################################################

# Ship extra debug utils in the rootfs when doing a debug build
DISTRO_EXTRA_APPS ?= ""
DISTRO_EXTRA_APPS += '${@base_conditional("DISTRO_TYPE", "release", "",
"task-cli-tools-debug",d)}'

# Additional content I (only valid if you include task-base)
# distro-feed-configs: configuration files for the online feeds
# util-linux-ng-mount util-linux-ng-umount: busybox mount is broken
# angstrom-libc-fixup-hack: fixes an obscure bug with libc.so symlink
DISTRO_EXTRA_RDEPENDS += "\
  distro-feed-configs \
  util-linux-ng-mount util-linux-ng-umount \
  angstrom-libc-fixup-hack \
  ${DISTRO_EXTRA_APPS} \
"

# Additional content II (can be masked with BAD_RECOMMENDATIONS)
DISTRO_EXTRA_RRECOMMENDS += " \
    kernel-module-vfat \
    kernel-module-ext2 \
    kernel-module-ext3 \
    kernel-module-af-packet \
    avahi-daemon \
    avahi-autoipd \
    openssh-sftp-server \
"



________________________________________________________
* log.do_compile.20426*
________________________________________________________

.
.
.
.
In file included from
/home/tmp/work/i686-linux/gcc-cross-initial-4.3.3-r23.2/gcc-4.3.3/gcc/tree.h:30:0,
                 from
/home/tmp/work/i686-linux/gcc-cross-initial-4.3.3-r23.2/gcc-4.3.3/gcc/stub-objc.c:26:
/home/tmp/work/i686-linux/gcc-cross-initial-4.3.3-r23.2/gcc-4.3.3/gcc/double-int.h:24:17:
fatal error: gmp.h: No such file or directory
compilation terminated.
make[3]: *** [stub-objc.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory
`/home/tmp/work/i686-linux/gcc-cross-initial-4.3.3-r23.2/gcc-4.3.3/build.i686-linux.i686-linux/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory
`/home/tmp/work/i686-linux/gcc-cross-initial-4.3.3-r23.2/gcc-4.3.3/build.i686-linux.i686-linux'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory
`/home/tmp/work/i686-linux/gcc-cross-initial-4.3.3-r23.2/gcc-4.3.3/build.i686-linux.i686-linux'
make: *** [all] Error 2
+ die 'oe_runmake failed'
+ oefatal 'oe_runmake failed'
+ echo FATAL: 'oe_runmake failed'
FATAL: oe_runmake failed
+ exit 1



More information about the Openembedded-devel mailing list