Bug 12366

Summary: Gstreamer1 gst1-plugins-bad do not compile with RPI-Userland
Product: buildroot Reporter: Thomas Ruschival <t.ruschival>
Component: OtherAssignee: Peter Seiderer <ps.report>
Status: RESOLVED FIXED    
Severity: normal CC: buildroot
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description Thomas Ruschival 2019-11-27 15:42:49 UTC
When selecting gst1-plugins-bad (e.g. i3tag, speed) the meson build fails if RPI-USERLAND has not been built before.

This is probably caused by commit #5d6c408e953 (Adam Duskett 2019-07-13 17:43:19) where special handling for RPI-USERLAND paths was added to GST1_PLUGINS_BAD_CFLAGS.

After manually building of rpi-userland with make rpi-userland-rebuild, the build for gst1-plugins-bad works.

Below the error log of /gst1-plugins-bad-1.16.1/build/meson-logs/meson-log.txt

-----
Sanity check compile stderr:

-----
Running test binary command: /home/ruschi/tmp/rpi0w_defconfig/build/gst1-plugins-bad-1.16.1/build/meson-private/sanitycheckcpp.exe
C++ compiler for the build machine: c++ (gcc 9.2.1 "c++ (Debian 9.2.1-19) 9.2.1 20191109")
C++ linker for the build machine: GNU ld.bfd 2.33.1
Sanity testing C compiler: /home/ruschi/tmp/rpi0w_defconfig/host/bin/arm-buildroot-linux-uclibcgnueabihf-gcc
Is cross compiler: True.
Sanity check compiler command line: /home/ruschi/tmp/rpi0w_defconfig/host/bin/arm-buildroot-linux-uclibcgnueabihf-gcc /home/ruschi/tmp/rpi0w_defconfig/build/gst1-plugins-bad-1.16.1/build/mrpi0w_defconfig/build/gst1-plugins-bad-1.16.1/build/meson-private/sanitycheckc_cross.exe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 /home/ruschi/tmp/rpi0w_defconfig/husr/include/IL /home/ruschi/tmp/rpi0w_defconfig/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/interface/vcos/pthreads /home/ruschi/tmp/rpi0w_defconfig/host/arm-buildroot-lin/vmcs_host/linux -pipe -D_FILE_OFFSET_BITS=64 -c
Sanity check compile stdout:

-----
Sanity check compile stderr:
arm-buildroot-linux-uclibcgnueabihf-gcc.br_real: error: /home/ruschi/tmp/rpi0w_defconfig/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/IL: No such file or directory
arm-buildroot-linux-uclibcgnueabihf-gcc.br_real: error: /home/ruschi/tmp/rpi0w_defconfig/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/interface/vcos/pthreads: No such file 
arm-buildroot-linux-uclibcgnueabihf-gcc.br_real: error: /home/ruschi/tmp/rpi0w_defconfig/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/interface/vmcs_host/linux: No such fil

-----
Comment 1 Thomas Ruschival 2019-11-27 15:50:36 UTC
Here the reference to the patch from buildroot mailing list:
http://lists.busybox.net/pipermail/buildroot/2019-October/262454.html
Comment 2 Peter Seiderer 2019-11-28 23:35:29 UTC
Can confirm the failure, patch suggested:

https://patchwork.ozlabs.org/patch/1202305/
Comment 3 Peter Korsgaard 2019-12-01 21:35:04 UTC
Merged for 2019.11, thanks