Error: Building bitbake console-image

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.

Most likely SELinux ( or rather qemu running into it)

regards,

Koen

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 :

Hi,
I am using fedora 12 Desktop PC.
How to check about SELinux running and disable it?
Qemu is not running.

Thanks,

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

rday

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

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

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)

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.

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