UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Contributor
Contributor
569 Views
Registered: ‎05-14-2018

Petalinux v2019.1 fails to compile glib-2.0

Jump to solution

Hello,

When trying to build a Petalinux project, the build fails on glib-2.0. This is reproducible for me even after reinstalling Petalinux, deleting the sstate-cache and build folders, recreating the project, and also between different OS versions (Ubuntu 18.04 and Ubuntu 16.04).

Bitbake output when building only glib-2.0:

source /opt/xilinx/petalinux-v2019.1/settings.sh && LANG=en_US.UTF-8 petalinux-build -c glib-2.0
PetaLinux environment set to '/opt/xilinx/petalinux-v2019.1'
INFO: Checking free disk space
INFO: Checking installed tools
INFO: Checking installed development libraries
INFO: Checking network and other services
WARNING: No tftp server found - please refer to "PetaLinux SDK Installation Guide" for its impact and solution
[INFO] building glib-2.0
[INFO] sourcing bitbake
[INFO] generating user layers
INFO: bitbake glib-2.0
Loading cache: 100% |###########################################################################################################################| Time: 0:00:01
Loaded 3811 entries from dependency cache.
Parsing recipes: 100% |#########################################################################################################################| Time: 0:00:02
Parsing of 2777 .bb files complete (2775 cached, 2 parsed). 3812 targets, 150 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |######################################################################################################################| Time: 0:00:01
Checking sstate mirror object availability: 100% |##############################################################################################| Time: 0:00:00
Sstate summary: Wanted 103 Found 4 Missed 198 Current 513 (3% match, 83% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: glib-2.0-1_2.58.0-r0 do_install: oe_runmake failed
ERROR: glib-2.0-1_2.58.0-r0 do_install: Function failed: do_install (log file is located at <snip>/sw/build/tmp/work/aarch64-xilinx-linux/glib-2.0/1_2.58.0-r0/temp/log.do_install.1171)
ERROR: Logfile of failure stored in: <snip>/sw/build/tmp/work/aarch64-xilinx-linux/glib-2.0/1_2.58.0-r0/temp/log.do_install.1171
Log data follows:
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['virtual:native:/opt/xilinx/petalinux-v2019.1/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/automake/automake_1.16.1.bb:do_populate_sysroot', 'virtual:native:/opt/xilinx/petalinux-v2019.1/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb:do_populate_sysroot', '/opt/xilinx/petalinux-v2019.1/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/libtool/libtool-native_2.4.6.bb:do_populate_sysroot', '/op
t/xilinx/petalinux-v2019.1/components/yocto/source/aarch64/layers/core/meta/recipes-support/libffi/libffi_3.2.1.bb:do_populate_sysroot', '/opt/xilinx/petalinux-v2019.1/components/yocto/source/aarch64/layers/core/meta/recipes-support/bash-completion/bash-completion_2.8.bb:do_populate_sysroot', 'virtual:native:/opt/xilinx/petalinux-v2019.1/components/yocto/source/aarch64/layers/core/meta/recipes-gnome/gtk-doc/gtk-doc_1.29.bb:do_populate_sysroot', '/opt/xilinx/petalinux-v2019.1/components/yocto/source/aarch64
/layers/core/meta/recipes-core/glibc/glibc_2.28.bb:do_populate_sysroot', 'virtual:native:/opt/xilinx/petalinux-v2019.1/components/yocto/source/aarch64/layers/core/meta/recipes-core/gettext/gettext_0.19.8.1.bb:do_populate_sysroot', 'virtual:native:/opt/xilinx/petalinux-v2019.1/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', 'virtual:native:/opt/xilinx/petalinux-v2019.1/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/gnu-config/gn
u-config_git.bb:do_populate_sysroot', '/opt/xilinx/petalinux-v2019.1/components/yocto/source/aarch64/layers/core/meta/recipes-core/util-linux/util-linux_2.32.1.bb:do_populate_sysroot', '/opt/xilinx/petalinux-v2019.1/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/libtool/libtool-cross_2.4.6.bb:do_populate_sysroot', '/opt/xilinx/petalinux-v2019.1/components/yocto/source/aarch64/layers/core/meta/recipes-core/zlib/zlib_1.2.11.bb:do_populate_sysroot', '/opt/xilinx/petalinux-v2019.1/components
/yocto/source/aarch64/layers/core/meta/recipes-devtools/gcc/gcc-cross_8.2.bb:do_populate_sysroot', 'virtual:native:/opt/xilinx/petalinux-v2019.1/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/autoconf/autoconf_2.69.bb:do_populate_sysroot', '/opt/xilinx/petalinux-v2019.1/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/quilt/quilt-native_0.65.bb:do_populate_sysroot', 'virtual:native:/opt/xilinx/petalinux-v2019.1/components/yocto/source/aarch64/layers/core/meta/recipes-ext
ended/xz/xz_5.2.4.bb:do_populate_sysroot', '/opt/xilinx/petalinux-v2019.1/components/yocto/source/aarch64/layers/core/meta/recipes-core/dbus/dbus_1.12.10.bb:do_populate_sysroot', '/opt/xilinx/petalinux-v2019.1/components/yocto/source/aarch64/layers/core/meta/recipes-support/libpcre/libpcre_8.42.bb:do_populate_sysroot', 'virtual:native:/opt/xilinx/petalinux-v2019.1/components/yocto/source/aarch64/layers/core/meta/recipes-core/glib-2.0/glib-2.0_2.58.0.bb:do_populate_sysroot', '/opt/xilinx/petalinux-v2019.1/c
omponents/yocto/source/aarch64/layers/core/meta/recipes-devtools/gcc/gcc-runtime_8.2.bb:do_populate_sysroot', '/opt/xilinx/petalinux-v2019.1/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/python/python3-native_3.5.6.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: []
| NOTE: Skipping as already exists in sysroot: ['automake-native', 'pkgconfig-native', 'libtool-native', 'libffi', 'bash-completion', 'gtk-doc-native', 'glibc', 'gettext-native', 'pseudo-native', 'gnu-config-native', 'util-linux', 'libtool-cross', 'zlib', 'gcc-cross-aarch64', 'autoconf-native', 'quilt-native', 'xz-native', 'dbus', 'libpcre', 'glib-2.0-native', 'gcc-runtime', 'python3-native', 'texinfo-dummy-native', 'linux-libc-headers', 'gettext-minimal-native', 'libxcrypt', 'opkg-utils', 'libpam', 'ncurs
es', 'binutils-cross-aarch64', 'mpfr-native', 'libmpc-native', 'zlib-native', 'gmp-native', 'flex-native', 'm4-native', 'expat', 'autoconf-archive', 'base-files', 'initscripts', 'shadow', 'update-rc.d', 'base-passwd', 'shadow-sysroot', 'shadow-native', 'libx11', 'libsm', 'bzip2', 'libpcre-native', 'util-linux-native', 'libffi-native', 'libgcc', 'readline-native', 'openssl-native', 'sqlite3-native', 'gdbm-native', 'bzip2-native', 'flex', 'cracklib', 'attr', 'xtrans', 'util-macros', 'xorgproto', 'libxcb', 'l
ibice', 'lzo-native', 'ncurses-native', 'xcb-proto', 'libpthread-stubs', 'libxdmcp', 'libxau']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: SITE files ['endian-little', 'bit-64', 'arm-common', 'arm-64', 'common-linux', 'common-glibc', 'aarch64-linux', 'common']
| DEBUG: Executing shell function do_install
| NOTE: make -j 8 DESTDIR=<snip>/sw/build/tmp/work/aarch64-xilinx-linux/glib-2.0/1_2.58.0-r0/image install
| make  install-recursive
| make[1]: Entering directory '<snip>/sw/build/tmp/work/aarch64-xilinx-linux/glib-2.0/1_2.58.0-r0/build'
| Making install in .
| make[2]: Entering directory '<snip>/sw/build/tmp/work/aarch64-xilinx-linux/glib-2.0/1_2.58.0-r0/build'
| make[3]: Entering directory '<snip>/sw/build/tmp/work/aarch64-xilinx-linux/glib-2.0/1_2.58.0-r0/build'
|  <snip>/sw/build/tmp/hosttools/mkdir -p '<snip>/sw/build/tmp/work/aarch64-xilinx-linux/glib-2.0/1_2.58.0-r0/image/usr/bin'
|  <snip>/sw/build/tmp/hosttools/mkdir -p '<snip>/sw/build/tmp/work/aarch64-xilinx-linux/glib-2.0/1_2.58.0-r0/image/usr/share/glib-2.0/valgrind'
|  <snip>/sw/build/tmp/hosttools/mkdir -p '<snip>/sw/build/tmp/work/aarch64-xilinx-linux/glib-2.0/1_2.58.0-r0/image/usr/libexec/installed-tests/glib'
|  <snip>/sw/build/tmp/hosttools/mkdir -p '<snip>/sw/build/tmp/work/aarch64-xilinx-linux/glib-2.0/1_2.58.0-r0/image/usr/lib/pkgconfig'
|  <snip>/sw/build/tmp/hosttools/mkdir -p '<snip>/sw/build/tmp/work/aarch64-xilinx-linux/glib-2.0/1_2.58.0-r0/image/usr/libexec/installed-tests/glib'
|  <snip>/sw/build/tmp/hosttools/install -c glib-gettextize '<snip>/sw/build/tmp/work/aarch64-xilinx-linux/glib-2.0/1_2.58.0-r0/image/usr/bin'
|  <snip>/sw/build/tmp/hosttools/install -c -m 644 glib-2.0.pc gobject-2.0.pc gmodule-2.0.pc gmodule-export-2.0.pc gmodule-no-export-2.0.pc gthread-2.0.pc gio-2.0.pc gio-unix-2.0.pc '<snip>/sw/build/tmp/work/aarch64-xilinx-linux/glib-2.0/1_2.58.0-r0/image/usr/lib/pkgconfig'
|  <snip>/sw/build/tmp/hosttools/install -c -m 644 ../../../../../../../../../../../../../../<snip>/sw/build/tmp/work/aarch64-xilinx-linux/glib-2.0/1_2.58.0-r0/glib-2.58.0/glib.supp '<snip>/sw/build/tmp/work/aarch64-xilinx-linux/glib-2.0/1_2.58.0-r0/image/usr/share/glib-2.0/valgrind'
| make[3]: Leaving directory '<snip>/sw/build/tmp/work/aarch64-xilinx-linux/glib-2.0/1_2.58.0-r0/build'
| make[2]: Leaving directory '<snip>/sw/build/tmp/work/aarch64-xilinx-linux/glib-2.0/1_2.58.0-r0/build'
| Making install in m4macros
| make[2]: Entering directory '<snip>/sw/build/tmp/work/aarch64-xilinx-linux/glib-2.0/1_2.58.0-r0/build/m4macros'
| make  install-am
| make[3]: Entering directory '<snip>/sw/build/tmp/work/aarch64-xilinx-linux/glib-2.0/1_2.58.0-r0/build/m4macros'
| make[4]: Entering directory '<snip>/sw/build/tmp/work/aarch64-xilinx-linux/glib-2.0/1_2.58.0-r0/build/m4macros'
| make[4]: Nothing to be done for 'install-exec-am'.
|  <snip>/sw/build/tmp/hosttools/mkdir -p '<snip>/sw/build/tmp/work/aarch64-xilinx-linux/glib-2.0/1_2.58.0-r0/image/usr/libexec/installed-tests/glib'
|  <snip>/sw/build/tmp/hosttools/mkdir -p '<snip>/sw/build/tmp/work/aarch64-xilinx-linux/glib-2.0/1_2.58.0-r0/image/usr/share/aclocal'
|  <snip>/sw/build/tmp/hosttools/mkdir -p '<snip>/sw/build/tmp/work/aarch64-xilinx-linux/glib-2.0/1_2.58.0-r0/image/usr/libexec/installed-tests/glib'
|  <snip>/sw/build/tmp/hosttools/install -c -m 644 ../../../../../../../../../../../../../../../<snip>/sw/build/tmp/work/aarch64-xilinx-linux/glib-2.0/1_2.58.0-r0/glib-2.58.0/m4macros/glib-2.0.m4 ../../../../../../../../../../../../../../../<snip>/sw/build/tmp/work/aarch64-xilinx-linux/glib-2.0/1_2.58.0-r0/glib-2.58.0/m4macros/glib-gettext.m4 ../../../../../../../../../../../../../../../<snip>/sw/build/tmp/work/aarch64-xilinx-linux/glib-2.0/1_2.58.0-r0/glib-2.58.0/m4macros/gsettings.m4 '<snip>/sw/build/tmp/work/aarch64-xilinx-linux/glib-2.0/1_2.58.0-r0/image/usr/share/aclocal'
| make[4]: Leaving directory '<snip>/sw/build/tmp/work/aarch64-xilinx-linux/glib-2.0/1_2.58.0-r0/build/m4macros'
| make[3]: Leaving directory '<snip>/sw/build/tmp/work/aarch64-xilinx-linux/glib-2.0/1_2.58.0-r0/build/m4macros'
| make[2]: Leaving directory '<snip>/sw/build/tmp/work/aarch64-xilinx-linux/glib-2.0/1_2.58.0-r0/build/m4macros'
| Making install in glib
| make[2]: Entering directory '<snip>/sw/build/tmp/work/aarch64-xilinx-linux/glib-2.0/1_2.58.0-r0/build/glib'
| make  install-recursive
| make[3]: Entering directory '<snip>/sw/build/tmp/work/aarch64-xilinx-linux/glib-2.0/1_2.58.0-r0/build/glib'
| Making install in libcharset
| make[4]: Entering directory '<snip>/sw/build/tmp/work/aarch64-xilinx-linux/glib-2.0/1_2.58.0-r0/build/glib/libcharset'
| make  install-am
| make[5]: Entering directory '<snip>/sw/build/tmp/work/aarch64-xilinx-linux/glib-2.0/1_2.58.0-r0/build/glib/libcharset'
| make[6]: Entering directory '<snip>/sw/build/tmp/work/aarch64-xilinx-linux/glib-2.0/1_2.58.0-r0/build/glib/libcharset'
| /bin/sh /install-sh -d <snip>/sw/build/tmp/work/aarch64-xilinx-linux/glib-2.0/1_2.58.0-r0/image/usr/lib
| /bin/sh: /install-sh: No such file or directory
| make[6]: *** [Makefile:1514: install-exec-local] Error 127
| make[6]: *** Waiting for unfinished jobs....
|  <snip>/sw/build/tmp/hosttools/mkdir -p '<snip>/sw/build/tmp/work/aarch64-xilinx-linux/glib-2.0/1_2.58.0-r0/image/usr/libexec/installed-tests/glib'
|  <snip>/sw/build/tmp/hosttools/mkdir -p '<snip>/sw/build/tmp/work/aarch64-xilinx-linux/glib-2.0/1_2.58.0-r0/image/usr/libexec/installed-tests/glib'
| make[6]: Leaving directory '<snip>/sw/build/tmp/work/aarch64-xilinx-linux/glib-2.0/1_2.58.0-r0/build/glib/libcharset'
| make[5]: *** [Makefile:1335: install-am] Error 2
| make[5]: Leaving directory '<snip>/sw/build/tmp/work/aarch64-xilinx-linux/glib-2.0/1_2.58.0-r0/build/glib/libcharset'
| make[4]: *** [Makefile:1329: install] Error 2
| make[4]: Leaving directory '<snip>/sw/build/tmp/work/aarch64-xilinx-linux/glib-2.0/1_2.58.0-r0/build/glib/libcharset'
| make[3]: *** [Makefile:2622: install-recursive] Error 1
| make[3]: Leaving directory '<snip>/sw/build/tmp/work/aarch64-xilinx-linux/glib-2.0/1_2.58.0-r0/build/glib'
| make[2]: *** [Makefile:2947: install] Error 2
| make[2]: Leaving directory '<snip>/sw/build/tmp/work/aarch64-xilinx-linux/glib-2.0/1_2.58.0-r0/build/glib'
| make[1]: *** [Makefile:1262: install-recursive] Error 1
| make[1]: Leaving directory '<snip>/sw/build/tmp/work/aarch64-xilinx-linux/glib-2.0/1_2.58.0-r0/build'
| make: *** [Makefile:1731: install] Error 2
| ERROR: oe_runmake failed
| WARNING: <snip>/sw/build/tmp/work/aarch64-xilinx-linux/glib-2.0/1_2.58.0-r0/temp/run.do_install.1171:1 exit 1 from 'exit 1'
| ERROR: Function failed: do_install (log file is located at <snip>/sw/build/tmp/work/aarch64-xilinx-linux/glib-2.0/1_2.58.0-r0/temp/log.do_install.1171)
ERROR: Task (/opt/xilinx/petalinux-v2019.1/components/yocto/source/aarch64/layers/core/meta/recipes-core/glib-2.0/glib-2.0_2.58.0.bb:do_install) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1829 tasks of which 1804 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /opt/xilinx/petalinux-v2019.1/components/yocto/source/aarch64/layers/core/meta/recipes-core/glib-2.0/glib-2.0_2.58.0.bb:do_install
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
ERROR: Failed to build glib-2.0
Makefile:41: recipe for target 'build-glib-2.0' failed
make: *** [build-glib-2.0] Error 255
0 Kudos
1 Solution

Accepted Solutions
Contributor
Contributor
551 Views
Registered: ‎05-14-2018

Re: Petalinux v2019.1 fails to compile glib-2.0

Jump to solution

I've managed to solve this. In case anyone has the same problem, it was due to the project foldering being inside a symlinked folder. cd'ing to the real full path without symlinks and rebuilding everything fixed it.

View solution in original post

2 Replies
Contributor
Contributor
552 Views
Registered: ‎05-14-2018

Re: Petalinux v2019.1 fails to compile glib-2.0

Jump to solution

I've managed to solve this. In case anyone has the same problem, it was due to the project foldering being inside a symlinked folder. cd'ing to the real full path without symlinks and rebuilding everything fixed it.

View solution in original post

Moderator
Moderator
547 Views
Registered: ‎12-04-2016

Re: Petalinux v2019.1 fails to compile glib-2.0

Jump to solution

Hi @isaacjt 

We are not seeing any issues after enabling glib-2.0 in rootfs and building petalinux project with 2019.1 bsp.

0 Kudos