OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> "bitbake Nano" Has Problems Compiling Binutils
fooman
post Jul 21 2006, 11:46 AM
Post #1





Group: Members
Posts: 49
Joined: 7-July 06
Member No.: 10,345



Hi,

I'm an OE newbie trying to get up to speed with bitbake. I installed bitbake, OE, and monotone according to the GettingStarted instructions in the OE wiki. I also installed the required software packages on to my Ubuntu Dapper Drake system such as python-dev, python-psyco, ccache, cvs, subversion, openjade, docbook, etc.

When I run "bitbake nano" from my /stuff/build directory, it downloads and compiles a fair number of packages: autoconf, automake, bison, flex, gettext, gnu-config, libtool, m4, and quilt.

But when it gets to binutils-cross, it complains and gives this error:

CODE
NOTE: package binutils-cross-2.17-r0: task do_compile: started
ERROR: function do_compile failed
ERROR: see log in /stuff/build/tmp/work/binutils-cross-2.17-r0/temp/log.do_compile.13773
NOTE: Task failed: /stuff/build/tmp/work/binutils-cross-2.17-r0/temp/log.do_compile.13773


This is what is contained at the end of log.do_compile.13773:

CODE
NOTE: make configure-build-libiberty all
make[1]: Entering directory `/stuff/build/tmp/work/binutils-cross-2.17-r0/binutils-2.17/build.i686-linux.INVALID-INVALID'
Configuring in ./bfd
configure: loading site script /stuff/org.openembedded.dev/site/i686-linux
configure: loading cache ./config.cache
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... Invalid configuration `INVALID-INVALID': machine
`INVALID' not recognized
configure: error: /bin/sh /stuff/build/tmp/work/binutils-cross-2.17-r0/binutils-2.17/bfd/../config.sub INVALID-INVALID failed
make[1]: *** [configure-bfd] Error 1
make[1]: Leaving directory `/stuff/build/tmp/work/binutils-cross-2.17-r0/binutils-2.17/build.i686-linux.INVALID-INVALID'
make: *** [all] Error 2


I noticed this command in run.do_compile.13773:

CODE
export LD_FOR_TARGET="INVALID-INVALID-ld"


is there a reason why it would produce a variable like this?

Here is my local.conf. I'm trying to compile for the 2.6 poodle kernel. I didn't install any toolchain because the instructions indicated that the toolchain would be created by bitbake.

CODE
DL_DIR="/stuff/sources"
BBFILES="/stuff/org.openembedded.dev/packages/*/*.bb"
BBMASK=""

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

MACHINE="poodle"
TARGET_ARCH="arm"
TARGET_OS="linux"
TARGET_FPU="soft"
DISTRO="openzaurus-unstable"
MACHINE_KERNEL_VERSION="2.6"

IMAGE_FSTYPES="jffs2 tar"
BBINCLUDELOGS="yes"

CVS_TARBALL_STASH="http://www.oesources.org/source/current/"


Any clue as to what I'm doing wrong?
Go to the top of the page
 
+Quote Post
koen
post Jul 21 2006, 12:03 PM
Post #2





Group: Members
Posts: 1,014
Joined: 4-January 05
From: Enschede, The Netherlands
Member No.: 6,107



the output of 'bitbake foo' will probably tell you which items are invalid.
Go to the top of the page
 
+Quote Post
fooman
post Jul 21 2006, 04:28 PM
Post #3





Group: Members
Posts: 49
Joined: 7-July 06
Member No.: 10,345



Hi,

I'm assuming I shouldn't literally be typing "bitbake foo". When I type "bitbake nano", this is what I get:

CODE
NOTE: Using cache in '/stuff/build/tmp/cache'
NOTE: Parsing finished. 3400 cached, 0 parsed, 148 skipped, 0 masked.
NOTE: package binutils-cross-2.17: started
NOTE: package binutils-cross-2.17-r0: task do_fetch: started
NOTE: package binutils-cross-2.17-r0: task do_fetch: completed
NOTE: package binutils-cross-2.17-r0: task do_compile: started
ERROR: function do_compile failed
ERROR: see log in /stuff/build/tmp/work/binutils-cross-2.17-r0/temp/log.do_compile.16122
NOTE: Task failed: /stuff/build/tmp/work/binutils-cross-2.17-r0/temp/log.do_compile.16122
NOTE: package binutils-cross-2.17-r0: task do_compile: failed
ERROR: TaskFailed event exception, aborting
NOTE: package binutils-cross-2.17: failed
ERROR: Build of nano failed


Does this mean that the binutils-cross package is invalid?

