Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build wpe-eglfs-image on dunfell #493

Open
d21d3q opened this issue Aug 15, 2020 · 1 comment
Open

Unable to build wpe-eglfs-image on dunfell #493

d21d3q opened this issue Aug 15, 2020 · 1 comment

Comments

@d21d3q
Copy link

d21d3q commented Aug 15, 2020

Previously I've been able to build wpe-eglfs-image on thud, and now I am upgrading to dunfell.

build fails while building gstreamer1.0-plugins-base:

ERROR: gstreamer1.0-plugins-base-1.16.2-r0 do_configure: meson failed
ERROR: gstreamer1.0-plugins-base-1.16.2-r0 do_configure: Execution of '/workspace/build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/gstreamer1.0-plugins-base/1.16.2-r0/temp/run.do_configure.26891' failed
with exit code 1:
gcc: error trying to exec 'cc1obj': execvp: No such file or directory
The Meson build system
Version: 0.53.2
Source dir: /workspace/build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/gstreamer1.0-plugins-base/1.16.2-r0/gst-plugins-base-1.16.2
Build dir: /workspace/build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/gstreamer1.0-plugins-base/1.16.2-r0/build
Build type: cross build
Project name: gst-plugins-base
Project version: 1.16.2
C compiler for the build machine: gcc (gcc 5.4.0 "gcc (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609")
C linker for the build machine: gcc ld.bfd 2.26.1
C compiler for the host machine: arm-poky-linux-gnueabi-gcc -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-securit
y --sysroot=/workspace/build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/gstreamer1.0-plugins-base/1.16.2-r0/recipe-sysroot (gcc 9.3.0 "arm-poky-linux-gnueabi-gcc (GCC) 9.3.0")
C linker for the host machine: arm-poky-linux-gnueabi-gcc -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security
--sysroot=/workspace/build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/gstreamer1.0-plugins-base/1.16.2-r0/recipe-sysroot ld.bfd 2.34.0.20200220
Build machine cpu family: x86_64
Build machine cpu: x86_64
Host machine cpu family: arm
Host machine cpu: arm
Target machine cpu family: arm
Target machine cpu: arm
C++ compiler for the build machine: g++ (gcc 5.4.0 "g++ (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609")
C++ linker for the build machine: g++ ld.bfd 2.26.1
C++ compiler for the host machine: arm-poky-linux-gnueabi-g++ -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-secur
ity --sysroot=/workspace/build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/gstreamer1.0-plugins-base/1.16.2-r0/recipe-sysroot (gcc 9.3.0 "arm-poky-linux-gnueabi-g++ (GCC) 9.3.0")
C++ linker for the host machine: arm-poky-linux-gnueabi-g++ -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-securit
y --sysroot=/workspace/build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/gstreamer1.0-plugins-base/1.16.2-r0/recipe-sysroot ld.bfd 2.34.0.20200220
Compiler for language objc for the build machine not found.
Compiler for language objc for the host machine not found.
Compiler for C supports link arguments -Wl,-Bsymbolic-functions: YES
Compiler for C supports arguments -fvisibility=hidden: YES
Compiler for C supports arguments -fno-strict-aliasing: YES
Message: Disabling GLib cast checks
Has header "dlfcn.h" : YES
Has header "emmintrin.h" : NO
Has header "inttypes.h" : YES
Has header "memory.h" : YES
Has header "process.h" : NO
Has header "smmintrin.h" : NO
Has header "stdint.h" : YES
Has header "stdlib.h" : YES
Has header "strings.h" : YES
Has header "string.h" : YES
Has header "sys/socket.h" : YES
Has header "sys/stat.h" : YES
Has header "sys/types.h" : YES
Has header "sys/wait.h" : YES
Has header "unistd.h" : YES
Has header "winsock2.h" : NO
Has header "xmmintrin.h" : NO
Has header "linux/dma-buf.h" : YES
Library m found: YES
Checking for function "dcgettext" with dependency -lm: YES
Checking for function "gmtime_r" with dependency -lm: YES
Checking for function "lrintf" with dependency -lm: YES
Checking for function "mmap" with dependency -lm: YES
Checking for function "log2" with dependency -lm: YES
Checking for size of "char" : 1
Checking for size of "int" : 4
Checking for size of "long" : 4
Checking for size of "short" : 2
Checking for size of "void*" : 4
Compiler for C++ supports arguments -Waggregate-return: YES
Compiler for C supports arguments -Wmissing-declarations: YES
Compiler for C++ supports arguments -Wmissing-declarations: YES
Compiler for C supports arguments -Wredundant-decls: YES
Compiler for C++ supports arguments -Wredundant-decls: YES
Compiler for C supports arguments -Wundef: YES
Compiler for C++ supports arguments -Wundef: YES
Compiler for C supports arguments -Wwrite-strings: YES
Compiler for C++ supports arguments -Wwrite-strings: YES
Compiler for C supports arguments -Wformat: YES
Compiler for C++ supports arguments -Wformat: YES
Compiler for C supports arguments -Wformat-nonliteral: YES
Compiler for C++ supports arguments -Wformat-nonliteral: YES
Compiler for C supports arguments -Wformat-security: YES
Compiler for C++ supports arguments -Wformat-security: YES
Compiler for C supports arguments -Winit-self: YES
Compiler for C++ supports arguments -Winit-self: YES
Compiler for C supports arguments -Wmissing-include-dirs: YES
Compiler for C++ supports arguments -Wmissing-include-dirs: YES
Compiler for C supports arguments -Waddress: YES
Compiler for C++ supports arguments -Waddress: YES
Compiler for C supports arguments -Wno-multichar -Wmultichar: YES
Compiler for C++ supports arguments -Wno-multichar -Wmultichar: YES
Compiler for C supports arguments -Wvla: YES
Compiler for C++ supports arguments -Wvla: YES
Compiler for C supports arguments -Wpointer-arith: YES
Compiler for C++ supports arguments -Wpointer-arith: YES
Compiler for C supports arguments -Wmissing-prototypes: YES
Compiler for C supports arguments -Wdeclaration-after-statement: YES
Dependency x11 skipped: feature x11 disabled
Found pkg-config: /workspace/build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/gstreamer1.0-plugins-base/1.16.2-r0/recipe-sysroot-native/usr/bin/pkg-config (0.29.2)
Run-time dependency glib-2.0 found: YES 2.62.4
Run-time dependency gobject-2.0 found: YES 2.62.4
Run-time dependency gio-2.0 found: YES 2.62.4
Run-time dependency gio-unix-2.0 found: YES 2.62.4
Run-time dependency gmodule-no-export-2.0 found: YES 2.62.4
Dependency gdk-pixbuf-2.0 skipped: feature examples disabled
Dependency gtk+-3.0 skipped: feature examples disabled
Run-time dependency gstreamer-1.0 found: YES 1.16.2
Run-time dependency gstreamer-base-1.0 found: YES 1.16.2
Run-time dependency gstreamer-net-1.0 found: YES 1.16.2
Run-time dependency gstreamer-check-1.0 found: YES 1.16.2
Run-time dependency gstreamer-controller-1.0 found: YES 1.16.2
Run-time dependency orc-0.4 found: YES 0.4.31
Program orcc found: YES (/workspace/build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/gstreamer1.0-plugins-base/1.16.2-r0/recipe-sysroot-native/usr/bin/orcc)
Compiler for C supports arguments -msse: NO
Compiler for C supports arguments -msse2: NO
Compiler for C supports arguments -msse4.1: NO
Checking if "NEON support" compiles: YES
Message: GStreamer debug system is enabled
Program g-ir-scanner found: YES (/workspace/build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/gstreamer1.0-plugins-base/1.16.2-r0/recipe-sysroot-native/usr/bin/g-ir-scanner)
Run-time dependency iso-codes found: YES 4.4
Run-time dependency zlib found: YES 1.2.11
Found pkg-config: /workspace/build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/gstreamer1.0-plugins-base/1.16.2-r0/recipe-sysroot-native/usr/bin/pkg-config (0.29.2)
Configuring gstpluginsbaseversion.h using configuration
Looking for a fallback subproject for the dependency (anonymous)
Subproject directory not found and gl-headers.wrap file not found
Subproject  subprojects/gl-headers is buildable: NO (disabling)
Dependency (anonymous) from subproject subprojects/gl-headers found: NO
Run-time dependency glesv2 found: YES 20.0.2
Has header "GLES3/gl3.h" with dependency glesv2: YES
Has header "GLES3/gl3ext.h" with dependency glesv2: YES
Run-time dependency egl found: YES 20.0.2
Has header "EGL/egl.h" with dependency egl: YES
Has header "EGL/eglext.h" with dependency egl: YES
Has header "libdrm/drm_fourcc.h" : YES
Found CMake: NO
Run-time dependency wayland-client found: NO (tried pkgconfig and cmake)
Run-time dependency wayland-cursor found: NO (tried pkgconfig and cmake)
Run-time dependency wayland-egl found: NO (tried pkgconfig and cmake)
Run-time dependency wayland-protocols found: NO (tried pkgconfig and cmake)
Program wayland-scanner found: NO
Run-time dependency x11-xcb found: NO (tried pkgconfig and cmake)
Run-time dependency bcm_host found: NO (tried pkgconfig and cmake)
Library bcm_host found: NO
Run-time dependency gudev-1.0 found: NO (tried pkgconfig and cmake)
Run-time dependency libdrm found: YES 2.4.101
Run-time dependency gbm found: YES 20.0.2
Checking for function "fbGetDisplay" with dependency egl: NO
Message: No OpenGL Window systems found or requested

