Skip to contentSkip to conversation

Problem building installable toolchain

DISCUSSION Stephen Street 1 participant 1 message Dec 19, 2006

lore
Share & tools
lore
#0 lore raw

Hello,

I'm new to the openembedded project and I'm having problems building an installable toolchain (i.e. bitbake meta-toolchain). I have successfully integrated a new machine and distro configuration (see below). I can build this configuration using bitbake task-base and everything appear to works. When I try to build a toolchain using "bitbake meta-toolchain" or "bitbake meta-sdk" the "gcc-cross-sdk-4.1.1" package fails to build. These following snippet show the error:

In file included
from /home/stephen/workspace/openembedded/build/work/i686-linux/gcc-cross-sdk-4.1.1-r9/gcc-4.1.1/libiberty/regex.c:51:

| /home/stephen/workspace/openembedded/build/staging/arm-linux/include/sys/types.h:100: error: two or more data types in declaration specifiers
| /home/stephen/workspace/openembedded/build/staging/arm-linux/include/sys/types.h:100: warning: useless type name in empty declaration
| /home/stephen/workspace/openembedded/build/work/i686-linux/gcc-cross-sdk-4.1.1-r9/gcc-4.1.1/libiberty/regex.c:130: warning: function declaration isn’t a prototype
| /home/stephen/workspace/openembedded/build/work/i686-linux/gcc-cross-sdk-4.1.1-r9/gcc-4.1.1/libiberty/regex.c:130: warning: conflicting types for built-in function ‘malloc’
| /home/stephen/workspace/openembedded/build/work/i686-linux/gcc-cross-sdk-4.1.1-r9/gcc-4.1.1/libiberty/regex.c:131: warning: function declaration isn’t a prototype
| In file included

from /home/stephen/workspace/openembedded/build/work/i686-linux/gcc-cross-sdk-4.1.1-r9/gcc-4.1.1/libiberty/regex.c:185

This appears to be a problem with the header configuration but I'm a not a toolchain expert. Has anyone encountered this problem before? How should I approach resolving this problem?

Following are my configuration files and attached is the full log

=== local.conf ===

DL_DIR = "${PROJECT_ROOT}/sources"
BBFILES = "${PROJECT_ROOT}/org.openembedded.dev/packages/*/*.bb ${PROJECT_ROOT}/com.streetfiresound.rbx1600/packages/*/*.bb" BBMASK = ""
TMPDIR = "${PROJECT_ROOT}/build"

MACHINE = "rbx1600"
DISTRO = "StreetRacerLinux"

IMAGE_FSTYPES = "jffs2 tar"

BBDEBUG = "yes"
# DEBUG_BUILD = "1"
INHIBIT_PACKAGE_STRIP = "1"
PARALLEL_MAKE = "-j 4"

BBINCLUDELOGS = "yes"

=== distro.conf ===

#-----------------------------------------------------------------------------
#@TYPE: Distribution
#@NAME: StreetRacerLinux
#@DESCRIPTION: StreetFire Sound Embedded Linux Distribution Configuration
#
#-----------------------------------------------------------------------------

#
# Header
#
DISTRO_NAME = "StreetRacerLinux"
DISTRO_VERSION = "0.1-debug"
#DISTRO_TYPE = "release"
DISTRO_TYPE = "debug"

#
# Naming schemes
#
PARALLEL_INSTALL_MODULES = "1"
INHERIT += "debian multimachine"

#
# Packaging and output format
#
INHERIT += "package_ipk"
IMAGE_FSTYPES = "tar.gz jffs2"

#
# Kernel
#
KERNEL = "kernel26"
MACHINE_KERNEL_VERSION = "2.6"

#
# Binutils & Compiler
#
PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}gcc-initial:gcc-cross-initial" PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}gcc:gcc-cross" PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}g++:gcc-cross" PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}-libc-for-gcc = "glibc-intermediate" PREFERRED_PROVIDER_virtual/arm-linux-libc-for-gcc = "glibc-intermediate"

PREFERRED_PROVIDER_virtual/libiconv = "glibc"
PREFERRED_PROVIDER_virtual/libintl = "glibc"

PREFERRED_VERSION_gcc ?= "4.1.1"
PREFERRED_VERSION_gcc-cross ?= "4.1.1"
PREFERRED_VERSION_gcc-cross-initial ?= "4.1.1"
PREFERRED_VERSION_gcc-cross-sdk ?= "4.1.1"

PREFERRED_VERSION_binutils ?= "2.17.50.0.5"
PREFERRED_VERSION_binutils-cross ?= "2.17.50.0.5"

TARGET_OS = "linux"
TARGET_FPU_arm = "soft"
TARGET_FPU_armeb = "soft"

PREFERRED_VERSION_linux-libc-headers ?= "2.6.18"

PREFERRED_VERSION_glibc = "2.5"
PREFERRED_VERSION_glibc-initial = "2.5"
PREFERRED_VERSION_glibc-intermediate = "2.5"

DISTRO_FEATURES = "alsa"

PREFERRED_VERSION_linux-rbx1600 ?= "2.6.17"

=== rbx1600.conf ===

#@TYPE: Machine
#@Name: RBX1600
#@DESCRIPTION: Machine configuration StreetFire Sound Labs RBX1600

TARGET_ARCH = "arm"
PACKAGE_EXTRA_ARCHS = "armv5te"

PREFERRED_PROVIDER_virtual/kernel = "linux-rbx1600" PREFERRED_PROVIDER_virtual/bootloader = "u-boot-rbx1600" PREFERRED_PROVIDERS += "virtual/${TARGET_PREFIX}depmod:module-init-tools-cross"

include conf/machine/include/tune-xscale.conf

MACHINE_FEATURES = "kernel26 alsa"

MACHINE_TASK_PROVIDER = "task-base"