Author Topic: "bitbake Nano" Has Problems Compiling Binutils  (Read 11435 times)

fooman

  • Newbie
  • *
  • Posts: 49
    • View Profile
"bitbake Nano" Has Problems Compiling Binutils
« on: July 21, 2006, 03:46:15 pm »
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: [Select]
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: [Select]
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: [Select]
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: [Select]
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?
SL-C3000 running Cacko 1.23 Beta 1 with Tetsu's special Kernel v18b
Swapped out 4 GB Microdrive for 4 GB CF card
1 GB SanDisk Ultra II SD card with ext2 filesystem
128 MB swapfile on SD card
Ambicom 802.11b WiFi CF card
TRENDnet 10 Mbps Ethernet CF card

koen

  • Hero Member
  • *****
  • Posts: 1008
    • View Profile
    • http://dominion.thruhere.net/koen/cms/
"bitbake Nano" Has Problems Compiling Binutils
« Reply #1 on: July 21, 2006, 04:03:00 pm »
the output of 'bitbake foo' will probably tell you which items are invalid.
Forums are not bugtrackers!!! Smart questions
Ångström release team
iPAQ h2210, iPAQ h5550, iPAQ hx4700, Zaurus SL-C700, Nokia 770, all running some form of GPE
My blog

fooman

  • Newbie
  • *
  • Posts: 49
    • View Profile
"bitbake Nano" Has Problems Compiling Binutils
« Reply #2 on: July 21, 2006, 08:28:40 pm »
Hi,

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

Code: [Select]
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
the output of 'bitbake foo' will probably tell you which items are invalid.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=136036\"][{POST_SNAPBACK}][/a][/div]
SL-C3000 running Cacko 1.23 Beta 1 with Tetsu's special Kernel v18b
Swapped out 4 GB Microdrive for 4 GB CF card
1 GB SanDisk Ultra II SD card with ext2 filesystem
128 MB swapfile on SD card
Ambicom 802.11b WiFi CF card
TRENDnet 10 Mbps Ethernet CF card

InSearchOf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1144
    • View Profile
    • http://
"bitbake Nano" Has Problems Compiling Binutils
« Reply #3 on: July 21, 2006, 10:32:12 pm »
he really meant bitbake foo....

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

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

Late
« Last Edit: July 21, 2006, 10:36:29 pm by InSearchOf »
Sharp Zaurus SL-C3100 and SL-6000L
pdaXrom Developer
Please visit pdaXrom.org for updates
My Blog
IRC #pdaxrom @ FreeNode

fooman

  • Newbie
  • *
  • Posts: 49
    • View Profile
"bitbake Nano" Has Problems Compiling Binutils
« Reply #4 on: July 21, 2006, 11:17:46 pm »
Heh, that is pretty funny.  Here's what I get when I type "bitbake foo":

Code: [Select]
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
he really meant bitbake foo....

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

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

Late
[div align=\"right\"][a href=\"index.php?act=findpost&pid=136068\"][{POST_SNAPBACK}][/a][/div]
SL-C3000 running Cacko 1.23 Beta 1 with Tetsu's special Kernel v18b
Swapped out 4 GB Microdrive for 4 GB CF card
1 GB SanDisk Ultra II SD card with ext2 filesystem
128 MB swapfile on SD card
Ambicom 802.11b WiFi CF card
TRENDnet 10 Mbps Ethernet CF card

koen

  • Hero Member
  • *****
  • Posts: 1008
    • View Profile
    • http://dominion.thruhere.net/koen/cms/
"bitbake Nano" Has Problems Compiling Binutils
« Reply #5 on: July 22, 2006, 03:18:17 am »
It is supposed to print something like:

Code: [Select]
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
Forums are not bugtrackers!!! Smart questions
Ångström release team
iPAQ h2210, iPAQ h5550, iPAQ hx4700, Zaurus SL-C700, Nokia 770, all running some form of GPE
My blog

fooman

  • Newbie
  • *
  • Posts: 49
    • View Profile
"bitbake Nano" Has Problems Compiling Binutils
« Reply #6 on: July 23, 2006, 03:16:45 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: [Select]
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: [Select]
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    = ""
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: [Select]
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
It is supposed to print something like:

Code: [Select]
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
[div align=\"right\"][a href=\"index.php?act=findpost&pid=136073\"][{POST_SNAPBACK}][/a][/div]
SL-C3000 running Cacko 1.23 Beta 1 with Tetsu's special Kernel v18b
Swapped out 4 GB Microdrive for 4 GB CF card
1 GB SanDisk Ultra II SD card with ext2 filesystem
128 MB swapfile on SD card
Ambicom 802.11b WiFi CF card
TRENDnet 10 Mbps Ethernet CF card

fooman

  • Newbie
  • *
  • Posts: 49
    • View Profile
"bitbake Nano" Has Problems Compiling Binutils
« Reply #7 on: July 24, 2006, 04:54:08 pm »
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
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: [Select]
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: [Select]
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    = ""
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: [Select]
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
It is supposed to print something like:

Code: [Select]
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
[div align=\"right\"][a href=\"index.php?act=findpost&pid=136073\"][{POST_SNAPBACK}][/a][/div]
[div align=\"right\"][a href=\"index.php?act=findpost&pid=136182\"][{POST_SNAPBACK}][/a][/div]
SL-C3000 running Cacko 1.23 Beta 1 with Tetsu's special Kernel v18b
Swapped out 4 GB Microdrive for 4 GB CF card
1 GB SanDisk Ultra II SD card with ext2 filesystem
128 MB swapfile on SD card
Ambicom 802.11b WiFi CF card
TRENDnet 10 Mbps Ethernet CF card