Following the guide through the link above, I proceeded with installing the build dependencies, for Fedora:
sudo dnf install gawk make wget tar bzip2 gzip python unzip perl patch \
diffutils diffstat git cpp gcc gcc-c++ glibc-devel texinfo chrpath \
ccache perl-Data-Dumper perl-Text-ParseWords perl-Thread-Queue socat \
SDL-devel xterm curl
Note: I replaced yum
with dnf
. On Fedora 28, a number of these dependencies are already installed.
For the rest of the guide, I followed the instruction as exactly specified. I choose to download the master branch
instead of the latest stable release.
After following all instructions specified, I proceeded to build the AGL demo for Qemu.
As instructed, I executed these commands:
source meta-agl/scripts/aglsetup.sh -f -m qemux86-64 agl-demo agl-devel
bitbake agl-demo-platform
[cherylfong@localhost build]$ bitbake agl-demo-platform
ERROR: Unable to start bitbake server
ERROR: Last 10 lines of server log for this session (/home/cherylfong/gerrit/workspace_agl/build/bitbake-cookerdaemon.log):
self.cooker = bb.cooker.BBCooker(self.configuration, self.featureset)
File "/home/cherylfong/gerrit/workspace_agl/poky/bitbake/lib/bb/cooker.py", line 197, in __init__
self.initConfigurationData()
File "/home/cherylfong/gerrit/workspace_agl/poky/bitbake/lib/bb/cooker.py", line 356, in initConfigurationData
self.databuilder.parseBaseConfiguration()
File "/home/cherylfong/gerrit/workspace_agl/poky/bitbake/lib/bb/cookerdata.py", line 316, in parseBaseConfiguration
raise bb.BBHandledException
bb.BBHandledException
ERROR: The following required tools (as specified by HOSTTOOLS) appear to be unavailable in PATH, please install them in order to proceed:
rpcgen
[cherylfong@localhost build]$ sudo dnf install rpcgen
[sudo] password for cherylfong:
Last metadata expiration check: 1:34:45 ago on Mon 08 Apr 2019 06:42:32 PM PDT.
Dependencies resolved.
==============================================================================================
Package Arch Version Repository Size
==============================================================================================
Installing:
rpcgen x86_64 1.4-0.fc28 updates 51 k
Transaction Summary
==============================================================================================
Install 1 Package
Total download size: 51 k
Installed size: 99 k
Is this ok [y/N]: y
Downloading Packages:
rpcgen-1.4-0.fc28.x86_64.rpm 110 kB/s | 51 kB 00:00
----------------------------------------------------------------------------------------------
Total 44 kB/s | 51 kB 00:01
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : rpcgen-1.4-0.fc28.x86_64 1/1
Running scriptlet: rpcgen-1.4-0.fc28.x86_64 1/1
Verifying : rpcgen-1.4-0.fc28.x86_64 1/1
Installed:
rpcgen.x86_64 1.4-0.fc28
Complete!
Note: This portion can take up to more than 5 minutes.
[cherylfong@localhost build]$ bitbake agl-demo-platform
NOTE: Your conf/bblayers.conf has been automatically updated.
WARNING: Host distribution "fedora-28" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Parsing recipes: 100% |########################################################| Time: 0:02:19
Parsing of 2372 .bb files complete (0 cached, 2372 parsed). 3265 targets, 264 skipped, 0 masked, 0 errors.
WARNING: No bb files matched BBFILE_PATTERN_agl-distro '^/home/cherylfong/gerrit/workspace_agl/meta-agl/meta-agl-distro/'
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.36.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "fedora-28"
TARGET_SYS = "x86_64-agl-linux"
MACHINE = "qemux86-64"
DISTRO = "poky-agl"
DISTRO_VERSION = "7.90.0+snapshot-20190409"
TUNE_FEATURES = "m64 corei7"
TARGET_FPU = ""
meta-qt5 = "HEAD:d8b531530fa42b59aa0a5b123d87a30d749cbcc4"
meta-agl-profile-graphical-qt5
meta-agl-profile-graphical = "HEAD:0f1670b4b635d54c744a3e697be169957f321808"
meta-hmi-framework
meta-audio-4a-framework = "HEAD:4ecb137abc1e72f71a3aa3d59ff323908d1f4e51"
meta-agl-demo = "HEAD:16224041eeeee070fd40a14d457adb5fc9d7ae8e"
meta-oe
meta-multimedia
meta-networking
meta-python
meta-filesystems = "HEAD:eae996301d9c097bcbeb8046f08041dc82bb62f8"
meta-agl-profile-core
meta-agl-distro
meta-agl-bsp = "HEAD:0f1670b4b635d54c744a3e697be169957f321808"
meta-security = "HEAD:8f6969a775fa6afbf553e72ba83e71197780b2d8"
meta-perl = "HEAD:eae996301d9c097bcbeb8046f08041dc82bb62f8"
meta-security
meta-app-framework = "HEAD:0f1670b4b635d54c744a3e697be169957f321808"
meta
meta-poky = "HEAD:68a612b7d31d270348ef5439d7f779c309bdb6ec"
NOTE: Fetching uninative binary shim from http://downloads.yoctoproject.org/releases/uninative/2.3/x86_64-nativesdk-libc.tar.bz2;sha256sum=c6954563dad3c95608117c6fc328099036c832bbd924ebf5fdccb622fc0a8684
Initialising tasks: 100% |#####################################################| Time: 0:00:14
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: openssl-native-1.0.2o-r0 do_configure: The perl module 'bignum' was not found but this is required to build openssl. Please install this module (often packaged as perl-bignum) and re-run bitbake.
ERROR: openssl-native-1.0.2o-r0 do_configure: Function failed: do_configure (log file is located at /home/cherylfong/gerrit/workspace_agl/build/tmp/work/x86_64-linux/openssl-native/1.0.2o-r0/temp/log.do_configure.25516)
ERROR: Logfile of failure stored in: /home/cherylfong/gerrit/workspace_agl/build/tmp/work/x86_64-linux/openssl-native/1.0.2o-r0/temp/log.do_configure.25516
ERROR: Task (virtual:native:/home/cherylfong/gerrit/workspace_agl/poky/meta/recipes-connectivity/openssl/openssl_1.0.2o.bb:do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 296 tasks of which 0 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
virtual:native:/home/cherylfong/gerrit/workspace_agl/poky/meta/recipes-connectivity/openssl/openssl_1.0.2o.bb:do_configure
Summary: There were 2 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
Couldn't get past Building with BitBake
After installing perl-bignum
via sudo dnf install perl-bignum
, I encountered the following errors:
.
.
.
| gcc -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"/home/cherylfong/gerrit/workspace_agl/build/tmp/work/x86_64-linux/elfutils-native/0.170-r0/recipe-sysroot-native/usr/share/locale"' -I. -I../../elfutils-0.170/backends -I.. -I. -I../../elfutils-0.170/backends -I../../elfutils-0.170/lib -I.. -I../../elfutils-0.170/libebl -I../../elfutils-0.170/libasm -I../../elfutils-0.170/libelf -I../../elfutils-0.170/libdw -isystem/home/cherylfong/gerrit/workspace_agl/build/tmp/work/x86_64-linux/elfutils-native/0.170-r0/recipe-sysroot-native/usr/include -std=gnu99 -Wall -Wshadow -Wformat=2 -Wold-style-definition -Wstrict-prototypes -Wlogical-op -Wduplicated-cond -Wnull-dereference -Wimplicit-fallthrough -Werror -Wunused -Wextra -Wstack-usage=262144 -D_FORTIFY_SOURCE=2 -isystem/home/cherylfong/gerrit/workspace_agl/build/tmp/work/x86_64-linux/elfutils-native/0.170-r0/recipe-sysroot-native/usr/include -O2 -pipe -c -o bpf_init.o ../../elfutils-0.170/backends/bpf_init.c
| gcc -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"/home/cherylfong/gerrit/workspace_agl/build/tmp/work/x86_64-linux/elfutils-native/0.170-r0/recipe-sysroot-native/usr/share/locale"' -I. -I../../elfutils-0.170/backends -I.. -I. -I../../elfutils-0.170/backends -I../../elfutils-0.170/lib -I.. -I../../elfutils-0.170/libebl -I../../elfutils-0.170/libasm -I../../elfutils-0.170/libelf -I../../elfutils-0.170/libdw -isystem/home/cherylfong/gerrit/workspace_agl/build/tmp/work/x86_64-linux/elfutils-native/0.170-r0/recipe-sysroot-native/usr/include -std=gnu99 -Wall -Wshadow -Wformat=2 -Wold-style-definition -Wstrict-prototypes -Wlogical-op -Wduplicated-cond -Wnull-dereference -Wimplicit-fallthrough -Werror -Wunused -Wextra -Wstack-usage=262144 -D_FORTIFY_SOURCE=2 -isystem/home/cherylfong/gerrit/workspace_agl/build/tmp/work/x86_64-linux/elfutils-native/0.170-r0/recipe-sysroot-native/usr/include -O2 -pipe -c -o bpf_regs.o ../../elfutils-0.170/backends/bpf_regs.c
| gcc -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"/home/cherylfong/gerrit/workspace_agl/build/tmp/work/x86_64-linux/elfutils-native/0.170-r0/recipe-sysroot-native/usr/share/locale"' -I. -I../../elfutils-0.170/backends -I.. -I. -I../../elfutils-0.170/backends -I../../elfutils-0.170/lib -I.. -I../../elfutils-0.170/libebl -I../../elfutils-0.170/libasm -I../../elfutils-0.170/libelf -I../../elfutils-0.170/libdw -isystem/home/cherylfong/gerrit/workspace_agl/build/tmp/work/x86_64-linux/elfutils-native/0.170-r0/recipe-sysroot-native/usr/include -std=gnu99 -Wall -Wshadow -Wformat=2 -Wold-style-definition -Wstrict-prototypes -Wlogical-op -Wduplicated-cond -Wnull-dereference -Wimplicit-fallthrough -Werror -Wunused -Wextra -Wstack-usage=262144 -D_FORTIFY_SOURCE=2 -isystem/home/cherylfong/gerrit/workspace_agl/build/tmp/work/x86_64-linux/elfutils-native/0.170-r0/recipe-sysroot-native/usr/include -O2 -pipe -c -o parisc_init.o ../../elfutils-0.170/backends/parisc_init.c
| In file included from ../../elfutils-0.170/backends/m68k_corenote.c:72:
| ../../elfutils-0.170/backends/linux-core-note.c:116:1: error: alignment 2 of ‘struct m68k_prstatus’ is less than 4 [-Werror=packed-not-aligned]
| ;
| ^
| ../../elfutils-0.170/backends/linux-core-note.c:110:5: error: ‘({anonymous})’ offset 70 in ‘struct m68k_prstatus’ isn’t aligned to 4 [-Werror=packed-not-aligned]
| ;
| ^
| gcc -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"/home/cherylfong/gerrit/workspace_agl/build/tmp/work/x86_64-linux/elfutils-native/0.170-r0/recipe-sysroot-native/usr/share/locale"' -I. -I../../elfutils-0.170/backends -I.. -I. -I../../elfutils-0.170/backends -I../../elfutils-0.170/lib -I.. -I../../elfutils-0.170/libebl -I../../elfutils-0.170/libasm -I../../elfutils-0.170/libelf -I../../elfutils-0.170/libdw -isystem/home/cherylfong/gerrit/workspace_agl/build/tmp/work/x86_64-linux/elfutils-native/0.170-r0/recipe-sysroot-native/usr/include -std=gnu99 -Wall -Wshadow -Wformat=2 -Wold-style-definition -Wstrict-prototypes -Wlogical-op -Wduplicated-cond -Wnull-dereference -Wimplicit-fallthrough -Werror -Wunused -Wextra -Wstack-usage=262144 -D_FORTIFY_SOURCE=2 -isystem/home/cherylfong/gerrit/workspace_agl/build/tmp/work/x86_64-linux/elfutils-native/0.170-r0/recipe-sysroot-native/usr/include -O2 -pipe -c -o parisc_symbol.o ../../elfutils-0.170/backends/parisc_symbol.c
| gcc -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"/home/cherylfong/gerrit/workspace_agl/build/tmp/work/x86_64-linux/elfutils-native/0.170-r0/recipe-sysroot-native/usr/share/locale"' -I. -I../../elfutils-0.170/backends -I.. -I. -I../../elfutils-0.170/backends -I../../elfutils-0.170/lib -I.. -I../../elfutils-0.170/libebl -I../../elfutils-0.170/libasm -I../../elfutils-0.170/libelf -I../../elfutils-0.170/libdw -isystem/home/cherylfong/gerrit/workspace_agl/build/tmp/work/x86_64-linux/elfutils-native/0.170-r0/recipe-sysroot-native/usr/include -std=gnu99 -Wall -Wshadow -Wformat=2 -Wold-style-definition -Wstrict-prototypes -Wlogical-op -Wduplicated-cond -Wnull-dereference -Wimplicit-fallthrough -Werror -Wunused -Wextra -Wstack-usage=262144 -D_FORTIFY_SOURCE=2 -isystem/home/cherylfong/gerrit/workspace_agl/build/tmp/work/x86_64-linux/elfutils-native/0.170-r0/recipe-sysroot-native/usr/include -O2 -pipe -c -o parisc_regs.o ../../elfutils-0.170/backends/parisc_regs.c
| cc1: all warnings being treated as errors
| make[2]: *** [Makefile:787: m68k_corenote.o] Error 1
| make[2]: *** Waiting for unfinished jobs....
| rm m68k_retval.o ia64_init.o ppc_cfi.o aarch64_regs.o x86_64_symbol.o ppc_auxv.o sh_retval.o alpha_symbol.o arm_auxv.o m68k_symbol.o i386_unwind.o sparc_symbol.o i386_auxv.o arm_symbol.o arm_retval.o ppc_initreg.o i386_retval.o parisc_symbol.o parisc_init.o ppc64_corenote.o ppc_regs.o ppc64_unwind.o ppc_init.o s390_init.o tilegx_symbol.o ia64_symbol.o sh_regs.o i386_corenote.o s390_regs.o i386_init.o alpha_init.o m68k_init.o x32_corenote.o s390_initreg.o arm_attrs.o ppc64_resolve_sym.o ppc64_symbol.o x86_64_initreg.o ppc_syscall.o arm_initreg.o ppc64_retval.o x86_64_retval.o aarch64_initreg.o alpha_auxv.o ppc_corenote.o arm_cfi.o i386_syscall.o x86_64_corenote.o sparc_corenote.o ppc64_init.o aarch64_symbol.o s390_unwind.o alpha_corenote.o x86_64_cfi.o sparc_initreg.o sh_symbol.o x86_64_init.o i386_regs.o s390_retval.o ppc_retval.o sparc_attrs.o bpf_regs.o ia64_regs.o alpha_retval.o arm_corenote.o aarch64_cfi.o aarch64_unwind.o sparc_init.o i386_initreg.o arm_init.o x86_64_unwind.o tilegx_corenote.o aarch64_retval.o s390_corenote.o x86_64_syscall.o sparc64_corenote.o tilegx_init.o s390_symbol.o sparc_retval.o sparc_auxv.o x86_64_regs.o sh_corenote.o i386_cfi.o alpha_regs.o parisc_regs.o aarch64_init.o arm_regs.o sparc_regs.o i386_symbol.o aarch64_corenote.o m68k_regs.o ppc_symbol.o s390x_corenote.o bpf_init.o s390_cfi.o tilegx_retval.o ia64_retval.o ppc_attrs.o sparc_cfi.o tilegx_regs.o sh_init.o
| make[1]: *** [Makefile:478: all-recursive] Error 1
| make: *** [Makefile:394: all] Error 2
| ERROR: oe_runmake failed
| WARNING: /home/cherylfong/gerrit/workspace_agl/build/tmp/work/x86_64-linux/elfutils-native/0.170-r0/temp/run.do_compile.10994:1 exit 1 from 'exit 1'
| ERROR: Function failed: do_compile (log file is located at /home/cherylfong/gerrit/workspace_agl/build/tmp/work/x86_64-linux/elfutils-native/0.170-r0/temp/log.do_compile.10994)
ERROR: Task (virtual:native:/home/cherylfong/gerrit/workspace_agl/poky/meta/recipes-devtools/elfutils/elfutils_0.170.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 338 tasks of which 295 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
virtual:native:/home/cherylfong/gerrit/workspace_agl/poky/meta/recipes-devtools/elfutils/elfutils_0.170.bb:do_compile
Summary: There were 2 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
Note: This is only a portion of the large output chunk.
Related email thread: https://lists.yoctoproject.org/pipermail/yocto/2018-October/042801.html