OpenBMC build fails in VM ubuntu 16.04 for yosemitev2

Mahesh Kurapati mahesh.kurapati at keysight.com
Sat Aug 1 04:17:08 AEST 2020


Hi all,

I am new to the OpenBMC. I am building the OpenBMC yosemitev2 target in a VM and it is failing.  Below is the error I see from the do_compile output.  Also attached the compile log file. What am I doing incorrectly?

Error:
Provides: linux-libc-headers-dev = 5.4-r0
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Checking for unpackaged file(s): /home/ixia/yosemite/openbmc/build/yosemitev2/tmp/work/arm1176jzs-openbmc-linux-gnueabi/linux-libc-headers/5.4-r0/recipe-sysroot-native/usr/bin/../../usr/lib/rpm/check-files /home/ixia/yosemite/openbmc/build/yosemitev2/tmp/work/arm1176jzs-openbmc-linux-gnueabi/linux-libc-headers/5.4-r0/package
Segmentation fault (core dumped)
WARNING: exit code 139 from a shell command.
ERROR: Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
     0001:
*** 0002:do_package_rpm(d)
     0003:
File: '/home/ixia/yosemite/openbmc/meta/classes/package_rpm.bbclass', lineno: 716, function: do_package_rpm
     0712:
     0713:    # Build the rpm package!
     0714:    d.setVar('BUILDSPEC', cmd + "\n" + cleanupcmd + "\n")
     0715:    d.setVarFlag('BUILDSPEC', 'func', '1')
*** 0716:    bb.build.exec_func('BUILDSPEC', d)
     0717:
     0718:    if d.getVar('RPM_SIGN_PACKAGES') == '1':
     0719:        bb.build.exec_func("sign_rpm", d)
     0720:}
File: '/home/ixia/yosemite/openbmc/poky/bitbake/lib/bb/build.py', lineno: 251, function: exec_func


VM Details:
===========
ixia at ubuntu:~/yosemite/openbmc/build/yosemitev2$ cat /etc/os-release
NAME="Ubuntu"
VERSION="16.04.1 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.1 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
UBUNTU_CODENAME=xenial

ixia at ubuntu:~/yosemite/openbmc/build/yosemitev2$ uname -a
Linux ubuntu 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Below are the steps I did:
==========================
ixia at ubuntu:~/yosemite$ git clone https://github.com/openbmc/openbmc.git
Cloning into 'openbmc'...
remote: Enumerating objects: 83, done.
remote: Counting objects: 100% (83/83), done.
remote: Compressing objects: 100% (56/56), done.
remote: Total 136476 (delta 39), reused 71 (delta 27), pack-reused 136393
Receiving objects: 100% (136476/136476), 66.46 MiB | 2.79 MiB/s, done.
Resolving deltas: 100% (72806/72806), done.
Checking connectivity... done.

ixia at ubuntu:~/yosemite/openbmc$ . setup yosemitev2
Machine yosemitev2 found in meta-facebook/meta-yosemitev2
You had no conf/local.conf file. This configuration file has therefore been
created for you with some default values. You may wish to edit it to, for
example, select a different MACHINE (target hardware). See conf/local.conf
for more information as common configuration options are commented.

You had no conf/bblayers.conf file. This configuration file has therefore been
created for you with some default values. To add additional metadata layers
into your configuration please add entries to conf/bblayers.conf.

The Yocto Project has extensive documentation about OE including a reference
manual which can be found at:
    http://yoctoproject.org/documentation

For more information about OpenEmbedded see their website:
    http://www.openembedded.org/

Common targets are:
     obmc-phosphor-image
ixia at ubuntu:~/yosemite/openbmc/build/yosemitev2$

ixia at ubuntu:~/yosemite/openbmc/build/yosemitev2$ df -h
df: /mnt/hgfs: Protocol error
Filesystem      Size  Used Avail Use% Mounted on
udev            7.9G     0  7.9G   0% /dev
tmpfs           1.6G  9.4M  1.6G   1% /run
/dev/sda1        91G  5.4G   81G   7% /
tmpfs           7.9G  212K  7.9G   1% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           7.9G     0  7.9G   0% /sys/fs/cgroup
tmpfs           1.6G   52K  1.6G   1% /run/user/1000
/dev/sr0         46M   46M     0 100% /media/ixia/CDROM
ixia at ubuntu:~/yosemite/openbmc/build/yosemitev2$

ixia at ubuntu:~/yosemite/openbmc/build/yosemitev2$ bitbake obmc-phosphor-image
ERROR:  OE-core's config sanity checker detected a potential misconfiguration.
    Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
    Following is the list of potential problems / advisories:

    Your version of gcc is older than 6.0 and will break builds. Please install a newer version of gcc (you could use the project's buildtools-extended-tarball or use scripts/install-buildtools).


Summary: There was 1 ERROR message shown, returning a non-zero exit code.
ixia at ubuntu:~/yosemite/openbmc/build/yosemitev2$

ixia at ubuntu:~/yosemite/openbmc/build/yosemitev2$ sudo ../../scripts/install-buildtools
INFO: Fetching buildtools installer
INFO: Fetching buildtools installer checksum
INFO: Checksum success
INFO: Making installer executable
Extended Build tools installer version 3.1+snapshot
===================================================
You are about to install the SDK to "/home/ixia/yosemite/openbmc/poky/buildtools". Proceed [Y/n]? Y
Extracting SDK..................done
Setting it up...done
SDK has been successfully set up and is ready to be used.
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
$ . /home/ixia/yosemite/openbmc/poky/buildtools/environment-setup-x86_64-pokysdk-linux
INFO: Setting up the environment
INFO: Testing installation
INFO: Installation successful. Remember to source the environment setup script now and in any new session.
ixia at ubuntu:~/yosemite/openbmc/build/yosemitev2$ . /home/ixia/yosemite/openbmc/poky/buildtools/environment-setup-x86_64-pokysdk-linux
ixia at ubuntu:~/yosemite/openbmc/build/yosemitev2$ bitbake obmc-phosphor-image

Thank you,
Mahesh




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20200731/ac951b22/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: compile.log
Type: application/octet-stream
Size: 8858 bytes
Desc: compile.log
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20200731/ac951b22/attachment-0001.obj>


More information about the openbmc mailing list