Author Topic: Why Not Cutting Edge?  (Read 39800 times)

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Why Not Cutting Edge?
« Reply #30 on: May 18, 2006, 02:52:06 pm »
I've gotten further, I added the three following lines to conf/local.conf
Code: [Select]
PREFERRED_PROVIDERS += " virtual/arm-gcc-initial:gcc-cross-initial"
PREFERRED_PROVIDERS += " virtual/arm-gcc:gcc-cross"
PREFERRED_PROVIDERS += " virtual/arm-g++:gcc-cross"
It went through, no more of the previous complaints. Built autoconf-native and libtool-native, but now I get the following:
Code: [Select]
# bitbake php
NOTE: Using cache in '/home/cvs/oe/build/tmp/cache'
NOTE: Parsing finished. 3246 cached, 0 parsed, 135 skipped, 0 masked.
ERROR: Nothing provides dependency virtual/arm-linux-gcc
NOTE:
ERROR: dependency virtual/arm-linux-gcc (for php) not satisfied
NOTE: no buildable providers for php
NOTE:
#
I have no clue what to do now?

Can you please help me?
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Why Not Cutting Edge?
« Reply #31 on: May 19, 2006, 05:46:20 am »
For irc, find yourself an irc client (I don't know what one would use under Linux, but under WinXP I'm using something called "Visual IRC")

Then connect to irc.freenode.net, and join the #oe channel (by issuing the command '/join #oe')

Otherwise you could try the oe mailing list: http://oe.handhelds.org/contact.php

Si

P.S.

Quote
Code: [Select]
PREFERRED_PROVIDERS += " virtual/arm-gcc-initial:gcc-cross-initial"
PREFERRED_PROVIDERS += " virtual/arm-gcc:gcc-cross"
PREFERRED_PROVIDERS += " virtual/arm-g++:gcc-cross"

should be

Code: [Select]
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"

