OpenBMC build fails in VM ubuntu 16.04 for yosemitev2

Mahesh Kurapati mahesh.kurapati at keysight.com
Sat Aug 1 11:10:42 AEST 2020


I could clone the ipmbbridge repo direcrtly, not sure why the build says it could not fetch :

ixia at ubuntu:~$ git clone git://github.com/openbmc/ipmbbridge.git
Cloning into 'ipmbbridge'...
remote: Enumerating objects: 11, done.
remote: Counting objects: 100% (11/11), done.
remote: Compressing objects: 100% (10/10), done.
remote: Total 62 (delta 2), reused 10 (delta 1), pack-reused 51
Receiving objects: 100% (62/62), 42.06 KiB | 531.00 KiB/s, done.
Resolving deltas: 100% (26/26), done.
ixia at ubuntu:~$

Mahesh

From: Mahesh Kurapati
Sent: Friday, July 31, 2020 8:06 PM
To: Drew Macrae <drewmacrae at google.com>
Cc: openbmc at lists.ozlabs.org
Subject: RE: OpenBMC build fails in VM ubuntu 16.04 for yosemitev2

Hello Drew,

Thank you.  That fixed the issue. Now, I see the below error:

DEBUG: Fetching http://downloads.yoctoproject.org/mirror/sources/git2_github.com.openbmc.ipmbbridge.git.tar.gz using command '/usr/bin/env wget -t 2 -T 30 --passive-ftp --no-check-certificate -P /home/ixia/yosemite/openbmc/build/yosemitev2/downloads 'http://downloads.yoctoproject.org/mirror/sources/git2_github.com.openbmc.ipmbbridge.git.tar.gz''
DEBUG: Fetcher accessed the network with the command /usr/bin/env wget -t 2 -T 30 --passive-ftp --no-check-certificate -P /home/ixia/yosemite/openbmc/build/yosemitev2/downloads 'http://downloads.yoctoproject.org/mirror/sources/git2_github.com.openbmc.ipmbbridge.git.tar.gz'
DEBUG: Running export PSEUDO_DISABLED=1; unset _PYTHON_SYSCONFIGDATA_NAME; export DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-S3y80KQJZ9"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export GIT_SSL_CAINFO="/home/ixia/yosemite/openbmc/poky/buildtools/sysroots/x86_64-pokysdk-linux/etc/ssl/certs/ca-certificates.crt"; export PATH="/home/ixia/yosemite/openbmc/scripts:/home/ixia/yosemite/openbmc/build/yosemitev2/tmp/work/arm1176jzs-openbmc-linux-gnueabi/phosphor-ipmi-ipmb/0.1+gitAUTOINC+a86059348f-r0/recipe-sysroot-native/usr/bin/arm-openbmc-linux-gnueabi:/home/ixia/yosemite/openbmc/build/yosemitev2/tmp/work/arm1176jzs-openbmc-linux-gnueabi/phosphor-ipmi-ipmb/0.1+gitAUTOINC+a86059348f-r0/recipe-sysroot/usr/bin/crossscripts:/home/ixia/yosemite/openbmc/build/yosemitev2/tmp/work/arm1176jzs-openbmc-linux-gnueabi/phosphor-ipmi-ipmb/0.1+gitAUTOINC+a86059348f-r0/recipe-sysroot-native/usr/sbin:/home/ixia/yosemite/openbmc/build/yosemitev2/tmp/work/arm1176jzs-openbmc-linux-gnueabi/phosphor-ipmi-ipmb/0.1+gitAUTOINC+a86059348f-r0/recipe-sysroot-native/usr/bin:/home/ixia/yosemite/openbmc/build/yosemitev2/tmp/work/arm1176jzs-openbmc-linux-gnueabi/phosphor-ipmi-ipmb/0.1+gitAUTOINC+a86059348f-r0/recipe-sysroot-native/sbin:/home/ixia/yosemite/openbmc/build/yosemitev2/tmp/work/arm1176jzs-openbmc-linux-gnueabi/phosphor-ipmi-ipmb/0.1+gitAUTOINC+a86059348f-r0/recipe-sysroot-native/bin:/home/ixia/yosemite/openbmc/poky/bitbake/bin:/home/ixia/yosemite/openbmc/build/yosemitev2/tmp/hosttools"; export HOME="/home/ixia"; /usr/bin/env wget -t 2 -T 30 --passive-ftp --no-check-certificate -P /home/ixia/yosemite/openbmc/build/yosemitev2/downloads 'http://downloads.yoctoproject.org/mirror/sources/git2_github.com.openbmc.ipmbbridge.git.tar.gz' --progress=dot -v
--2020-08-01 00:03:19--  http://downloads.yoctoproject.org/mirror/sources/git2_github.com.openbmc.ipmbbridge.git.tar.gz
Resolving downloads.yoctoproject.org... 198.145.29.63
Connecting to downloads.yoctoproject.org|198.145.29.63|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2020-08-01 00:03:19 ERROR 404: Not Found.

