BUG: Compiling bug

Néstor Amigo Cairo nestorac at gmail.com
Sat Feb 23 15:18:27 UTC 2008


Hello! I'm new to OpenEmbedded. I'm trying to compile it, on my AMD64
Ubuntu 7.10 (64 bit version, everything updated, bitbake from SVN), but
get the following error. I attach the configuration file:

| mv
-f /home/nestor/docs/proyectos/embedded/oemb/tmp/work/i486-angstrom-linux/glibc-intermediate-2.6.1-r2/build-i486-angstrom-linux/shlib.ldsT /home/nestor/docs/proyectos/embedded/oemb/tmp/work/i486-angstrom-linux/glibc-intermediate-2.6.1-r2/build-i486-angstrom-linux/shlib.lds
| ccache i486-angstrom-linux-gcc   -shared -static-libgcc -Wl,-O1
-Wl,-z,defs -Wl,-dynamic-linker=/lib/ld-linux.so.2
-B/home/nestor/docs/proyectos/embedded/oemb/tmp/work/i486-angstrom-linux/glibc-intermediate-2.6.1-r2/build-i486-angstrom-linux/csu/  -Wl,--version-script=/home/nestor/docs/proyectos/embedded/oemb/tmp/work/i486-angstrom-linux/glibc-intermediate-2.6.1-r2/build-i486-angstrom-linux/libc.map -Wl,-soname=libc.so.6 -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both -nostdlib -nostartfiles -e __libc_main -L/home/nestor/docs/proyectos/embedded/oemb/tmp/work/i486-angstrom-linux/glibc-intermediate-2.6.1-r2/build-i486-angstrom-linux -L/home/nestor/docs/proyectos/embedded/oemb/tmp/work/i486-angstrom-linux/glibc-intermediate-2.6.1-r2/build-i486-angstrom-linux/math -L/home/nestor/docs/proyectos/embedded/oemb/tmp/work/i486-angstrom-linux/glibc-intermediate-2.6.1-r2/build-i486-angstrom-linux/elf -L/home/nestor/docs/proyectos/embedded/oemb/tmp/work/i486-angstrom-linux/glibc-intermediate-2.6.1-r2/build-i486-angstrom-linux/dlfcn -L/home/nestor/docs/proyectos/embedded/oemb/tmp/work/i486-angstrom-linux/glibc-intermediate-2.6.1-r2/build-i486-angstrom-linux/nss -L/home/nestor/docs/proyectos/embedded/oemb/tmp/work/i486-angstrom-linux/glibc-intermediate-2.6.1-r2/build-i486-angstrom-linux/nis -L/home/nestor/docs/proyectos/embedded/oemb/tmp/work/i486-angstrom-linux/glibc-intermediate-2.6.1-r2/build-i486-angstrom-linux/rt -L/home/nestor/docs/proyectos/embedded/oemb/tmp/work/i486-angstrom-linux/glibc-intermediate-2.6.1-r2/build-i486-angstrom-linux/resolv -L/home/nestor/docs/proyectos/embedded/oemb/tmp/work/i486-angstrom-linux/glibc-intermediate-2.6.1-r2/build-i486-angstrom-linux/crypt -L/home/nestor/docs/proyectos/embedded/oemb/tmp/work/i486-angstrom-linux/glibc-intermediate-2.6.1-r2/build-i486-angstrom-linux/nptl -Wl,-rpath-link=/home/nestor/docs/proyectos/embedded/oemb/tmp/work/i486-angstrom-linux/glibc-intermediate-2.6.1-r2/build-i486-angstrom-linux:/home/nestor/docs/proyectos/embedded/oemb/tmp/work/i486-angstrom-linux/glibc-intermediate-2.6.1-r2/build-i486-angstrom-linux/math:/home/nestor/docs/proyectos/embedded/oemb/tmp/work/i486-angstrom-linux/glibc-intermediate-2.6.1-r2/build-i486-angstrom-linux/elf:/home/nestor/docs/proyectos/embedded/oemb/tmp/work/i486-angstrom-linux/glibc-intermediate-2.6.1-r2/build-i486-angstrom-linux/dlfcn:/home/nestor/docs/proyectos/embedded/oemb/tmp/work/i486-angstrom-linux/glibc-intermediate-2.6.1-r2/build-i486-angstrom-linux/nss:/home/nestor/docs/proyectos/embedded/oemb/tmp/work/i486-angstrom-linux/glibc-intermediate-2.6.1-r2/build-i486-angstrom-linux/nis:/home/nestor/docs/proyectos/embedded/oemb/tmp/work/i486-angstrom-linux/glibc-intermediate-2.6.1-r2/build-i486-angstrom-linux/rt:/home/nestor/docs/proyectos/embedded/oemb/tmp/work/i486-angstrom-linux/glibc-intermediate-2.6.1-r2/build-i486-angstrom-linux/resolv:/home/nestor/docs/proyectos/embedded/oemb/tmp/work/i486-angstrom-linux/glibc-intermediate-2.6.1-r2/build-i486-angstrom-linux/crypt:/home/nestor/docs/proyectos/embedded/oemb/tmp/work/i486-angstrom-linux/glibc-intermediate-2.6.1-r2/build-i486-angstrom-linux/nptl -o /home/nestor/docs/proyectos/embedded/oemb/tmp/work/i486-angstrom-linux/glibc-intermediate-2.6.1-r2/build-i486-angstrom-linux/libc.so -T /home/nestor/docs/proyectos/embedded/oemb/tmp/work/i486-angstrom-linux/glibc-intermediate-2.6.1-r2/build-i486-angstrom-linux/shlib.lds /home/nestor/docs/proyectos/embedded/oemb/tmp/work/i486-angstrom-linux/glibc-intermediate-2.6.1-r2/build-i486-angstrom-linux/csu/abi-note.o /home/nestor/docs/proyectos/embedded/oemb/tmp/work/i486-angstrom-linux/glibc-intermediate-2.6.1-r2/build-i486-angstrom-linux/elf/soinit.os /home/nestor/docs/proyectos/embedded/oemb/tmp/work/i486-angstrom-linux/glibc-intermediate-2.6.1-r2/build-i486-angstrom-linux/libc_pic.os /home/nestor/docs/proyectos/embedded/oemb/tmp/work/i486-angstrom-linux/glibc-intermediate-2.6.1-r2/build-i486-angstrom-linux/elf/sofini.os /home/nestor/docs/proyectos/embedded/oemb/tmp/work/i486-angstrom-linux/glibc-intermediate-2.6.1-r2/build-i486-angstrom-linux/elf/interp.os /home/nestor/docs/proyectos/embedded/oemb/tmp/work/i486-angstrom-linux/glibc-intermediate-2.6.1-r2/build-i486-angstrom-linux/elf/ld.so -lgcc
| /home/nestor/docs/proyectos/embedded/oemb/tmp/work/i486-angstrom-linux/glibc-intermediate-2.6.1-r2/build-i486-angstrom-linux/libc_pic.os: In function `__fork':
| (.text+0x5f174): undefined reference to
`__sync_bool_compare_and_swap_4'
| /home/nestor/docs/proyectos/embedded/oemb/tmp/work/i486-angstrom-linux/glibc-intermediate-2.6.1-r2/build-i486-angstrom-linux/libc_pic.os: In function `nscd_getpw_r':
| nscd_getpw_r.c:(.text+0xad53e): undefined reference to
`__sync_fetch_and_add_4'
| nscd_getpw_r.c:(.text+0xad581): undefined reference to
`__sync_fetch_and_add_4'
| /home/nestor/docs/proyectos/embedded/oemb/tmp/work/i486-angstrom-linux/glibc-intermediate-2.6.1-r2/build-i486-angstrom-linux/libc_pic.os: In function `nscd_getgr_r':
| nscd_getgr_r.c:(.text+0xadb09): undefined reference to
`__sync_fetch_and_add_4'
| nscd_getgr_r.c:(.text+0xadb41): undefined reference to
`__sync_fetch_and_add_4'
| /home/nestor/docs/proyectos/embedded/oemb/tmp/work/i486-angstrom-linux/glibc-intermediate-2.6.1-r2/build-i486-angstrom-linux/libc_pic.os: In function `nscd_gethst_r':
| nscd_gethst_r.c:(.text+0xae1bd): undefined reference to
`__sync_fetch_and_add_4'
| /home/nestor/docs/proyectos/embedded/oemb/tmp/work/i486-angstrom-linux/glibc-intermediate-2.6.1-r2/build-i486-angstrom-linux/libc_pic.os:nscd_gethst_r.c:(.text+0xae1f5): more undefined references to `__sync_fetch_and_add_4' follow
| /home/nestor/docs/proyectos/embedded/oemb/tmp/work/i486-angstrom-linux/glibc-intermediate-2.6.1-r2/build-i486-angstrom-linux/libc_pic.os: In function `__nscd_get_map_ref':
| (.text+0xaf7b5): undefined reference to
`__sync_val_compare_and_swap_4'
| /home/nestor/docs/proyectos/embedded/oemb/tmp/work/i486-angstrom-linux/glibc-intermediate-2.6.1-r2/build-i486-angstrom-linux/libc_pic.os: In function `__GI___libc_freeres':
| (__libc_freeres_fn+0x5e8): undefined reference to
`__sync_bool_compare_and_swap_4'
| collect2: ld returned 1 exit status
| make[1]: ***
[/home/nestor/docs/proyectos/embedded/oemb/tmp/work/i486-angstrom-linux/glibc-intermediate-2.6.1-r2/build-i486-angstrom-linux/libc.so] Error 1
| make[1]: Leaving directory
`/home/nestor/docs/proyectos/embedded/oemb/tmp/work/i486-angstrom-linux/glibc-intermediate-2.6.1-r2/glibc-2.6.1'
| make: *** [all] Error 2
| FATAL: oe_runmake failed
NOTE: Task
failed: /home/nestor/docs/proyectos/embedded/oemb/tmp/work/i486-angstrom-linux/glibc-intermediate-2.6.1-r2/temp/log.do_compile.19990
NOTE: package glibc-intermediate-2.6.1-r2: task do_compile: failed
ERROR: TaskFailed event exception, aborting
NOTE: package glibc-intermediate-2.6.1: failed
ERROR: Build
of /home/nestor/docs/proyectos/embedded/oemb/org.openembedded.dev/packages/glibc/glibc-intermediate_2.6.1.bb do_compile failed
ERROR: Task 364
(/home/nestor/docs/proyectos/embedded/oemb/org.openembedded.dev/packages/glibc/glibc-intermediate_2.6.1.bb, do_compile) failed
NOTE: Tasks Summary: Attempted 149 tasks of which 0 didn't need to be
rerun and 1 failed.
ERROR:
'/home/nestor/docs/proyectos/embedded/oemb/org.openembedded.dev/packages/glibc/glibc-intermediate_2.6.1.bb' failed
-------------- next part --------------
#
# 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}/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 := "${@bb.fatal('Edit your conf/local.conf: BBFILES')}"
BBFILES := /home/nestor/docs/proyectos/embedded/oemb/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.
# ASSUME_PROVIDED += "virtual/${TARGET_PREFIX}gcc virtual/libc"

