[oe] gcc-cross-initial compile failure

2011-07-06 Thread Ozgun
The build is failing on gcc-cross-initial;
NOTE: package gcc-cross-initial-4.4.4-r8.1: task do_compile: Failed
ERROR: Function 'do_compile' failed (see
/home/ozgun/tmp/work/i686-linux/gcc-cross-initial-4.4.4-r8.1/temp/log.do_compile.18907
for further information)
ERROR: Task 3612 (/work/openembedded/recipes/gcc/gcc-cross-initial_4.4.4.bb,
do_compile) failed with exit code '1'
ERROR: '/work/openembedded/recipes/gcc/gcc-cross-initial_4.4.4.bb' failed



>From log.do_compile.18907;
In file included from
/home/ozgun/tmp/work/i686-linux/gcc-cross-initial-4.4.4-r8.1/gcc-4.4.4/gcc/tree.h:30:0,
 from
/home/ozgun/tmp/work/i686-linux/gcc-cross-initial-4.4.4-r8.1/gcc-4.4.4/gcc/c-lang.c:27:
/home/ozgun/tmp/work/i686-linux/gcc-cross-initial-4.4.4-r8.1/gcc-4.4.4/gcc/double-int.h:24:17:
fatal error: gmp.h: No such file or directory
compilation terminated.
make[3]: *** [c-lang.o] Error 1
make[3]: Leaving directory
`/home/ozgun/tmp/work/i686-linux/gcc-cross-initial-4.4.4-r8.1/gcc-4.4.4/build.i686-linux.i686-linux/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory
`/home/ozgun/tmp/work/i686-linux/gcc-cross-initial-4.4.4-r8.1/gcc-4.4.4/build.i686-linux.i686-linux'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory
`/home/ozgun/tmp/work/i686-linux/gcc-cross-initial-4.4.4-r8.1/gcc-4.4.4/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



>From gcc-4.4.4.inc;
DEPENDS = "mpfr gmp"
NATIVEDEPS = "mpfr-native gmp-native"

gcc depends mpfr gmp, therefore compiler needs mpfr.h gmp.h
But these files are located under their own folder
(/work/i686-linux/gmp-native-5.0.1-r1.1/gmp-5.0.1/gmp.h) ,not under gcc
folder.

Wondering how can you overcome this problem?

Thanks,
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel


[oe] gcc-cross-initial failure

2011-07-03 Thread Ozgun
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"

#