[MXS-806] Can't compile source Created: 2016-07-18  Updated: 2016-07-19  Resolved: 2016-07-19

Status: Closed
Project: MariaDB MaxScale
Component/s: build
Affects Version/s: 1.4.3
Fix Version/s: N/A

Type: Bug Priority: Critical
Reporter: Marc Schieder Assignee: Unassigned
Resolution: Not a Bug Votes: 0
Labels: None
Environment:

Raspian / Rasperry Pi



 Description   

In file included from /home/pi/src/MaxScale/query_classifier/qc_mysqlembedded/qc_mysqlembedded.cc:60:0:
/home/pi/src/MaxScale/query_classifier/qc_mysqlembedded/qc_mysqlembedded.cc: In function ‘bool parse_query(GWBUF*)’:
/home/pi/src/MaxScale/server/include/log_manager.h:116:82: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 6 has type ‘size_t

{aka unsigned int}

[-Werror=format=]
mxs_log_message(priority, _FILE, __LINE, __func, format, ##VA_ARGS_)
^
/home/pi/src/MaxScale/server/include/log_manager.h:124:34: note: in expansion of macro ‘MXS_LOG_MESSAGE’
#define MXS_ERROR(format, ...) MXS_LOG_MESSAGE(LOG_ERR, format, ##_VA_ARGS_)
^
/home/pi/src/MaxScale/query_classifier/qc_mysqlembedded/qc_mysqlembedded.cc:220:9: note: in expansion of macro ‘MXS_ERROR’
MXS_ERROR("Length (%lu) is 0 or query string allocation failed (%p). Buffer is %lu bytes.",
^
/home/pi/src/MaxScale/server/include/log_manager.h:116:82: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 8 has type ‘int’ [-Werror=format=]
mxs_log_message(priority, _FILE, __LINE, __func, format, ##VA_ARGS_)
^
/home/pi/src/MaxScale/server/include/log_manager.h:124:34: note: in expansion of macro ‘MXS_LOG_MESSAGE’
#define MXS_ERROR(format, ...) MXS_LOG_MESSAGE(LOG_ERR, format, ##_VA_ARGS_)
^
/home/pi/src/MaxScale/query_classifier/qc_mysqlembedded/qc_mysqlembedded.cc:220:9: note: in expansion of macro ‘MXS_ERROR’
MXS_ERROR("Length (%lu) is 0 or query string allocation failed (%p). Buffer is %lu bytes.",
^
cc1plus: all warnings being treated as errors
query_classifier/qc_mysqlembedded/CMakeFiles/qc_mysqlembedded.dir/build.make:54: recipe for target 'query_classifier/qc_mysqlembedded/CMakeFiles/qc_mysqlembedded.dir/qc_mysqlembedded.cc.o' failed
make[2]: *** [query_classifier/qc_mysqlembedded/CMakeFiles/qc_mysqlembedded.dir/qc_mysqlembedded.cc.o] Error 1
CMakeFiles/Makefile2:392: recipe for target 'query_classifier/qc_mysqlembedded/CMakeFiles/qc_mysqlembedded.dir/all' failed
make[1]: *** [query_classifier/qc_mysqlembedded/CMakeFiles/qc_mysqlembedded.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2



 Comments   
Comment by markus makela [ 2016-07-18 ]

Is your Raspberry PI OS 64bit? MaxScale only supports 64 bit platforms at the time of writing.

Comment by Marc Schieder [ 2016-07-18 ]

No, Raspian is 32bit. Ok, thx for the information. I'll try Centos 7 64bit...

Generated at Thu Feb 08 04:02:04 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.