Hi,
I tried to compile latest worker 3.15.3 on Mageia Cauldron but it fails to build on aarch64 dur to:
g++ -DHAVE_CONFIG_H -I. -I../src/aguix -I/usr/include -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -D_GNU_SOURCE -I/usr/include/fuse -D_FILE_OFFSET_BITS=64 -pthread -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -std=c++11 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Wall -MT exprfilter_scanner.o -MD -MP -MF .deps/exprfilter_scanner.Tpo -c -o exprfilter_scanner.o exprfilter_scanner.cc
exprfilter_scanner.rl:114:1: error: narrowing conversion of '-1' from 'int' to 'char' inside { } [-Wnarrowing]
exprfilter_scanner.rl:114:1: error: narrowing conversion of '-1' from 'int' to 'char' inside { } [-Wnarrowing]
exprfilter_scanner.rl:114:1: error: narrowing conversion of '-1' from 'int' to 'char' inside { } [-Wnarrowing]
make[3]: [Makefile:1588: exprfilter_scanner.o] Error 1
make[3]: Leaving directory '/home/iurt/rpmbuild/BUILD/worker-3.15.3/src'
make[3]: Waiting for unfinished jobs....
Hi,
as a quick workaround you can add the compile flag "-fsigned-char" to make it compile again. The problem is within code generated by ragel. On your architecture char is unsigned and a ragel structure uses a char array containing -1 thus leading to this error. I will look for a permanent solution for the next release which does not require this flag.
Thanks for the report.
Ralf
Oh quick workaround works, thanks!
fixed in 3.15.4