arm is not the arch name of the toolchain.
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Why Not Cutting Edge?
« Reply #32 on: May 19, 2006, 06:31:43 am »
I still don't know what to do about the above error, but I tried just to compile php5 and get the familiar C compiler cannot create executables error. [CODE]debian:/home/cvs/oe/build# bitbake -b /home/cvs/oe/org.openembedded.dev/packages/php/php_5.0.5.bb
NOTE: package php-5.0.5: started
NOTE: package php-5.0.5-r0: task do_fetch: started
NOTE: package php-5.0.5-r0: task do_fetch: completed
NOTE: package php-5.0.5-r0: task do_configure: started
ERROR: function do_configure failed
ERROR: log data follows (/home/cvs/oe/build/tmp/work/php-5.0.5-r0/temp/log.do_configure.8268)
| automake (GNU automake) 1.9.3
| Written by Tom Tromey <tromey@redhat.com>.
|
| Copyright 2004 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.
| AUTOV is 1.9
| NOTE: Executing autoreconf --verbose --install --force --exclude=autopoint -I /home/cvs/oe/build/tmp/staging/arm-linux/share/aclocal-1.9 -I /home/cvs/oe/build/tmp/staging/arm-linux/share/aclocal
| autoreconf: Entering directory `.'
| autoreconf: configure.in: not using Gettext
| autoreconf: running: aclocal -I /home/cvs/oe/build/tmp/staging/arm-linux/share/aclocal-1.9 -I /home/cvs/oe/build/tmp/staging/arm-linux/share/aclocal --force
| configure.in:150: warning: AC_PROG_LEX invoked multiple times
| autoconf/programs.m4:438: AC_DECL_YYTEXT is expanded from...
| configure.in:150: the top level
| autoreconf: configure.in: tracing
| configure.in:150: warning: AC_PROG_LEX invoked multiple times
| autoconf/programs.m4:438: AC_DECL_YYTEXT is expanded from...
| configure.in:150: the top level
| configure.in:436: warning: AC_RUN_IFELSE called without default to allow cross compiling
| autoconf/general.m4:2282: AC_RUN_IFELSE is expanded from...
| autoconf/general.m4:2290: AC_TRY_RUN is expanded from...
| acinclude.m4:1591: PHP_FOPENCOOKIE is expanded from...
| configure.in:436: the top level
| configure.in:624: warning: AC_RUN_IFELSE called without default to allow cross compiling
| autoconf/general.m4:1800: AC_CACHE_VAL is expanded from...
| autoconf/general.m4:1809: AC_CACHE_CHECK is expanded from...
| configure.in:624: the top level
| configure.in:635: warning: AC_RUN_IFELSE called without default to allow cross compiling
| acinclude.m4:614: PHP_TIME_R_TYPE is expanded from...
| configure.in:635: the top level
| ext/iconv/config.m4:118: warning: AC_RUN_IFELSE called without default to allow cross compiling
| ext/iconv/config.m4:118: the top level
| autoreconf: running: libtoolize --copy --force
| configure.in:150: warning: AC_PROG_LEX invoked multiple times
| autoconf/programs.m4:438: AC_DECL_YYTEXT is expanded from...
| configure.in:150: the top level
| autoreconf: running: /home/cvs/oe/build/tmp/staging/i686-linux/bin/autoconf --include=/home/cvs/oe/build/tmp/staging/arm-linux/share/aclocal-1.9 --include=/home/cvs/oe/build/tmp/staging/arm-linux/share/aclocal --force --warnings=cross
| configure.in:150: warning: AC_PROG_LEX invoked multiple times
| autoconf/programs.m4:438: AC_DECL_YYTEXT is expanded from...
| configure.in:150: the top level
| configure.in:436: warning: AC_RUN_IFELSE called without default to allow cross compiling
| autoconf/general.m4:2282: AC_RUN_IFELSE is expanded from...
| autoconf/general.m4:2290: AC_TRY_RUN is expanded from...
| acinclude.m4:1591: PHP_FOPENCOOKIE is expanded from...
| configure.in:436: the top level
| configure.in:624: warning: AC_RUN_IFELSE called without default to allow cross compiling
| autoconf/general.m4:1800: AC_CACHE_VAL is expanded from...
| autoconf/general.m4:1809: AC_CACHE_CHECK is expanded from...
| configure.in:624: the top level
| configure.in:635: warning: AC_RUN_IFELSE called without default to allow cross compiling
| acinclude.m4:614: PHP_TIME_R_TYPE is expanded from...
| configure.in:635: the top level
| ext/iconv/config.m4:118: warning: AC_RUN_IFELSE called without default to allow cross compiling
| ext/iconv/config.m4:118: the top level
| autoreconf: running: /home/cvs/oe/build/tmp/staging/i686-linux/bin/autoheader --include=/home/cvs/oe/build/tmp/staging/arm-linux/share/aclocal-1.9 --include=/home/cvs/oe/build/tmp/staging/arm-linux/share/aclocal --force --warnings=cross
| autoheader: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
| autoheader: WARNING: and `config.h.top', to define templates for `config.h.in'
| autoheader: WARNING: is deprecated and discouraged.
| autoheader:
| autoheader: WARNING: Using the third argument of `AC_DEFINE' and
| autoheader: WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without
| autoheader: WARNING: `acconfig.h':
| autoheader:
| autoheader: WARNING:   AC_DEFINE([NEED_FUNC_MAIN], 1,
| autoheader:           [Define if a function `main' is needed.])
| autoheader:
| autoheader: WARNING: More sophisticated templates can also be produced, see the
| autoheader: WARNING: documentation.
| configure.in:150: warning: AC_PROG_LEX invoked multiple times
| autoconf/programs.m4:438: AC_DECL_YYTEXT is expanded from...
| configure.in:150: the top level
| autoreconf: configure.in: not using Automake
| autoreconf: running: gnu-configize
| configure.in:150: warning: AC_PROG_LEX invoked multiple times
| autoconf/programs.m4:438: AC_DECL_YYTEXT is expanded from...
| configure.in:150: the top level
| autoreconf: Leaving directory `.'
| NOTE: Running /home/cvs/oe/build/tmp/work/php-5.0.5-r0/php-5.0.5/configure                --build=i686-linux                   --host=arm-linux                --target=arm-linux              --prefix=/usr                --exec_prefix=/usr              --bindir=/usr/bin               --sbindir=/usr/sbin                  --libexecdir=/usr/libexec               --datadir=/usr/share                    --sysconfdir=/etc                    --sharedstatedir=/usr/com               --localstatedir=/var    --libdir=/usr/lib                --includedir=/usr/include               --oldincludedir=/usr/include                 --infodir=/usr/share/info               --mandir=/usr/share/man                 --with-cgi --enable-sockets --enable-pcntl                 --with-mysql=/home/cvs/oe/build/tmp/staging/arm-linux/lib/..                 --with-zlib --with-zlib-dir=/home/cvs/oe/build/tmp/staging/arm-linux/lib/..                 --without-libpng --without-libjpeg                 --with-config-file-path=/etc/php5     --cache-file=config.cache     --disable-debug     --disable-rpath     --enable-bcmath   --enable-calendar     --enable-maintainer-zts     --enable-embed=shared     --enable-force-cgi-redirect     --enable-ftp     --enable-inline-optimization     --enable-magic-quotes     --enable-memory-limit     --enable-pic     --enable-safe-mode     --enable-sockets     --enable-track-vars     --enable-trans-sid     --enable-wddx     --sysconfdir=/etc/appWeb     --with-exec-dir=/etc/appWeb/exec -
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

koen

  • Hero Member
  • *****
  • Posts: 1008
    • View Profile
    • http://dominion.thruhere.net/koen/cms/
Why Not Cutting Edge?
« Reply #33 on: May 19, 2006, 06:39:02 am »
do not use '-b' if you don't know what the implications are.
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

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Why Not Cutting Edge?
« Reply #34 on: May 19, 2006, 06:45:47 am »
Quote
do not use '-b' if you don't know what the implications are.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=127718\"][{POST_SNAPBACK}][/a][/div]
OK, I thought it's just like a way to build the indiv. file without going through related dependencies or something.

So, if I understand correctly what you're saying, this won't go for instance for building php 5.

So, I should
Code: [Select]
bitbake phpright?

If that's the case, what is the:
Code: [Select]
# bitbake php
NOTE: Using cache in '/home/cvs/oe/build/tmp/cache'
NOTE: Parsing finished. 3246 cached, 0 parsed, 135 skipped, 0 masked.
ERROR: Nothing provides dependency virtual/arm-linux-gcc
NOTE:
ERROR: dependency virtual/arm-linux-gcc (for php) not satisfied
NOTE: no buildable providers for php
NOTE:
#
and how do I proceed from here?
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Why Not Cutting Edge?
« Reply #35 on: May 19, 2006, 06:48:15 am »
Quote
Quote
Code: [Select]
PREFERRED_PROVIDERS += " virtual/arm-gcc-initial:gcc-cross-initial"
PREFERRED_PROVIDERS += " virtual/arm-gcc:gcc-cross"
PREFERRED_PROVIDERS += " virtual/arm-g++:gcc-cross"

should be

Code: [Select]
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"

arm is not the arch name of the toolchain.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=127713\"][{POST_SNAPBACK}][/a][/div]
OK, did this. Now I again get the:
Code: [Select]
# bitbake php
NOTE: Using cache in '/home/cvs/oe/build/tmp/cache'
NOTE: Parsing finished. 3246 cached, 0 parsed, 135 skipped, 0 masked.
ERROR: Nothing provides dependency virtual/arm-linux-gcc
NOTE:
ERROR: dependency virtual/arm-linux-gcc (for php) not satisfied
NOTE: no buildable providers for php
NOTE:
#
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Why Not Cutting Edge?
« Reply #36 on: May 19, 2006, 06:48:25 am »
I answered your question at the bottom of my post above...

Si

Oops, didn't see that. Ignore me
« Last Edit: May 19, 2006, 06:51:25 am by lardman »
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

koen

  • Hero Member
  • *****
  • Posts: 1008
    • View Profile
    • http://dominion.thruhere.net/koen/cms/
Why Not Cutting Edge?
« Reply #37 on: May 19, 2006, 06:53:23 am »
please update your bitbake to the latest stable and use the correct DISTRO (openzaurus-unstable). The error above indicates that you either have a typo in DISTRO = "openzaurus-unstable" or a wrong value.
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

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Why Not Cutting Edge?
« Reply #38 on: May 19, 2006, 06:59:09 am »
Quote
please update your bitbake to the latest stable and use the correct DISTRO (openzaurus-unstable). The error above indicates that you either have a typo in DISTRO = "openzaurus-unstable" or a wrong value.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=127726\"][{POST_SNAPBACK}][/a][/div]
OK, could be it, I have DISTRO="openzaurus-3.5.4.1" which I think I took from the flash movie. I'll go change it now and see how it goes.
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Why Not Cutting Edge?
« Reply #39 on: May 19, 2006, 07:00:35 am »
The C compiler test can fail for a number of reasons, only one of which is the C compiler not actually creating executables.

What version of bitbake are you running? Is it the latest stable version?

Can you post the full contents of your local.conf so I can check it.

I'd then remove the contents of the cache (as your local.conf changed when you altered the gcc names).


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Why Not Cutting Edge?
« Reply #40 on: May 19, 2006, 07:11:48 am »
Quote
Can you post the full contents of your local.conf so I can check it.

I'd then remove the contents of the cache (as your local.conf changed when you altered the gcc names).
[div align=\"right\"][a href=\"index.php?act=findpost&pid=127729\"][{POST_SNAPBACK}][/a][/div]
OK, cleared tmp/cache and am running bitbake php again. The conf/local.con file:
Code: [Select]
#
DL_DIR = "/home/cvs"
BBFILES = "/home/cvs/oe/org.openembedded.dev/packages/*/*.bb"
BBMASK = ""
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 = "spitz"
TARGET_ARCH = "arm"
TARGET_OS = "linux"
TARGET_FPU = "soft"
DISTRO = "openzaurus-unstable"
ENABLE_BINARY_LOCALE_GENERATION
ZKERNEL_VERSION = "2.6"
IMAGE_FSTYPES = "jffs2 tar"
BBINCLUDELOGS = "yes"
CVS_TARBALL_STASH = "http://www.oesources.org/source/current/"
INHERIT += 'patcher'
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Why Not Cutting Edge?
« Reply #41 on: May 19, 2006, 09:06:08 am »
I've made some progress.

Changing DISTRO to openzaurus-unstable helped me realize there was a local.conf also in the org.openembedded.dev/conf/ and it was reading this one, though I read that you're supposed to put the local.conf file in the build directory into conf/

So deletel the org.openembedded.dev/conf/local.conf and symlinked the conf/local.conf file there just to make sure.

Now ran bitbake php

It's been going for a couple of hours, downloading binutils, now gcc-cross etc.

Will report on the progress further when I get somewhere. The only thing that makes me unsure is that when bitbake php started it reported DISTRO as openzaurus in the beginning though I checked and it's set as openzaurus-unstable in local.conf.

But so far it's going...

Let's see.  

Thanks a lot for helping me so far koen and lardman.

I'll be back.
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Why Not Cutting Edge?
« Reply #42 on: May 19, 2006, 08:25:29 pm »
I think it works fine now, it's really great, it pulls in all the dependencies, downloads, builds...

The only thing, is I still got stuck on this php thing, and it's not an OE problem I think, however since this got it start it I thought I'd ask it here, to maybe find a solution.

bitbake php goes into the penultimate step and configures php and then
Code: [Select]
$ tail config.log
checking whether libxml build works...
checking for XMLRPC-EPI support... yes
checking libexpat dir for XMLRPC-EPI... no
checking iconv dir for XMLRPC-EPI... no
checking for iconv... no
checking for libiconv... no
checking for libiconv in -liconv... no
checking for iconv in -liconv... no
configure: error: iconv not found, in order to build xmlrpc you need the iconv library
FATAL: oe_runconf failed
Yet there is iconv in /usr/bin

I even went and downloaded and built GNU libiconv and it's in /usr/local/bin/ yet I still get this failure.

I've googled and found a couple of references to icon not found even when installed which is exactly this prob but all the pages are dead, and I wasn't able to find a solution. What is it?

Hack the php configure script?
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Why Not Cutting Edge?
« Reply #43 on: May 20, 2006, 05:40:32 am »
Presumably you are cross-building php?

I'd have thought that it wants an arm version of libiconv in that case.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Why Not Cutting Edge?
« Reply #44 on: May 20, 2006, 06:11:08 am »
Quote
Presumably you are cross-building php?
I'd have thought that it wants an arm version of libiconv in that case.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=127854\"][{POST_SNAPBACK}][/a][/div]
Yeah. I did even bitbake libiconv.

It did build it. But don't know what next. I actually checked and the php5 bb file specifies a --without-libiconv option, which is even more stranger then why it complains about missing libiconv. If you remove that option, the configure fails right away...

Man... I'm realy trying to figure out here what to do with it...
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze