Hi again,

I got it working!

With bitbake version 1.8.10 angstrom-2007.1 works without errors! So now I have a self-compiled image and a working portabase for angstrom-2007.1!

I still don't know why bitbake version 1.8.12 does not compile angstrom-2007.1 (bitbake 1.9 beta compiled some parts of angstrom-2007.1 but not all)

Anyway, it works now

regards

Bernd



-------- Original Message --------
Subject: Building OE / Angstrom 2007.1 with bitbake fails with "collect2: cannot find 'ld'"
Date:   Tue, 27 Jan 2009 20:02:27 +0100
From:   Bernd Schemmer <bernd.schem...@gmx.de>
To:     angstrom-distro-users@linuxtogo.org



Hi,

I already posted this question in the OE forum but did not get an answer -- so I'm trying it here also (yes, I'm in a hurry because I want to complete the
Angstrom/OPIE installation on my Zaurus to use it ....)

Here we go:

After reading the Angstrom and OE wikis I installed bitbake on my Thinkpad running Ubuntu (Hardy Heron). And in principle it works -- after installing and configuring bitbake like described here

  http://wiki.openembedded.net/index.php/Getting_Started

a "bitbake opie-image" created a new image and "bitbake portabase" created a portabase package file. Unfortunately the image created was a 2008.1 version which does not work on my SL-C760 (like all 2008.1 images I tested until now it hangs the Zaurus about 15 to 30 seconds after booting).

Therefor my next step was to install a source tree for angstrom-2007.1

I created a new directory for the angstrom-2007.1 image and installed OE there like it's described here

http://www.angstrom-distribution.org/building-angstrom.

And In this directory bitbake does not work as expected; I always get the error message saying that shasum could not be compiled, example output:

xtrn...@t61p:/data/develop/oe/angstrom-2007.1/build$ bitbake -D -v -b shasum-native.bb DEBUG: Removed the following variables from the environment:GNOME_DESKTOP_SESSION_ID,WINDOWPATH,LESSOPEN,ORG_LD_LIBRARY_PATH,LD_LIBRARY_PATH,ORG_PATH,SHLVL,WINDOWID,GDM_XSERVER_LOCATION,BBFILES,GDMSESSION,LESSCLOSE,PKGDIR,OLDPWD,GDM_LANG,HISTCONTROL,LS_COLORS DEBUG: Using '/data/develop/oe/angstrom-2007.1/oetmp/cache/glibc/c7x0/bb_persist_data.sqlite3' as the persistent data cache
DEBUG: Clearing SRCREV cache due to cache policy of: clear
DEBUG: Using cache in '/data/develop/oe/angstrom-2007.1/oetmp/cache/glibc/c7x0'
NOTE: Out of date cache found, rebuilding...
DEBUG: Using cache in '/data/develop/oe/angstrom-2007.1/oetmp/cache/glibc/c7x0'
NOTE: Out of date cache found, rebuilding...
DEBUG: Removing /data/develop/oe/angstrom-2007.1/org.openembedded.stable/packages/shasum/shasum-native.bb from cache DEBUG: Parsing /data/develop/oe/angstrom-2007.1/org.openembedded.stable/packages/shasum/shasum-native.bb
DEBUG: providers for shasum-native are: ['shasum-native']
DEBUG: selecting /data/develop/oe/angstrom-2007.1/org.openembedded.stable/packages/shasum/shasum-native.bb as PREFERRED_VERSION 1.0 of package shasum-native (for item shasum-native) DEBUG: sorted providers for shasum-native are: ['/data/develop/oe/angstrom-2007.1/org.openembedded.stable/packages/shasum/shasum-native.bb']
NOTE: build 200901271944: started

OE Build Configuration:
BB_VERSION     = "1.8.12"
OE_REVISION    = "<unknown>"
TARGET_ARCH    = "arm"
TARGET_OS      = "linux-gnueabi"
MACHINE        = "c7x0"
DISTRO         = "angstrom"
DISTRO_VERSION = "2007.12-r19"
TARGET_FPU     = "soft"

