Compilation failed on ubuntu 18.04 with gcc 7.5.0
on both wireplumber 0.4.0 and master
compilation failed on ubutnu 18.04 having gcc 7.5.0, All other dependencies version can be looked under log files
Found ninja-1.10.2 at /usr/bin/ninja
[3/143] Compiling C object lib/wp/libwireplumber-0.4.so.0.4.0.p/meson-generated_.._wpenums.c.o
FAILED: lib/wp/libwireplumber-0.4.so.0.4.0.p/meson-generated_.._wpenums.c.o
cc -Ilib/wp/libwireplumber-0.4.so.0.4.0.p -Ilib/wp -I../lib/wp -Ilib -I../lib -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libmou
nt -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/pipewire-0.3 -I/usr/include/spa-0.2 -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-p
ch -O2 -g -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_62 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_62 -fvisibility=hidden -Wsuggest-attribute=format -Wsign-compare -Wpoi
nter-arith -Wpointer-sign -Wformat -Wformat-security -Wimplicit-fallthrough -Wmissing-braces -Wtype-limits -Wvariadic-macros -Wno-missing-field-initializers -Wno-unused
-parameter -Wno-pedantic -Wold-style-declaration -Wunused-result -fPIC -D_REENTRANT -pthread -D_GNU_SOURCE -DG_LOG_USE_STRUCTURED '-DWIREPLUMBER_DEFAULT_MODULE_DIR="/us
r/local/lib/x86_64-linux-gnu/wireplumber-0.4"' '-DWIREPLUMBER_DEFAULT_CONFIG_DIR="/usr/local/etc/wireplumber"' '-DWIREPLUMBER_DEFAULT_DATA_DIR="/usr/local/share/wireplu
mber"' -DBUILDING_WP -MD -MQ lib/wp/libwireplumber-0.4.so.0.4.0.p/meson-generated_.._wpenums.c.o -MF lib/wp/libwireplumber-0.4.so.0.4.0.p/meson-generated_.._wpenums.c.o
.d -o lib/wp/libwireplumber-0.4.so.0.4.0.p/meson-generated_.._wpenums.c.o -c lib/wp/wpenums.c
In file included from ../lib/wp/global-proxy.h:12:0,
from ../lib/wp/client.h:12,
from lib/wp/wpenums.c:5:
../lib/wp/proxy.h:51:5: error: initializer element is not constant
(WP_PIPEWIRE_OBJECT_FEATURES_MINIMAL |
^
[4/143] Generating doxyxml_wp with a custom command
warning: ignoring unsupported tag 'CLANG_ADD_INC_PATHS' at line 1102, file docs/Doxyfile-wp
ninja: build stopped: subcommand failed.
Here are the logs - wireplumber_ubuntu1804.log meson-log.txt
always Reproducible
Steps to Reproduce:
- clone the repo
- cd into the dir
- just do
meson setup build
andmeson compile -C build
- You can see the compilation error
Expected Results:
The compilation should be successfull on all version.
Now I'll be bisecting with git to find out which commit did the problem.
EDIT -
git bisect
did not helped. The problem persist from the long time.
Edited by Sourav Das