m3ulcb build fail with weston 1.11.0-r0 configure
Description
Environment
Activity
Tadao Tanikawa August 25, 2017 at 11:12 AM
Found root cause. Weston for m3ulcb depends some libraries around GStreamer to enable gst-record.
configure:18071: aarch64-agl-linux-gcc -march=armv8-a --sysroot=/work/agl/src/dab/build-m3ulcb/tmp/sysroots/m3ulcb -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/work/agl/src/dab/build-m3ulcb/tmp/work/aarch64-agl-linux/weston/1.11.0-r0=/usr/src/debug/weston/1.11.0-r0 -fdebug-prefix-map=/work/agl/src/dab/build-m3ulcb/tmp/sysroots/x86_64-linux= -fdebug-prefix-map=/work/agl/src/dab/build-m3ulcb/tmp/sysroots/m3ulcb= -fstack-protector-strong -pie -fpie -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -pthread -I/work/agl/src/dab/build-m3ulcb/tmp/sysroots/m3ulcb/usr/include/gstreamer-1.0 -I/work/agl/src/dab/build-m3ulcb/tmp/sysroots/m3ulcb/usr/lib/gstreamer-1.0/include -I/work/agl/src/dab/build-m3ulcb/tmp/sysroots/m3ulcb/usr/include/glib-2.0 -I/work/agl/src/dab/build-m3ulcb/tmp/sysroots/m3ulcb/usr/lib/glib-2.0/include -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -lpam -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 -lgstapp-1.0
/work/agl/src/dab/build-m3ulcb/tmp/sysroots/x86_64-linux/usr/libexec/aarch64-agl-linux/gcc/aarch64-agl-linux/6.2.0/ld: cannot find -lgstapp-1.0
collect2: error: ld returned 1 exit status
Weston with gst-record requires ibgstreamer-1.0, libgobject-2.0, libglib-2.0 and libgstapp-1.0
as additional.
But there is no definition to resolve these dependencies in meta-agl or meta-agl-demo.
libgstreamer-1.0
belongs to the package gstreamer-1.0
.libgobject-2.0
and libglib-2.0
belong to the package glib-2.0
.libgstapp-1.0
belongs to the package gstreamer1.0-plugins-base
.
The recipe of package gstreamer-1.0
requires glib-2.0
(libgobject-2.0
and libglib-2.0
).
The recipe of package gstreamer1.0-plugins-base
requires gstreamer-1.0
Therefore, it is necessary to append gstreamer1.0-plugins-base
to DEPENDS of weston.
Tadao Tanikawa August 25, 2017 at 6:26 AM
I could reproduce this when 1st trying to build at completely new environment which is built up from scratch using ubuntu16.04 docker container.
It looks like something depends on host environment because for qemux86-64(corei7) configure could find libpam for pam_open_session but for m3ulcb(aarch64) couldn't on the same host.
On success,
checking for library containing pam_open_session... -lpam
On failure,
checking for library containing pam_open_session... no
configure: error: PAM support is explicitly requested, but libpam couldn't be found
Takashi Matsuzawa July 30, 2017 at 3:34 AM
I cannot reproduce this anymore with my clean builds, both with master and dab branches.
Maybe was just my local configuration, or by recent fixes in the branches.
I am seeing this break with my clean build of m3ulcb.
>configure: error: PAM support is explicitly requested, but libpam couldn't be found
NOTE: Running task 5661 of 6037 (/var/lib/jenkins/workspace/kk-agl-modified-napo/AGL_MACHINE/m3ulcb/top/meta-openembedded/meta-oe/recipes-support/imagemagick/imagemagick_7.0.2.bb:do_configure) NOTE: recipe imagemagick-7.0.2-r0: task do_configure: Started NOTE: recipe qtwebengine-5.8.0+gitAUTOINC+d740d6a7db_15d257fd92-r0: task do_unpack: Succeeded NOTE: Running task 5662 of 6037 (/var/lib/jenkins/workspace/kk-agl-modified-napo/AGL_MACHINE/m3ulcb/top/meta-qt5/recipes-qt/qt5/qtwebengine_git.bb:do_patch) NOTE: recipe qtwebengine-5.8.0+gitAUTOINC+d740d6a7db_15d257fd92-r0: task do_patch: Started NOTE: recipe qtwebengine-5.8.0+gitAUTOINC+d740d6a7db_15d257fd92-r0: task do_patch: Succeeded NOTE: Running task 5663 of 6037 (/var/lib/jenkins/workspace/kk-agl-modified-napo/AGL_MACHINE/m3ulcb/top/meta-qt5/recipes-qt/qt5/qtwebengine_git.bb:do_generate_qt_config_file) NOTE: recipe qtwebengine-5.8.0+gitAUTOINC+d740d6a7db_15d257fd92-r0: task do_generate_qt_config_file: Started NOTE: recipe qtwebengine-5.8.0+gitAUTOINC+d740d6a7db_15d257fd92-r0: task do_generate_qt_config_file: Succeeded ERROR: weston-1.11.0-r0 do_configure: configure failed ERROR: weston-1.11.0-r0 do_configure: Function failed: do_configure (log file is located at /mnt/xvdb/yocto/tmp/kk-agl-modified-napo/AGL_MACHINE_m3ulcb/work/aarch64-agl-linux/weston/1.11.0-r0/temp/log.do_configure.16377) ERROR: Logfile of failure stored in: /mnt/xvdb/yocto/tmp/kk-agl-modified-napo/AGL_MACHINE_m3ulcb/work/aarch64-agl-linux/weston/1.11.0-r0/temp/log.do_configure.16377 Log data follows: | DEBUG: Executing python function sysroot_cleansstate | DEBUG: SITE files ['endian-little', 'bit-64', 'arm-common', 'arm-64', 'common-linux', 'common-glibc', 'aarch64-linux', 'common'] | DEBUG: Executing shell function userdel_sysroot_sstate | DEBUG: Shell function userdel_sysroot_sstate finished | DEBUG: Python function sysroot_cleansstate finished | DEBUG: SITE files ['endian-little', 'bit-64', 'arm-common', 'arm-64', 'common-linux', 'common-glibc', 'aarch64-linux', 'common'] | DEBUG: Executing shell function autotools_preconfigure | DEBUG: Shell function autotools_preconfigure finished ... | checking for GSTREAMER... yes | checking for FBDEV_COMPOSITOR... yes | checking for PIXMAN... yes | checking for PNG... yes | checking for library containing jpeg_CreateDecompress... no | checking for CAIRO... yes | checking for TEST_CLIENT... yes | checking for SIMPLE_CLIENT... yes | checking for SIMPLE_EGL_CLIENT... yes | checking for SIMPLE_DMABUF_INTEL_CLIENT... no | checking for SIMPLE_DMABUF_V4L_CLIENT... yes | checking for CLIENT... yes | checking for SERVER... yes | checking for WESTON_INFO... yes | checking for PANGO... yes | checking for library containing pam_open_session... no | configure: error: PAM support is explicitly requested, but libpam couldn't be found | WARNING: exit code 1 from a shell command. | ERROR: Function failed: do_configure (log file is located at /mnt/xvdb/yocto/tmp/kk-agl-modified-napo/AGL_MACHINE_m3ulcb/work/aarch64-agl-linux/weston/1.11.0-r0/temp/log.do_configure.16377) NOTE: recipe weston-1.11.0-r0: task do_configure: Failed ERROR: Task (/var/lib/jenkins/workspace/kk-agl-modified-napo/AGL_MACHINE/m3ulcb/top/poky/meta/recipes-graphics/wayland/weston_1.11.0.bb:do_configure) failed with exit code '1'