Error: Building bitbake console-image

271 views
Skip to first unread message

Rachit Shah

unread,
Jan 5, 2010, 4:48:13 AM1/5/10
to Beagle Board
Hello,

I am trying to build console-image using bitbake, I got error at some
point.
I have followed steps as mentioned in http://www.angstrom-distribution.org/building-angstrom

Please find error as per below.
**************************************************
[Rachit@RachitLinuxPC openembedded]$ bitbake console-image
NOTE: Psyco JIT Compiler (http://psyco.sf.net) not available. Install
it to increase performance.
NOTE: Handling BitBake files: - (6700/6700) [100 %]
NOTE: Parsing finished. 6413 cached, 0 parsed, 287 skipped, 0 masked.
NOTE: Cache is clean, not saving.
NOTE: Resolving any missing task queue dependencies
NOTE: preferred version git of u-boot not available (for item u-boot)
NOTE: preferred version git of u-boot not available (for item u-boot)
NOTE: Preparing runqueue
NOTE: Executing runqueue
NOTE: Running task 430 of 2928 (ID: 210, /home/Rachit/OE/openembedded/
recipes/glibc/glibc_2.6.1.bb, do_populate_staging)
NOTE: Running task 782 of 2928 (ID: 213, /home/Rachit/OE/openembedded/
recipes/glibc/glibc_2.6.1.bb, do_package)
NOTE: Running task 988 of 2928 (ID: 1573, /home/Rachit/OE/openembedded/
recipes/u-boot/u-boot-mkimage-openmoko-native_oe.bb, do_quilt)
NOTE: Running task 1036 of 2928 (ID: 1527, /home/Rachit/OE/
openembedded/recipes/module-init-tools/module-init-tools-
cross_3.2.2.bb, do_compile)
NOTE: preparing tree for binary locale generation
ERROR: function do_compile failed
ERROR: see log in /home/Rachit/OE/angstrom-dev/work/armv7a-angstrom-
linux-gnueabi/module-init-tools-cross-3.2.2-r5/temp/log.do_compile.
24008
NOTE: Task failed: /home/Rachit/OE/angstrom-dev/work/armv7a-angstrom-
linux-gnueabi/module-init-tools-cross-3.2.2-r5/temp/log.do_compile.
24008
ERROR: TaskFailed event exception, aborting
ERROR: Build of /home/Rachit/OE/openembedded/recipes/module-init-tools/
module-init-tools-cross_3.2.2.bb do_compile failed
NOTE: Running task 1037 of 2928 (ID: 1572, /home/Rachit/OE/
openembedded/recipes/u-boot/u-boot-mkimage-openmoko-native_oe.bb,
do_svnrev)
ERROR: Task 1527 (/home/Rachit/OE/openembedded/recipes/module-init-
tools/module-init-tools-cross_3.2.2.bb, do_compile) failed
NOTE: Waiting for 3 active tasks to finish
NOTE: 1: /home/Rachit/OE/openembedded/recipes/u-boot/u-boot-mkimage-
openmoko-native_oe.bb, do_svnrev (24042)
NOTE: 2: /home/Rachit/OE/openembedded/recipes/glibc/glibc_2.6.1.bb,
do_populate_staging (24003)
NOTE: 3: /home/Rachit/OE/openembedded/recipes/glibc/glibc_2.6.1.bb,
do_package (24006)
NOTE: Waiting for 2 active tasks to finish
NOTE: 1: /home/Rachit/OE/openembedded/recipes/glibc/glibc_2.6.1.bb,
do_populate_staging (24003)
NOTE: 2: /home/Rachit/OE/openembedded/recipes/glibc/glibc_2.6.1.bb,
do_package (24006)
NOTE: generating locale es_NI (UTF-8)
mmap: Permission denied
NOTE: Task failed: localedef returned an error (command was PATH="/
home/Rachit/OE/angstrom-dev/staging/i686-linux/usr/bin/armv7a-angstrom-
linux-gnueabi:/home/Rachit/OE/angstrom-dev/staging/i686-linux/usr/bin/
armv7a-angstrom-linux-gnueabi:/home/Rachit/OE/angstrom-dev/staging/
i686-linux/usr/sbin:/home/Rachit/OE/angstrom-dev/staging/i686-linux/
usr/bin:/home/Rachit/OE/angstrom-dev/cross/armv7a/bin:/home/Rachit/OE/
angstrom-dev/staging/i686-linux/sbin:/home/Rachit/OE/angstrom-dev/
staging/i686-linux/bin:/home/Rachit/OE/openembedded/bitbake/bin:/home/
Rachit/CodeSourcery/Sourcery_G++/bin:/usr/lib/qt-3.3/bin:/usr/kerberos/
sbin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/bin:/usr/bin:/bin:/
usr/local/sbin:/usr/sbin:/sbin:/home/Rachit/bin" I18NPATH="/home/
Rachit/OE/angstrom-dev/work/armv7a-angstrom-linux-gnueabi/glibc-2.6.1-
r15/locale-tree//usr/share/i18n" qemu-arm -s 1048576 -r 2.6.16 -L /
home/Rachit/OE/angstrom-dev/work/armv7a-angstrom-linux-gnueabi/
glibc-2.6.1-r15/locale-tree -E LD_LIBRARY_PATH=/home/Rachit/OE/
angstrom-dev/work/armv7a-angstrom-linux-gnueabi/glibc-2.6.1-r15/locale-
tree/lib -cpu cortex-a8 /home/Rachit/OE/angstrom-dev/work/armv7a-
angstrom-linux-gnueabi/glibc-2.6.1-r15/locale-tree/bin/localedef --
force --old-style --no-archive --prefix=/home/Rachit/OE/angstrom-dev/
work/armv7a-angstrom-linux-gnueabi/glibc-2.6.1-r15/locale-tree --
inputfile=/usr/share/i18n/locales/es_NI --charmap=UTF-8 es_NI).
ERROR: TaskFailed event exception, aborting
ERROR: Build of /home/Rachit/OE/openembedded/recipes/glibc/
glibc_2.6.1.bb do_package failed
ERROR: Task 213 (/home/Rachit/OE/openembedded/recipes/glibc/
glibc_2.6.1.bb, do_package) failed
NOTE: Waiting for 1 active tasks to finish
NOTE: 1: /home/Rachit/OE/openembedded/recipes/glibc/glibc_2.6.1.bb,
do_populate_staging (24003)
NOTE: Tasks Summary: Attempted 1033 tasks of which 1032 didn't need to
be rerun and 2 failed.
ERROR: '/home/Rachit/OE/openembedded/recipes/module-init-tools/module-
init-tools-cross_3.2.2.bb' failed
ERROR: '/home/Rachit/OE/openembedded/recipes/glibc/glibc_2.6.1.bb'
failed
*********************************************************************************************
What would be reason of this error?

Thanks,
Rachit Shah

Koen Kooi

unread,
Jan 5, 2010, 5:24:53 AM1/5/10
to beagl...@googlegroups.com

Op 5 jan 2010, om 10:48 heeft Rachit Shah het volgende geschreven:

>
> NOTE: generating locale es_NI (UTF-8)
> mmap: Permission denied

> *********************************************************************************************
> What would be reason of this error?

Most likely SELinux ( or rather qemu running into it)

regards,

Koen

Rachit Shah

unread,
Jan 5, 2010, 5:30:07 AM1/5/10
to Beagle Board
Hi,

Please find log of log.do_compile.24008 as per below.

OTE: make -j4
ccache gcc -isystem/home/Rachit/OE/angstrom-dev/staging/i686-linux/
usr/include -O2 -Wunused -Wall -static -L/home/Rachit/OE/angstrom-dev/
staging/i686-linux/usr/lib -Wl,-rpath-link,/home/Rachit/OE/angstrom-
dev/staging/i686-linux/usr/lib -Wl,-rpath,/home/Rachit/OE/angstrom-dev/
staging/i686-linux/usr/lib -Wl,-O1 -o insmod.static insmod.o
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make: *** [insmod.static] Error 1
FATAL: oe_runmake failed

Why it has given this error :

On Jan 5, 2:48 pm, Rachit Shah <rachi...@gmail.com> wrote:
> Hello,
>
> I am trying to build console-image using bitbake, I got error at some
> point.

> I have followed steps as mentioned inhttp://www.angstrom-distribution.org/building-angstrom

Rachit Shah

unread,
Jan 5, 2010, 5:36:00 AM1/5/10
to Beagle Board
Hi,
I am using fedora 12 Desktop PC.
How to check about SELinux running and disable it?
Qemu is not running.

Thanks,

Robert P. J. Day

unread,
Jan 5, 2010, 6:33:55 AM1/5/10
to Beagle Board
On Tue, 5 Jan 2010, Rachit Shah wrote:

> Hi,
> I am using fedora 12 Desktop PC.
> How to check about SELinux running and disable it?
> Qemu is not running.
>
> Thanks,
>
> On Jan 5, 3:30 pm, Rachit Shah <rachi...@gmail.com> wrote:
> > Hi,
> >
> > Please find log of log.do_compile.24008 as per below.
> >
> > OTE: make -j4
> > ccache gcc  -isystem/home/Rachit/OE/angstrom-dev/staging/i686-linux/
> > usr/include -O2 -Wunused -Wall -static -L/home/Rachit/OE/angstrom-dev/
> > staging/i686-linux/usr/lib -Wl,-rpath-link,/home/Rachit/OE/angstrom-
> > dev/staging/i686-linux/usr/lib -Wl,-rpath,/home/Rachit/OE/angstrom-dev/
> > staging/i686-linux/usr/lib -Wl,-O1 -o insmod.static insmod.o
> > /usr/bin/ld: cannot find -lc
> > collect2: ld returned 1 exit status
> > make: *** [insmod.static] Error 1
> > FATAL: oe_runmake failed

http://www.crashcourse.ca/wiki/index.php/Angstrom

rday
--

========================================================================
Robert P. J. Day Waterloo, Ontario, CANADA

Linux Consulting, Training and Kernel Pedantry.

Web page: http://crashcourse.ca
Twitter: http://twitter.com/rpjday
========================================================================

Rachit Shah

unread,
Jan 5, 2010, 7:57:52 AM1/5/10
to Beagle Board
Hi Robert & Koen,

Thanks for valuable support.
I have checked SELinux status and disabled it by using setenforce 0
command.
Please find output of cat /etc/sysconfig/selinux
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted

I tried to run "setsebool -P allow_unconfined_mmap_low 1" cmd but
getting following error/

libsemanage.dbase_llist_set: record not found in the database
libsemanage.dbase_llist_set: could not set record value
Could not change boolean allow_unconfined_mmap_low
Could not change policy booleans

I have also tried to install glibc-static but it is looking for
Missing Dependency: glibc-devel = 2.11-2 is needed by package glibc-
static-2.11-2.i686 (fedora). I have also tried to installed missing
dependency but showing
No package = available.
No package 2.11-2 available.


I have also Updated Software by up to date.

Please let me know how to proceed further.

Thanks,
Rachit Shah

Philip Balister

unread,
Jan 5, 2010, 9:38:21 AM1/5/10
to beagl...@googlegroups.com
On Tue, Jan 5, 2010 at 5:30 AM, Rachit Shah <rach...@gmail.com> wrote:
> Hi,
>
> Please find log of log.do_compile.24008 as per below.
>
> OTE: make -j4
> ccache gcc  -isystem/home/Rachit/OE/angstrom-dev/staging/i686-linux/
> usr/include -O2 -Wunused -Wall -static -L/home/Rachit/OE/angstrom-dev/
> staging/i686-linux/usr/lib -Wl,-rpath-link,/home/Rachit/OE/angstrom-
> dev/staging/i686-linux/usr/lib -Wl,-rpath,/home/Rachit/OE/angstrom-dev/
> staging/i686-linux/usr/lib -Wl,-O1 -o insmod.static insmod.o
> /usr/bin/ld: cannot find -lc
> collect2: ld returned 1 exit status
> make: *** [insmod.static] Error 1
> FATAL: oe_runmake failed
>
> Why it has given this error :

yum install glibc-static

Philip

> --
>
> You received this message because you are subscribed to the Google Groups "Beagle Board" group.
> To post to this group, send email to beagl...@googlegroups.com.
> To unsubscribe from this group, send email to beagleboard...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/beagleboard?hl=en.
>
>
>

Dan Poirot

unread,
Jan 5, 2010, 9:48:05 AM1/5/10
to beagl...@googlegroups.com
On Tue, Jan 5, 2010 at 8:38 AM, Philip Balister
<philip....@gmail.com> wrote:
> On Tue, Jan 5, 2010 at 5:30 AM, Rachit Shah <rach...@gmail.com> wrote:
>> Hi,
>>
>> Please find log of log.do_compile.24008 as per below.

>> FATAL: oe_runmake failed


>>
>> Why it has given this error :
>
> yum install glibc-static
>
> Philip


How about following the OEandYourDistro pointer on the OE web site?

http://wiki.openembedded.org/index.php/OEandYourDistro#Fedora_11


Fedora 11, compared to previous versions, brings the need to install
"glibc-static" as well:

su -c "yum install python m4 make wget curl ftp cvs subversion tar
bzip2 gzip unzip \
python-psyco perl texinfo texi2html diffstat openjade docbook-style-dsssl \
docbook-style-xsl docbook-dtds docbook-utils sed bison bc glibc-devel
glibc-static \
gcc binutils pcre pcre-devel git quilt groff linuxdoc-tools patch
linuxdoc-tools \
gcc-c++ help2man perl-ExtUtils-MakeMaker"

(if this is hard to copy from this HTML page, go to edit mode and copy
from editor)

Rachit Shah

unread,
Jan 5, 2010, 11:49:18 PM1/5/10
to Beagle Board
Hi Dan,

Thanks for reply.

I have checked by giving command as mentioned in link
http://wiki.openembedded.org/index.php/OEandYourDistro#Fedora_11.

su -c "yum install python m4 make wget curl ftp cvs subversion tar
bzip2 gzip unzip \
python-psyco perl texinfo texi2html diffstat openjade docbook-style-
dsssl \
docbook-style-xsl docbook-dtds docbook-utils sed bison bc glibc-devel
glibc-static \
gcc binutils pcre pcre-devel git quilt groff linuxdoc-tools patch
linuxdoc-tools \
gcc-c++ help2man perl-ExtUtils-MakeMaker"

I got following error.
*********************************************
Resolving Dependencies
--> Running transaction check
---> Package glibc-static.i686 0:2.11-2 set to be updated
--> Processing Dependency: glibc-devel = 2.11-2 for package: glibc-
static-2.11-2.i686
---> Package linuxdoc-tools.i686 0:0.9.65-2.fc12 set to be updated
---> Package pcre-devel.i686 0:7.8-3.fc12 set to be updated
---> Package python-psyco.i686 0:1.6-4.fc12 set to be updated
---> Package quilt.i686 0:0.47-5.fc12 set to be updated
--> Finished Dependency Resolution
glibc-static-2.11-2.i686 from fedora has depsolving problems
--> Missing Dependency: glibc-devel = 2.11-2 is needed by package
glibc-static-2.11-2.i686 (fedora)
Error: Missing Dependency: glibc-devel = 2.11-2 is needed by package
glibc-static-2.11-2.i686 (fedora)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
***********************************************************
How to get missing dependency glibc-devel = 2.11-2.

Thanks,
Rachit Shah


On Jan 5, 7:48 pm, Dan Poirot <dtpoi...@gmail.com> wrote:
> On Tue, Jan 5, 2010 at 8:38 AM, Philip Balister
>

> <philip.balis...@gmail.com> wrote:

Rachit Shah

unread,
Jan 12, 2010, 5:33:03 AM1/12/10
to Beagle Board
HI,

I have figured out this issue. I have to do again Fedora installation
and (do not select repository - Fedora - Testing updates & Fedora -
Updates options) at time of Fedora installation.

Now, I am getting following error when tried to do bitbake console-
image

/*************************************************************/
NOTE: Running task 2849 of 2928 (ID: 161, /home/Rachit/OE/openembedded/
recipes/u-boot/u-boot_git.bb, do_package_stage_all)
NOTE: Running task 2920 of 2928 (ID: 16, /home/Rachit/OE/openembedded/
recipes/images/console-image.bb, do_package_stage_all)
NOTE: Running task 2923 of 2928 (ID: 11, /home/Rachit/OE/openembedded/
recipes/images/console-image.bb, do_rootfs)
NOTE: Running task 2924 of 2928 (ID: 148, /home/Rachit/OE/openembedded/
recipes/u-boot/u-boot_git.bb, do_build)
ERROR: function do_rootfs failed
ERROR: see log in /home/Rachit/OE/angstrom-dev/work/beagleboard-
angstrom-linux-gnueabi/console-image-1.0-r0/temp/log.do_rootfs.8060
NOTE: Task failed: /home/Rachit/OE/angstrom-dev/work/beagleboard-
angstrom-linux-gnueabi/console-image-1.0-r0/temp/log.do_rootfs.8060


ERROR: TaskFailed event exception, aborting

ERROR: Build of /home/Rachit/OE/openembedded/recipes/images/console-
image.bb do_rootfs failed
NOTE: Running task 2925 of 2928 (ID: 163, /home/Rachit/OE/openembedded/
recipes/u-boot/u-boot_git.bb, do_rm_work)
ERROR: Task 11 (/home/Rachit/OE/openembedded/recipes/images/console-
image.bb, do_rootfs) failed


NOTE: Waiting for 1 active tasks to finish

NOTE: 1: /home/Rachit/OE/openembedded/recipes/u-boot/u-boot_git.bb,
do_rm_work (8088)
NOTE: Tasks Summary: Attempted 2923 tasks of which 2920 didn't need to
be rerun and 1 failed.
ERROR: '/home/Rachit/OE/openembedded/recipes/images/console-image.bb'
failed
/
************************************************************************/
log.do_rootfs.8060 :
/*******************************************/
+ rm -rf /home/Rachit/OE/angstrom-dev/rootfs
+ mkdir -p /home/Rachit/OE/angstrom-dev/rootfs
+ mkdir -p /home/Rachit/OE/angstrom-dev/deploy/glibc/images/
beagleboard
+ '[' 0 '!=' 1 ']'
+ for devtable in /home/Rachit/OE/openembedded/files/device_table-
minimal.txt
+ makedevs -r /home/Rachit/OE/angstrom-dev/rootfs -D /home/Rachit/OE/
openembedded/files/device_table-minimal.txt
+ rootfs_ipk_do_rootfs
+ set -x
+ package_update_index_ipk
+ set -x
+ ipkgarchs='all any noarch arm armv4 armv4t armv5te armv6 armv7
armv7a beagleboard'
+ '[' '!' -z '' ']'
+ touch /home/Rachit/OE/angstrom-dev/deploy/glibc/ipk/Packages
+ ipkg-make-index -r /home/Rachit/OE/angstrom-dev/deploy/glibc/ipk/
Packages -p /home/Rachit/OE/angstrom-dev/deploy/glibc/ipk/Packages -l /
home/Rachit/OE/angstrom-dev/deploy/glibc/ipk/Packages.filelist -m /
home/Rachit/OE/angstrom-dev/deploy/glibc/ipk
/home/Rachit/OE/angstrom-dev/staging/i686-linux/usr/bin/ipkg.py:39:
DeprecationWarning: the md5 module is deprecated; use hashlib instead
import md5
Traceback (most recent call last):
File "/home/Rachit/OE/angstrom-dev/staging/i686-linux/usr/bin/ipkg-
make-index", line 7, in <module>
import ipkg
File "/home/Rachit/OE/angstrom-dev/staging/i686-linux/usr/bin/
ipkg.py", line 39, in <module>
import md5
File "/home/Rachit/OE/angstrom-dev/staging/i686-linux//usr/lib/
python2.6/md5.py", line 10, in <module>
from hashlib import md5
File "/home/Rachit/OE/angstrom-dev/staging/i686-linux//usr/lib/
python2.6/hashlib.py", line 136, in <module>
md5 = __get_builtin_constructor('md5')
File "/home/Rachit/OE/angstrom-dev/staging/i686-linux//usr/lib/
python2.6/hashlib.py", line 63, in __get_builtin_constructor
import _md5
ImportError: No module named _md5
/****************************************************************/
What would be reason of this ?

Thanks,
Rachit


On Jan 6, 9:49 am, Rachit Shah <rachi...@gmail.com> wrote:
> Hi Dan,
>
> Thanks for reply.
>

> I have checked by giving command as mentioned in linkhttp://wiki.openembedded.org/index.php/OEandYourDistro#Fedora_11.


>
> su -c "yum install python m4 make wget curl ftp cvs subversion tar
> bzip2 gzip unzip \
> python-psyco perl texinfo texi2html diffstat openjade docbook-style-
> dsssl \
> docbook-style-xsl docbook-dtds docbook-utils sed bison bc glibc-devel
> glibc-static \
> gcc binutils pcre pcre-devel git quilt groff linuxdoc-tools patch
> linuxdoc-tools \
> gcc-c++ help2man perl-ExtUtils-MakeMaker"
>
> I got followingerror.
> *********************************************
> Resolving Dependencies
> --> Running transaction check
> ---> Package glibc-static.i686 0:2.11-2 set to be updated
> --> Processing Dependency: glibc-devel = 2.11-2 for package: glibc-
> static-2.11-2.i686
> ---> Package linuxdoc-tools.i686 0:0.9.65-2.fc12 set to be updated
> ---> Package pcre-devel.i686 0:7.8-3.fc12 set to be updated
> ---> Package python-psyco.i686 0:1.6-4.fc12 set to be updated
> ---> Package quilt.i686 0:0.47-5.fc12 set to be updated
> --> Finished Dependency Resolution
> glibc-static-2.11-2.i686 from fedora has depsolving problems
>   --> Missing Dependency: glibc-devel = 2.11-2 is needed by package

> glibc-static-2.11-2.i686 (fedora)Error: Missing Dependency: glibc-devel = 2.11-2 is needed by package

Reply all
Reply to author
Forward
0 new messages