gst-libs/gst/gl/meson.build:948:2: ERROR: Problem encountered: GStreamer OpenGL integration required via options, but needed dependencies not found.

A full log can be found at /workspace/build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/gstreamer1.0-plugins-base/1.16.2-r0/build/meson-logs/meson-log.txt
WARNING: exit code 1 from a shell command.

ERROR: Logfile of failure stored in: /workspace/build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/gstreamer1.0-plugins-base/1.16.2-r0/temp/log.do_configure.26891

Error originates here,
Issue on gstreamer repo: https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/519
There is even MR that addresses this issue: https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/520/diffs but it is not released yet.

I will give a try to patch meson.build with those changes and see it will work.

Steps to reproduce.

Bug happened in poky based project, but I did clean setup from yoe:

git clone [email protected]:YoeDistro/yoe-distro.git
cd yoe-distro
yoe_add_layer [email protected]:WebPlatformForEmbedded/meta-wpe master

use conf/local.conf.template as config file and add at the end:

DISTRO_FEATURES_remove_rpi = " wayland x11 "
WPE_BACKEND = "rpi libinput"
WPE_PLATFORM = "egl"

bitbake wpe-eglfs-image

@bramoosterhuis
Copy link
Contributor

Thanks for the MR tip. I'm trying to get the RPI4 up and running.

This issue should be gone with this commit:
d9ebd55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants