Following http://www.angstrom-distribution.org/building-angstrom on a Fedora Core 16 64 bit VM, leads to .libs/libgettextsrc-0.18.1.so failing to link because of multiple definition of things like atof.
Here are the steps that I performed: git clone git://github.com/Angstrom-distribution/setup-scripts.git MACHINE=beagleboard ./oebb.sh config beagleboard MACHINE=beagleboard ./oebb.sh update MACHINE=beagleboard ./oebb.sh bitbake virtual/kernel Here is part of the output: nux/usr/lib -L/home/wes/oe/setup-scripts/build/tmp-angstrom_v2012_05-eglibc/sysroots/x86_64-linux/lib -Wl,-rpath-link,/home/wes/oe/setup-scripts/build/tmp-angstrom_v2012_05-eglibc/sysroots/x86_64-linux/usr/lib -Wl,-rpath-link,/home/wes/oe/setup-scripts/build/tmp-angstrom_v2012_05-eglibc/sysroots/x86_64-linux/lib -Wl,-rpath,/home/wes/oe/setup-scripts/build/tmp-angstrom_v2012_05-eglibc/sysroots/x86_64-linux/usr/lib -Wl,-rpath,/home/wes/oe/setup-scripts/build/tmp-angstrom_v2012_05-eglibc/sysroots/x86_64-linux/lib -Wl,-O1 -o libgettextsrc.la -rpath /home/wes/oe/setup-scripts/build/tmp-angstrom_v2012_05-eglibc/sysroots/x86_64-linux/usr/lib message.lo po-error.lo po-xerror.lo read-catalog-abstract.lo po-lex.lo po-gram-gen.lo po-charset.lo read-po.lo read-properties.lo read-stringtable.lo open-catalog.lo dir-list.lo str-list.lo read-catalog.lo color.lo write-catalog.lo write-properties.lo write-stringtable.lo write-po.lo msgl-ascii.lo msgl-iconv.lo msgl-equal.lo msgl-cat.lo msgl-header.lo msgl-english.lo msgl-check.lo file-list.lo msgl-charset.lo po-time.lo plural-exp.lo plural-eval.lo plural-table.lo format.lo format-c.lo format-sh.lo format-python.lo format-lisp.lo format-elisp.lo format-librep.lo format-scheme.lo format-java.lo format-csharp.lo format-awk.lo format-pascal.lo format-ycp.lo format-tcl.lo format-perl.lo format-perl-brace.lo format-php.lo format-gcc-internal.lo format-gfc-internal.lo format-qt.lo format-qt-plural.lo format-kde.lo format-boost.lo | x86_64-linux-libtool: link: ccache gcc -std=c99 -shared -fPIC -DPIC .libs/message.o .libs/po-error.o .libs/po-xerror.o .libs/read-catalog-abstract.o .libs/po-lex.o .libs/po-gram-gen.o .libs/po-charset.o .libs/read-po.o .libs/read-properties.o .libs/read-stringtable.o .libs/open-catalog.o .libs/dir-list.o .libs/str-list.o .libs/read-catalog.o .libs/color.o .libs/write-catalog.o .libs/write-properties.o .libs/write-stringtable.o .libs/write-po.o .libs/msgl-ascii.o .libs/msgl-iconv.o .libs/msgl-equal.o .libs/msgl-cat.o .libs/msgl-header.o .libs/msgl-english.o .libs/msgl-check.o .libs/file-list.o .libs/msgl-charset.o .libs/po-time.o .libs/plural-exp.o .libs/plural-eval.o .libs/plural-table.o .libs/format.o .libs/format-c.o .libs/format-sh.o .libs/format-python.o .libs/format-lisp.o .libs/format-elisp.o .libs/format-librep.o .libs/format-scheme.o .libs/format-java.o .libs/format-csharp.o .libs/format-awk.o .libs/format-pascal.o .libs/format-ycp.o .libs/format-tcl.o .libs/format-perl.o .libs/format-perl-brace.o .libs/format-php.o .libs/format-gcc-internal.o .libs/format-gfc-internal.o .libs/format-qt.o .libs/format-qt-plural.o .libs/format-kde.o .libs/format-boost.o -Wl,-rpath -Wl,/home/wes/oe/setup-scripts/build/tmp-angstrom_v2012_05-eglibc/work/x86_64-linux/gettext-native-0.18.1.1-r11/gettext-0.18.1.1/gettext-tools/gnulib-lib/.libs -Wl,-rpath -Wl,/home/wes/oe/setup-scripts/build/tmp-angstrom_v2012_05-eglibc/sysroots/x86_64-linux/usr/lib ../gnulib-lib/.libs/libgettextlib.so -L/home/wes/oe/setup-scripts/build/tmp-angstrom_v2012_05-eglibc/sysroots/x86_64-linux/usr/lib -L/home/wes/oe/setup-scripts/build/tmp-angstrom_v2012_05-eglibc/sysroots/x86_64-linux/lib -lacl -lncurses -lc -O2 -Wl,-rpath-link -Wl,/home/wes/oe/setup-scripts/build/tmp-angstrom_v2012_05-eglibc/sysroots/x86_64-linux/usr/lib -Wl,-rpath-link -Wl,/home/wes/oe/setup-scripts/build/tmp-angstrom_v2012_05-eglibc/sysroots/x86_64-linux/lib -Wl,-rpath -Wl,/home/wes/oe/setup-scripts/build/tmp-angstrom_v2012_05-eglibc/sysroots/x86_64-linux/usr/lib -Wl,-rpath -Wl,/home/wes/oe/setup-scripts/build/tmp-angstrom_v2012_05-eglibc/sysroots/x86_64-linux/lib -Wl,-O1 -Wl,-soname -Wl,libgettextsrc-0.18.1.so -o .libs/ libgettextsrc-0.18.1.so | .libs/po-lex.o: In function `atof': | po-lex.c:(.text+0x1c0): multiple definition of `atof' | .libs/read-catalog-abstract.o:read-catalog-abstract.c:(.text+0x330): first defined here | .libs/po-lex.o: In function `atoi': | po-lex.c:(.text+0x1d0): multiple definition of `atoi' | .libs/read-catalog-abstract.o:read-catalog-abstract.c:(.text+0x340): first defined here | .libs/po-lex.o: In function `atol': | po-lex.c:(.text+0x1f0): multiple definition of `atol' | .libs/read-catalog-abstract.o:read-catalog-abstract.c:(.text+0x360): first defined here | .libs/po-lex.o: In function `atoll': | po-lex.c:(.text+0x200): multiple definition of `atoll' | .libs/read-catalog-abstract.o:read-catalog-abstract.c:(.text+0x370): first defined here | .libs/po-lex.o: In function `__strcspn_c1': | po-lex.c:(.text+0x210): multiple definition of `__strcspn_c1' | .libs/read-catalog-abstract.o:read-catalog-abstract.c:(.text+0x0): first defined here | .libs/po-lex.o: In function `__strcspn_c2': | po-lex.c:(.text+0x240): multiple definition of `__strcspn_c2' | .libs/read-catalog-abstract.o:read-catalog-abstract.c:(.text+0x30): first defined here | .libs/po-lex.o: In function `__strcspn_c3': | po-lex.c:(.text+0x270): multiple definition of `__strcspn_c3' | .libs/read-catalog-abstract.o:read-ca <more of the same> NOTE: package gettext-native-0.18.1.1-r11: task do_compile: Failed ERROR: Task 474 (virtual:native:/home/wes/oe/setup-scripts/sources/openembedded-core/meta/recipes-core/gettext/ gettext_0.18.1.1.bb, do_compile) failed with exit code '1' Waiting for 1 running tasks to finish: 0: binutils-cross-2.20.1-r9 do_populate_sysroot (pid 25092) NOTE: package binutils-cross-2.20.1-r9: task do_populate_sysroot: Succeeded NOTE: Tasks Summary: Attempted 182 tasks of which 180 didn't need to be rerun and 1 failed. Summary: 1 task failed: virtual:native:/home/wes/oe/setup-scripts/sources/openembedded-core/meta/recipes-core/gettext/ gettext_0.18.1.1.bb, do_compile Summary: There were 3 WARNING messages shown. Summary: There was 1 ERROR message shown, returning a non-zero exit code. My local.conf. Note the comment in front of INHERIT += "rm_work" -- I won't to keep the files around to use as a cross compile environment. (If you have any pointers to the "proper" way to do this, please point a way). # CONF_VERSION is increased each time build/conf/ changes incompatibly CONF_VERSION = "1" #INHERIT -= "rm_work" # Which files do we want to parse: BBMASK = "" # What kind of images do we want? IMAGE_FSTYPES += "tar.bz2" # Make use of SMP: # PARALLEL_MAKE specifies how many concurrent compiler threads are spawned per bitbake process # BB_NUMBER_THREADS specifies how many concurrent bitbake tasks will be run PARALLEL_MAKE = "-j2" BB_NUMBER_THREADS = "2" DISTRO = "angstrom-v2012.05" # Don't generate the mirror tarball for SCM repos, the snapshot is enough BB_GENERATE_MIRROR_TARBALLS = "0" # Disable build time patch resolution. This would lauch a devshell # and wait for manual intervention. We disable it. PATCHRESOLVE = "noop" # # Shared-state files from other locations # # Shared state files are prebuilt cache data objects which can # used to accelerate build time. This variable can be used to configure the system # to search other mirror locations for these objects before it builds the data itself. # # This can be a filesystem directory, or a remote url such as http or ftp. These # would contain the sstate-cache results from previous builds (possibly from other # machines). This variable works like fetcher MIRRORS/PREMIRRORS and points to the # cache locations to check for the shared objects. #SSTATE_MIRRORS ?= "\ #file://.* http://someserver.tld/share/sstate/ \n \ #file://.* file:///some/local/dir/sstate/" #SSTATE_MIRRORS ?= "\ #file://.* http://dominion.thruhere.net/angstrom/sstate-mirror/ \n " _______________________________________________ Angstrom-distro-devel mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