QUOTE(koen @ Jul 21 2006, 04:03 PM)
the output of 'bitbake foo' will probably tell you which items are invalid.
*
Go to the top of the page
 
+Quote Post
InSearchOf
post Jul 21 2006, 06:32 PM
Post #4





Group: Admin
Posts: 1,210
Joined: 20-January 06
From: York, Pennsylvania
Member No.: 8,961



he really meant bitbake foo....

It's just funny that your name is fooman... :-)

But seriously... run that command 'bitbake foo'

Late
Go to the top of the page
 
+Quote Post
fooman
post Jul 21 2006, 07:17 PM
Post #5





Group: Members
Posts: 49
Joined: 7-July 06
Member No.: 10,345



Heh, that is pretty funny. Here's what I get when I type "bitbake foo":

CODE
NOTE: Using cache in '/stuff/build/tmp/cache'
NOTE: Parsing finished. 3400 cached, 0 parsed, 148 skipped, 0 masked.
ERROR: Nothing provides dependency foo


QUOTE(InSearchOf @ Jul 21 2006, 10:32 PM)
he really meant bitbake foo....

It's just funny that your name is fooman... :-)

But seriously... run that command 'bitbake foo'

Late
*
Go to the top of the page
 
+Quote Post
koen
post Jul 21 2006, 11:18 PM
Post #6





Group: Members
Posts: 1,014
Joined: 4-January 05
From: Enschede, The Netherlands
Member No.: 6,107



It is supposed to print something like:

CODE
koen@lieve:/media/hda4/OE/org.openembedded.packaged-staging$ bitbake foo
WARNING, WARNING, WARNING
This is a Bitbake from the Unstable/Development Branch.
You might want to use the bitbake-1.4 stable branch (if you are not a BitBake developer or tester). I'm going to sleep 5 seconds now to make sure you see that.
NOTE: Using cache in '/media/hda4/OE/build/tmp/angstrom/cache'
NOTE: Parsing finished. 88 cached, 0 parsed, 1 skipped, 0 masked.
NOTE: build 200607220912: started

OE Build Configuration:
BB_VERSION     = "1.5.0"
OE_REVISION    = "1bce361dd877837e372d0e49dc37d6a42afa72cd"
TARGET_ARCH    = "arm"
TARGET_OS      = "linux-gnueabi"
MACHINE        = "h2200"
DISTRO         = "angstrom"
DISTRO_VERSION = "test-20060722"
TARGET_FPU     = "soft"

ERROR: Nothing provides dependency foo
NOTE:
koen@lieve:/media/hda4/OE/org.openembedded.packaged-staging$


try removing tmp/cache and run 'bitbake foo' again
Go to the top of the page
 
+Quote Post
fooman
post Jul 23 2006, 11:16 AM
Post #7





Group: Members
Posts: 49
Joined: 7-July 06
Member No.: 10,345



Thanks, that helped a lot. I think I'm making some progress. I don't think my conf/local.conf is being read. When I typed "bitbake -e" by itself, this is one of the lines:

CODE
FILE="conf/bitbake.conf"


I thought this was weird so I explicitly loaded the local.conf file by typing "bitbake -r /stuff/build/conf/local.conf foo". I got this:

CODE
NOTE: Using cache in '/stuff/build/tmp/cache'
NOTE: Parsing finished. 3400 cached, 0 parsed, 148 skipped, 0 masked.
NOTE: build 200607231500: started

OE Build Configuration:
BB_VERSION     = "1.4.2"
OE_REVISION    = "<unknown>"
TARGET_ARCH    = "arm"
TARGET_OS      = "linux"
MACHINE        = "poodle"
DISTRO         = "openzaurus"
DISTRO_VERSION = ".dev-snapshot-20060723"
TARGET_FPU     = "soft"

ERROR: Nothing provides dependency foo


Now I'm making progress. But even when I type "bitbake -r /stuff/build/conf/local.conf nano" then I get a bunch of stuff and then it stops here:

CODE
NOTE: package file-native-4.16: completed
ERROR: Nothing provides dependency virtual/arm-linux-gcc
NOTE:
ERROR: dependency virtual/arm-linux-gcc (for nano) not satisfied
NOTE: no buildable providers for nano


Am I missing a toolchain called arm-linux-gcc?

QUOTE(koen @ Jul 22 2006, 03:18 AM)
It is supposed to print something like:

CODE
koen@lieve:/media/hda4/OE/org.openembedded.packaged-staging$ bitbake foo
WARNING, WARNING, WARNING
This is a Bitbake from the Unstable/Development Branch.
You might want to use the bitbake-1.4 stable branch (if you are not a BitBake developer or tester). I'm going to sleep 5 seconds now to make sure you see that.
NOTE: Using cache in '/media/hda4/OE/build/tmp/angstrom/cache'
NOTE: Parsing finished. 88 cached, 0 parsed, 1 skipped, 0 masked.
NOTE: build 200607220912: started

OE Build Configuration:
BB_VERSION     = "1.5.0"
OE_REVISION    = "1bce361dd877837e372d0e49dc37d6a42afa72cd"
TARGET_ARCH    = "arm"
TARGET_OS      = "linux-gnueabi"
MACHINE        = "h2200"
DISTRO         = "angstrom"
DISTRO_VERSION = "test-20060722"
TARGET_FPU     = "soft"

ERROR: Nothing provides dependency foo
NOTE:
koen@lieve:/media/hda4/OE/org.openembedded.packaged-staging$


try removing tmp/cache and run 'bitbake foo' again
*
Go to the top of the page
 
+Quote Post
fooman
post Jul 24 2006, 12:54 PM
Post #8





Group: Members
Posts: 49
Joined: 7-July 06
Member No.: 10,345



Well, I think I found my initlal mistake. I was wondering why bitbake wasn't finding local.conf. It turns out that I set BBPATH to /stuff/org.openembedded.dev instead of /stuff/build:/stuff/org.openembedded.dev. So bitbake wasn't finding anything in /stuff/build.

I was scratching my head for a while, trying to figure things out by looking through the config files. I wasn't getting anywhere so I went back through the Getting Started document and I found my error. "bitbake nano" isn't finished yet but it's chugging merrily and I'm hoping that it will finish all the way through.

Thanks for your help though!

QUOTE(fooman @ Jul 23 2006, 03:16 PM)
Thanks, that helped a lot.  I think I'm making some progress.  I don't think my conf/local.conf is being read.  When I typed "bitbake -e" by itself, this is one of the lines:

CODE
FILE="conf/bitbake.conf"


I thought this was weird so I explicitly loaded the local.conf file by typing "bitbake -r /stuff/build/conf/local.conf foo".  I got this:

CODE
NOTE: Using cache in '/stuff/build/tmp/cache'
NOTE: Parsing finished. 3400 cached, 0 parsed, 148 skipped, 0 masked.
NOTE: build 200607231500: started

OE Build Configuration:
BB_VERSION     = "1.4.2"
OE_REVISION    = "<unknown>"
TARGET_ARCH    = "arm"
TARGET_OS      = "linux"
MACHINE        = "poodle"
DISTRO         = "openzaurus"
DISTRO_VERSION = ".dev-snapshot-20060723"
TARGET_FPU     = "soft"

ERROR: Nothing provides dependency foo


Now I'm making progress.  But even when I type "bitbake -r /stuff/build/conf/local.conf nano" then I get a bunch of stuff and then it stops here:

CODE
NOTE: package file-native-4.16: completed
ERROR: Nothing provides dependency virtual/arm-linux-gcc
NOTE:
ERROR: dependency virtual/arm-linux-gcc (for nano) not satisfied
NOTE: no buildable providers for nano


Am I missing a toolchain called arm-linux-gcc?

QUOTE(koen @ Jul 22 2006, 03:18 AM)
It is supposed to print something like:

CODE
koen@lieve:/media/hda4/OE/org.openembedded.packaged-staging$ bitbake foo
WARNING, WARNING, WARNING
This is a Bitbake from the Unstable/Development Branch.
You might want to use the bitbake-1.4 stable branch (if you are not a BitBake developer or tester). I'm going to sleep 5 seconds now to make sure you see that.
NOTE: Using cache in '/media/hda4/OE/build/tmp/angstrom/cache'
NOTE: Parsing finished. 88 cached, 0 parsed, 1 skipped, 0 masked.
NOTE: build 200607220912: started

OE Build Configuration:
BB_VERSION     = "1.5.0"
OE_REVISION    = "1bce361dd877837e372d0e49dc37d6a42afa72cd"
TARGET_ARCH    = "arm"
TARGET_OS      = "linux-gnueabi"
MACHINE        = "h2200"
DISTRO         = "angstrom"
DISTRO_VERSION = "test-20060722"
TARGET_FPU     = "soft"

ERROR: Nothing provides dependency foo
NOTE:
koen@lieve:/media/hda4/OE/org.openembedded.packaged-staging$


try removing tmp/cache and run 'bitbake foo' again
*

*

Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 25th November 2014 - 12:55 PM