# Uncomment this if you're building for an arch that uses emulated locale 
# generation under qemu (mainly arm glibc) and have an external gcc 3.x compiler
# that OE recognises. This will mean the gcc-native build is skipped, speeding 
# builds up.
# ASSUME_PROVIDED += "gcc3-native"

# Uncomment this if you are building 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.
# Most users do not need this anymore thankfully!
# ASSUME_PROVIDED += "virtual/arm-linux-gcc-2.95"

# 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-x11"
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. This will automatically take care
# of TARGET_ARCH
MACHINE = "geodegx"

# 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.
# Normally the DISTRO of your choosing will take care of this 
# 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 it no longer contain version number in the (file-)name
# openzaurus-unstable is a so called "versioned"  distro, i.e. they 
# explicitely select specific versions of various packages.
# Stay away from unversioned distros unless you really know what you are doing
DISTRO = "angstrom-2008.1"

# So far, angstrom.conf sets 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. Caveat emptor, since third-party
# qemus lack patches needed to work with various OE targets.
# ENABLE_BINARY_LOCALE_GENERATION = "0"
# ASSUME_PROVIDED += "qemu-native"

# If ENABLE_BINARY_LOCALE_GENERATION is set to "1", you can limit locales
# generated to the list provided by GLIBC_GENERATE_LOCALES. This is huge
# time-savior for developmental builds. Format: list of locale.encoding pairs
# with spaces as separators.
GLIBC_GENERATE_LOCALES = "en_GB.UTF-8 es_ES.UTF-8"

# 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(.gz|bz2), cpio(.gz), cramfs, ext2(.gz), ext3(.gz)
# squashfs, squashfs-lzma
IMAGE_FSTYPES = "ext2.gz squashfs-lzma"

# 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.
# Also note that OE now produces -dbg packages which contain debugging symbols.
# 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 3"

# 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 = ""

# EDIT THIS FILE and then remove the line below before using!
#REMOVE_THIS_LINE:="${@bb.fatal('Read the comments in your conf/local.conf')}"


More information about the Openembedded-issues mailing list