NOTE: Preparing runqueue
NOTE: Marking Active Tasks
NOTE: Pruned 7 inactive tasks, 13 left
NOTE: Assign Weightings
NOTE: Compute totals (have 1 endpoint(s))
NOTE: Executing runqueue
DEBUG: Marking task 2 (/data/develop/oe/angstrom-2007.1/org.openembedded.stable/packages/shasum/shasum-native.bb, do_unpack) as buildable DEBUG: Marking task 3 (/data/develop/oe/angstrom-2007.1/org.openembedded.stable/packages/shasum/shasum-native.bb, do_patch) as buildable DEBUG: Marking task 4 (/data/develop/oe/angstrom-2007.1/org.openembedded.stable/packages/shasum/shasum-native.bb, do_configure) as buildable DEBUG: Marking task 5 (/data/develop/oe/angstrom-2007.1/org.openembedded.stable/packages/shasum/shasum-native.bb, do_qa_configure) as buildable DEBUG: Marking task 6 (/data/develop/oe/angstrom-2007.1/org.openembedded.stable/packages/shasum/shasum-native.bb, do_compile) as buildable NOTE: Running task 6 of 13 (ID: 6, /data/develop/oe/angstrom-2007.1/org.openembedded.stable/packages/shasum/shasum-native.bb, do_compile) DEBUG: Parsing /data/develop/oe/angstrom-2007.1/org.openembedded.stable/packages/shasum/shasum-native.bb (full)
NOTE: package shasum-native-1.0: started
DEBUG: Executing task do_compile
NOTE: package shasum-native-1.0-r1: task do_compile: started
+ export localstatedir=/data/develop/oe/angstrom-2007.1/oetmp/staging/var
+ export prefix=/data/develop/oe/angstrom-2007.1/oetmp/staging
+ export STRIP=strip
+ export STAGING_SIPDIR=/data/develop/oe/angstrom-2007.1/oetmp/staging/x86_64-linux/share/sip + export libexecdir=/data/develop/oe/angstrom-2007.1/oetmp/staging/x86_64-linux/libexec + export datadir=/data/develop/oe/angstrom-2007.1/oetmp/staging/x86_64-linux/share
+ export BUILD_CXX=g++
+ export LD=ld
+ export EXTRA_OEMAKE=-e MAKEFLAGS=
+ export bindir=/data/develop/oe/angstrom-2007.1/oetmp/staging/x86_64-linux/bin + export TARGET_CXXFLAGS=-isystem/data/develop/oe/angstrom-2007.1/oetmp/staging/x86_64-linux/include -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -fpermissive + export includedir=/data/develop/oe/angstrom-2007.1/oetmp/staging/x86_64-linux/include + export MANIFEST=/data/develop/oe/angstrom-2007.1/org.openembedded.stable/packages/shasum/files/./manifest
+ export BUILD_CC=gcc
+ export BUILD_LDFLAGS=-L/data/develop/oe/angstrom-2007.1/oetmp/staging/x86_64-linux/lib -Wl,-rpath-link,/data/develop/oe/angstrom-2007.1/oetmp/staging/x86_64-linux/lib -Wl,-rpath,/data/develop/oe/angstrom-2007.1/oetmp/staging/x86_64-linux/lib -Wl,-O1
+ export BUILD_LD=ld
+ export BUILD_CCLD=gcc
+ export palmtopdir=/data/develop/oe/angstrom-2007.1/oetmp/staging/x86_64-linux/lib/opie
+ export CC=gcc
+ export TARGET_CFLAGS=-isystem/data/develop/oe/angstrom-2007.1/oetmp/staging/x86_64-linux/include -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os + export CPPFLAGS=-isystem/data/develop/oe/angstrom-2007.1/oetmp/staging/x86_64-linux/include
+ export RANLIB=ranlib
+ export CXX=g++
+ export BUILD_RANLIB=ranlib
+ export mandir=/data/develop/oe/angstrom-2007.1/oetmp/staging/x86_64-linux/share/man
+ export sharedstatedir=/data/develop/oe/angstrom-2007.1/oetmp/staging/com
+ export OBJCOPY=objcopy
+ export base_libdir=/data/develop/oe/angstrom-2007.1/oetmp/staging/x86_64-linux/lib
+ export servicedir=/data/develop/oe/angstrom-2007.1/oetmp/staging/srv
+ export PKG_CONFIG_DIR=/data/develop/oe/angstrom-2007.1/oetmp/staging/x86_64-linux/lib/pkgconfig + export LDFLAGS=-L/data/develop/oe/angstrom-2007.1/oetmp/staging/x86_64-linux/lib -Wl,-rpath-link,/data/develop/oe/angstrom-2007.1/oetmp/staging/x86_64-linux/lib -Wl,-rpath,/data/develop/oe/angstrom-2007.1/oetmp/staging/x86_64-linux/lib -Wl,-O1
+ export sysconfdir=/data/develop/oe/angstrom-2007.1/oetmp/staging/etc
+ export CCLD=gcc
+ export base_bindir=/data/develop/oe/angstrom-2007.1/oetmp/staging/x86_64-linux/bin + export sbindir=/data/develop/oe/angstrom-2007.1/oetmp/staging/x86_64-linux/bin + export CFLAGS=-isystem/data/develop/oe/angstrom-2007.1/oetmp/staging/x86_64-linux/include -Os + export TARGET_LDFLAGS=-L/data/develop/oe/angstrom-2007.1/oetmp/staging/x86_64-linux/lib -Wl,-rpath-link,/data/develop/oe/angstrom-2007.1/oetmp/staging/x86_64-linux/lib -Wl,-O1 + export libdir=/data/develop/oe/angstrom-2007.1/oetmp/staging/x86_64-linux/lib
+ export PKG_CONFIG_DISABLE_UNINSTALLED=yes
+ export OPIEDIR=/data/develop/oe/angstrom-2007.1/oetmp/staging/x86_64-linux
+ export BUILD_F77=g77
+ export PATCH_GET=0
+ export CXXFLAGS=-isystem/data/develop/oe/angstrom-2007.1/oetmp/staging/x86_64-linux/include -Os + export QMAKE_MKSPEC_PATH=/data/develop/oe/angstrom-2007.1/oetmp/staging/x86_64-linux/share/qmake
+ export F77=g77
+ export QTDIR=/data/develop/oe/angstrom-2007.1/oetmp/staging/x86_64-linux/qt2 + export oldincludedir=/data/develop/oe/angstrom-2007.1/oetmp/staging/x86_64-linux/include
+ export MAKE=make
+ unset TARGET_ARCH
+ export QPEDIR=/data/develop/oe/angstrom-2007.1/oetmp/staging/x86_64-linux
+ export BUILD_CXXFLAGS=-isystem/data/develop/oe/angstrom-2007.1/oetmp/staging/x86_64-linux/include -Os -fpermissive
+ export SHELLCMDS=bash --rcfile
+ export BUILD_CPP=cpp
+ export BUILD_CFLAGS=-isystem/data/develop/oe/angstrom-2007.1/oetmp/staging/x86_64-linux/include -Os + export docdir=/data/develop/oe/angstrom-2007.1/oetmp/staging/x86_64-linux/share/doc + export infodir=/data/develop/oe/angstrom-2007.1/oetmp/staging/x86_64-linux/share/info + export base_prefix=/data/develop/oe/angstrom-2007.1/oetmp/staging/x86_64-linux + export base_sbindir=/data/develop/oe/angstrom-2007.1/oetmp/staging/x86_64-linux/bin + export PKG_CONFIG_PATH=/data/develop/oe/angstrom-2007.1/oetmp/staging/x86_64-linux/lib/pkgconfig
+ export AS=as
+ export AR=ar
+ export BUILD_CPPFLAGS=-isystem/data/develop/oe/angstrom-2007.1/oetmp/staging/x86_64-linux/include
+ export CPP=gcc -E
+ export TARGET_CPPFLAGS=-isystem/data/develop/oe/angstrom-2007.1/oetmp/staging/x86_64-linux/include + export exec_prefix=/data/develop/oe/angstrom-2007.1/oetmp/staging/x86_64-linux + export STAGING_IDLDIR=/data/develop/oe/angstrom-2007.1/oetmp/staging/x86_64-linux/share/idl
+ unset MACHINE
+ export BUILD_AR=ar
+ export OBJDUMP=objdump
+ unset DISTRO
+ export palmqtdir=/data/develop/oe/angstrom-2007.1/oetmp/staging/x86_64-linux/lib/opie
+ export BUILD_STRIP=strip
+ cd /data/develop/oe/angstrom-2007.1/oetmp/work/x86_64-linux/shasum-native-1.0-r1
+ do_compile
+ gcc -isystem/data/develop/oe/angstrom-2007.1/oetmp/staging/x86_64-linux/include -Os -isystem/data/develop/oe/angstrom-2007.1/oetmp/staging/x86_64-linux/include -o oe_sha256sum main.c sha256.c
collect2: cannot find 'ld'
ERROR: function do_compile failed
ERROR: see log in /data/develop/oe/angstrom-2007.1/oetmp/work/x86_64-linux/shasum-native-1.0-r1/temp/log.do_compile.6157 NOTE: Task failed: /data/develop/oe/angstrom-2007.1/oetmp/work/x86_64-linux/shasum-native-1.0-r1/temp/log.do_compile.6157
NOTE: package shasum-native-1.0-r1: task do_compile: failed
ERROR: TaskFailed event exception, aborting
NOTE: package shasum-native-1.0: failed
ERROR: Build of /data/develop/oe/angstrom-2007.1/org.openembedded.stable/packages/shasum/shasum-native.bb do_compile failed ERROR: Task 6 (/data/develop/oe/angstrom-2007.1/org.openembedded.stable/packages/shasum/shasum-native.bb, do_compile) failed NOTE: Tasks Summary: Attempted 5 tasks of which 5 didn't need to be rerun and 1 failed. ERROR: '/data/develop/oe/angstrom-2007.1/org.openembedded.stable/packages/shasum/shasum-native.bb' failed
NOTE: build 200901271944: completed
xtrn...@t61p:/data/develop/oe/angstrom-2007.1/build$
The RCA here IMHO is :

      collect2: cannot find 'ld'

