Problem in building compiler
Hello,
I'm new to openembedded. I'm working on a robotics research project where we are designing a small mobile robot called Marxbot (which is aimed for research). The robot embeds an iMX31 custom board. Now I would like to build a Linux distro for this robot.
I have used until now LTIB which is the tool proposed by Freescale. However, openembedded looks much more complete and clean, since it allows me to generate the cross-compiler using the same tool (and not crosstool and LTIB as until now).
I have taken Angstrom as a basis for my config files, modifying them to something that suits my needs (I haven't changed everything yet, it's only a first try, much will change). I have chosen Angstrom, because it seems be arm EABI aware, and I need this also to be able to work with Freescale kernel patches.
However the build fails for the glibc-intermediate. First, one question about the different toolchains that are built. I don't really understand very well what are all the different ones: I see cross is aimed for cross-compiling, then a native compiler (to be run on the target is built). But what does "intermediate" stands for ? What is its goal ?
Now, for my current build problem, the attached error.log file contains the error.
Anyone has an idea, according to my config files regarding the cross-compiler, of what is wrong here ?
Thank you very much
Valentin Longchamp
#
# OpenEmbedded local configuration file (sample)
#
# Please visit the Wiki at http://openembedded.org/ for more info. #
#
# Be SURE to read this file in its entirety and the GettingStarted page on the
# wiki before proceeding.
#
# Once you have done that, remove the line at the end of this
# file and build away.
#
# WARNING: lines starting with a space (' ') will result in parse failures.
# Remove '# ' from commented lines to activate them.
#
# NOTE: Do NOT use $HOME in your paths, BitBake does NOT expand ~ for you. If you
# must have paths relative to your homedir use ${HOME} (note the {}'s there
# you MUST have them for the variable expansion to be done by BitBake). Your
# paths should all be absolute paths (They should all start with a / after
# expansion. Stuff like starting with ${HOME} or ${TOPDIR} is ok).# Use this to specify where BitBake should place the downloaded sources into DL_DIR = "${HOME}/downloads"
# 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 := "${@bb.fatal('Edit your conf/local.conf: BBFILES')}"
BBFILES := "${HOME}/EPFL/iMXBoard/linux/openembedded/org.openembedded.dev/packages/*/*.bb"# Use the BBMASK below to instruct BitBake to _NOT_ consider some .bb files # This is a regulary expression, so be sure to get your parenthesis balanced. BBMASK = ""
# Uncomment this if you want to use a prebuilt toolchain. You will need to
# provide packages for toolchain and additional libraries yourself. You also
# have to set PATH in your environment to make sure BitBake finds additional binaries.
# Note: You will definitely need to say:
# ASSUME_PROVIDED += "virtual/arm-linux-gcc-2.95"
# to build any of two Linux 2.4 Embedix kernels,
# i.e. openzaurus-sa-2.4.18 and openzaurus-pxa-2.4.18 - and don't forget
# to rename the binaries as instructed in the Wiki.
# ASSUME_PROVIDED += "virtual/${TARGET_PREFIX}gcc virtual/libc"
# ASSUME_PROVIDED += "virtual/${TARGET_PREFIX}gcc virtual/libc"# Select between multiple alternative providers, if more than one is eligible. PREFERRED_PROVIDERS = "virtual/qte:qte virtual/libqpe:libqpe-opie" PREFERRED_PROVIDERS += " virtual/libsdl:libsdl-qpe" 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"
# Uncomment this to specify where BitBake should create its temporary files. # Note that a full build of everything in OpenEmbedded will take GigaBytes of hard
# disk space, so make sure to free enough space. The default TMPDIR is # <build directory>/tmp # Don't use symlinks in in the path to avoid problems # TMPDIR = /usr/local/projects/oetmp
# Uncomment this to specify a machine to build for. See the conf directory
# for machines currently known to OpenEmbedded. MACHINE = "mx31board"
# Use this to specify the target architecture. Note that this is only
# needed when building for a machine not known to OpenEmbedded. Better use # the MACHINE attribute (see above) # TARGET_ARCH = "arm"
# Use this to specify the target operating system. The default is "linux",
# for a normal linux system with glibc. Set this to "linux-uclibc" if you want # to build a uclibc based system. TARGET_OS = "linux" # TARGET_OS = "linux-uclibc"
# Uncomment this to select a distribution policy. See the conf directory
# for distributions currently known to OpenEmbedded. # Although they no longer contain version number in the (file-)name # familiar-unstable and openzaurus-unstable are so called "versioned" # distros, i.e. they explicitely select specific versions of various # packages. # Stay away from unversioned distros unless you really know what you are doing DISTRO = "marxbot"
# So far, angstrom.conf and familiar.conf set ENABLE_BINARY_LOCALE_GENERATION
# to generate binary locale packages at build time using qemu-native and # thereby guarantee i18n support on all devices. If your build breaks on # qemu-native consider disabling ENABLE_BINARY_LOCALE_GENERATION (note that # this breaks i18n on devices with less than 128MB RAM) or installing # a working third-party qemu (e.g. provided by your distribution) and # adding qemu-native to ASSUME_PROVIDED ENABLE_BINARY_LOCALE_GENERATION = "0" # ASSUME_PROVIDED += "qemu-native"
# Uncomment this to select a particular major kernel version if the MACHINE setting
# supports more than one major kernel version. Currently this is suported by the # following MACHINE types: poodle, tosa and simpad. # MACHINE_KERNEL_VERSION = "2.6"
# Uncomment one of these to build packages during the build process. # This is done automatically if you set DISTRO (see above) INHERIT = "package_ipk"
# INHERIT = "package_tar"
# Add the required image file system types below. Valid are jffs2, tar, cramfs and ext2 IMAGE_FSTYPES = "jffs2 tar"
# Uncomment this to disable the parse cache (not recommended). # CACHE = ""
# Uncomment this if you want BitBake to emit debugging output BBDEBUG = "yes"
# Uncomment these two if you want BitBake to build images useful for debugging. # Note that INHIBIT_PACKAGE_STRIP needs a package format to be defined # DEBUG_BUILD = "1"
# INHIBIT_PACKAGE_STRIP = "1"
# Uncomment these to build a package such that you can use gprof to profile it. # NOTE: This will only work with 'linux' targets, not
# 'linux-uclibc', as uClibc doesn't provide the necessary
# object files. Also, don't build glibc itself with these
# flags, or it'll fail to build.
#
# PROFILE_OPTIMIZATION = "-pg"
# SELECTED_OPTIMIZATION = "${PROFILE_OPTIMIZATION}"
# LDFLAGS =+ "-pg"# Uncomment this to enable parallel make.
# This allows make to spawn mutliple processes to take advantage of multiple
# processors. Useful on SMP machines. This may break some packages - we're # in the process of marking these so let us know if you find any. # PARALLEL_MAKE = "-j 4"
# Uncomment this if you want BitBake to emit the log if a build fails. BBINCLUDELOGS = "yes"
# Specifies a location to search for pre-generated tarballs when fetching
# a cvs:// URI. Outcomment this, if you always want to pull directly from CVS. CVS_TARBALL_STASH = "http://www.oesources.org/source/current/"
# EDIT THIS FILE and then remove the line below before using!
#@-------------------------------------------------------------------- #@TYPE: Distribution
#@NAME: Angstrom <http://www.angstrom-distribution.org>
#@DESCRIPTION: The Linux Distribution for Kernel 2.6 based devices #@MAINTAINER: Valentin Longchamp <[email protected]> #@--------------------------------------------------------------------
#DISTRO_VERSION = "2006.9"DISTRO_VERSION = "test-${DATE}"DISTRO_REVISION = "2"
require conf/distro/include/marxbot.inc
require conf/distro/include/sane-srcdates.inc
DISTRO_TYPE = "debug"
#DISTRO_TYPE = "release"
#FEED_URIS += " \
# no-arch##${ANGSTROM_URI}/unstable/feed/all \
# base##${ANGSTROM_URI}/unstable/feed/${TARGET_ARCH}/base \
# perl##${ANGSTROM_URI}/unstable/feed/${TARGET_ARCH}/perl \
# python##${ANGSTROM_URI}/unstable/feed/${TARGET_ARCH}/python \
# debug##${ANGSTROM_URI}/unstable/feed/${TARGET_ARCH}/debug \
# ${MACHINE}##${ANGSTROM_URI}/unstable/feed/${TARGET_ARCH}/machine/${MACHINE}"
# base##${ANGSTROM_URI}/releases/${DISTRO_VERSION}/feed/${TARGET_ARCH}/base \
# ${MACHINE}##${ANGSTROM_URI}/releases/${DISTRO_VERSION}/feed/${TARGET_ARCH}/machine/${MACHINE} \
# updates##${ANGSTROM_URI}/releases/${DISTRO_VERSION}/feed/${TARGET_ARCH}/updates"#SRCDATE = "20060630"
#SRCDATE_handhelds-pxa-2.6 = "20060622" #PREFERRED_VERSION_handhelds-pxa-2.6 = "2.6.16-hh5" #PREFERRED_VERSION_handhelds-pxa-2.6_htcuniversal = "2.6.17-hh1+cvs${SRCDATE}"
PREFERRED_PROVIDER_hostap-modules_ipaq-pxa270 = "hostap-modules"
SRCDATE_gconf-dbus = "20060719"
SRCDATE_gnome-vfs-dbus = "20060803"
PREFERRED_VERSION_qemu-native = "0.8.2"
CVS_TARBALL_STASH = "\
http://ewi546.ewi.utwente.nl/mirror/www.openzaurus.org/official/unstable/3.5.4/sources/ \
http://www.oesources.org/source/current/"
# Opie
#use 1337 mt version of opie to have a webbrowser PALMTOP_USE_MULTITHREADED_QT = "yes" QTE_VERSION = "2.3.10"
#OPIE_VERSION = "1.2.2"
#require conf/distro/include/preferred-opie-versions.inc
#Make sure we use 2.6 on machines with a 2.4/2.6 selector KERNEL = "kernel26"MACHINE_KERNEL_VERSION = "2.6"
PREFERRED_PROVIDER_task-bootstrap = "task-bootstrap"
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"
# Virtuals:
PREFERRED_PROVIDER_virtual/db ?= "db" PREFERRED_PROVIDER_virtual/db-native ?= "db-native"
# Others:PREFERRED_PROVIDER_tslib ?= "tslib"
PREFERRED_PROVIDER_tslib-conf ?= "tslib"PREFERRED_PROVIDER_libgpewidget ?= "libgpewidget"PREFERRED_PROVIDER_ntp = "ntp"PREFERRED_PROVIDER_hotplug = "udev"PREFERRED_PROVIDER_libxss = "libxss"
#EABI stuff
#PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}-libc-for-gcc = "glibc-intermediate" PREFERRED_PROVIDER_virtual/arm-marxbot-linux-gnueabi-libc-for-gcc = "glibc-intermediate" #PREFERRED_PROVIDER_virtual/arm-linux-libc-for-gcc = "glibc-intermediate"
#shouldn't that be uclibc-initial???? PREFERRED_PROVIDER_virtual/arm-angstrom-linux-uclibcgnueabi-libc-for-gcc = "uclibc-initial"
#use EABI toolchainPREFERRED_VERSION_gcc ?= "4.1.1" PREFERRED_VERSION_gcc-cross ?= "4.1.1" PREFERRED_VERSION_gcc-cross-initial ?= "4.1.1" PREFERRED_VERSION_binutils ?= "2.17" PREFERRED_VERSION_binutils-cross ?= "2.17" PREFERRED_VERSION_linux-libc-headers ?= "2.6.15.99" PREFERRED_VERSION_glibc ?= "2.4" PREFERRED_VERSION_glibc-initial ?= "2.4" PREFERRED_VERSION_glibc-intermediate ?= "2.4"
# To use an EABI compatible version 3 series gcc, either uncomment
# the lines below or set them in local.conf: # # PREFERRED_VERSION_gcc-cross = "3.4.4+csl-arm-2005q3" # PREFERRED_VERSION_gcc-cross-initial = "3.4.4+csl-arm-2005q3"
# Busybox <1.1.0 doesn't have EABI supportPREFERRED_VERSION_busybox = "1.2.1"
PREFERRED_VERSION_dbus ?= "0.92"
# do some task-base stuff here
# We want to ship extra debug utils in the rootfs when doing a debug buildDEBUG_APPS ?= ""DEBUG_APPS += '${@base_conditional("DISTRO_TYPE", "release", "", "tslib-tests tslib-calibrate gdb strace procps",d)}'
#this should go away soonEXTRA_STUFF ?= ""
# Angstrom want to ship some extra stuff. This should be moved into task-base eventually
DISTRO_EXTRA_RDEPENDS = "\
update-modules module-init-tools modutils-initscripts \
sysvinit initscripts sysvinit-pidof \
psplash \
netbase dropbear \
angstrom-version \
ipkg ipkg-collateral \
util-linux-mount util-linux-umount \
${EXTRA_STUFF} \
${DEBUG_APPS} \
"#@TYPE: Distribution
#@NAME: Angstrom
#@DESCRIPTION: Distribution configuration for Angstrom
DISTRO = "marxbot"DISTRO_NAME = "Marxbot"
TARGET_VENDOR = "-marxbot"MACHINE_TASK_PROVIDER = "task-base"
# Can be "glibc" and "uclibc"MARXBOT_MODE ?= "glibc"
DEPLOY_DIR = "${TMPDIR}/deploy/${MARXBOT_MODE}" require conf/distro/include/marxbot-${MARXBOT_MODE}.inc
#Use this variable in feeds and other parts that need a URI ANGSTROM_URI = "http://www.angstrom-distribution.org"
#Set the default maintainer to angstrom-dev MAINTAINER = "Valentin Longchamp <[email protected]>"
#use ipkg package format with debian style naming
#use multimachine buildrules
INHERIT += "package_ipk debian multimachine"
#Generate locales on the buildsystem instead of on the target. Speeds up first boot, set to "1" to enable #PREFERRED_PROVIDER_qemu-native = "qemu-native"ENABLE_BINARY_LOCALE_GENERATION ?= "0"
#ARM EABI is softfloat by default, but let's make sure :) #make it overridable for platforms with FPU, like ep93xx or i.mx31 TARGET_FPU_arm ?= "soft"
#Name the generated images in a sane wayIMAGE_NAME = "${DISTRO_NAME}-${IMAGE_BASENAME}-${DISTRO_VERSION}-${MACHINE}" DEPLOY_DIR_IMAGE = ${DEPLOY_DIR}/images/${MACHINE}
# Angstrom *always* has some form of release config, so error out if someone thinks he knows betterDISTRO_CHECK := "${@bb.data.getVar("DISTRO_VERSION",d,1) or bb.fatal('Remove this line or set a dummy DISTRO_VERSION if you really want to build an unversioned distro')}"
# We want images supporting the following features (for task-base) DISTRO_FEATURES = "nfs smbfs wifi ppp alsa bluetooth ext2 irda pcmcia usbgadget usbhost"
# glibc:
#fix some iconv issues, needs to be adjusted when doing uclibc builds PREFERRED_PROVIDER_virtual/libiconv ?= "glibc" PREFERRED_PROVIDER_virtual/libintl ?= "glibc"
TARGET_OS = "linux${@['','-gnueabi'][bb.data.getVar('TARGET_ARCH',d,1)=='arm']}"
#mess with compiler flags to use -Os instead of -O2
#Please see http://free-electrons.com/doc/embedded_linux_optimizations/img47.html for some more info FULL_OPTIMIZATION = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os" BUILD_OPTIMIZATION = "-Os"
CXXFLAGS += "-fvisibility-inlines-hidden"
#@TYPE: Machine
#@Name: MarxBot MX31 board
#@DESCRIPTION: Machine configuration for MX31 custom board
TARGET_ARCH = "arm"TARGET_FPU_arm = "hard"
GUI_MACHINE_CLASS = "smallscreen"IPKG_EXTRA_ARCHS = "armv6"
PREFERRED_PROVIDER_virtual/kernel = "${MACHINE}-kernel"
include conf/machine/include/tune-arm1136jf-s.conf
# used by sysvinit_2 SERIAL_CONSOLE = "115200 ttymxc0"
# used by opie-collections.inc ROOT_FLASH_SIZE = "32"
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Valentin Longchamp schreef:
Quoted 1 line
Hello,
[snip problem]
Quoted 2 lines
Anyone has an idea, according to my config files regarding the cross-compiler, of what is wrong here ?
Does the same error happen with MACHINE=mx31ads and DISTRO=angstrom-2007.1 ? I recommend using that configuration and adding 'branding' later on when it's proven to work.
regards,
Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
iD8DBQFFTw3JMkyGM64RGpERAmyeAKCyqifnJi7eCyjbQZGEQ/afwK99IQCfdMkE azRiNMiBSckUi4Tetr33tEI=
=U1jz
-----END PGP SIGNATURE-----
Quoted 5 lines · Koen Kooi
Does the same error happen with MACHINE=mx31ads and DISTRO=angstrom-2007.1 ? I recommend using that configuration and adding 'branding' later on when it's proven to work.
So the config file, tells to use glibc-2.5, but the compilation fails on the same package (glibc-intermediate).
The error is visible in the attach error log.
Looks like the glibc doesn't compile well for iMX31 processor options proposed by oe. Or is it something else ?
Quoted 4 lines · Koen Kooi
Does the same error happen with MACHINE=mx31ads and DISTRO=angstrom-2007.1 ? I recommend using that configuration and adding 'branding' later on when it's proven to work.
Sorry for the double-post, but it looks like the attached error file didn't make it through the mailing-list this time. So I past it here (and attach it once more).
So the config file, tells to use glibc-2.5, but the compilation fails on the same package (glibc-intermediate).
The error is visible in the attach error log.
Quoted 83 lines
| mawk -f scripts/gen-sorted.awk \ | -v subdirs='csu assert ctype locale intl catgets math setjmp | signal stdlib stdio-common libio malloc string wcsmbs time dirent grp pwd | posix io termios resource misc socket sysvipc gmon gnulib iconv iconvdata | wctype manual shadow po argp crypt nss localedata timezone rt conform | debug dlfcn elf' \ -v srcpfx='' \ | nptl/sysdeps/pthread/Subdirs sysdeps/unix/inet/Subdirs | sysdeps/unix/Subdirs assert/Depend intl/Depend catgets/Depend | stdlib/Depend stdio-common/Depend libio/Depend malloc/Depend | string/Depend wcsmbs/Depend time/Depend posix/Depend iconvdata/Depend | nss/Depend localedata/Depend rt/Depend debug/Depend > | /home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/tmp/wo |rk/armv6-angstrom-linux-gnueabi/glibc-intermediate-2.5-r1/build-arm-angstr |om-linux-gnueabi/sysd-sorted-tmp mawk: scripts/gen-sorted.awk: line 19: | regular expression compile failed (bad class -- [], [^] or [) /[^ | mawk: scripts/gen-sorted.awk: line 19: syntax error at or near ] | mawk: scripts/gen-sorted.awk: line 19: runaway regular expression /, "", | subd ... rm -f | /home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/tmp/wo |rk/armv6-angstrom-linux-gnueabi/glibc-intermediate-2.5-r1/build-arm-angstr |om-linux-gnueabi/stamp.o; > | /home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/tmp/wo |rk/armv6-angstrom-linux-gnueabi/glibc-intermediate-2.5-r1/build-arm-angstr |om-linux-gnueabi/stamp.o rm -f | /home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/tmp/wo |rk/armv6-angstrom-linux-gnueabi/glibc-intermediate-2.5-r1/build-arm-angstr |om-linux-gnueabi/stamp.os; > | /home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/tmp/wo |rk/armv6-angstrom-linux-gnueabi/glibc-intermediate-2.5-r1/build-arm-angstr |om-linux-gnueabi/stamp.os rm -f | /home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/tmp/wo |rk/armv6-angstrom-linux-gnueabi/glibc-intermediate-2.5-r1/build-arm-angstr |om-linux-gnueabi/stamp.oS; > | /home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/tmp/wo |rk/armv6-angstrom-linux-gnueabi/glibc-intermediate-2.5-r1/build-arm-angstr |om-linux-gnueabi/stamp.oS cd | /home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/tmp/wo |rk/armv6-angstrom-linux-gnueabi/glibc-intermediate-2.5-r1/build-arm-angstr |om-linux-gnueabi && | /home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/tmp/cr |oss/lib/gcc/arm-angstrom-linux-gnueabi/4.1.1/../../../../arm-angstrom-linu |x-gnueabi/bin/ar cruv libc.a `cat stamp.o` | | : /home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/tmp/ | :work/armv6-angstrom-linux-gnueabi/glibc-intermediate-2.5-r1/build-arm-an | :gstrom-linux-gnueabi/libc.a | | cd | /home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/tmp/wo |rk/armv6-angstrom-linux-gnueabi/glibc-intermediate-2.5-r1/build-arm-angstr |om-linux-gnueabi && | /home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/tmp/cr |oss/lib/gcc/arm-angstrom-linux-gnueabi/4.1.1/../../../../arm-angstrom-linu |x-gnueabi/bin/ar cruv libc_pic.a `cat stamp.os` | | : /home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/tmp/ | :work/armv6-angstrom-linux-gnueabi/glibc-intermediate-2.5-r1/build-arm-an | :gstrom-linux-gnueabi/libc_pic.a | | cd | /home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/tmp/wo |rk/armv6-angstrom-linux-gnueabi/glibc-intermediate-2.5-r1/build-arm-angstr |om-linux-gnueabi && | /home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/tmp/cr |oss/lib/gcc/arm-angstrom-linux-gnueabi/4.1.1/../../../../arm-angstrom-linu |x-gnueabi/bin/ar cruv libc_nonshared.a `cat stamp.oS` | | : /home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/tmp/ | :work/armv6-angstrom-linux-gnueabi/glibc-intermediate-2.5-r1/build-arm-an | :gstrom-linux-gnueabi/libc_nonshared.a | | make[1]: *** No rule to make target | `/home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/tmp/w |ork/armv6-angstrom-linux-gnueabi/glibc-intermediate-2.5-r1/build-arm-angst |rom-linux-gnueabi/Versions.all', needed by | `/home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/tmp/w |ork/armv6-angstrom-linux-gnueabi/glibc-intermediate-2.5-r1/build-arm-angst |rom-linux-gnueabi/abi-versions.h'. Stop. make[1]: Leaving directory | `/home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/tmp/w |ork/armv6-angstrom-linux-gnueabi/glibc-intermediate-2.5-r1/glibc-2.5' | make: *** [all] Error 2 | FATAL: oe_runmake failed
Quoted 6 lines
NOTE: Task failed:
/home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/tmp/work/armv6-angstrom-linux-gnueabi/glibc-intermediate-2.5-r1/temp/log.do_compile. 7466 NOTE: package glibc-intermediate-2.5-r1: taskdo_compile: failed
ERROR: TaskFailed event exception, aborting
NOTE: package glibc-intermediate-2.5: failed
Looks like the glibc doesn't compile well for iMX31 processor options proposed by oe. Or is it something else ?
Regards,
Valentin
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Valentin Longchamp schreef:
Quoted 7 lines
Quoted 4 lines · Koen Kooi
Does the same error happen with MACHINE=mx31ads and DISTRO=angstrom-2007.1 ? I recommend using that configuration and adding 'branding' later on when it's proven to work.
Quoted 16 lines
Sorry for the double-post, but it looks like the attached error file didn't make it through the mailing-list this time. So I past it here (and attach it once more).
So the config file, tells to use glibc-2.5, but the compilation fails on the same package (glibc-intermediate).
The error is visible in the attach error log.
Quoted 6 lines
| /home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/tmp/wo |rk/armv6-angstrom-linux-gnueabi/glibc-intermediate-2.5-r1/build-arm-angstr |om-linux-gnueabi/sysd-sorted-tmp mawk: scripts/gen-sorted.awk: line 19: | regular expression compile failed (bad class -- [], [^] or [) /[^ | mawk: scripts/gen-sorted.awk: line 19: syntax error at or near ] | mawk: scripts/gen-sorted.awk: line 19: runaway regular expression /, "",
For some reason glibc needs 'gawk' and breaks with 'mawk' (which is the default on debian). Could you try installing gawk? A recent .dev tree should warn you about that[1].
regards,
Koen
[1]
http://www.openembedded.org/viewmtn/revision.psp?id=0c89fbedbb59ef7e1b229b833813e59080b4952a
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
iD4DBQFFTx9AMkyGM64RGpERAhsAAJwL725GpVVWoUB26GZlutIpNR//OACXWHKj yfFGVBu0i93HaGCP7Pcg1Q==
=plsI
-----END PGP SIGNATURE-----
Quoted 5 lines · Koen Kooi
For some reason glibc needs 'gawk' and breaks with 'mawk' (which is the default on debian). Could you try installing gawk? A recent .dev tree should warn you about that[1].
Ok, I've updated my openembedded tree and installed gawk. However, I now cannot go any further than package gcc-cross-4.1.1 (which used to work with my last week org.openembedded.dev):
Quoted 53 lines
gcc -c
-isystem/home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/ tmp/staging/i686-linux/include -Os -DIN_GCC -DCROSS_COMPILE -W -Wall(quoted diff) +0
-4-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H -I. -I. -I/home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/tmp/work/armv6-angstrom-linux-gnueabi/gcc-cross-4.1.1-r7/g cc-4.1.1/gcc -I/home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/tmp/wo rk/armv6-angstrom-linux-gnueabi/gc c-cross-4.1.1-r7/gcc-4.1.1/gcc/. -I/home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/tmp/wo rk/armv6-angstrom-linux-gnueabi/gcc-cross-4.1.1-r7/gcc-4.1.1/gcc/../include -I/home/valen tin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/tmp/work/armv6-angs trom-linux-gnueabi/gcc-cross-4.1.1-r7/gcc-4.1.1/gcc/../libcpp/include -I/home/valentin/EPFL/iMXBoard/linux/openembedded/bu ild/mx31ADS/conf/tmp/staging/i686-linux/include -isystem/home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/
tmp/staging/i686-linux/include -DSTANDARD_STARTFILE_PREFIX=\"../../../\"
-DSTANDARD_EXEC_PREFIX=\"/home/valentin/EPFL/iMXBoard/linux/openembedded/bu ild/mx31ADS/conf/tmp/cross/lib/gcc/\" -DSTANDARD_LIBEXEC_PREFIX=\"/home/valentin/EPFL/iMXBoard/linux/openembedded /build/m x31ADS/conf/tmp/cross/libexec/gcc/\"(quoted diff) +0
-3-DDEFAULT_TARGET_VERSION=\"4.1.1\" -DDEFAULT_TARGET_MACHINE=\"arm-angstrom-linux-gnueabi\" -DSTANDARD_BINDIR_PREFIX=\"/home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/tmp/cross/bin/\" -DTOOLDIR_BASE_PREFIX=\"../../../../\"
test "X${SHLIB_LINK}" = "X" || test "yes" != "yes" || echo "-DENABLE_SHARED_LIBGCC"`test"X${SHLIB_MULTILIB}" = "X" || echo "-DNO_SHARED_LIBGCC_MULTILIB"` \ -I. -I.-I/home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/tmp/wo rk/armv6-angstrom-linux-gnueabi/gcc-cross-4.1.1-r7/gcc-4.1.1/gcc -I/home/valentin/EPFL/iMXBoard/li nux/openembedded/build/mx31ADS/conf/tmp/work/armv6-angstrom-linux-gnueabi/g cc-cross-4.1.1-r7/gcc-4.1.1/gcc/. -I/home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/tmp/wo rk/armv6-angs trom-linux-gnueabi/gcc-cross-4.1.1-r7/gcc-4.1.1/gcc/../include -I/home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/tmp/wo rk/armv6-angstrom-linux-gnueabi/gcc-cross-4.1.1-r7/gcc-4.1. 1/gcc/../libcpp/include -I/home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/tmp/st aging/i686-linux/include
/home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/tmp/work/armv6-angstrom-linux-gnueabi/gcc-cross-4.1.1-r7/gcc-4.1.1/gcc/cp/g++spec .c)/home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/tmp/cross/bin/arm-angstrom-linux-gnueabi-as: unrecognized option `-Qy' make[2]: *** [g++spec.o] Error 1
make[2]: Leaving directory `/home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/tmp/wor k/armv6-angstrom-linux-gnueabi/gcc-cross-4.1.1-r7/gcc-4.1.1/build.i686-linux
Quoted 8 lines
.arm-angstrom-linux -gnueabi/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/tmp/wor k/armv6-angstrom-linux-gnueabi/gcc-cross-4.1.1-r7/gcc-4.1.1/build.i686-linux .arm-angstrom-linux -gnueabi'
make: *** [all] Error 2
FATAL:oe_runmakefailed
Any idea of what is wrong here ? maybe because of armv6 (I see there is no armv6 profile on angstrom, only armv4 and armv5te) ?
Regards,
Valentin
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Valentin Longchamp schreef:
Quoted 66 lines
Quoted 4 lines · Koen Kooi
For some reason glibc needs 'gawk' and breaks with 'mawk' (which is the default on debian). Could you try installing gawk? A recent .dev tree should warn you about that[1].
Ok, I've updated my openembedded tree and installed gawk. However, I now cannot go any further than package gcc-cross-4.1.1 (which used to work with my last week org.openembedded.dev):
Quoted 56 lines
gcc -c
-isystem/home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/ tmp/staging/i686-linux/include -Os -DIN_GCC -DCROSS_COMPILE -W -Wall(quoted diff) +0
-4-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H -I. -I. -I/home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/tmp/work/armv6-angstrom-linux-gnueabi/gcc-cross-4.1.1-r7/g cc-4.1.1/gcc -I/home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/tmp/wo rk/armv6-angstrom-linux-gnueabi/gc c-cross-4.1.1-r7/gcc-4.1.1/gcc/. -I/home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/tmp/wo rk/armv6-angstrom-linux-gnueabi/gcc-cross-4.1.1-r7/gcc-4.1.1/gcc/../include -I/home/valen tin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/tmp/work/armv6-angs trom-linux-gnueabi/gcc-cross-4.1.1-r7/gcc-4.1.1/gcc/../libcpp/include -I/home/valentin/EPFL/iMXBoard/linux/openembedded/bu ild/mx31ADS/conf/tmp/staging/i686-linux/include -isystem/home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/
tmp/staging/i686-linux/include -DSTANDARD_STARTFILE_PREFIX=\"../../../\"
-DSTANDARD_EXEC_PREFIX=\"/home/valentin/EPFL/iMXBoard/linux/openembedded/bu ild/mx31ADS/conf/tmp/cross/lib/gcc/\" -DSTANDARD_LIBEXEC_PREFIX=\"/home/valentin/EPFL/iMXBoard/linux/openembedded /build/m x31ADS/conf/tmp/cross/libexec/gcc/\"(quoted diff) +0
-3-DDEFAULT_TARGET_VERSION=\"4.1.1\" -DDEFAULT_TARGET_MACHINE=\"arm-angstrom-linux-gnueabi\" -DSTANDARD_BINDIR_PREFIX=\"/home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/tmp/cross/bin/\" -DTOOLDIR_BASE_PREFIX=\"../../../../\"
test "X${SHLIB_LINK}" = "X" || test "yes" != "yes" || echo "-DENABLE_SHARED_LIBGCC"`test"X${SHLIB_MULTILIB}" = "X" || echo "-DNO_SHARED_LIBGCC_MULTILIB"` \ -I. -I.-I/home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/tmp/wo rk/armv6-angstrom-linux-gnueabi/gcc-cross-4.1.1-r7/gcc-4.1.1/gcc -I/home/valentin/EPFL/iMXBoard/li nux/openembedded/build/mx31ADS/conf/tmp/work/armv6-angstrom-linux-gnueabi/g cc-cross-4.1.1-r7/gcc-4.1.1/gcc/. -I/home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/tmp/wo rk/armv6-angs trom-linux-gnueabi/gcc-cross-4.1.1-r7/gcc-4.1.1/gcc/../include -I/home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/tmp/wo rk/armv6-angstrom-linux-gnueabi/gcc-cross-4.1.1-r7/gcc-4.1. 1/gcc/../libcpp/include -I/home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/tmp/st aging/i686-linux/include
/home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/tmp/work/armv6-angstrom-linux-gnueabi/gcc-cross-4.1.1-r7/gcc-4.1.1/gcc/cp/g++spec .c)/home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/tmp/cross/bin/arm-angstrom-linux-gnueabi-as: unrecognized option `-Qy' make[2]: *** [g++spec.o] Error 1
make[2]: Leaving directory `/home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/tmp/wor k/armv6-angstrom-linux-gnueabi/gcc-cross-4.1.1-r7/gcc-4.1.1/build.i686-linux .arm-angstrom-linux -gnueabi/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory
Quoted 8 lines
Quoted 5 lines
`/home/valentin/EPFL/iMXBoard/linux/openembedded/build/mx31ADS/conf/tmp/wor k/armv6-angstrom-linux-gnueabi/gcc-cross-4.1.1-r7/gcc-4.1.1/build.i686-linux .arm-angstrom-linux -gnueabi'
make: *** [all] Error 2
FATAL:oe_runmakefailedAny idea of what is wrong here ? maybe because of armv6 (I see there is no armv6 profile on angstrom, only armv4 and armv5te) ?
I think you can get around that with a rebuild from scratch.
regards,
Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
iD8DBQFFT2l/MkyGM64RGpERAjGjAKCc27+4KT1eAo8J10LxlxWwTmUmKwCfdTY1 IfCurslLm/bg1LH/BkGIftM=
=f1jL
-----END PGP SIGNATURE-----