DEBUG: Mirror fetch failure for url http://downloads.yoctoproject.org/mirror/sources/git2_github.com.openbmc.ipmbbridge.git.tar.gz (original url: git://github.com/openbmc/ipmbbridge.git)
DEBUG: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; unset _PYTHON_SYSCONFIGDATA_NAME; export DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-S3y80KQJZ9"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export GIT_SSL_CAINFO="/home/ixia/yosemite/openbmc/poky/buildtools/sysroots/x86_64-pokysdk-linux/etc/ssl/certs/ca-certificates.crt"; export PATH="/home/ixia/yosemite/openbmc/scripts:/home/ixia/yosemite/openbmc/build/yosemitev2/tmp/work/arm1176jzs-openbmc-linux-gnueabi/phosphor-ipmi-ipmb/0.1+gitAUTOINC+a86059348f-r0/recipe-sysroot-native/usr/bin/arm-openbmc-linux-gnueabi:/home/ixia/yosemite/openbmc/build/yosemitev2/tmp/work/arm1176jzs-openbmc-linux-gnueabi/phosphor-ipmi-ipmb/0.1+gitAUTOINC+a86059348f-r0/recipe-sysroot/usr/bin/crossscripts:/home/ixia/yosemite/openbmc/build/yosemitev2/tmp/work/arm1176jzs-openbmc-linux-gnueabi/phosphor-ipmi-ipmb/0.1+gitAUTOINC+a86059348f-r0/recipe-sysroot-native/usr/sbin:/home/ixia/yosemite/openbmc/build/yosemitev2/tmp/work/arm1176jzs-openbmc-linux-gnueabi/phosphor-ipmi-ipmb/0.1+gitAUTOINC+a86059348f-r0/recipe-sysroot-native/usr/bin:/home/ixia/yosemite/openbmc/build/yosemitev2/tmp/work/arm1176jzs-openbmc-linux-gnueabi/phosphor-ipmi-ipmb/0.1+gitAUTOINC+a86059348f-r0/recipe-sysroot-native/sbin:/home/ixia/yosemite/openbmc/build/yosemitev2/tmp/work/arm1176jzs-openbmc-linux-gnueabi/phosphor-ipmi-ipmb/0.1+gitAUTOINC+a86059348f-r0/recipe-sysroot-native/bin:/home/ixia/yosemite/openbmc/poky/bitbake/bin:/home/ixia/yosemite/openbmc/build/yosemitev2/tmp/hosttools"; export HOME="/home/ixia"; /usr/bin/env wget -t 2 -T 30 --passive-ftp --no-check-certificate -P /home/ixia/yosemite/openbmc/build/yosemitev2/downloads 'http://downloads.yoctoproject.org/mirror/sources/git2_github.com.openbmc.ipmbbridge.git.tar.gz' --progress=dot -v failed with exit code 8, output:
--2020-08-01 00:03:19--  http://downloads.yoctoproject.org/mirror/sources/git2_github.com.openbmc.ipmbbridge.git.tar.gz
Resolving downloads.yoctoproject.org... 198.145.29.63
Connecting to downloads.yoctoproject.org|198.145.29.63|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2020-08-01 00:03:19 ERROR 404: Not Found.

Thank you,
Mahesh

From: Drew Macrae <drewmacrae at google.com<mailto:drewmacrae at google.com>>
Sent: Friday, July 31, 2020 1:44 PM
To: Mahesh Kurapati <mahesh.kurapati at keysight.com<mailto:mahesh.kurapati at keysight.com>>
Cc: openbmc at lists.ozlabs.org<mailto:openbmc at lists.ozlabs.org>
Subject: Re: OpenBMC build fails in VM ubuntu 16.04 for yosemitev2

Open Embedded has been updated recently to check for gcc-6 or later while ubuntu 16.04 is packaged with gcc 5.4.
You'll have to install a newer version of gcc to build it or disable the sanity check. To install and use a newer version of gcc you can run:

```
# Get and use gcc-9
sudo apt-get install software-properties-common --assume-yes --fix-missing
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt-get install gcc-9 g++-9 --assume-yes --fix-missing
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 90
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 90
gcc -v 2>&1
```

Hope that helps,
Drew Macrae

On Fri, Jul 31, 2020 at 2:37 PM Mahesh Kurapati <mahesh.kurapati at keysight.com<mailto:mahesh.kurapati at keysight.com>> wrote:
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/<https://urldefense.com/v3/__http:/www.ubuntu.com/__;!!I5pVk4LIGAfnvw!1PtvAHXlXDN10wNyhFKxohps_reF4rrWfTjEzlL365kkzUfI9l951CNhXzZpwMMBpMGxdw$>"
SUPPORT_URL="http://help.ubuntu.com/<https://urldefense.com/v3/__http:/help.ubuntu.com/__;!!I5pVk4LIGAfnvw!1PtvAHXlXDN10wNyhFKxohps_reF4rrWfTjEzlL365kkzUfI9l951CNhXzZpwMP6GwVEXA$>"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/<https://urldefense.com/v3/__http:/bugs.launchpad.net/ubuntu/__;!!I5pVk4LIGAfnvw!1PtvAHXlXDN10wNyhFKxohps_reF4rrWfTjEzlL365kkzUfI9l951CNhXzZpwMOvr-BIHw$>"
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<https://urldefense.com/v3/__https:/github.com/openbmc/openbmc.git__;!!I5pVk4LIGAfnvw!1PtvAHXlXDN10wNyhFKxohps_reF4rrWfTjEzlL365kkzUfI9l951CNhXzZpwMPoK0cF-w$>
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<https://urldefense.com/v3/__http:/yoctoproject.org/documentation__;!!I5pVk4LIGAfnvw!1PtvAHXlXDN10wNyhFKxohps_reF4rrWfTjEzlL365kkzUfI9l951CNhXzZpwMObmnnOkA$>

For more information about OpenEmbedded see their website:
    http://www.openembedded.org/<https://urldefense.com/v3/__http:/www.openembedded.org/__;!!I5pVk4LIGAfnvw!1PtvAHXlXDN10wNyhFKxohps_reF4rrWfTjEzlL365kkzUfI9l951CNhXzZpwMMnACCVZw$>

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/20200801/0b7532a6/attachment-0001.htm>


More information about the openbmc mailing list