OpenBMC build fails in VM ubuntu 16.04 for yosemitev2
Drew Macrae
drewmacrae at google.com
Sat Aug 1 04:44:21 AEST 2020
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> 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/"
>
> 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/de83ade6/attachment-0001.htm>
More information about the openbmc
mailing list