But ld is there :

xtrn...@t61p:/data/develop/oe/angstrom-2007.1/build$ which gcc
/usr/bin/gcc

xtrn...@t61p:/data/develop/oe/angstrom-2007.1/build$ which ld
/usr/bin/ld

xtrn...@t61p:/data/develop/oe/angstrom-2007.1/build$ ls -lL /usr/bin/gcc /usr/bin/ld
-rwxr-xr-x 1 root root 222688 Oct 11 06:24 /usr/bin/gcc
-rwxr-xr-x 1 root root 457416 Jan  3  2008 /usr/bin/ld

So I don't know why ld is not found.

Doing the compile manually with the commands from the log works also:

xtrn...@t61p:/data/develop/oe/angstrom-2007.1/build$ cd /data/develop/oe/angstrom-2007.1/oetmp/work/x86_64-linux/shasum-native-1.0-r1 xtrn...@t61p:/data/develop/oe/angstrom-2007.1/oetmp/work/x86_64-linux/shasum-native-1.0-r1$ ls
main.c  mhash_sha256.h  sha256.c  temp

xtrn...@t61p:/data/develop/oe/angstrom-2007.1/oetmp/work/x86_64-linux/shasum-native-1.0-r1$ gcc -isystem/data/develop/oe/angstrom-2007.1/oetmp/staging/x86_64-linux/include -Os -isystem/data/develop/oe/angstrom-2007.1/oetmp/staging/x86_64-linux/include -o oe_sha256sum main.c sha256.c

