I ran into the following error when building GStreamer 1.14.4:
/build/gstreamer1-1.14.4/libs/gst/controller »
CC libgstcontroller_1.0_la-controller-enumtypes.lo
controller-enumtypes.c:6:1: error: « \ » stray in program
\#include "gstinterpolationcontrolsource.h"
^
controller-enumtypes.c:6:2: error: « # » stray in program
\#include "gstinterpolationcontrolsource.h"
^
controller-enumtypes.c:6:11: error: expected « = », « , », « ; », « asm » or « __attribute__ » before string constant
\#include "gstinterpolationcontrolsource.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
controller-enumtypes.c:7:1: error: « \ » stray in program
\#include "gstlfocontrolsource.h"
^
controller-enumtypes.c:7:2: error: « # » stray in program
\#include "gstlfocontrolsource.h"
...
I am compiling for Raspberry Pi 3 model B+ on Debian 11 (Bullseye) (Bullseye) (GNU Make 4.3, GCC (Debian 10.2.1-6) 10.2.1 20210110) and the cross compiler is arm-buildroot-linux-gnueabihf-gcc-7.4.0. Before that the compilation was OK on Linux Mint 18.2 (Sonya).
It seems to be related to generated code:
/* controller-enumtypes.c */
/* This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. */
#include "controller-enumtypes.h"
\#include "gstinterpolationcontrolsource.h"
\#include "gstlfocontrolsource.h"
...
In the line \#include "gstinterpolationcontrolsource.h"
, there is an extra "\"
which is invalid syntax.
How can I properly fix this package with Buildroot 2019.02.9?