Menu

#30 latest worker 3.15.3 does not build on aarch64

next
closed
nobody
None
5
2023-03-04
2019-01-12
No

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....

1 Attachments

Discussion

  • Ralf Hoffmann

    Ralf Hoffmann - 2019-01-13

    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

     
  • Geiger David

    Geiger David - 2019-01-13

    Oh quick workaround works, thanks!

     
  • Ralf Hoffmann

    Ralf Hoffmann - 2019-08-12
    • status: open --> closed
     
  • Ralf Hoffmann

    Ralf Hoffmann - 2019-08-12

    fixed in 3.15.4

     

Log in to post a comment.