xtrn...@t61p:/data/develop/oe/angstrom-2007.1/oetmp/work/x86_64-linux/shasum-native-1.0-r1$ ls
main.c  mhash_sha256.h  oe_sha256sum  sha256.c  temp

xtrn...@t61p:/data/develop/oe/angstrom-2007.1/oetmp/work/x86_64-linux/shasum-native-1.0-r1$ ls -l
total 40
-rw-r--r-- 1 xtrnaw7 xtrnaw7  1161 Jan 27 19:23 main.c
-rw-r--r-- 1 xtrnaw7 xtrnaw7  1808 Jan 27 19:23 mhash_sha256.h
-rwxr-xr-x 1 xtrnaw7 xtrnaw7 15236 Jan 27 19:45 oe_sha256sum
-rw-r--r-- 1 xtrnaw7 xtrnaw7 10047 Jan 27 19:23 sha256.c
drwxr-sr-x 2 xtrnaw7 xtrnaw7  4096 Jan 27 19:44 temp


My local.conf is :

xtrn...@t61p:/data/develop/oe/angstrom-2007.1/build$ cat conf/local.conf
# Where to store sources
#
DL_DIR = "/data/develop/oe/angstrom-2007.1/download"
# Which files do we want to parse:
BBFILES := "/data/develop/oe/angstrom-2007.1/org.openembedded.stable/packages/*/*.bb"
BBMASK = ""
# ccache always overfill $HOME....
CCACHE=""
# What kind of images do we want?
IMAGE_FSTYPES = "jffs2 tar.gz "
# Set TMPDIR instead of defaulting it to $pwd/tmp
# TMPDIR = "/data/develop/oe/angstrom-2007.1/${DISTRO}-stable/"
TMPDIR = "/data/develop/oe/angstrom-2007.1/oetmp"
# Make use of my SMP box
#PARALLEL_MAKE="-j4"
#BB_NUMBER_THREADS = "2"
# Set the Distro
DISTRO = "angstrom-2007.1"
#
ANGSTROM_MODE = "glibc"
MACHINE = "c7x0"

xtrn...@t61p:/data/

OS  and gcc version is:

xtrn...@t61p:/data/develop/oe/angstrom-2007.1/build$ uname -a
Linux t61p 2.6.24-23-generic #1 SMP Thu Nov 27 18:13:46 UTC 2008 x86_64 GNU/Linux

(Ubuntu Heron)

xtrn...@t61p:/data/develop/oe/angstrom-2007.1/build$ gcc --version
gcc (GCC) 4.2.4 (Ubuntu 4.2.4-1ubuntu3)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

xtrn...@t61p:/data/develop/oe/angstrom-2007.1/build$


I'm out of ideas -- what's going on here?

Bernd

--
Bernd Schemmer, Frankfurt am Main, Germany
http://home.arcor.de/bnsmb/index.html

M s temprano que tarde el mundo cambiar .
                      Fidel Castro




--
Bernd Schemmer, Frankfurt am Main, Germany
http://home.arcor.de/bnsmb/index.html

M s temprano que tarde el mundo cambiar .
                       Fidel Castro


_______________________________________________
Angstrom-distro-users mailing list
Angstrom-distro-users@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-users

Reply via email to